[Synology] Mounted Google Drive won't copy or move files using File Station

What is the problem you are having with rclone?

I've installed rclone on my NAS and can upload/download files from the command line. With this small success, I endeavored to mount my personal Google Drive onto an empty folder using a simple script (below):

Using Synology's File Station interface, I can see all files/folders and rename files, and I can even download files from the folder mount, but when I try to execute a file copy/move in either direction using Synology's File Station interface, it errors out.

This seems to be a Synology error, since I can access the NAS-mounted Google Drive using a SMB (PC) connection and freely move files to and from the Google Drive NAS-mount.

Thanks for any advice.

What is your rclone version (output from rclone version)

rclone v1.54.0

  • os/arch: linux/amd64
  • go version: go1.15.7

Which cloud storage system are you using?

Google Drive

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

#!/bin/ash
    umount '/volume1/gdrive/rclone/'
    fusermount -uz '/volume1/gdrive/rclone/'
    rclone mount gDrive: '/volume1/gdrive/rclone/' \
      --allow-non-empty \
      --allow-other \
      --fast-list \
      --drive-skip-gdocs \
      --poll-interval=1m \
      --vfs-read-chunk-size 32M \
      --vfs-read-chunk-size-limit 2048M \
      --vfs-cache-mode writes \
      --dir-cache-time 96h \
      --log-level INFO \
      --log-file /volume1/gdrive/rclone_vfs.log \
      --timeout 1h \
      --umask 000

hi,

not sure what the exact error is.

-fast-list does nothing on a mount
--allow-non-empty 99.99% of the time, this is not a good idea.

perhaps use a debug log, and look for errors.

Thanks. Agree with --allow-non-empty. The other I cribbed off a "Rclone Browser" default.

When I initially ran this I did so with all switches off, but doing so prevent me from seeing any files/folders, and I got what seemed to be a permissions warning. So that too may be at the root of the problem. Overall, it seems like Synology is the source of the problem since SMB is fine.

I'll dig deeper through the Synology logs, but there was nothing at an INFO log level from rclone. I'll raise that level to DEBUG as well.

A bit more data from a DEBUG log.

Background: I mounted Google Drive to an empty Synology folder. I selected a random PNG file and chose to compress it to zip using Synology's File manager. That went well. The zip was created and uploaded to Google Drive and the File Station display updated to show the new zipfile.

Next, I selected that same PNG file, and dragged it to a folder for which I has read/write access. The copy transfer failed. Here is the relevant DEBUG log excerpt.

2021/03/07 17:44:29 INFO  : 1000560.zip: vfs cache: upload succeeded try #1
2021/03/07 17:44:37 DEBUG : /: Lookup: name="1000560.png"
2021/03/07 17:44:37 DEBUG : /: >Lookup: node=1000560.png, err=<nil>
2021/03/07 17:44:37 DEBUG : 1000560.png: Attr: 
2021/03/07 17:44:37 DEBUG : 1000560.png: >Attr: a=valid=1s ino=0 size=67804 mode=-rw-rw-rw-, err=<nil>
2021/03/07 17:44:37 DEBUG : /: Attr: 
2021/03/07 17:44:37 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2021/03/07 17:44:37 DEBUG : : Statfs: 
2021/03/07 17:44:37 DEBUG : : >Statfs: stat={Blocks:4456448 Bfree:4126841 Bavail:4126841 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2021/03/07 17:44:37 DEBUG : : Statfs: 
2021/03/07 17:44:37 DEBUG : : >Statfs: stat={Blocks:4456448 Bfree:4126841 Bavail:4126841 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=<nil>
2021/03/07 17:44:46 INFO  : Signal received: interrupt
2021/03/07 17:44:46 DEBUG : vfs cache: cleaner exiting
2021/03/07 17:44:46 INFO  : Exiting...

Any suggestions to solve the copy problem are welcome.

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