Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved cloudronbackup folder disappears when trying to restore

    Support
    backups
    4
    9
    57
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 3246
      3246 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!

      Cloudron-Restore.png

      Visit https://www.bebravernow.com for more

      1 Reply Last reply Reply Quote 0
      • 3246
        3246 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? 😉

        Visit https://www.bebravernow.com for more

        1 Reply Last reply Reply Quote 2
        • nebulon
          nebulon Staff last edited by

          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 1 Reply Last reply Reply Quote 2
          • robi
            robi @nebulon last edited by

            @nebulon it would be wise to rely less on systemd and more on Cloudron validations.

            Life of Advanced Technology

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @robi last edited by

              @robi frankly the mount command output, to test it for real, is also terrible for proper error reporting 🙂

              robi 1 Reply Last reply Reply Quote 0
              • robi
                robi @nebulon last edited by

                @nebulon agreed, have you considered things like rclone instead?

                Life of Advanced Technology

                1 Reply Last reply Reply Quote 1
                • girish
                  girish Staff last edited by girish

                  Tested with a variety of cases here in both volumes and backups UI:

                  Incorrect hostname:

                  eea78352-4295-4b8e-b149-99ea8a09ecbc-image.png

                  Invalid username/password:

                  a7a8d4e8-fa86-4bc7-a8dd-df6823b19bca-image.png

                  Bad remote path:

                  1eb63198-c31d-48e2-9ba8-7e2a8ad1f522-image.png

                  Sub account and no samba:

                  568e155c-25e4-4700-b02f-74bca12d09aa-image.png

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by

                    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/

                    1 Reply Last reply Reply Quote 2
                    • girish
                      girish Staff last edited by

                      I found the issue. Fixed in https://git.cloudron.io/cloudron/box/-/commit/b2d072f2e6d3c8f1b39842c11b70f29ed2cb1231

                      1 Reply Last reply Reply Quote 3
                      • Topic has been marked as a question  girish girish 
                      • Topic has been marked as solved  girish girish 
                      • First post
                        Last post
                      Powered by NodeBB