Borg stopped working after update to 24.10.0.2

I use borg to make a weekly back of my containers directory and send it to backblaze with a cloudsync job. It’s a very simple script that runs before the job and then it sends the repo remotely.

I used to make borg work by downloading the binary and then overriding the TMPDIR to something like /mnt/tmp as borg will not work without setting a writable tmp dir.

It worked great so far, however it stopped working after I’ve upgraded to 24.10.0.2 for some reason. The error is the same as if I hadn’t set up the TMPDIR:

root@truenas[/mnt/zfspool/backup]# /mnt/zfspool/backup/borg -V
/mnt/zfspool/backup/borg: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Any idea what could have changed? My setup is pretty simple, if I can avoid having to run borg in a container I would.

Adding here that I solved this as it seems that the /mnt/tmp was not working anymore, probably due to missing exec functionality in the mount. If I move it to somewhere else in the pool, like /mnt/zfspool/backup/tmp it does work.

Can you please expand upon this? I’m getting the same error and not sure how I should set this up? (Basically what are the requirements here?)

Belay that…I figured out what you were saying. Thanks for the tip.

Little late, but in my case, it was due to /tmp having noexec set as roger mentioned, so the solution was to set up my own tmp directory and override it as follows:

sudo TMPDIR=/mnt/tank/Borg/tmp /mnt/tank/Borg/bin/borg

@AJWeber