What is the problem you are having with rclone?
I am trying to mount and get logs into systemd, but nothing ever is displayed.
Run the command 'rclone version' and share the full output of the command.
rclone version
rclone v1.69.1
- os/version: ubuntu 24.10 (64 bit)
- os/kernel: 6.11.0-24-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
pcloud
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
The manual version is following. (but i normally start as systemd mount service, which is following)
sudo "/usr/bin/rclone" "mount" "pcloud:" "/media/mbarlow/pcloud" "--allow-other" "--vfs-cache-mode=writes" "--config=/home/mbarlow/.config/rclone/rclone.conf" "--cache-dir=/var/rclone" "--log-systemd" "-vv" --daemon
<7>DEBUG : rclone: Version "v1.69.1" starting with parameters ["/usr/bin/rclone" "mount" "pcloud:" "/media/mbarlow/pcloud" "--allow-other" "--vfs-cache-mode=writes" "--config=/home/mbarlow/.config/rclone/rclone.conf" "--cache-dir=/var/rclone" "--log-systemd" "-vv" "--daemon"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "pcloud:"
<7>DEBUG : Using config file from "/home/mbarlow/.config/rclone/rclone.conf"
<7>DEBUG : rclone: Version "v1.69.1" finishing with parameters ["/usr/bin/rclone" "mount" "pcloud:" "/media/mbarlow/pcloud" "--allow-other" "--vfs-cache-mode=writes" "--config=/home/mbarlow/.config/rclone/rclone.conf" "--cache-dir=/var/rclone" "--log-systemd" "-vv" "--daemon"]
The systemd mount unit equivalent of above is below:
[Unit]
Description=Mount for pcloud
Wants=network-online.target
After=network-online.target
[Mount]
Type=rclone
What=pcloud:
Where=/media/mbarlow/pcloud
Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/home/mbarlow/.config/rclone/rclone.conf,cache-dir=/var/rclone,log-systemd,vv
[Install]
WantedBy=multi-user.target
If i execute command on console manually without daemonising, i can see logs on STDOUT, but not in journal
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
rclone config redacted
[pcloud]
type = pcloud
hostname = eapi.pcloud.com
token = XXX
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
the rclone command and logs are above. I am trying to read the journal similar to following. Nothing related to rclone is there.
sudo journalctl -f
Starting rclone via systemd, i can see the logs before rcloud daemonises
sudo systemctl status media-mbarlow-pcloud.mount
● media-mbarlow-pcloud.mount - Mount for pcloud
Loaded: loaded (/etc/systemd/system/media-mbarlow-pcloud.mount; enabled; preset: enabled)
Active: active (mounted) since Tue 2025-04-29 15:24:35 AEST; 56s ago
Invocation: 153ce250375c4b449ef92c83177be1f7
Where: /media/mbarlow/pcloud
What: pcloud:
Tasks: 14 (limit: 36675)
Memory: 16.4M (peak: 24.5M)
CPU: 289ms
CGroup: /system.slice/media-mbarlow-pcloud.mount
└─17675 /usr/bin/rclone mount pcloud: /media/mbarlow/pcloud
Apr 29 15:24:35 fatboy systemd[1]: Mounting media-mbarlow-pcloud.mount - Mount for pcloud...
Apr 29 15:24:35 fatboy systemd[1]: Mounted media-mbarlow-pcloud.mount - Mount for pcloud.