Freenas backup via duplicity in a jail. Backendexception init "memset_s". [solved via workaround]

Hi,

i hope this is the right category to post this under.

i am trying to backup my files using duplicity in a jail under freenas.
I set up a default freebsd jail.
“jexec 1 csh” into it.
Installed duplcitiy via “pkg install duplicity”.
Now im trying to test if it works

duplicity testFolder scp://[email protected]//mnt/Backup/bak

and i get the following error:

BackendException: Could not initialize backend: /usr/local/lib/libsodium.so.23: Undefined symbol “memset_s”

anyone any idea?

Thank you :slight_smile:

I switched from scp to rsync after instaling rsync. And now it works.

looks like this now:
duplicity testFolder rsync://[email protected]//mnt/Backup/bak

SCP still throws the same exception.

I found this thread:

https://redmine.ixsystems.com/issues/27247

And from the freebsd page:

It seems to revolve around sudo. So my shot in the dark here is that if your users doesn’t have access to those directories without using sudo then when it tries to call the PAM module its not understanding what they symbols are because freenas runs behind freebsd so it might not have the most recent binaries that the updated ports package is looking for.

wow. thank you for that!
And thank you for searching! :slight_smile:

i found something similar, and my shot in the dark was the same ^^
i tried running it as root. But the same error appears.

With rsync instead of scp it works fine though. Since i want to use rsync anyway it is not a problem.
Still curious though. So i will test again after an update to confirm the above theory.