External Hard Drive not working as second storage location

I am brand new to duplicacy just installed it today. I am using unraid and have an external drive plugged in using unassigned devices when trying to add it as a secondary storage location I get this error

Failed to initialize the storage at /backuproot/disks/WCK3LR37-part2: Failed to configure the storage: open /backuproot/disks/WCK3LR37-part2/config.tfcuffna.tmp: permission denied

WCK3LR37-part2 is the drive. What am I missing?

The user you run duplicacy under does not have permission to write to the disk.

I feel like a moron. I spent hours yesterday trying to figure out how to change permissions chown wasnt changing anything. I edited the container and changed uid and guid to 0:0 all better. LOL Thanks

Hmm. even sudo chown? Maybe you have some AppArmor/SeLinux enabled?

Running duplicacy as root is a bit overkill, and not advised: it can be updated from the internet, it downloads apps (duplicacy CLI) from the internet: giving it root access is therefore not ideal.

I would create a separate user to run duplicacy, and give it read-only access to the files it should be able to see.

Ok so I sat and got this right this time, I think.

I made a system user named duplicacy and gave it rights to read/write the backup share and read only the data shares.

Then I added more paths in the app directly to my shares with read only access and read/write to the backup location. But the unassigned device, my external drive is root access only (there is no associated share). How do I work this without giving root access to duplicacy?

Yeah nope didnt work I try to add storage locations and get

“Failed to initialize the storage at /external: The repository /cache/localhost/all has already been initialized”

so I deleted duplicacy and all the appdata and started fresh and now Im getting

“Failed to check the storage at /backuproot/backup: chdir /cache/localhost/all: no such file or directory”

I even went in and manually made “/cache/localhost/all” still no luck. WTH am I doing wrong?

I don’t know what you are doing to say what of that is wrong :slight_smile:

But it seems that if you
0. Create a duplicacy user on the system, find out its UID and GID, (id -u duplicacy and id -g duplicacy)

  1. nuke everything, incuding all the /config and /cache maped folders from the ost
  2. Create those folders somewhere anew
  3. make duplicachy user an owner (sudo chown -R duplicacy:duplicacy /path/to/folder/on/the/host)
  4. Start duplicacy with the GID and UID from step 1

then it shall “just work”

How are running duplicacy? Docker container? Natively?