cloudronbackup folder disappears when trying to restore
-
wrote on Jan 8, 2023, 1:45 PM last edited by
I am trying to pull down a backup for testing but when I do it fails with the following error:
Access denied. Create the directory and run "chown yellowtent:yellowtent /mnt/cloudronbackup" on the server
Great, I'll create it. Again.
Try again.
And... get the same error. The directory I just created disappeared.
This process repeats ad nauseam.
Help!
-
wrote on Jan 8, 2023, 2:08 PM last edited by
Right, user error. However, I think the error messages don't help.
I use a sub-user and the account had external reachability disabled.. hence why trying to restore off-site didn't work. Yay.
However, the error message and disappearing folder make no sense. I would have expected an error message saying that the connection is refused as my FTP duck did... which led me to check the permissions on the backup server.
@girish @nebulon is there a way we can improve on those messages to help slow sysadmins like myself to find the answers they need sooner?
-
I agree this is not ideal. We use systemd-mount here and its not trivial to extract proper error messages from that. Also I believe systemd will manage the mountpoint (folder) then accordingly.
-
@robi frankly the
mount
command output, to test it for real, is also terrible for proper error reporting -
Staffwrote on Jan 24, 2023, 1:12 PM last edited by girish Jan 24, 2023, 1:19 PM
-
This took me a while to figure but when using subaccounts for CIFS, one has to use "/subaccount" as the remote directory. Thanks to https://drechsel.xyz/posts/hetzner-storage-box-how-to-mount-cifs-for-sub-user/
-
I found the issue. Fixed in https://git.cloudron.io/cloudron/box/-/commit/b2d072f2e6d3c8f1b39842c11b70f29ed2cb1231
-
-