Xen Orchestra: Encryption not working with NFS remotes

Has some working encrypted NFS Remotes for Xen Orchestra (compiled from sources) backup?

I cannot get this to work with encryption. (XCP-ng 8.2.1, XO commit 78ae1 -which is latest at this moment)

NFS remotes do work fine for me in XO without encryption and with “Store backup as multiple data blocks instead of a whole VHD file.” enabled.

When I use an encryption key (32 characters, also tried with hexadecimal characters (0-9,a-f) only) I get this error:

“message”: “ENOENT: no such file or directory, open ‘/run/xo-server/mounts/…etc…/metadata.json’”

If someone knows how to do this without this error, please let me know how you set it up.

Does your remote work without encryption?

yes, see original post

Yep my fault I missed that. Are you updating the original configuration or are you modifying an existing backup configuration? If modifying existing, try to completely remove the job and recreate it.

I tried both, the result is the same.

Do you have working encryption on a NFS Remote?

Yes, I have encryption and the multiple data block enabled. You might need to make sure your NFS directory has nothing in it when you set this up.

the NFS share is empty. that is not the problem.

Sounds like there is some configuration issue on your end. I am not running into any issues on the same commit as you. If no one else here has any more suggestions you might hit up the xcp-ng forums.

At least good to know that this is not broken per se.

may I ask, are you using XO (from sources) or are you using XOA?

I am using the source. I am using the same commit as you.

OK thanks. just for curiosity I’ll try another target OS for the remote. now it is unraid. if it works with truenas, that doesn’t solve my problem, but it may give new hints.

@xMAXIMUSx I got this figured out.

This is a problem specific to unRAID disk shares (NFS). The problem does not exist for unRAID user shares (NFS) or TrueNAS NFS shares.