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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Access denied - Backup and restore with mounts

Access denied - Backup and restore with mounts

Scheduled Pinned Locked Moved Support
restore
10 Posts 4 Posters 3.1k Views 4 Watching
  • 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.
  • 32463 Offline
    32463 Offline
    3246
    wrote on last edited by girish
    #1
    • On my remote box, I have backed up a Cloudron via SSHFS to my NAS
    • I am now on the local network, trying a test restore by mounting the NAS share locally using SSHFS.
    • Cloudron restore.html always says it cannot read, which is odd, considering it has full access.
    • What am I doing wrong?

    Steps to replicate:

    1. Create a backup on the source Cloudron using SSHFS to a remote destination
    2. Create a fresh VM locally and mount the share
    sshfs -o uid=998 -o gid=998 -v <USER>@<NAS>:/backups_cloudron /mnt/cloudronbackups
    
    1. Verify the permissions are a-okay:
    drwxrwxrwx  1 yellowtent yellowtent 4.0K Aug 18 14:30 /mnt/cloudronbackups
    
    1. Upload the backup config from the last backup and change from SSHFS to Filesystem
    2. Receive the following error:
    Access denied. Create the directory and run "chown yellowtent:yellowtent /mnt/cloudronbackups" on the server
    

    👉 Find our more www.bebraver.online

    girishG 1 Reply Last reply
    0
    • 32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #2

      PS: It works fine if I try to restore using CIFS mount.

      👉 Find our more www.bebraver.online

      1 Reply Last reply
      0
      • M Offline
        M Offline
        michaelpope
        wrote on last edited by
        #3

        Hey @3246, not with the Cloudron team, but can you 'cd' down into the /mnt/cloudronbackups folder (particularly, into it's subfolders)?

        Beyond that... I think you might just need to follow the instructions and run chown yellowtent:yellowtent... but I'm not 100% sure that will work... so maybe make a local copy and restore from that just to be on the safe side.

        1 Reply Last reply
        0
        • 32463 Offline
          32463 Offline
          3246
          wrote on last edited by
          #4

          Thanks Michael. Yes, I was able to peruse the folder via CLI as normal. Just Cloudron didn't want to know about it.

          All good though as just testing.

          I like to think of interesting edge cases to keep @nebulon and @girish from getting bored 😁

          Either that or just entertainment thanks to dumb user error 😆

          👉 Find our more www.bebraver.online

          scookeS 1 Reply Last reply
          0
          • 32463 3246

            Thanks Michael. Yes, I was able to peruse the folder via CLI as normal. Just Cloudron didn't want to know about it.

            All good though as just testing.

            I like to think of interesting edge cases to keep @nebulon and @girish from getting bored 😁

            Either that or just entertainment thanks to dumb user error 😆

            scookeS Offline
            scookeS Offline
            scooke
            wrote on last edited by
            #5

            @3246 said in Access denied - Backup and restore with mounts:

            just entertainment

            It'a really only entertaining when the user realizes what happened and posts about it.

            BTW, did you run "chown yellowtent:yellowtent /mnt/cloudronbackups" and were you then able to restore from the SSHFS-mounted NAS?

            A life lived in fear is a life half-lived

            1 Reply Last reply
            1
            • 32463 Offline
              32463 Offline
              3246
              wrote on last edited by
              #6

              Yep, but it failed. I tried with CIFS and it worked first time, so I hence it might be an SSHFS oddity?

              👉 Find our more www.bebraver.online

              1 Reply Last reply
              0
              • 32463 3246
                • On my remote box, I have backed up a Cloudron via SSHFS to my NAS
                • I am now on the local network, trying a test restore by mounting the NAS share locally using SSHFS.
                • Cloudron restore.html always says it cannot read, which is odd, considering it has full access.
                • What am I doing wrong?

                Steps to replicate:

                1. Create a backup on the source Cloudron using SSHFS to a remote destination
                2. Create a fresh VM locally and mount the share
                sshfs -o uid=998 -o gid=998 -v <USER>@<NAS>:/backups_cloudron /mnt/cloudronbackups
                
                1. Verify the permissions are a-okay:
                drwxrwxrwx  1 yellowtent yellowtent 4.0K Aug 18 14:30 /mnt/cloudronbackups
                
                1. Upload the backup config from the last backup and change from SSHFS to Filesystem
                2. Receive the following error:
                Access denied. Create the directory and run "chown yellowtent:yellowtent /mnt/cloudronbackups" on the server
                
                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @3246 said in Access denied - Backup and restore with mounts:

                sshfs -o uid=998 -o gid=998

                Did you check that yellowtent user is actually 998 locally and in the remote?

                32463 1 Reply Last reply
                1
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by girish
                  #8

                  On a side note, we actually hardcoded the yellowtent user to id 808 starting 7.5.1 (https://git.cloudron.io/cloudron/box/-/commit/e6c43c84e49a488f9f8779159578c99bb8177374)

                  1 Reply Last reply
                  3
                  • girishG girish

                    @3246 said in Access denied - Backup and restore with mounts:

                    sshfs -o uid=998 -o gid=998

                    Did you check that yellowtent user is actually 998 locally and in the remote?

                    32463 Offline
                    32463 Offline
                    3246
                    wrote on last edited by
                    #9

                    @girish I did, yep.

                    axel@my:~$ cat /etc/passwd |grep yellowtent
                    yellowtent:x:998:998:Cloudron Box:/home/yellowtent:/usr/sbin/nologin
                    

                    👉 Find our more www.bebraver.online

                    girishG 1 Reply Last reply
                    2
                    • 32463 3246

                      @girish I did, yep.

                      axel@my:~$ cat /etc/passwd |grep yellowtent
                      yellowtent:x:998:998:Cloudron Box:/home/yellowtent:/usr/sbin/nologin
                      
                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @3246 very strange, I just tried a restore of Cloudron with SSFS now and it works. Not sure what's the best way to proceed here, but if you are blocked by this, can you write to support@cloudron.io and we can debug fruther ?

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search