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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Cloudron Backups on TrueNAS NFS mount

Cloudron Backups on TrueNAS NFS mount

Scheduled Pinned Locked Moved Solved Support
nfsbackup
9 Posts 4 Posters 1.9k 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.
    • O Offline
      O Offline
      opensourced
      wrote on last edited by girish
      #1

      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!

      girishG 1 Reply Last reply
      0
      • O opensourced

        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!

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @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
        0
        • girishG girish

          @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 Offline
          O Offline
          opensourced
          wrote on last edited by
          #3

          @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?

          jdaviescoatesJ girishG 2 Replies Last reply
          0
          • O opensourced

            @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?

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #4

            @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
            0
            • O opensourced

              @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?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @opensourced Unfortunately, I have no idea about TrueNAS.

              1 Reply Last reply
              0
              • O opensourced referenced this topic on
              • jdaviescoatesJ jdaviescoates

                @opensourced does this help?

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

                O Offline
                O Offline
                opensourced
                wrote on last edited by
                #6

                @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
                0
                • O opensourced

                  @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 Offline
                  O Offline
                  opensourced
                  wrote on last edited by
                  #7

                  @opensourced nevermind, i figured it out! 🙂

                  girishG E 2 Replies Last reply
                  1
                  • O opensourced

                    @opensourced nevermind, i figured it out! 🙂

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

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

                    1 Reply Last reply
                    1
                    • O opensourced

                      @opensourced nevermind, i figured it out! 🙂

                      E Offline
                      E Offline
                      Eismer
                      wrote on last edited by
                      #9

                      @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
                      0
                      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