have the following problem here, already posted it in the RocketChat support channels and got directed here.
So I’m trying to set up RocketChat with the official snap on an Odroid N2 with aarch64/arm64, Ubuntu MATE 18.04. That did work so far, but I’m getting a suspicious error about SELinux, see below.
The problem I’m facing is that when trying to set up https like in the official guide, it fails at the following step:
$ sudo snap set rocketchat-server https=enable error: cannot perform the following tasks: - Run configure hook of "rocketchat-server" snap (run hook "configure": ----- cmd_run.go:884: WARNING: cannot create user data directory: failed to verify SELinux context of /root/snap: exec: "matchpathcon": executable file not found in $PATH dig: error while loading shared libraries: libdns.so.162: cannot open shared object file: No such file or directory Error: Can't resove DNS query for <server DNS name>, check your DNS configuration, disabling https ... -----)
That looks like dig in
/snap/rocketchat-server/1376/usr/bin/dig can’t find the libdns.so.162 in
/snap/rocketchat-server/1376/usr/lib/aarch64-linux-gnu/libdns.so.162 (and likely none of the other libraries too):
$ ldd /snap/rocketchat-server/1376/usr/bin/dig shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory linux-vdso.so.1 (0x0000007f83ecf000) libdns.so.162 => not found liblwres.so.141 => not found libbind9.so.140 => not found libisccfg.so.140 => not found libisc.so.160 => not found libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f83e32000) libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f83cd9000) /lib/ld-linux-aarch64.so.1 (0x0000007f83ea4000)
What could be the problem here? Is this all caused by the SELinux environment being broken, or are they separate errors? I’ll be happy to add further details.
Aaron Ogle from the RocketChat team could fill in any details about the snap itself if needed, he told me.
Thanks in advance for any help.