Rclone config gets deleted

Hi,

For some reason, the Rclone config file keeps getting deleted from time to time on my Raspberry Pi.

Could this be because of improper shutdown?

Log
2019/09/06 18:42:30 INFO  : shtuff/.DS_Store: Removed from cache
2019/09/06 18:42:30 INFO  : .DS_Store: Removed from cache
2019/09/06 18:42:30 INFO  : Cleaned the cache: objects 0 (was 4), total size 98.008k (was 102.008k)
2019/09/07 00:17:06 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 00:18:19 NOTICE: Time may be set wrong - time from "www.googleapis.com" is -1h44m12.036996579s different from this computer
2019/09/07 00:18:19 INFO  : Google drive root '': Failed to get StartPageToken: googleapi: Error 401: Invalid Credentials, authError
2019/09/07 02:17:07 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 02:18:19 NOTICE: Time may be set wrong - time from "www.googleapis.com" is -6h59m35.668939805s different from this computer
2019/09/07 02:18:19 INFO  : Google drive root '': Failed to get StartPageToken: googleapi: Error 401: Invalid Credentials, authError
2019/09/07 10:09:52 INFO  : Google drive root '': Change notify listener failure: Get https://www.googleapis.com/drive/v3/changes?alt=json&fields=nextPageToken%2CnewStartPageToke$
2019/09/07 10:17:06 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 10:17:06 Failed to create file system for "shtuff:/": didn't find section in config file
2019/09/07 10:17:16 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 10:17:16 Failed to create file system for "shtuff:/": didn't find section in config file
2019/09/07 10:17:27 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 10:17:27 Failed to create file system for "shtuff:/": didn't find section in config file
2019/09/07 10:17:37 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 10:17:37 Failed to create file system for "shtuff:/": didn't find section in config file
2019/09/07 10:17:47 NOTICE: Serving remote control on http://127.0.0.1:5572/
2019/09/07 10:17:47 Failed to create file system for "shtuff:/": didn't find section in config file
2019/09/07 10:17:57 NOTICE: Serving remote control on http://127.0.0.1:5572/
rclone v1.48.0
- os/arch: linux/arm
- go version: go1.12.6

You aren't the first person to report this on raspberry PI.

An improper shutdown could cause it.

Also the disk getting full.

Check the directory that the config file is stored in and look for old versions.

Couldn't find any related topic on the forum.

Could this be because of a potential auth error (as evidenced by the logs above) and rclone responds by removing the remotes associated with the account?

Maybe related cuz rclone.conf shows token expiry of 1 day.

rclone.conf
[media]
type = drive
client_id = [REDACTED]
client_secret = [REDACTED]
scope = drive
token = {"access_token":"[REDACTED]","token_type":"Bearer","refresh_token":"[REDACTED]","expiry":"2019-09-08T19:16:18.107285682+05:30"}
team_drive = [REDACTED]

No, that's normal as tokens only last 1 hour actually and get refreshed. That's normal behavior.

rclone will re-write the config file on re-auth, so if you had an unclean shutdown just after that, the file could go missing conceivably.

Is this the correct permission for the config file?

-rw------- 1 pi pi 972 Sep 10 13:01 /home/pi/.config/rclone/rclone.conf

Assuming the user it's running as is 'pi', that's fine.

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