Need help to fix the rclone app in debian 11

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

ā— rclone@noor.service - rclonemount
     Loaded: loaded (/etc/systemd/system/rclone@.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Thu 2023-12-28 16:31:02 UTC; 7s ago
    Process: 12594 ExecStartPre=/bin/mkdir -p /home/noor/cloud/ (code=exited, status=0/SUCCESS)
    Process: 12595 ExecStart=/usr/bin/rclone mount contentmain: /home/noor/cloud/ --config /root/.config/rclone/rclone.conf --use-mmap --dir-cache-time 1h --timeout 30s --umask 002 --allow-other --poll-interval=1h --vfs-cache-mode writes --vfs-read-chunk-size 1M --vfs-read-chunk-size-limit 64M --tpslimit 10 (code=exited, status=1/FAILURE)

   Main PID: 12595 (code=exited, status=1/FAILURE)
        CPU: 57ms

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

rclone v1.65.0

  • os/version: debian 11.8 (64 bit)
  • os/kernel: 6.1.0-0.deb11.13-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: none

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

Onedrive Business

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

systemctl start  rclone@noor.service

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

[contentmain]
type = onedrive
client_id = XXX
client_secret = XXX
token = XXX
drive_id = XXX
drive_type = business

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

Paste  log here

I want to say at last I am using swizzin script to install rclone alongside with other apps. This error is pretty tough to fix for me as I am noob. Please help me to fix the issue.

welcome to the forum,

with the rclone command, add a debug log,
--log-level=DEBUG --log-file=/home/noor/rclone.log

and post the contents of rclone@noor.service

  1. What is the content of below file:

/etc/systemd/system/rclone@.service

  1. Does running:

sudo rclone config redacted

list contentmain remote?

@asdffdsa

sorry i can't upload logs as I am new user. But can show you couple of lines from there.

2023/12/28 16:52:43 INFO  : Starting transaction limiter: max 10 transactions/s with burst 1
2023/12/28 16:52:43 DEBUG : rclone: Version "v1.65.0" starting with parameters ["/usr/bin/rclone" "mount" "contentmain:" "/home/noor/cloud/" "--config" "/root/.config/rclone/rclone.conf" "--use-mmap" "--dir-cache-time" "1h" "--timeout" "30s" "--umask" "002" "--allow-other" "--poll-interval=1h" "--vfs-cache-mode" "writes" "--vfs-read-chunk-size" "1M" "--vfs-read-chunk-size-limit" "64M" "--tpslimit" "10" "--log-level=DEBUG" "--log-file=/home/noor/rclone.log"]
2023/12/28 16:52:43 DEBUG : Creating backend with remote "contentmain:"
2023/12/28 16:52:43 Failed to load config file "/root/.config/rclone/rclone.conf": open /root/.config/rclone/rclone.conf: permission denied
2023/12/28 16:53:13 INFO  : Starting transaction limiter: max 10 transactions/s with burst 1
2023/12/28 16:53:13 DEBUG : rclone: Version "v1.65.0" starting with parameters ["/usr/bin/rclone" "mount" "contentmain:" "/home/noor/cloud/" "--config" "/root/.config/rclone/rclone.conf" "--use-mmap" "--dir-cache-time" "1h" "--timeout" "30s" "--umask" "002" "--allow-other" "--poll-interval=1h" "--vfs-cache-mode" "writes" "--vfs-read-chunk-size" "1M" "--vfs-read-chunk-size-limit" "64M" "--tpslimit" "10" "--log-level=DEBUG" "--log-file=/home/noor/rclone.log"]
[Unit]
Description=rclonemount
After=network.target

[Service]
Type=simple
User=%i
Group=%i
ExecStartPre=-/bin/mkdir -p /home/%i/cloud/
ExecStart=/usr/bin/rclone mount contentmain: /home/%i/cloud/  --config /root/.config/rclone/rclone.conf  --use-mmap   --dir-cache-time 1h   --timeout 30s   --umask 002   --allow-other   --poll-interval=1h   --vfs-cache-mode writes   --vfs-read-chunk-size 1M   --vfs-read-chunk-size-limit 64M   --tpslimit 10 --log-level=DEBUG --log-file=/home/noor/rclone.log

ExecStop=/bin/fusermount -u /home/%i/cloud
Restart=on-failure
RestartSec=30
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

that looks like the isssue.

might try to
--- copy /root/.config/rclone/rclone.conf to /home/noor/.config/rclone/rclone.conf
--- use --config=/home/noor/.config/rclone/rclone.conf

I tried but now getting this btw.

2023/12/28 17:11:15 INFO  : Starting transaction limiter: max 10 transactions/s with burst 1
2023/12/28 17:11:15 DEBUG : rclone: Version "v1.65.0" starting with parameters ["/usr/bin/rclone" "mount" "contentmain:" "/home/noor/cloud/" "--config=/home/noor/.config/rclone/rclone.conf" "--use-mmap" "--dir-cache-time" "1h" "--timeout" "30s" "--umask" "002" "--allow-other" "--poll-interval=1h" "--vfs-cache-mode" "writes" "--vfs-read-chunk-size" "1M" "--vfs-read-chunk-size-limit" "64M" "--tpslimit" "10" "--log-level=DEBUG" "--log-file=/home/noor/rclone.log"]
2023/12/28 17:11:15 DEBUG : Creating backend with remote "contentmain:"
2023/12/28 17:11:15 DEBUG : Using config file from "/home/noor/.config/rclone/rclone.conf"
2023/12/28 17:11:15 Failed to create file system for "contentmain:": didn't find section in config file

try rclone listremotes
that wil llist the name of the remotes into the config file.

It is all a bit messy... Your service runs as noor user:

so trying to access --config /root/.config/rclone/rclone.conf will be problematic unless permissions of /root are completely "compromised". Also for token access based remote like onedrive write access is needed to refresh token periodically.

It does not help that you do not indicate how you run your commands - as root or as a user.

Now when you switched your service to noor user config location:

probably the easiest thing to do is to run (as noor user):

rclone config

and create your contentmain onedrive remote again.

Do not copy files around from root account as then you have to also make sure that their ownership and permissions are correct.

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