Hi, I am running rclone and mounted my rclone.service but not sure how to check what is uploading on the onedrive or other cloud services and when rclone stopped uploading because I reached the daily limit. Need little help with this. Thank you
use a rclone log file
https://rclone.org/docs/#log-file-file
https://rclone.org/docs/#log-level-level
Hi, thank you so much for quick reply. Is there anyway I can add the log file like that in the service file?
--log-level INFO --log-file "/home/istvan/.config/rclone/rclone.log"
# /etc/systemd/system/rclone.service
[Unit]
Description=Rclone VFS Mount
After=network-online.target
[Service]
User=1000
Group=1000
Type=notify
#ExecStartPre=/bin/sleep 10
ExecStart=/usr/bin/rclone mount \
--allow-other \
--buffer-size=64M \
--config=/home/istvan/.config/rclone/rclone.conf \
--log-level INFO --log-file "/home/istvan/.config/rclone/rclone.log" \
--dir-cache-time=168h \
--drive-chunk-size=64M \
--drive-skip-gdocs \
--fast-list \
--rc \
--rc-web-gui \
--syslog \
--timeout=10m \
--umask=002 \
--vfs-read-chunk-size-limit=2048M \
--vfs-read-chunk-size=64M \
-v \
google: /mnt/remote
ExecStop=/bin/fusermount -uz /mnt/remote
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=default.target
now that you posted your service file, i can see that you already add those flags to your command.
Hooray, thank you so much for that. Let me quickly reload the demon and see the log. I will update you. Thanks again
Oops I am getting this now after updating the service file
istvan@istvan:~$ sudo systemctl restart rclone.service
Job for rclone.service failed because the control process exited with error code.
See "systemctl status rclone.service" and "journalctl -xe" for details.
istvan@istvan:~$ sudo systemctl status rclone.service
● rclone.service - Rclone VFS Mount
Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-11-28 20:12:42 UTC; 18s ago
Process: 16325 ExecStop=/bin/fusermount -uz /mnt/remote (code=exited, status=0/SUCCESS)
Process: 16327 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/istvan/.config/rclone/rclone.conf --log-level INFO --log-file /home/istvan/.config/rclone/rclone.log --dir-cache-time=168h --drive-ch
Main PID: 16327 (code=exited, status=1/FAILURE)
Nov 28 20:12:42 istvan systemd[1]: Starting Rclone VFS Mount...
Nov 28 20:12:42 istvan systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
Nov 28 20:12:42 istvan systemd[1]: rclone.service: Failed with result 'exit-code'.
Nov 28 20:12:42 istvan systemd[1]: Failed to start Rclone VFS Mount.
Oh yes thats why
2020/11/28 20:12:42 Can't use --syslog and --log-file together
2020/11/28 20:17:05 Can't use --syslog and --log-file together
Not sure what --syslog
does?
if you do not understand what --syslog
does, then why is it in your rclone command?
Because someone else help me out just like you are trying to help me.
I removed the syslog but still getting same error
istvan@istvan:~$ systemctl status rclone.service
Warning: The unit file, source configuration file or drop-ins of rclone.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● rclone.service - Rclone VFS Mount
Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-11-28 20:28:57 UTC; 12s ago
Process: 18925 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/istvan/.config/rclone/rclone.conf --log-level INFO --log-file /home/istvan/.config/rclone/rclone.log --dir-cache-time=168h --drive-ch
Main PID: 18925 (code=exited, status=1/FAILURE)
Nov 28 20:28:57 istvan systemd[1]: Starting Rclone VFS Mount...
Nov 28 20:28:57 istvan systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
Nov 28 20:28:57 istvan systemd[1]: rclone.service: Failed with result 'exit-code'.
Nov 28 20:28:57 istvan systemd[1]: Failed to start Rclone VFS Mount.
lines 1-11/11 (END)
istvan@istvan:~$ sudo systemctl daemon-reload
istvan@istvan:~$ sudo systemctl restart rclone.service
Job for rclone.service failed because the control process exited with error code.
See "systemctl status rclone.service" and "journalctl -xe" for details.
istvan@istvan:~$ systemctl status rclone.service
● rclone.service - Rclone VFS Mount
Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-11-28 20:33:21 UTC; 3s ago
Process: 19681 ExecStart=/usr/bin/rclone mount --allow-other --buffer-size=64M --config=/home/istvan/.config/rclone/rclone.conf --log-level INFO --log
Main PID: 19681 (code=exited, status=1/FAILURE)
Nov 28 20:33:20 istvan systemd[1]: Starting Rclone VFS Mount...
Nov 28 20:33:21 istvan systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
Nov 28 20:33:21 istvan systemd[1]: rclone.service: Failed with result 'exit-code'.
Nov 28 20:33:21 istvan systemd[1]: Failed to start Rclone VFS Mount.
--allow-other \
--buffer-size=64M \
--config=/home/istvan/.config/rclone/rclone.conf \
--log-level INFO \
--log-file=/home/istvan/.config/rclone/rclone.log \
--dir-cache-time=168h \
--drive-chunk-size=64M \
--drive-skip-gdocs \
--fast-list \
--rc \
--rc-web-gui \
--timeout=10m \
--umask=002 \
--vfs-read-chunk-size-limit=2048M \
--vfs-read-chunk-size=64M \
I also tried with this --log-file "/home/istvan/.config/rclone/rclone.log" \
But same output
i am not an expert of service files.
i would run the rclone command from the command line, not using service file.
when that works, then try to use a service file.
and this is an example service file that i have used in the past.
https://github.com/animosity22/homescripts/blob/master/systemd/rclone.service
Thank you so much for the link I will go through and try to replicate yours and thanks again. I saved the link too
I hope in meantime someone can pick this up for me. Thanks agian
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.