Cloudron Backups on TrueNAS NFS mount
-
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!
-
@opensourced see this note - https://docs.cloudron.io/volumes/#nfs . By default, NFS will change everything which is
root
asnobody
user. Do you haveno_root_squash
in your NFS options in the exports file? If you add that and remount it, I think it should work. -
-
@opensourced Unfortunately, I have no idea about TrueNAS.
-
-
@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?
-
@opensourced nevermind, i figured it out!
-
@opensourced ah good! as you figured out, we don't have any limitations related to backups on the free plan.
-
@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