Failed to change uid or gid (restore failure)

Not sure what this is telling me. Permissions match target user, AFAIK.

2022-02-27 19:49:23.337 INFO REPOSITORY_SET Repository set to /data/restore_target
2022-02-27 19:49:23.337 INFO STORAGE_SET Storage set to b2://mankel-library
2022-02-27 19:49:23.863 INFO BACKBLAZE_URL download URL is: https://f002.backblazeb2.com
2022-02-27 19:49:24.286 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2022-02-27 19:49:25.089 INFO RESTORE_INPLACE Forcing in-place mode with a non-default preference path
2022-02-27 19:49:27.779 INFO SNAPSHOT_FILTER Parsing filter file /cache/localhost/restore/.duplicacy/filters
2022-02-27 19:49:27.779 INFO SNAPSHOT_FILTER Loaded 0 include/exclude pattern(s)
2022-02-27 19:49:27.781 INFO RESTORE_START Restoring /data/restore_target to revision 14
2022-02-27 19:49:29.701 INFO DOWNLOAD_PROGRESS Downloaded chunk 1 size 7312180, 6.97MB/s 00:47:48 0.0%
2022-02-27 19:49:30.511 INFO DOWNLOAD_PROGRESS Downloaded chunk 2 size 9606292, 8.07MB/s 00:41:18 0.0%
2022-02-27 19:49:31.835 INFO DOWNLOAD_PROGRESS Downloaded chunk 3 size 3450519, 6.48MB/s 00:51:27 0.0%
2022-02-27 19:49:33.366 INFO DOWNLOAD_PROGRESS Downloaded chunk 4 size 2965764, 4.45MB/s 01:14:50 0.1%
2022-02-27 19:49:34.358 INFO DOWNLOAD_PROGRESS Downloaded chunk 5 size 4658804, 4.45MB/s 01:14:50 0.1%
2022-02-27 19:49:35.279 INFO DOWNLOAD_PROGRESS Downloaded chunk 6 size 2060357, 4.09MB/s 01:21:19 0.1%
2022-02-27 19:49:36.038 INFO DOWNLOAD_PROGRESS Downloaded chunk 7 size 1863310, 3.80MB/s 01:27:30 0.1%
2022-02-27 19:49:36.843 INFO DOWNLOAD_PROGRESS Downloaded chunk 8 size 7426728, 4.69MB/s 01:10:58 0.1%
2022-02-27 19:49:36.925 ERROR RESTORE_CHOWN Failed to change uid or gid: lchown /data/restore_target/audiobooks/A W Tozer/The Pursuit Of God (1948)/AW Tozer_The Pursuit of God-001.mp3: operation not permitted

How do I fix? I am using admin uid/gid… however my docker variables use these terms


      - USR_ID=xxxx
      - GRP_ID=xxx

Is that variable name correct?

Thank you.

You’re running the docker as the user specified by USR_ID, so you don’t have the permission to change the uid or gid. You can either get rid of the USR_ID and GRP_ID docker variables (this will make the docker run as root I believe) or simply add -ignore-owner as the restore option.

1 Like

Not sure why the UID fails on restore, as my other containers use the same value, however your -ignore-owner suggestion, works perfectly. Thank you :grinning:

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