I have installed unison-jz via snap on a Raspberry Pi and UnbuntuServer 20.04 and I have hit a problem. I reported on the unison forum but the feeling was that it is a snap issue. Here are the details -
I went through the tests in the unison manual, both worked fine for local tests but when I try the remote tests I see many warning messages but it seems to work from Pi to UbuntuServer, but UbuntuServer to Pi fails
pi@pi-test:~ $ ssh mick@192.168.1.16 unison-jz.unison -version
mick@192.168.1.16’s password:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Documents’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Desktop’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Downloads’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Music’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Pictures’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Videos’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Templates’: No such file or directory
unison version 2.51.2 (ocaml 4.02.3)
pi@pi-test:~ $
mick@vb-ubuntu:~$ ssh pi@pi-test-wifi unison-jz.unison -version
pi@pi-test-wifi’s password:
bash: unison-jz.unison: command not found
mick@vb-ubuntu:~$
But it is installed on the Pi -
pi@pi-test:~ $ unison-jz.unison -version
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
unison version 2.51.2 (ocaml 4.02.3)
pi@pi-test:~ $
Thanks for the reply, that has got me a bit further forward, however it fails at the next step. I have tried from Pi to server and from server to Pi, but both fail with different error messages -
pi@pi-test:~ $ /snap/bin/unison-jz.unison testu/ ssh://mick@192.168.1.16//home/mick/testu/
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
Unison 2.51.2 (ocaml 4.02.3): Contacting server…
ERROR: ld.so: object ‘/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so’ from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored. mick@192.168.1.16’s password:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
bash: unison: command not found
Fatal error: Lost connection with the server
pi@pi-test:~ $
mick@vb-ubuntu:~$ /snap/bin/unison-jz.unison testu ssh://pi@192.168.1.102//home/pi/mick/testu
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Documents’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Desktop’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Downloads’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Music’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Pictures’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Videos’: No such file or directory
ln: failed to create symbolic link ‘/home/mick/snap/unison-jz/19/snap/unison-jz/19/Templates’: No such file or directory
Unison 2.51.2 (ocaml 4.02.3): Contacting server…
Fatal error: Lost connection with the server
mick@vb-ubuntu:~$
the libarmmem warnings are harmless and are caused by a gross LD_PRELOAD hack raspbian applies to their images, you can just ignore them, (or fix /etc/ld.so.preload to not forcefully pre-load that lib for every binary), they will not have any impact on functionality …
ogra, the problems persisted beyond the stated problem. Hence why Mick stated “got me a bit further forward, however it fails at the next step”, which was my observation too. There seems to be something malformed for Raspberry Pi in this Snap package which is beyond my pay grade or time commitment. It appears to work correctly on my Ubuntu box.
Rather than delve into the headaches which are Snaps, I was able to get Unison working on Raspberry Pi by using apt for ocaml versions and compiling Unison from source.