Raspberry Pi Rclone frequent disconnects

What is the problem you are having with rclone?

I use rclone to store a library of video files which is updated with Radarr / Sonarr / Sabnzbd / Deluge which are all running on docker containers.
RClone frequently disconnects for no apparent reason - I cannot seem to find any indication on why in the logs.

What is your rclone version (output from rclone version)

rclone v1.56.0

  • os/version: raspbian 10.10
  • os/kernel: 5.10.52-v7l+ (armv7l)
  • os/type: linux
  • os/arch: arm
  • go/version: go1.16.5
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Raspbian 10 - Buster

Which cloud storage system are you using? (eg Google Drive)

Encrypted folder on Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/pi/.config/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount GCrypt: /home/pi/gcrypt \
# This is for allowing users other than the user running rclone access to the mount
--allow-other \
# Google Drive is a polling remote so this value can be set very high and any changes are detected via polling.
#--dir-cache-time 5000h \
# Files are never changed for me outside of the mount so the attr-timeout matches the dir-cache
# Please make sure to read: https://rclone.org/commands/rclone_mount/#attribute-caching
# To understand if this should be set for your use case
#--attr-timeout 5000h \
# Log file location
--log-file /home/pi/rclone.log \
# Set the log level
--log-level DEBUG  \
# I reduce the poll internval down to 10 seconds as this makes changes appear fast the API quotas per day are huge
--poll-interval 10s \
# This is setting the file permission on the mount to user and group have the same access and other can read
--umask 002 \
# Please set this to your own value below
--user-agent someappname101 \
# This sets up the remote control daemon so you can issue rc commands locally
#--rc \
# This is the default port it runs on
#--rc-addr :5572 \
# no-auth is used as no one else uses my server and it is not a shared seedbox
#--rc-no-auth \
# The local disk used for caching
--cache-dir=/home/pi/rclonecache \
#
# If you are building a library from scratch and need to analyze a large amount of data, setting a very small read chunk size
# will make things download a lot less data. So you can uncomment this section out.
# If everything is already scanned, you can leave it at the default as it helps things startup a little faster.
#--vfs-read-chunk-size 1M \
#
# My quota per user / per 100 seconds is 20,000 requests. This can be found in your quota section.
# This changes the sleep calls to something much lower to take advantage of the API boost.
# change the min sleep from 100ms
#--drive-pacer-min-sleep 5ms \
# Changing to have the ability for 1000 per second
#--drive-pacer-burst 2000 \
# This is used for caching files to local disk for streaming
#--vfs-cache-mode full \
# This limits the cache size to the value below
#--vfs-cache-max-size 75G \
# This limits the age in the cache if the size is reached and it removes the oldest files first
#--vfs-cache-max-age 5000h \
# The polling interval for increased based on there is enough buffer space
#--vfs-cache-poll-interval 5m \
# Add read ahead buffer to network latency issues
#--vfs-read-ahead 2G \
# This sets a per file bandwidth control and I limit this to a little bigger than my largest bitrate I'd want to play
--bwlimit-file 32M
ExecStop=/bin/fusermount -uz /home/pi/gcrypt
#ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
Restart=on-failure
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

The rclone config contents with secrets removed.

[GDrive]
type = drive
client_id = [...].apps.googleusercontent.com
client_secret = [...]
scope = drive
token = {"access_token":"[...]","token_type":"Bearer","refresh_token":"[...]","expiry":"2021-08-25T01:49:42.367855439+01:00"}

[GCrypt]
type = crypt
remote = GDrive:/Operationals/encrypted
filename_encryption = standard
directory_name_encryption = true
password = [...]

A log from the command with the -vv flag

Here follows the log from approximately the time the mount failed.

2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.en.srt, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.en.srt: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.en.srt: >Attr: a=valid=1s ino=0 size=105152 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: Lookup: name="Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.mp4"
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.mp4, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.mp4: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.mp4: >Attr: a=valid=1s ino=0 size=2629069121 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: Lookup: name="Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.pt.srt"
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.pt.srt, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.pt.srt: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.1080p.BluRay.H264.AAC-RARBG-Obfuscated_processed.pt.srt: >Attr: a=valid=1s ino=0 size=85230 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: Lookup: name="Sherlock.Holmes.2009.720p.BluRay.999MB.HQ.x265.10bit-GalaxyRG[TGx].mkv"
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.720p.BluRay.999MB.HQ.x265.10bit-GalaxyRG[TGx].mkv, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.720p.BluRay.999MB.HQ.x265.10bit-GalaxyRG[TGx].mkv: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/Sherlock.Holmes.2009.720p.BluRay.999MB.HQ.x265.10bit-GalaxyRG[TGx].mkv: >Attr: a=valid=1s ino=0 size=1047763442 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: Lookup: name="desktop.ini"
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/desktop.ini, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/desktop.ini: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/desktop.ini: >Attr: a=valid=1s ino=0 size=246 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: Lookup: name="movie.xml"
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/: >Lookup: node=video/Filmes/Sherlock Holmes (2009)/movie.xml, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/movie.xml: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/Sherlock Holmes (2009)/movie.xml: >Attr: a=valid=1s ino=0 size=600 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/: Lookup: name="50+50 (2011)"
2021/08/24 21:20:31 DEBUG : video/Filmes/: >Lookup: node=video/Filmes/50+50 (2011)/, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: ReadDirAll: 
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: >ReadDirAll: item=3, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: Lookup: name="50-50 (2011).mkv"
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/: >Lookup: node=video/Filmes/50+50 (2011)/50-50 (2011).mkv, err=<nil>
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/50-50 (2011).mkv: Attr: 
2021/08/24 21:20:31 DEBUG : video/Filmes/50+50 (2011)/50-50 (2011).mkv: >Attr: a=valid=1s ino=0 size=9000437421 mode=-rw-rw-r--, err=<nil>
2021/08/24 21:20:32 DEBUG : /: Lookup: name="video"
2021/08/24 21:20:32 DEBUG : /: >Lookup: node=video/, err=<nil>
2021/08/24 21:20:55 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:20:55 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:20:55 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:20:55 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:20:56 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:20:57 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:20:57 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:21:02 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:21:02 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:21:02 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:21:02 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:21:03 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:21:03 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:21:03 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:21:38 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:21:38 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:21:38 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:21:38 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:21:40 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:21:40 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:21:40 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:21:46 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:21:49 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:21:49 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:21:49 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:21:49 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:21:50 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:21:50 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:21:55 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:21:56 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:21:56 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:21:56 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:21:56 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:21:57 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:21:57 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:22:02 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:22:09 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:22:09 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:22:10 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:22:11 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:22:14 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:22:14 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected
2021/08/24 21:22:19 DEBUG : rclone: Version "v1.56.0" starting with parameters ["/usr/bin/rclone" "mount" "GCrypt:" "/home/pi/gcrypt" "--allow-other" "--log-file" "/home/pi/rclone.log" "--log-level" "DEBUG" "--poll-interval" "10s" "--umask" "002" "--user-agent" "someappname101" "--cache-dir=/home/pi/rclonecache" "--bwlimit-file" "32M"]
2021/08/24 21:22:19 DEBUG : Creating backend with remote "GCrypt:"
2021/08/24 21:22:19 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/08/24 21:22:20 DEBUG : Creating backend with remote "GDrive:/Operationals/encrypted"
2021/08/24 21:22:20 DEBUG : Google drive root 'Operationals/encrypted': 'root_folder_id = 0AMG1njg2oHKHUk9PVA' - save this in the config to speed up startup
2021/08/24 21:22:21 DEBUG : fs cache: renaming cache item "GDrive:/Operationals/encrypted" to be canonical "GDrive:Operationals/encrypted"
2021/08/24 21:22:21 Fatal error: Can not open: /home/pi/gcrypt: open /home/pi/gcrypt: transport endpoint is not connected

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.