"/etc/systemd/system/rclone-onedrive.service"
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
RestartSec=10
ExecStart=/usr/bin/rclone mount onedrive_qas: /IaaS/test --vfs-cache-mode full -vv
Restart=on-failure
[Install]
WantedBy=multi-user.target
Please run 'rclone config redacted' and share the full output. If you get command not
[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
[onedrive2]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
[onedrive_qas]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
A log from the command that you were trying to run with the -vv flag
Result from command journalctl -xeu rclone-onedrive.service (with systemctl command - not working)
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- Automatic restarting of the unit rclone-onedrive.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Dec 13 08:10:59 systemd[1]: Stopped RClone Service.
-- Subject: A stop job for unit rclone-onedrive.service has finished
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- A stop job for unit rclone-onedrive.service has finished.
--
-- The job identifier is 160672749 and the job result is done.
Dec 13 08:10:59 systemd[1]: Starting RClone Service...
-- Subject: A start job for unit rclone-onedrive.service has begun execution
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- A start job for unit rclone-onedrive.service has begun execution.
--
-- The job identifier is 160672749.
Dec 13 08:10:59 rclone[26123]: 2024/12/13 08:10:59 DEBUG : Failed to find user cache dir, using temporary directory: neither $XDG_CACHE_HOME no>
Dec 13 08:10:59 rclone[26123]: DEBUG : rclone: Version "v1.68.1" starting with parameters ["/usr/bin/rclone" "mount" "onedrive_qas:" "/IaaS/tes>
Dec 13 08:10:59 rclone[26123]: DEBUG : rclone: systemd logging support activated
Dec 13 08:10:59 rclone[26123]: DEBUG : Creating backend with remote "onedrive_qas:"
Dec 13 08:10:59 rclone[26123]: DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
Dec 13 08:11:59 rclone[26123]: DEBUG : pacer: low level retry 1/10 (error Get "https://graph.microsoft.com/v1.0/drives/ed56770142f669f4/root": >
Dec 13 08:11:59 rclone[26123]: DEBUG : pacer: Rate limited, increasing sleep to 20ms
Dec 13 08:12:29 systemd[1]: rclone-onedrive.service: start operation timed out. Terminating.
Dec 13 08:12:29 systemd[1]: rclone-onedrive.service: Failed with result 'timeout'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- The unit rclone-onedrive.service has entered the 'failed' state with result 'timeout'.
Dec 13 08:12:29 systemd[1]: Failed to start RClone Service.
-- Subject: A start job for unit rclone-onedrive.service has failed
-- Defined-By: systemd
-- Support: systemd-devel Info Page
--
-- A start job for unit rclone-onedrive.service has finished with a failure.
--
-- The job identifier is 160672749 and the job result is failed.
It looks like you have network access problems when running rclone from systemd.
rclone mount works from cmd, when run from systemd it can find config and attempts to start mount but error message clearly indicates that it can not connect to MS server.
Maybe your Suse Enterprise is configured in some special way? I have never experienced any systemd issues with Tumbleweed but have zero knowledge of Enterprise.
Command:
curl https://graph.microsoft.com/v1.0/drives/ed56770142f669f4/root
{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2024-12-16T07:42:29","request-id":"470a5eae-9605-470e-a175-89a1b18ab958","client-request-id":"470a5eae-9605-470e-a175-89a1b18ab958"}}}
Result:
{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2024-12-16T07:42:29","request-id":"470a5eae-9605-470e-a175-89a1b18ab958","client-request-id":"470a5eae-9605-470e-a175-89a1b18ab958"}}}