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 Cloudron Backups on TrueNAS NFS mount

    Support
    nfs backup
    4
    9
    617
    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.
    • O
      opensourced last edited by girish

      So I am trying out the backup capability of cloudron using NFS shares. After setting up the NFS share on TrueNAS and opening the permissions, I managed to attach the share to cloudron.
      However, the backup fails and I receive the following log message:

      Oct 30 12:52:49 box:backupupload v8 heap : used 22807312 total: 24461312 max: 4345298944
      Oct 30 12:52:53 box:tasks 306: {"percent":93.30769230769232,"message":"Uploading backup 2M@2MBps (box)"}
      Oct 30 12:53:14 box:tasks 306: {"percent":93.30769230769232,"message":"Uploading backup 2M@2MBps (box)"}
      Oct 30 12:53:14 box:shell backup-snapshot/box (stdout): 2021-10-30T12:53:14.420Z box:backupupload upload completed. error: BoxError: Unable to chown:EINVAL: invalid argument, chown '/mnt/cloudronbackup/snapshot/box.tar.gz'
      at WriteStream.<anonymous> (/home/yellowtent/box/src/storage/filesystem.js:138:95)
      at WriteStream.emit (events.js:327:22)
      at finish (internal/streams/writable.js:657:10)
      at finishMaybe (internal/streams/writable.js:644:9)
      at internal/streams/writable.js:617:7
      at WriteStream._final (internal/fs/streams.js:355:3)
      at callFinal (internal/streams/writable.js:610:10)
      at processTicksAndRejections (internal/process/task_queues.js:80:21) {
      reason: 'External Error',
      details: {}
      Oct 30 12:53:14 box:backups runBackupUpload: result - {"result":"Unable to chown:EINVAL: invalid argument, chown '/mnt/cloudronbackup/snapshot/box.tar.gz'"}
      

      Cloudron was able to make a directory on the share, however, the owner of the file is «nobody».

      Is this somehow related to the permission settings on TrueNAS?

      Thanks in advance!

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

        @opensourced see this note - https://docs.cloudron.io/volumes/#nfs . By default, NFS will change everything which is root as nobody user. Do you have no_root_squash in your NFS options in the exports file? If you add that and remount it, I think it should work.

        O 1 Reply Last reply Reply Quote 0
        • O
          opensourced @girish last edited by

          @girish Thanks for the superfast reply! I checked the web and the TrueNAS Forum for a hint where I can change this setting. Didn't find it though. Do you have that information handy as well?

          jdaviescoates girish 2 Replies Last reply Reply Quote 0
          • jdaviescoates
            jdaviescoates @opensourced last edited by

            @opensourced does this help?

            https://www.golinuxcloud.com/unix-linux-nfs-mount-options-example/#NFS_exports_options_no_root_squash_example

            I use Cloudron with Gandi & Hetzner

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

              @opensourced Unfortunately, I have no idea about TrueNAS.

              1 Reply Last reply Reply Quote 0
              • Referenced by  O opensourced 
              • O
                opensourced @jdaviescoates last edited by

                @jdaviescoates So I took another approach and setup another vm running an nfs-server. With that advice i was ableto connect it to the cloudron.

                @girish Next to the main cloudron instance (which is paid plan), i do have another cloudron instance running (free plan). On this one I am not able to connect the same nfs share. Is that feature only working for paid plans?

                O 1 Reply Last reply Reply Quote 0
                • O
                  opensourced @opensourced last edited by

                  @opensourced nevermind, i figured it out! 🙂

                  girish E 2 Replies Last reply Reply Quote 1
                  • girish
                    girish Staff @opensourced last edited by

                    @opensourced ah good! as you figured out, we don't have any limitations related to backups on the free plan.

                    1 Reply Last reply Reply Quote 1
                    • E
                      Eismer @opensourced last edited by

                      @opensourced
                      Hello!

                      Is it possible, that you describe your way of connecting Cloudron with Truenas?

                      I'm using Cloudron on a VPS. In addition, I'm using TrueNAS at home. I want to use TrueNAS as backup space for Cloudron. Like you, I was thinking about NFS.

                      I'm wondering, if this connection is transport encrypted. Which port have you set in your firewall or are you using VPN? What user information have you set in TrueNAS?

                      I have experimented with Syncthing, to send my backups to Truenas. This works mostly fine. However, after a few days, I'm getting problems with permissions.

                      Greetings

                      Eismer

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB