I've been trying to get an UrBackup server running on Rocky Linux 9. After cloning the necessary files from Git and installing the required repositories, I encounter a frustrating error when launching the server with the command 'urbackupsvr run'. The error says: 'FileSink: error opening file for writing: urbackup/server_ident_ecdsazzzz1.priv'. I've double-checked permissions, and I'm logged in as root, but I can't seem to resolve this issue. Can anyone who has experience setting up UrBackup on Rocky 9 share their insight or guidance? Your help would mean a lot!
5 Answers
The error you're seeing typically suggests a permissions problem. What exact permissions did you set? It sounds like the UrBackup user might not have the right access to that directory.
Though this isn’t about cloning from Git, I managed to install and compile UrBackup from source on Rocky 9 without any hitches. Just followed their guide and needed to install the cryptopp-devel package from EPEL. It was simpler than I expected.
Have you checked your SELinux settings? Sometimes it can block access even if permissions look right. You might need to adjust the context to allow UrBackup to write files properly.
Make sure to verify the full path and permissions of the directory mentioned in the error. Also, check if the UrBackup user is part of the group that owns the directory. And if you're running it across mounted filesystems, that might cause issues too.
I haven’t personally set it up, but I’ve heard that binhex has some great Docker images for UrBackup. If you want to avoid these issues, maybe consider using Docker instead! Check out their GitHub.
That was my first thought too! Always a good idea to look at SELinux when encountering permission issues.