Help with permissions error

Steps i've tried so far to fix the issue;
chmod -R 777 /home

Error:

2025/01/19 02:41:54 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:41:54 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:41:54 ERROR : S3 bucket SERVERserver: not deleting directories as there were IO errors
2025/01/19 02:41:54 ERROR : Attempt 1/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:41:54 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:41:55 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:41:55 ERROR : S3 bucketSERVERserver: not deleting directories as there were IO errors
2025/01/19 02:41:55 ERROR : Attempt 2/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:41:55 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:41:55 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:41:55 ERROR : S3 bucket SERVERserver: not deleting directories as there were IO errors
2025/01/19 02:41:55 ERROR : Attempt 3/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:41:55 NOTICE:
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 2 (retrying may help)
Elapsed time:         0.4s

Version:

rclone v1.69.0
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-51-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: static
- go/tags: snap

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

Wasabi

Command I was trying to run:

 rclone sync --interactive /home/USER/documents/** wasabi:SERVERserver

Config:

root@SERVER:/home/USER# rclone config redacted
[wasabi]
type = s3
provider = Wasabi
access_key_id = XXX
secret_access_key = XXX
endpoint = s3.ca-central-1.wasabisys.com
acl = private

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

2025/01/19 02:50:50 DEBUG : Creating backend with remote "/home/USER/documents/scripts"
2025/01/19 02:50:50 DEBUG : Using config file from "/root/snap/rclone/525/.config/rclone/rclone.conf"
2025/01/19 02:50:50 DEBUG : Creating backend with remote "wasabi:SERVERserver"
2025/01/19 02:50:50 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for checks to finish
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for transfers to finish
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting directories as there were IO errors
2025/01/19 02:50:50 ERROR : Attempt 1/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:50:50 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for checks to finish
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for transfers to finish
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting directories as there were IO errors
2025/01/19 02:50:50 ERROR : Attempt 2/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:50:50 ERROR : : failed to open directory "": open /home/USER/documents/scripts: permission denied
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for checks to finish
2025/01/19 02:50:50 DEBUG : S3 bucket SERVERserver: Waiting for transfers to finish
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting files as there were IO errors
2025/01/19 02:50:50 ERROR : S3 bucket SERVERserver: not deleting directories as there were IO errors
2025/01/19 02:50:50 ERROR : Attempt 3/3 failed with 2 errors and: not deleting files as there were IO errors
2025/01/19 02:50:50 NOTICE:
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 2 (retrying may help)
Elapsed time:         0.4s

2025/01/19 02:50:50 DEBUG : 5 go routines active
2025/01/19 02:50:50 NOTICE: Failed to sync with 2 errors: last error was: not deleting files as there were IO errors

hi, check out my post at
i just noticed that you are using rclone inside a snap.


fwiw, to keep the logs small, --retries=1

Edit: rclone sync -v --ignore-errors /home/USER/documents/** wasabi:USERserver/documents
This seemed to do it

Thanks, I actually uninstalled with snap then installed using the script on the official website, tried it out, and it worked fine, then saw your comment! Appreciate the advice.

Quick question to maybe prevent starting a new thread if I can't find the answer, I noticed when I ran the command, each time it required an input

rclone: copy "permissions/chmod777.sh"?
y) Yes, this is OK (default)
n) No, skip this
s) Skip all copy operations with no more questions
!) Do all copy operations with no more questions
q) Exit rclone now.

is there a command to add to avoid being prompted and just continue with the sync? I'll be running this script on a schedule.

rclone sync -vv --interactive /home/USER/documents/** wasabi:USERserver/documents

this is the current command I am using

I'm guessing --ignore-errors

Please check documentation:

that is from using --interactive

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