Failed to copy: failed to open source object: open X.gpg: permission denied

Failed to copy: failed to open source object: open X(All gpg files).gpg: permission denied. From my understanding it cant copy it since it cant open it but I've seen posts about copying encrypted gpg with no problem. What am I doing wrong? AWS S3, Deep Archive.

Can you post the rclone command you are using and the log with -vv please?

Are you copying from s3 to local or the other way round?

From local to S3 Deep Archive.

Thanks for helping!

What happens if you run a regular ls on the file with the path?

What's rclone ls show on the same command?


A "test"-file. You can actually see the test-file in the pastebin as it's in the folder together with the encrypted ones. It got skipped cause it synced the first time I did it.

Can you share the actual output?

And run that same file that doesn't copy as a single one with -vv.

The pastebin is the actual output just replaced names and paths using a "Find and Replace"-tool.

There are 3 files that dont copy and 1 that do(the normal test text one I created for that purpose, which shows up as skipped in the pastebin).

Can you share the actual output like this?

felix@gemini:~$ ls -al /etc/hosts
-rw-r--r-- 1 root root 254 Sep 12 11:40 /etc/hosts
felix@gemini:~$ rclone ls /etc/hosts
2019/09/12 13:41:00 NOTICE: localtime: Can't follow symlink without -L/--copy-links
2019/09/12 13:41:00 NOTICE: vtrgb: Can't follow symlink without -L/--copy-links
2019/09/12 13:41:00 NOTICE: os-release: Can't follow symlink without -L/--copy-links
2019/09/12 13:41:00 NOTICE: resolv.conf: Can't follow symlink without -L/--copy-links
2019/09/12 13:41:00 NOTICE: mtab: Can't follow symlink without -L/--copy-links
      254 hosts
felix@gemini:~$ rclone copy /etc/hosts GD: -vv
2019/09/12 13:41:15 DEBUG : rclone: Version "v1.49.2" starting with parameters ["rclone" "copy" "/etc/hosts" "GD:" "-vv"]
2019/09/12 13:41:15 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2019/09/12 13:41:16 DEBUG : hosts: Modification times differ by -316h6m49.549229959s: 2019-09-12 11:40:41.612229959 -0400 EDT, 2019-08-30 11:33:52.063 +0000 UTC
2019/09/12 13:41:16 DEBUG : hosts: MD5 = 1450f7e2eb39701b01c3d307bf5c6a77 OK
2019/09/12 13:41:17 INFO  : hosts: Updated modification time in destination
2019/09/12 13:41:17 DEBUG : hosts: Unchanged skipping
2019/09/12 13:41:17 INFO  :
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 1 / 1, 100%
Transferred:            0 / 0, -
Elapsed time:          0s

2019/09/12 13:41:17 DEBUG : 5 go routines active
2019/09/12 13:41:17 DEBUG : rclone: Version "v1.49.2" finishing with parameters ["rclone" "copy" "/etc/hosts" "GD:" "-vv"]

If not, just say no and I'll stop asking.

I'll send you a DM but I don't like posting direct outputs publicly.

Those errors look like they are permissions errors on your local machine rather than on s3.

Try doing a test locally

rclone sync /path/to/files/ /tmp/local-test

Does that give the same errors?

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