Vfs-cache-mode writes

What is the problem you are having with rclone?

Files uploaded to cloud services, e.g., Dropbox, Gdrive, OneDrive, have zero bytes and content when reaching their destination folders.

What is your rclone version (output from rclone version)

rclone v1.54.0

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

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

Raspberry Pi OS 32bit

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

---Dropbox, Google Drive, OneDrive

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

---rclone mount --vfs-cache-mode writes Dropbox: /home/pi/Dropbox
---rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google
---rclone mount --vfs-cache-mode writes OneDrive: /home/pi/OneDrive

The rclone config contents with secrets removed.

$ rclone config
Current remotes:

Name                 Type
====                 ====
Dropbox              dropbox
Gdrive               drive
OneDrive             onedrive

A log from the command with the -vv flag

No log pertaining to this problem

Really need a log file with debug to see what's going on.

Please state the exact CLI command for obtaining a log file. Log -vv is obviously invalid

Pick the mount with the problem.

Add -vv --log-file /tmp/rclone.log

Example looks like:

felix@gemini:~$ rclone ls GD:hosts -vv --log-file /tmp/rclone.log
      221 hosts
felix@gemini:~$ cat /tmp/rclone.log
2021/03/01 15:50:18 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "ls" "GD:hosts" "-vv" "--log-file" "/tmp/rclone.log"]
2021/03/01 15:50:18 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/03/01 15:50:18 DEBUG : Creating backend with remote "GD:hosts"
2021/03/01 15:50:18 DEBUG : fs cache: adding new entry for parent of "GD:hosts", "GD:"
2021/03/01 15:50:19 DEBUG : test: Excluded
2021/03/01 15:50:19 DEBUG : backups: Excluded
2021/03/01 15:50:19 DEBUG : crypt: Excluded
2021/03/01 15:50:19 DEBUG : 4 go routines active
felix@gemini:~$

And recreate the issue and paste / share the log.

I am sorry. New to Linux CLI.

---rclone ls Gdrive: hosts -vv --log-file /tmp/rclone.log?
or
---rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google:hosts -vv --log-file /tmp/rclone.log?

Neither string generates any output.

This was an example of showing what -vv does and the log file output.

When you ran the mount on your PI, you mounted it somehow as there are 3 commands up top.

Which ever one of those is the issue, add "-vv --log-file /tmp/rclone" and recreate the issue.

I did exactly that.

rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google:hosts -vv --log-file /tmp/rclone.log

This string generates no output and no errors

---pi@raspberrypi:~ $ rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google: -vv --log-file /tmp/rclone.log
---pi@raspberrypi:~ $

You'd have to stop the previous mount first and rerun it.

cat /tmp/rclone.log

Would show you details as I'm assuming it's already running if you didn't stop it.

No mounts were/are running when i ran it

Type:

cat /tmp/rclone.log

and share the output.

pi@raspberrypi:~ $ cat /tmp/rclone.log
2021/03/01 15:52:31 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "ls" "Gdrive:" "hosts" "-vv" "--log-file" "/tmp/rclone.log"]
Usage:
rclone ls remote:path [flags]

Flags:
-h, --help help for ls

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command ls needs 1 arguments maximum: you provided 2 non flag arguments: ["Gdrive:" "hosts"]
2021/03/01 15:53:34 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "mount" "--vfs-cache-mode" "writes" "Gdrive:" "/home/pi/Google:hosts" "-vv" "--log-file" "/tmp/rclone.log"]
2021/03/01 15:53:34 DEBUG : Creating backend with remote "Gdrive:"
2021/03/01 15:53:34 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/03/01 15:53:35 DEBUG : Google drive root '': root_folder_id = "0AFivuzdaD8YzUk9PVA" - save this in the config to speed up startup
2021/03/01 15:53:35 Fatal error: Can not open: /home/pi/Google:hosts: open /home/pi/Google:hosts: no such file or directory
2021/03/01 16:00:41 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "mount" "--vfs-cache-mode" "writes" "Gdrive:" "/home/pi/Google:" "-vv" "--log-file" "/tmp/rclone.log"]
2021/03/01 16:00:41 DEBUG : Creating backend with remote "Gdrive:"
2021/03/01 16:00:41 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/03/01 16:00:41 DEBUG : Google drive root '': root_folder_id = "0AFivuzdaD8YzUk9PVA" - save this in the config to speed up startup
2021/03/01 16:00:41 Fatal error: Can not open: /home/pi/Google:: open /home/pi/Google:: no such file or directory
2021/03/01 16:03:56 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "mount" "--vfs-cache-mode" "writes" "Gdrive:" "/home/pi/Google:" "-vv" "--log-file" "/tmp/rclone.log"]
2021/03/01 16:03:56 DEBUG : Creating backend with remote "Gdrive:"
2021/03/01 16:03:56 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2021/03/01 16:03:56 DEBUG : Google drive root '': root_folder_id = "0AFivuzdaD8YzUk9PVA" - save this in the config to speed up startup
2021/03/01 16:03:56 Fatal error: Can not open: /home/pi/Google:: open /home/pi/Google:: no such file or directory
pi@raspberrypi:~ $

For the mount to work, you need to make the directory.

mkdir /home/pi/Google

Totally confused now. /home/pi/Google already exists and is empty and the mount works fine

This is the command that works fine and mounts the drive:
---rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google

That is telling you it does not exist.

Share the output of:

ls -al /home/pi

pi@raspberrypi:~ $ ls -al /home/pi
total 132
drwxr-xr-x 22 pi pi 4096 Mar 1 12:09 .
drwxr-xr-x 3 root root 4096 Jan 11 07:52 ..
-rw-r--r-- 1 pi pi 449 Mar 1 12:02 .bash_aliases
-rw------- 1 pi pi 7555 Mar 1 15:42 .bash_history
-rw-r--r-- 1 pi pi 220 Jan 11 07:52 .bash_logout
-rw-r--r-- 1 pi pi 3523 Jan 11 07:52 .bashrc
drwxr-xr-x 2 pi pi 4096 Jan 11 08:01 Bookshelf
drwxr-xr-x 8 pi pi 4096 Feb 27 13:12 .cache
drwx------ 18 pi pi 4096 Mar 1 13:42 .config
drwx------ 3 root root 4096 Feb 27 16:46 .dbus
drwxr-xr-x 2 pi pi 4096 Feb 18 19:16 Desktop
drwxr-xr-x 3 pi pi 4096 Feb 28 16:38 Documents
drwxr-xr-x 2 pi pi 4096 Feb 28 17:31 Downloads
drwxr-xr-x 2 pi pi 4096 Feb 28 16:41 Dropbox
drwx------ 3 pi pi 4096 Jan 11 08:32 .gnupg
drwxr-xr-x 2 pi pi 4096 Feb 28 16:55 Google
drwxr-xr-x 3 pi pi 4096 Jan 11 08:01 .local
drwxr-xr-x 11 pi pi 4096 Feb 18 20:07 .Mathematica
drwxr-xr-x 2 pi pi 4096 Jan 11 08:32 Music
drwxr-xr-x 2 pi pi 4096 Feb 27 12:55 OneDrive
drwxr-xr-x 2 pi pi 4096 Jan 11 08:32 Pictures
drwx------ 3 pi pi 4096 Feb 18 19:19 .pki
-rw-r--r-- 1 pi pi 807 Jan 11 07:52 .profile
drwxr-xr-x 2 pi pi 4096 Jan 11 08:32 Public
-rw-r--r-- 1 pi pi 367 Feb 18 19:12 rpdiags.txt
drwxr-xr-x 2 pi pi 4096 Jan 11 08:32 Templates
drwxr-xr-x 2 pi pi 4096 Jan 11 08:32 Videos
-rw-r--r-- 1 pi pi 171 Feb 27 13:43 .wget-hsts
drwxr-xr-x 3 pi pi 4096 Feb 18 20:07 .Wolfram
-rw------- 1 pi pi 56 Feb 28 17:34 .Xauthority
-rw------- 1 pi pi 2425 Feb 28 17:34 .xsession-errors
-rw------- 1 pi pi 2425 Feb 28 17:12 .xsession-errors.old
pi@raspberrypi:~ $

In your mount command, you have "Google:" to mount

Remove the colon.

Should be:

 rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google -vv --log-file /tmp/rclone.log

I ran:
pi@raspberrypi:~ $ rclone mount --vfs-cache-mode writes Gdrive: /home/pi/Google -vv --log-file /tmp/rclone.log

It mounted the drive. Was this supposed to do something else?

If it's still running that means, it is mounted.

You'd recreate the issue.
Stop the mount.
Share the log.

I ran:
fusermount -u /home/pi/Google
drive is unmounted as it should be. but where is the log?