No logging with mount from /etc/fstab

What is the problem you are having with rclone?

No logging seen in syslog.

Run the command 'rclone version' and share the full output of the command.

rclone v1.68.2

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-84-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.3
  • go/linking: static
  • go/tags: none

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

Google Drive

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

Line from /etc/fstab

gdrive: /home/admin/downloads/gdrive rclone auto,rw,nosuid,nodev,uid=1000,gid=1002,allow_other,config=/home/admin/.config/rclone/rclone.conf,vfs_cache_mode=full,cache_dir=/home/admin/.cache/rclone 0 0

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
acknowledge_abuse = true

A log from the command that you were trying to run with the -vv flag

The point is I don't know where to search for the log, see above.

Addendum

This is the process

$ pgrep -a rclone
2670349 /usr/bin/rclone mount gdrive: /home/admin/downloads/gdrive --uid=1000 --gid=1002 --allow-other --config=/home/admin/.config/rclone/rclone.conf --vfs-cache-mode=full --cache-dir=/home/admin/.cache/rclone --verbose=1 --daemon

It has --daemon option therefore stderr output should be suppressed, right?
Should I add --syslog option?

welcome to the forum,

yes

yes

also, can use rclone log --log-file=/path/to/rclone.log --log-level=DEBUG

1 Like

Do you mean that I can make rclone log both to syslog and any regular file?

not sure, give it a try...

not sure, give it a try...
[/quote]

2024/12/01 19:49:09 CRITICAL: Can't use --syslog and --log-file together
So, one or another, not both.

I prefer syslog, because it should be auto-rotated, thanks.

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