Guide: How To Use Rclone To Mount Cloud Drives And Play Files


DZMM

Recommended Posts

I am having an issue on a new setup in which I do not have permission to add files to the created folders under /mnt/user/mount_mergerfs/gdrive_media_vfs

 

The mount script appears to run fine without errors, but I cant add media to the above folder to test, tried using both windows via SMB and Krusader. I changed very little in the mount script other than the rclone remote name

 

This is my mount script:

Quote

#!/bin/bash

######################
#### Mount Script ####
######################
## Version 0.96.9.3 ##
######################

####### EDIT ONLY THESE SETTINGS #######

# INSTRUCTIONS
# 1. Change the name of the rclone remote and shares to match your setup
# 2. NOTE: enter RcloneRemoteName WITHOUT ':'
# 3. Optional: include custom command and bind mount settings
# 4. Optional: include extra folders in mergerfs mount

# REQUIRED SETTINGS
RcloneRemoteName="gdrive_media_vfs" # Name of rclone remote mount WITHOUT ':'. NOTE: Choose your encrypted remote for sensitive data
RcloneMountShare="/mnt/user/mount_rclone" # where your rclone remote will be located without trailing slash  e.g. /mnt/user/mount_rclone
RcloneMountDirCacheTime="720h" # rclone dir cache time
LocalFilesShare="/mnt/user/local" # location of the local files and MountFolders you want to upload without trailing slash to rclone e.g. /mnt/user/local. Enter 'ignore' to disable
RcloneCacheShare="/mnt/user0/mount_rclone" # location of rclone cache files without trailing slash e.g. /mnt/user0/mount_rclone
RcloneCacheMaxSize="400G" # Maximum size of rclone cache
RcloneCacheMaxAge="336h" # Maximum age of cache files
MergerfsMountShare="/mnt/user/mount_mergerfs" # location without trailing slash  e.g. /mnt/user/mount_mergerfs. Enter 'ignore' to disable
DockerStart="nzbget plex sonarr radarr" # list of dockers, separated by space, to start once mergerfs mount verified. Remember to disable AUTOSTART for dockers added in docker settings page
MountFolders=\{"downloads/complete,downloads/intermediate,downloads/seeds,movies,tv"\} # comma separated list of folders to create within the mount

# Note: Again - remember to NOT use ':' in your remote name above

# OPTIONAL SETTINGS

# Add extra paths to mergerfs mount in addition to LocalFilesShare
LocalFilesShare2="ignore" # without trailing slash e.g. /mnt/user/other__remote_mount/or_other_local_folder.  Enter 'ignore' to disable
LocalFilesShare3="ignore"
LocalFilesShare4="ignore"

# Add extra commands or filters
Command1="--rc"
Command2=""
Command3=""
Command4=""
Command5=""
Command6=""
Command7=""
Command8=""

CreateBindMount="N" # Y/N. Choose whether to bind traffic to a particular network adapter
RCloneMountIP="192.168.1.252" # My unraid IP is 172.30.12.2 so I create another similar IP address
NetworkAdapter="eth0" # choose your network adapter. eth0 recommended
VirtualIPNumber="2" # creates eth0:x e.g. eth0:1.  I create a unique virtual IP addresses for each mount & upload so I can monitor and traffic shape for each of them

####### END SETTINGS #######

###############################################################################
#####   DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING   #######
###############################################################################

####### Preparing mount location variables #######
RcloneMountLocation="$RcloneMountShare/$RcloneRemoteName" # Location for rclone mount
LocalFilesLocation="$LocalFilesShare/$RcloneRemoteName" # Location for local files to be merged with rclone mount
MergerFSMountLocation="$MergerfsMountShare/$RcloneRemoteName" # Rclone data folder location

####### create directories for rclone mount and mergerfs mounts #######
mkdir -p /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName # for script files
mkdir -p $RcloneCacheShare/cache/$RcloneRemoteName # for cache files
if [[  $LocalFilesShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating local folders as requested."
    LocalFilesLocation="/tmp/$RcloneRemoteName"
    eval mkdir -p $LocalFilesLocation
else
    echo "$(date "+%d.%m.%Y %T") INFO: Creating local folders."
    eval mkdir -p $LocalFilesLocation/"$MountFolders"
fi
mkdir -p $RcloneMountLocation

if [[  $MergerfsMountShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating MergerFS folders as requested."
else
    echo "$(date "+%d.%m.%Y %T") INFO: Creating MergerFS folders."
    mkdir -p $MergerFSMountLocation
fi


#######  Check if script is already running  #######
echo "$(date "+%d.%m.%Y %T") INFO: *** Starting mount of remote ${RcloneRemoteName}"
echo "$(date "+%d.%m.%Y %T") INFO: Checking if this script is already running."
if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Exiting script as already running."
    exit
else
    echo "$(date "+%d.%m.%Y %T") INFO: Script not running - proceeding."
    touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
fi

####### Checking have connectivity #######

echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if online"
ping -q -c2 google.com > /dev/null # -q quiet, -c number of pings to perform
if [ $? -eq 0 ]; then # ping returns exit status 0 if successful
    echo "$(date "+%d.%m.%Y %T") PASSED: *** Internet online"
else
    echo "$(date "+%d.%m.%Y %T") FAIL: *** No connectivity.  Will try again on next run"
    rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
    exit
fi

#######  Create Rclone Mount  #######

# Check If Rclone Mount Already Created
if [[ -f "$RcloneMountLocation/mountcheck" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Success ${RcloneRemoteName} remote is already mounted."
else
    echo "$(date "+%d.%m.%Y %T") INFO: Mount not running. Will now mount ${RcloneRemoteName} remote."
# Creating mountcheck file in case it doesn't already exist
    echo "$(date "+%d.%m.%Y %T") INFO: Recreating mountcheck file for ${RcloneRemoteName} remote."
    touch mountcheck
    rclone copy mountcheck $RcloneRemoteName: -vv --no-traverse
# Check bind option
    if [[  $CreateBindMount == 'Y' ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}"
        ping -q -c2 $RCloneMountIP > /dev/null # -q quiet, -c number of pings to perform
        if [ $? -eq 0 ]; then # ping returns exit status 0 if successful
            echo "$(date "+%d.%m.%Y %T") INFO: *** IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}"
        else
            echo "$(date "+%d.%m.%Y %T") INFO: *** Creating IP address ${RCloneMountIP} for remote ${RcloneRemoteName}"
            ip addr add $RCloneMountIP/24 dev $NetworkAdapter label $NetworkAdapter:$VirtualIPNumber
        fi
        echo "$(date "+%d.%m.%Y %T") INFO: *** Created bind mount ${RCloneMountIP} for remote ${RcloneRemoteName}"
    else
        RCloneMountIP=""
        echo "$(date "+%d.%m.%Y %T") INFO: *** Creating mount for remote ${RcloneRemoteName}"
    fi
# create rclone mount
    rclone mount \
    $Command1 $Command2 $Command3 $Command4 $Command5 $Command6 $Command7 $Command8 \
    --allow-other \
    --umask 000 \
    --dir-cache-time $RcloneMountDirCacheTime \
    --attr-timeout $RcloneMountDirCacheTime \
    --log-level INFO \
    --poll-interval 10s \
    --cache-dir=$RcloneCacheShare/cache/$RcloneRemoteName \
    --drive-pacer-min-sleep 10ms \
    --drive-pacer-burst 1000 \
    --vfs-cache-mode full \
    --vfs-cache-max-size $RcloneCacheMaxSize \
    --vfs-cache-max-age $RcloneCacheMaxAge \
    --vfs-read-ahead 1G \
    --bind=$RCloneMountIP \
    $RcloneRemoteName: $RcloneMountLocation &

# Check if Mount Successful
    echo "$(date "+%d.%m.%Y %T") INFO: sleeping for 5 seconds"
# slight pause to give mount time to finalise
    sleep 5
    echo "$(date "+%d.%m.%Y %T") INFO: continuing..."
    if [[ -f "$RcloneMountLocation/mountcheck" ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: Successful mount of ${RcloneRemoteName} mount."
    else
        echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mount failed - please check for problems.  Stopping dockers"
        docker stop $DockerStart
        rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
        exit
    fi
fi

####### Start MergerFS Mount #######

if [[  $MergerfsMountShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating mergerfs mount as requested."
else
    if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount in place."
    else
# check if mergerfs already installed
        if [[ -f "/bin/mergerfs" ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs already installed, proceeding to create mergerfs mount"
        else
# Build mergerfs binary
            echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs not installed - installing now."
            mkdir -p /mnt/user/appdata/other/rclone/mergerfs
            docker run -v /mnt/user/appdata/other/rclone/mergerfs:/build --rm trapexit/mergerfs-static-build
            mv /mnt/user/appdata/other/rclone/mergerfs/mergerfs /bin
# check if mergerfs install successful
            echo "$(date "+%d.%m.%Y %T") INFO: *sleeping for 5 seconds"
            sleep 5
            if [[ -f "/bin/mergerfs" ]]; then
                echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs installed successfully, proceeding to create mergerfs mount."
            else
                echo "$(date "+%d.%m.%Y %T") ERROR: Mergerfs not installed successfully.  Please check for errors.  Exiting."
                rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
                exit
            fi
        fi
# Create mergerfs mount
        echo "$(date "+%d.%m.%Y %T") INFO: Creating ${RcloneRemoteName} mergerfs mount."
# Extra Mergerfs folders
        if [[  $LocalFilesShare2 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare2} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare2=":$LocalFilesShare2"
        else
            LocalFilesShare2=""
        fi
        if [[  $LocalFilesShare3 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare3} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare3=":$LocalFilesShare3"
        else
            LocalFilesShare3=""
        fi
        if [[  $LocalFilesShare4 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare4} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare4=":$LocalFilesShare4"
        else
            LocalFilesShare4=""
        fi
# make sure mergerfs mount point is empty
        mv $MergerFSMountLocation $LocalFilesLocation
        mkdir -p $MergerFSMountLocation
# mergerfs mount command
        mergerfs $LocalFilesLocation:$RcloneMountLocation$LocalFilesShare2$LocalFilesShare3$LocalFilesShare4 $MergerFSMountLocation -o rw,async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,dropcacheonclose=true
# check if mergerfs mount successful
        echo "$(date "+%d.%m.%Y %T") INFO: Checking if ${RcloneRemoteName} mergerfs mount created."
        if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount created."
        else
            echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mergerfs mount failed.  Stopping dockers."
            docker stop $DockerStart
            rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
            exit
        fi
    fi
fi

####### Starting Dockers That Need Mergerfs Mount To Work Properly #######

# only start dockers once
if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: dockers already started."
else
# Check CA Appdata plugin not backing up or restoring
    if [ -f "/tmp/ca.backup2/tempFiles/backupInProgress" ] || [ -f "/tmp/ca.backup2/tempFiles/restoreInProgress" ] ; then
        echo "$(date "+%d.%m.%Y %T") INFO: Appdata Backup plugin running - not starting dockers."
    else
        touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started
        echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers."
        docker start $DockerStart
    fi
fi

rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
echo "$(date "+%d.%m.%Y %T") INFO: Script complete"

exit

 

And my log:

Quote

21.12.2021 06:29:39 INFO: Creating local folders.
21.12.2021 06:29:39 INFO: Creating MergerFS folders.
21.12.2021 06:29:39 INFO: *** Starting mount of remote gdrive_media_vfs
21.12.2021 06:29:39 INFO: Checking if this script is already running.
21.12.2021 06:29:39 INFO: Script not running - proceeding.
21.12.2021 06:29:39 INFO: *** Checking if online
21.12.2021 06:29:40 PASSED: *** Internet online
21.12.2021 06:29:40 INFO: Success gdrive_media_vfs remote is already mounted.
21.12.2021 06:29:40 INFO: Check successful, gdrive_media_vfs mergerfs mount in place.
21.12.2021 06:29:40 INFO: Starting dockers.
Error response from daemon: No such container: nzbget
Error response from daemon: No such container: plex
Error response from daemon: No such container: sonarr
Error response from daemon: No such container: radarr
Error: failed to start containers: nzbget, plex, sonarr, radarr
21.12.2021 06:29:40 INFO: Script complete
Script Finished Dec 21, 2021 06:29.40

 

Link to comment
I am having an issue on a new setup in which I do not have permission to add files to the created folders under /mnt/user/mount_mergerfs/gdrive_media_vfs
 
The mount script appears to run fine without errors, but I cant add media to the above folder to test, tried using both windows via SMB and Krusader. I changed very little in the mount script other than the rclone remote name
 
This is my mount script:
#!/bin/bash
######################
#### Mount Script ####
######################
## Version 0.96.9.3 ##
######################
####### EDIT ONLY THESE SETTINGS #######
# INSTRUCTIONS
# 1. Change the name of the rclone remote and shares to match your setup
# 2. NOTE: enter RcloneRemoteName WITHOUT ':'
# 3. Optional: include custom command and bind mount settings
# 4. Optional: include extra folders in mergerfs mount
# REQUIRED SETTINGS
RcloneRemoteName="gdrive_media_vfs" # Name of rclone remote mount WITHOUT ':'. NOTE: Choose your encrypted remote for sensitive data
RcloneMountShare="/mnt/user/mount_rclone" # where your rclone remote will be located without trailing slash  e.g. /mnt/user/mount_rclone
RcloneMountDirCacheTime="720h" # rclone dir cache time
LocalFilesShare="/mnt/user/local" # location of the local files and MountFolders you want to upload without trailing slash to rclone e.g. /mnt/user/local. Enter 'ignore' to disable
RcloneCacheShare="/mnt/user0/mount_rclone" # location of rclone cache files without trailing slash e.g. /mnt/user0/mount_rclone
RcloneCacheMaxSize="400G" # Maximum size of rclone cache
RcloneCacheMaxAge="336h" # Maximum age of cache files
MergerfsMountShare="/mnt/user/mount_mergerfs" # location without trailing slash  e.g. /mnt/user/mount_mergerfs. Enter 'ignore' to disable
DockerStart="nzbget plex sonarr radarr" # list of dockers, separated by space, to start once mergerfs mount verified. Remember to disable AUTOSTART for dockers added in docker settings page
MountFolders=\{"downloads/complete,downloads/intermediate,downloads/seeds,movies,tv"\} # comma separated list of folders to create within the mount
# Note: Again - remember to NOT use ':' in your remote name above
# OPTIONAL SETTINGS
# Add extra paths to mergerfs mount in addition to LocalFilesShare
LocalFilesShare2="ignore" # without trailing slash e.g. /mnt/user/other__remote_mount/or_other_local_folder.  Enter 'ignore' to disable
LocalFilesShare3="ignore"
LocalFilesShare4="ignore"
# Add extra commands or filters
Command1="--rc"
Command2=""
Command3=""
Command4=""
Command5=""
Command6=""
Command7=""
Command8=""
CreateBindMount="N" # Y/N. Choose whether to bind traffic to a particular network adapter
RCloneMountIP="192.168.1.252" # My unraid IP is 172.30.12.2 so I create another similar IP address
NetworkAdapter="eth0" # choose your network adapter. eth0 recommended
VirtualIPNumber="2" # creates eth0:x e.g. eth0:1.  I create a unique virtual IP addresses for each mount & upload so I can monitor and traffic shape for each of them
####### END SETTINGS #######
###############################################################################
#####   DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING   #######
###############################################################################
####### Preparing mount location variables #######
RcloneMountLocation="$RcloneMountShare/$RcloneRemoteName" # Location for rclone mount
LocalFilesLocation="$LocalFilesShare/$RcloneRemoteName" # Location for local files to be merged with rclone mount
MergerFSMountLocation="$MergerfsMountShare/$RcloneRemoteName" # Rclone data folder location
####### create directories for rclone mount and mergerfs mounts #######
mkdir -p /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName # for script files
mkdir -p $RcloneCacheShare/cache/$RcloneRemoteName # for cache files
if [[  $LocalFilesShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating local folders as requested."
    LocalFilesLocation="/tmp/$RcloneRemoteName"
    eval mkdir -p $LocalFilesLocation
else
    echo "$(date "+%d.%m.%Y %T") INFO: Creating local folders."
    eval mkdir -p $LocalFilesLocation/"$MountFolders"
fi
mkdir -p $RcloneMountLocation
if [[  $MergerfsMountShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating MergerFS folders as requested."
else
    echo "$(date "+%d.%m.%Y %T") INFO: Creating MergerFS folders."
    mkdir -p $MergerFSMountLocation
fi

#######  Check if script is already running  #######
echo "$(date "+%d.%m.%Y %T") INFO: *** Starting mount of remote ${RcloneRemoteName}"
echo "$(date "+%d.%m.%Y %T") INFO: Checking if this script is already running."
if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Exiting script as already running."
    exit
else
    echo "$(date "+%d.%m.%Y %T") INFO: Script not running - proceeding."
    touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
fi
####### Checking have connectivity #######
echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if online"
ping -q -c2 google.com > /dev/null # -q quiet, -c number of pings to perform
if [ $? -eq 0 ]; then # ping returns exit status 0 if successful
    echo "$(date "+%d.%m.%Y %T") PASSED: *** Internet online"
else
    echo "$(date "+%d.%m.%Y %T") FAIL: *** No connectivity.  Will try again on next run"
    rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
    exit
fi
#######  Create Rclone Mount  #######
# Check If Rclone Mount Already Created
if [[ -f "$RcloneMountLocation/mountcheck" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Success ${RcloneRemoteName} remote is already mounted."
else
    echo "$(date "+%d.%m.%Y %T") INFO: Mount not running. Will now mount ${RcloneRemoteName} remote."
# Creating mountcheck file in case it doesn't already exist
    echo "$(date "+%d.%m.%Y %T") INFO: Recreating mountcheck file for ${RcloneRemoteName} remote."
    touch mountcheck
    rclone copy mountcheck $RcloneRemoteName: -vv --no-traverse
# Check bind option
    if [[  $CreateBindMount == 'Y' ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: *** Checking if IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}"
        ping -q -c2 $RCloneMountIP > /dev/null # -q quiet, -c number of pings to perform
        if [ $? -eq 0 ]; then # ping returns exit status 0 if successful
            echo "$(date "+%d.%m.%Y %T") INFO: *** IP address ${RCloneMountIP} already created for remote ${RcloneRemoteName}"
        else
            echo "$(date "+%d.%m.%Y %T") INFO: *** Creating IP address ${RCloneMountIP} for remote ${RcloneRemoteName}"
            ip addr add $RCloneMountIP/24 dev $NetworkAdapter label $NetworkAdapter:$VirtualIPNumber
        fi
        echo "$(date "+%d.%m.%Y %T") INFO: *** Created bind mount ${RCloneMountIP} for remote ${RcloneRemoteName}"
    else
        RCloneMountIP=""
        echo "$(date "+%d.%m.%Y %T") INFO: *** Creating mount for remote ${RcloneRemoteName}"
    fi
# create rclone mount
    rclone mount \
    $Command1 $Command2 $Command3 $Command4 $Command5 $Command6 $Command7 $Command8 \
    --allow-other \
    --umask 000 \
    --dir-cache-time $RcloneMountDirCacheTime \
    --attr-timeout $RcloneMountDirCacheTime \
    --log-level INFO \
    --poll-interval 10s \
    --cache-dir=$RcloneCacheShare/cache/$RcloneRemoteName \
    --drive-pacer-min-sleep 10ms \
    --drive-pacer-burst 1000 \
    --vfs-cache-mode full \
    --vfs-cache-max-size $RcloneCacheMaxSize \
    --vfs-cache-max-age $RcloneCacheMaxAge \
    --vfs-read-ahead 1G \
    --bind=$RCloneMountIP \
    $RcloneRemoteName: $RcloneMountLocation &
# Check if Mount Successful
    echo "$(date "+%d.%m.%Y %T") INFO: sleeping for 5 seconds"
# slight pause to give mount time to finalise
    sleep 5
    echo "$(date "+%d.%m.%Y %T") INFO: continuing..."
    if [[ -f "$RcloneMountLocation/mountcheck" ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: Successful mount of ${RcloneRemoteName} mount."
    else
        echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mount failed - please check for problems.  Stopping dockers"
        docker stop $DockerStart
        rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
        exit
    fi
fi
####### Start MergerFS Mount #######
if [[  $MergerfsMountShare == 'ignore' ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: Not creating mergerfs mount as requested."
else
    if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then
        echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount in place."
    else
# check if mergerfs already installed
        if [[ -f "/bin/mergerfs" ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs already installed, proceeding to create mergerfs mount"
        else
# Build mergerfs binary
            echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs not installed - installing now."
            mkdir -p /mnt/user/appdata/other/rclone/mergerfs
            docker run -v /mnt/user/appdata/other/rclone/mergerfs:/build --rm trapexit/mergerfs-static-build
            mv /mnt/user/appdata/other/rclone/mergerfs/mergerfs /bin
# check if mergerfs install successful
            echo "$(date "+%d.%m.%Y %T") INFO: *sleeping for 5 seconds"
            sleep 5
            if [[ -f "/bin/mergerfs" ]]; then
                echo "$(date "+%d.%m.%Y %T") INFO: Mergerfs installed successfully, proceeding to create mergerfs mount."
            else
                echo "$(date "+%d.%m.%Y %T") ERROR: Mergerfs not installed successfully.  Please check for errors.  Exiting."
                rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
                exit
            fi
        fi
# Create mergerfs mount
        echo "$(date "+%d.%m.%Y %T") INFO: Creating ${RcloneRemoteName} mergerfs mount."
# Extra Mergerfs folders
        if [[  $LocalFilesShare2 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare2} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare2=":$LocalFilesShare2"
        else
            LocalFilesShare2=""
        fi
        if [[  $LocalFilesShare3 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare3} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare3=":$LocalFilesShare3"
        else
            LocalFilesShare3=""
        fi
        if [[  $LocalFilesShare4 != 'ignore' ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Adding ${LocalFilesShare4} to ${RcloneRemoteName} mergerfs mount."
            LocalFilesShare4=":$LocalFilesShare4"
        else
            LocalFilesShare4=""
        fi
# make sure mergerfs mount point is empty
        mv $MergerFSMountLocation $LocalFilesLocation
        mkdir -p $MergerFSMountLocation
# mergerfs mount command
        mergerfs $LocalFilesLocation:$RcloneMountLocation$LocalFilesShare2$LocalFilesShare3$LocalFilesShare4 $MergerFSMountLocation -o rw,async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,dropcacheonclose=true
# check if mergerfs mount successful
        echo "$(date "+%d.%m.%Y %T") INFO: Checking if ${RcloneRemoteName} mergerfs mount created."
        if [[ -f "$MergerFSMountLocation/mountcheck" ]]; then
            echo "$(date "+%d.%m.%Y %T") INFO: Check successful, ${RcloneRemoteName} mergerfs mount created."
        else
            echo "$(date "+%d.%m.%Y %T") CRITICAL: ${RcloneRemoteName} mergerfs mount failed.  Stopping dockers."
            docker stop $DockerStart
            rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
            exit
        fi
    fi
fi
####### Starting Dockers That Need Mergerfs Mount To Work Properly #######
# only start dockers once
if [[ -f "/mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started" ]]; then
    echo "$(date "+%d.%m.%Y %T") INFO: dockers already started."
else
# Check CA Appdata plugin not backing up or restoring
    if [ -f "/tmp/ca.backup2/tempFiles/backupInProgress" ] || [ -f "/tmp/ca.backup2/tempFiles/restoreInProgress" ] ; then
        echo "$(date "+%d.%m.%Y %T") INFO: Appdata Backup plugin running - not starting dockers."
    else
        touch /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/dockers_started
        echo "$(date "+%d.%m.%Y %T") INFO: Starting dockers."
        docker start $DockerStart
    fi
fi
rm /mnt/user/appdata/other/rclone/remotes/$RcloneRemoteName/mount_running
echo "$(date "+%d.%m.%Y %T") INFO: Script complete"
exit
 
And my log:
21.12.2021 06:29:39 INFO: Creating local folders.
21.12.2021 06:29:39 INFO: Creating MergerFS folders.
21.12.2021 06:29:39 INFO: *** Starting mount of remote gdrive_media_vfs
21.12.2021 06:29:39 INFO: Checking if this script is already running.
21.12.2021 06:29:39 INFO: Script not running - proceeding.
21.12.2021 06:29:39 INFO: *** Checking if online
21.12.2021 06:29:40 PASSED: *** Internet online
21.12.2021 06:29:40 INFO: Success gdrive_media_vfs remote is already mounted.
21.12.2021 06:29:40 INFO: Check successful, gdrive_media_vfs mergerfs mount in place.
21.12.2021 06:29:40 INFO: Starting dockers.
Error response from daemon: No such container: nzbget
Error response from daemon: No such container: plex
Error response from daemon: No such container: sonarr
Error response from daemon: No such container: radarr
Error: failed to start containers: nzbget, plex, sonarr, radarr
21.12.2021 06:29:40 INFO: Script complete
Script Finished Dec 21, 2021 06:29.40
 
Does the docker name match the same name in you're script ?

Otherwise seem like a problem with docker engine.

Did you try to reboot ?

Thx

Envoyé de mon Pixel 5 en utilisant Tapatalk

Link to comment
23 minutes ago, francrouge said:

 
And my log:
 
Does the docker name match the same name in you're script ?

Otherwise seem like a problem with docker engine.

Did you try to reboot ?

Thx

Envoyé de mon Pixel 5 en utilisant Tapatalk
 

Sorry but are you referring the the errors for the dockers not starting at the end of the log? I can remove them from the script if it is causing an issue and add them back later, the dockers on this system are not currently installed, just wanted to test the scrip out before continuing with getting all my docker containers setup. Did not think it would matter if it failed to start the dockers. 

Link to comment
Sorry but are you referring the the errors for the dockers not starting at the end of the log? I can remove them from the script if it is causing an issue and add them back later, the dockers on this system are not currently installed, just wanted to test the scrip out before continuing with getting all my docker containers setup. Did not think it would matter if it failed to start the dockers. 
Yes try to removed the entry.


I don't think it matter but be sure to installed and configure youre rclone but otherwise it should start


I dont see other errors so it should worked


Envoyé de mon Pixel 5 en utilisant Tapatalk



Link to comment
9 hours ago, Michel Amberg said:

So I am getting a transcoder error on my apple tv when I try to play a certain file but it works fine on the PC? it is not on all files just a particular tv show what can be the issue?

sounds like an Apple or Plex issue. Have you tried playing a local copy to see what happens?

Edited by DZMM
Link to comment

Scrolling through this topic and noticed that I am now also having the same issue as others with Hardlinks being removed randomly (as per below post)

 

Not 100% sure what's doing it. Possibly my mappings? I have Plex/*arrs and my Qbitorrent docker all point /cloud to /mnt/user/mount_mergerfs/gdrive_media_vfs/. Do you think I should change this and have it pointing to /mnt/user instead? Just noticed I've lost about 2TB of seeding torrents is all :(

Link to comment
20 minutes ago, francrouge said:

Hi all quick question is there a parameter i can changed to play faster movies its taking beteew 30 secondes to 1min

Edit: It's wierd but the first time i play a movie its taking 1min or so and after the first try its much faster like 5sec.

 

 

# create rclone mount
    rclone mount \
    $Command1 $Command2 $Command3 $Command4 $Command5 $Command6 $Command7 $Command8 \
    --allow-other \
    --umask 000 \
    --dir-cache-time 5000h \
    --attr-timeout 5000h \
    --log-level INFO \
    --poll-interval 10s \
    --cache-dir=/mnt/user/mount_rclone/cache/$RcloneRemoteName \
    --drive-pacer-min-sleep 10ms \
    --drive-pacer-burst 1000 \
    --vfs-cache-mode full \
    --vfs-cache-max-size 100G \
    --vfs-cache-max-age 96h \
    --vfs-read-ahead 1G \
    --bind=$RCloneMountIP \
    $RcloneRemoteName: $RcloneMountLocation &

Edited by francrouge
Link to comment

So I’m new to the forum and forum discussions, please don’t judge lol. I tried to set this up yesterday and it did not go as planned. The upload script is giving me some errors. I’m thinking it’s due to how I set up the scripts. Which was done by me and my lack of knowledge.

 12/31 05:47:01 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "move" "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs" "gdrive_upload_vfs:" "--user-agent=gdrive_upload_vfs" "-vv" "--buffer-size" "512M" "--drive-chunk-size" "512M" "--tpslimit" "8" "--checkers" "8" "--transfers" "4" "--order-by" "modtime,ascending" "--min-age" "15m" "--exclude" "downloads/**" "--exclude" "*fuse_hidden*" "--exclude" "*_HIDDEN" "--exclude" ".recycle**" "--exclude" ".Recycle.Bin/**" "--exclude" "*.backup~*" "--exclude" "*.partial~*" "--drive-stop-on-upload-limit" "--bwlimit" "01:00,off 08:00,15M 16:00,12M" "--bind=" "--delete-empty-src-dirs"]2021/12/31 05:47:01 DEBUG : Creating backend with remote "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs"2021/12/31 05:47:01 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"2021/12/31 05:47:01 DEBUG : Creating backend with remote "gdrive_upload_vfs:"2021/12/31 05:47:01 Failed to create file system for "gdrive_upload_vfs:": didn't find section in config file31.12.2021 05:47:01 INFO: Not utilising service accounts.31.12.2021 05:47:01 INFO: Script complete
 

 

                           [edit]
Last half of log (for rclone_upload) in userscripts


Sent from my iPhone using Tapatalk

Edited by Raneydazed
forgot to add what script i was talking about
Link to comment
On 12/30/2021 at 10:07 AM, Akatsuki said:

Scrolling through this topic and noticed that I am now also having the same issue as others with Hardlinks being removed randomly (as per below post)

 

Not 100% sure what's doing it. Possibly my mappings? I have Plex/*arrs and my Qbitorrent docker all point /cloud to /mnt/user/mount_mergerfs/gdrive_media_vfs/. Do you think I should change this and have it pointing to /mnt/user instead? Just noticed I've lost about 2TB of seeding torrents is all :(

Hmm this is interesting (in a wrong way of course!)  I have the same setup and the only thing I can think of is that maybe rclone upload doesn't like hardlinks i.e. after it's uploaded the file it's deleting the original file rather than respecting the hardlink?  Mergerfs definitely supports hardlinks.

 

This would explain why I haven't come across this as I seed for a max of 14 days, whereas because of my slow upload speed, rclone upload doesn't typically upload a file until 14 days+.

 

I can't think of a solution, other than maybe ditching hardlinks and doing a copy to your media folder so that rclone can move the copy?  

 

Worth a test to see if this is the cause?

Link to comment
11 hours ago, francrouge said:

Edit: It's wierd but the first time i play a movie its taking 1min or so and after the first try its much faster like 5sec.

 

 

# create rclone mount
    rclone mount \
    $Command1 $Command2 $Command3 $Command4 $Command5 $Command6 $Command7 $Command8 \
    --allow-other \
    --umask 000 \
    --dir-cache-time 5000h \
    --attr-timeout 5000h \
    --log-level INFO \
    --poll-interval 10s \
    --cache-dir=/mnt/user/mount_rclone/cache/$RcloneRemoteName \
    --drive-pacer-min-sleep 10ms \
    --drive-pacer-burst 1000 \
    --vfs-cache-mode full \
    --vfs-cache-max-size 100G \
    --vfs-cache-max-age 96h \
    --vfs-read-ahead 1G \
    --bind=$RCloneMountIP \
    $RcloneRemoteName: $RcloneMountLocation &

I have no idea why your first launch is so slow (the 2nd is fast cause it's coming from the local cache).

 

I can see that you've copied my mount settings and my 1st launch (900/120 connection) is never greater than 3-5s.  Does your rclone config look something like this:

 

[tdrive]
type = drive
scope = drive
service_account_file = /mnt/user/appdata/other/rclone/service_accounts/sa_tdrive.json
team_drive = xxxxxxxxxxxxxxxx
server_side_across_configs = true

[tdrive_vfs]
type = crypt
remote = tdrive:crypt
filename_encryption = standard
directory_name_encryption = true
password = xxxxxxxxxxxxxxxxxxxx
password2 = xxxxxxxxxxxxxxxxxxxxxxxxx

 

Link to comment
45 minutes ago, Raneydazed said:

So I’m new to the forum and forum discussions, please don’t judge lol. I tried to set this up yesterday and it did not go as planned. The upload script is giving me some errors. I’m thinking it’s due to how I set up the scripts. Which was done by me and my lack of knowledge.

 12/31 05:47:01 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "move" "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs" "gdrive_upload_vfs:" "--user-agent=gdrive_upload_vfs" "-vv" "--buffer-size" "512M" "--drive-chunk-size" "512M" "--tpslimit" "8" "--checkers" "8" "--transfers" "4" "--order-by" "modtime,ascending" "--min-age" "15m" "--exclude" "downloads/**" "--exclude" "*fuse_hidden*" "--exclude" "*_HIDDEN" "--exclude" ".recycle**" "--exclude" ".Recycle.Bin/**" "--exclude" "*.backup~*" "--exclude" "*.partial~*" "--drive-stop-on-upload-limit" "--bwlimit" "01:00,off 08:00,15M 16:00,12M" "--bind=" "--delete-empty-src-dirs"]2021/12/31 05:47:01 DEBUG : Creating backend with remote "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs"2021/12/31 05:47:01 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"2021/12/31 05:47:01 DEBUG : Creating backend with remote "gdrive_upload_vfs:"2021/12/31 05:47:01 Failed to create file system for "gdrive_upload_vfs:": didn't find section in config file31.12.2021 05:47:01 INFO: Not utilising service accounts.31.12.2021 05:47:01 INFO: Script complete
 

 

                           [edit]
Last half of log (for rclone_upload) in userscripts


Sent from my iPhone using Tapatalk

post your upload settings but I think you've got a ":" in "gdrive_upload_vfs:" that you shouldn't have:

 

RcloneRemoteName="tdrive_vfs" # Name of rclone remote mount WITHOUT ':'.

 

Link to comment
9 minutes ago, DZMM said:

post your upload settings but I think you've got a ":" in "gdrive_upload_vfs:" that you shouldn't have:

 

RcloneRemoteName="tdrive_vfs" # Name of rclone remote mount WITHOUT ':'.

 

ok, i honestly may have messed up how i set up the mount script as well. 

 


#!/bin/bash

######################
### Upload Script ####
######################
### Version 0.95.5 ###
######################

####### EDIT ONLY THESE SETTINGS #######

# INSTRUCTIONS
# 1. Edit the settings below to match your setup
# 2. NOTE: enter RcloneRemoteName WITHOUT ':'
# 3. Optional: Add additional commands or filters
# 4. Optional: Use bind mount settings for potential traffic shaping/monitoring
# 5. Optional: Use service accounts in your upload remote
# 6. Optional: Use backup directory for rclone sync jobs

# REQUIRED SETTINGS
RcloneCommand="move" # choose your rclone command e.g. move, copy, sync
RcloneRemoteName="gdrive_media_vfs" # Name of rclone remote mount WITHOUT ':'.
RcloneUploadRemoteName="gdrive_upload_vfs" # If you have a second remote created for uploads put it here.  Otherwise use the same remote as RcloneRemoteName.
LocalFilesShare="/mnt/user/mount_mergerfs/gdrive_media_vfs" # location of the local files without trailing slash you want to rclone to use
RcloneMountShare="/mnt/user/mount_rclone" # where your rclone mount is located without trailing slash  e.g. /mnt/user/mount_rclone
MinimumAge="15m" # sync files suffix ms|s|m|h|d|w|M|y
ModSort="ascending" # "ascending" oldest files first, "descending" newest files first

# Note: Again - remember to NOT use ':' in your remote name above

# Bandwidth limits: specify the desired bandwidth in kBytes/s, or use a suffix b|k|M|G. Or 'off' or '0' for unlimited.  The script uses --drive-stop-on-upload-limit which stops the script if the 750GB/day limit is achieved, so you no longer have to slow 'trickle' your files all day if you don't want to e.g. could just do an unlimited job overnight.
BWLimit1Time="01:00"
BWLimit1="off"
BWLimit2Time="08:00"
BWLimit2="15M"
BWLimit3Time="16:00"
BWLimit3="12M"

# OPTIONAL SETTINGS

# Add name to upload job
JobName="_daily_upload" # Adds custom string to end of checker file.  Useful if you're running multiple jobs against the same remote.

# Add extra commands or filters
Command1="--exclude downloads/**"
Command2=""
Command3=""
Command4=""
Command5=""
Command6=""
Command7=""
Command8=""

# Bind the mount to an IP address
CreateBindMount="N" # Y/N. Choose whether or not to bind traffic to a network adapter.
RCloneMountIP="192.168.1.253" # Choose IP to bind upload to.
NetworkAdapter="eth0" # choose your network adapter. eth0 recommended.
VirtualIPNumber="1" # creates eth0:x e.g. eth0:1.

# Use Service Accounts.  Instructions: https://github.com/xyou365/AutoRclone
UseServiceAccountUpload="N" # Y/N. Choose whether to use Service Accounts.
ServiceAccountDirectory="/mnt/user/appdata/other/rclone/service_accounts" # Path to your Service Account's .json files.
ServiceAccountFile="sa_gdrive_upload" # Enter characters before counter in your json files e.g. for sa_gdrive_upload1.json -->sa_gdrive_upload100.json, enter "sa_gdrive_upload".
CountServiceAccounts="15" # Integer number of service accounts to use.

# Is this a backup job
BackupJob="N" # Y/N. Syncs or Copies files from LocalFilesLocation to BackupRemoteLocation, rather than moving from LocalFilesLocation/RcloneRemoteName
BackupRemoteLocation="backup" # choose location on mount for deleted sync files
BackupRemoteDeletedLocation="backup_deleted" # choose location on mount for deleted sync files
BackupRetention="90d" # How long to keep deleted sync files suffix ms|s|m|h|d|w|M|y

####### END SETTINGS #######

i didnt edit anything below the ##### END SETTINGS ##### line

Edited by Raneydazed
Link to comment
Just now, Raneydazed said:

ok, i honestly may have messed up how i set up the mount script as well. 

 

i didnt edit anything below the ##### END SETTINGS ##### line

I did fiddle with both of these quite a bit. In the merger_vfs share, i deleted several of the shares/subfolders and added my own. Does this allow for that? its setup for downloads/movies downloads/tv and a few others. i changed it in krusader because i was having trouble with radarr and nzbget (i created 2 new containers to use just for "cloud storage" would that be up there with why im having trouble?

Link to comment
I did fiddle with both of these quite a bit. In the merger_vfs share, i deleted several of the shares/subfolders and added my own. Does this allow for that? its setup for downloads/movies downloads/tv and a few others. i changed it in krusader because i was having trouble with radarr and nzbget (i created 2 new containers to use just for "cloud storage" would that be up there with why im having trouble?

This is my “short” log in userscripts now after running upload in the background.
31.12.2021 08:00:11 INFO: *** Rclone move selected. Files will be moved from /mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs for gdrive_upload_vfs ***31.12.2021 08:00:11 INFO: *** Starting rclone_upload script for gdrive_upload_vfs ***31.12.2021 08:00:11 INFO: Script not running - proceeding.31.12.2021 08:00:11 INFO: Checking if rclone installed successfully.31.12.2021 08:00:11 INFO: rclone installed successfully - proceeding with upload.31.12.2021 08:00:11 INFO: Uploading using upload remote gdrive_upload_vfs31.12.2021 08:00:11 INFO: *** Using rclone move - will add --delete-empty-src-dirs to upload.2021/12/31 08:00:11 INFO : Starting bandwidth limiter at 15Mi Byte/s2021/12/31 08:00:11 INFO : Starting transaction limiter: max 8 transactions/s with burst 12021/12/31 08:00:11 DEBUG : --min-age 15m0s to 2021-12-31 07:45:11.561497194 -0800 PST m=-899.9892178532021/12/31 08:00:11 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "move" "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs" "gdrive_upload_vfs:" "--user-agent=gdrive_upload_vfs" "-vv" "--buffer-size" "512M" "--drive-chunk-size" "512M" "--tpslimit" "8" "--checkers" "8" "--transfers" "4" "--order-by" "modtime,ascending" "--min-age" "15m" "--exclude" "downloads/**" "--exclude" "*fuse_hidden*" "--exclude" "*_HIDDEN" "--exclude" ".recycle**" "--exclude" ".Recycle.Bin/**" "--exclude" "*.backup~*" "--exclude" "*.partial~*" "--drive-stop-on-upload-limit" "--bwlimit" "01:00,off 08:00,15M 16:00,12M" "--bind=" "--delete-empty-src-dirs"]2021/12/31 08:00:11 DEBUG : Creating backend with remote "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs"2021/12/31 08:00:11 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"2021/12/31 08:00:11 DEBUG : Creating backend with remote "gdrive_upload_vfs:"2021/12/31 08:00:11 Failed to create file system for "gdrive_upload_vfs:": didn't find section in config file31.12.2021 08:00:11 INFO: Not utilising service accounts.31.12.2021 08:00:11 INFO: Script completeScript Finished Dec 31, 2021 08:00.11Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_upload/log.txt



Something somewhere isn’t talking to something lol


Sent from my iPhone using Tapatalk

Link to comment

This is my “short” log in userscripts now after running upload in the background.
31.12.2021 08:00:11 INFO: *** Rclone move selected. Files will be moved from /mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs for gdrive_upload_vfs ***31.12.2021 08:00:11 INFO: *** Starting rclone_upload script for gdrive_upload_vfs ***31.12.2021 08:00:11 INFO: Script not running - proceeding.31.12.2021 08:00:11 INFO: Checking if rclone installed successfully.31.12.2021 08:00:11 INFO: rclone installed successfully - proceeding with upload.31.12.2021 08:00:11 INFO: Uploading using upload remote gdrive_upload_vfs31.12.2021 08:00:11 INFO: *** Using rclone move - will add --delete-empty-src-dirs to upload.2021/12/31 08:00:11 INFO : Starting bandwidth limiter at 15Mi Byte/s2021/12/31 08:00:11 INFO : Starting transaction limiter: max 8 transactions/s with burst 12021/12/31 08:00:11 DEBUG : --min-age 15m0s to 2021-12-31 07:45:11.561497194 -0800 PST m=-899.9892178532021/12/31 08:00:11 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "move" "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs" "gdrive_upload_vfs:" "--user-agent=gdrive_upload_vfs" "-vv" "--buffer-size" "512M" "--drive-chunk-size" "512M" "--tpslimit" "8" "--checkers" "8" "--transfers" "4" "--order-by" "modtime,ascending" "--min-age" "15m" "--exclude" "downloads/**" "--exclude" "*fuse_hidden*" "--exclude" "*_HIDDEN" "--exclude" ".recycle**" "--exclude" ".Recycle.Bin/**" "--exclude" "*.backup~*" "--exclude" "*.partial~*" "--drive-stop-on-upload-limit" "--bwlimit" "01:00,off 08:00,15M 16:00,12M" "--bind=" "--delete-empty-src-dirs"]2021/12/31 08:00:11 DEBUG : Creating backend with remote "/mnt/user/mount_mergerfs/gdrive_media_vfs/gdrive_media_vfs"2021/12/31 08:00:11 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"2021/12/31 08:00:11 DEBUG : Creating backend with remote "gdrive_upload_vfs:"2021/12/31 08:00:11 Failed to create file system for "gdrive_upload_vfs:": didn't find section in config file31.12.2021 08:00:11 INFO: Not utilising service accounts.31.12.2021 08:00:11 INFO: Script completeScript Finished Dec 31, 2021 08:00.11Full logs for this script are available at /tmp/user.scripts/tmpScripts/rclone_upload/log.txt



Something somewhere isn’t talking to something lol


Sent from my iPhone using Tapatalk


I think I may have figured it out. Question, it is apparently going to take about 21 hours to upload. Is that about right do you think?


Sent from my iPhone using Tapatalk
Link to comment
I have no idea why your first launch is so slow (the 2nd is fast cause it's coming from the local cache).
 
I can see that you've copied my mount settings and my 1st launch (900/120 connection) is never greater than 3-5s.  Does your rclone config look something like this:

 
[tdrive]type = drivescope = driveservice_account_file = /mnt/user/appdata/other/rclone/service_accounts/sa_tdrive.jsonteam_drive = xxxxxxxxxxxxxxxxserver_side_across_configs = true[tdrive_vfs]type = cryptremote = tdrive:cryptfilename_encryption = standarddirectory_name_encryption = truepassword = xxxxxxxxxxxxxxxxxxxxpassword2 = xxxxxxxxxxxxxxxxxxxxxxxxx

 

Yes exactly what plex docker are you using ?

Thx



Envoyé de mon Pixel 5 en utilisant Tapatalk

Link to comment
2 hours ago, MadMatt337 said:

@DZMM Just wanted to say great work on these scripts, got everything working well after a few hickups on my own end and so far things have been working great during my testing. Thanks to you and everyone else who has contributed to this project and for sharing it with the rest of us, next 🍺 is on me. 

Glad you got it all working.

Link to comment
2 hours ago, MadMatt337 said:

@DZMM Just wanted to say great work on these scripts, got everything working well after a few hickups on my own end and so far things have been working great during my testing. Thanks to you and everyone else who has contributed to this project and for sharing it with the rest of us, next 🍺 is on me. 

Just spotted the beer via PayPal - cheers!

Link to comment

Hi all. I’m again, fairly new to doing this type of thing. I think I screwed up the script by not running in the background. It now says it’s running and the script ended. How would I kill the script and restart it in the background? I looked and it’s not showing up in active scripts. My knowledge of Linux commands extends as far as how to type in nano and a directory/file lol. (Just pointing out my ignorance)


Sent from my iPhone using Tapatalk

Link to comment
Hi all. I’m again, fairly new to doing this type of thing. I think I screwed up the script by not running in the background. It now says it’s running and the script ended. How would I kill the script and restart it in the background? I looked and it’s not showing up in active scripts. My knowledge of Linux commands extends as far as how to type in nano and a directory/file lol. (Just pointing out my ignorance)


Sent from my iPhone using Tapatalk
Start it again in background or reboot the server and start it in background maybe someone else has a better solution otherwise

Envoyé de mon Pixel 5 en utilisant Tapatalk

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.