Auto Mount Google Drive Synology

It is not sending emails. It not showing that its running.

at this point, create a debug log file for rclone and post it.
and do this

image


to send emails, you need to set that up here. make sure to send and receive a test email.

5

the rclone command is running fine via the ssh command line.

as you are new to synology, you might want to post at their help forum with the task and emails problems.

in the mean time:

  • have you produced the debug log for rclone?
  • have you enabled the save output results to a file?

if so, please post them.

2020/09/28 15:59:25 ERROR : Couldn't find home directory or read HOME or XDG_CONFIG_HOME environment variables.
2020/09/28 15:59:25 ERROR : Defaulting to storing config in current directory.
2020/09/28 15:59:25 ERROR : Use --config flag to workaround.
2020/09/28 15:59:25 ERROR : Error was: exec: "getent": executable file not found in $PATH
2020/09/28 15:59:25 NOTICE: Config file "/usr/syno/synoman/webapi/.rclone.conf" not found - using defaults
2020/09/28 15:59:25 Failed to create file system for "remote2:": didn't find section in config file

now we are getting somewhere.

using winscp, do a rclone config file and note the location of the config file
to your bash file, for the rclone command, add this flag, note: after the equal sign, add the location of the config file.
--config=

Like this?

bash /volume1/homes/admin/scripts/nas-mounter.sh config= /volume1/homes/admin/rclone.conf

config=/volume1/homes/admin/rclone.conf

2020/09/28 16:35:54 ERROR : Couldn't find home directory or read HOME or XDG_CONFIG_HOME environment variables.
2020/09/28 16:35:54 ERROR : Defaulting to storing config in current directory.
2020/09/28 16:35:54 ERROR : Use --config flag to workaround.
2020/09/28 16:35:54 ERROR : Error was: exec: "getent": executable file not found in $PATH
2020/09/28 16:35:54 NOTICE: Config file "/usr/syno/synoman/webapi/.rclone.conf" not found - using defaults
2020/09/28 16:35:54 Failed to create file system for "remote2:": didn't find section in config file

It comes up with the same error error

you need to post the entire log file, must include the first line with the command....

Add it to the mount command in your bash script:

So the line would now be:

/usr/bin/rclone mount -v gDrive: /volume1/homes/admin/googledrive --allow-other --dir-cache-time 672h --vfs-cache-max-age 675h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M --config="/volume1/homes/admin/rclone.conf" &
1 Like

2020/09/28 17:24:04 Failed to create file system for "gDrive:": didn't find section in config file

Everything is gone except for this

really, for every rclone command, you need to use a debug log.
we need to know the EXACT command you ran and rclone's EXACT response to that command.
i posted how to do that up above.

I got it working finally. Thank you everyone very much for your time.

good, glad we all got it working.

1 Like

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