我按照这里的文档使用snap安装了rocket chat。
现在,我正试图按照以下文档启用SSL:带快照的自动SSL。但是,出现以下错误:
$ sudo snap set rocketchat-server https=enable
error: cannot perform the following tasks:
- Run configure hook of "rocketchat-server" snap (run hook "configure":
-----
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 <my_domain_name>, check your DNS configuration, disabling https ...
-----)
检查ldd
对dig
的说明,我发现很少有其他库也没有找到:
$ ldd /snap/rocketchat-server/current/usr/bin/dig
linux-vdso.so.1 (0x0000ffff98afc000)
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 (0x0000ffff98a71000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff98900000)
/lib/ld-linux-aarch64.so.1 (0x0000ffff98acc000)
因此,检查libdns.so
是否存在。
$ locate libdns.so
/snap/rocketchat-server/1437/usr/lib/aarch64-linux-gnu/libdns.so.162
/snap/rocketchat-server/1437/usr/lib/aarch64-linux-gnu/libdns.so.162.1.3
/usr/lib/aarch64-linux-gnu/libdns.so.1601
/usr/lib/aarch64-linux-gnu/libdns.so.1601.0.0
相关库似乎存在于快照下。
有没有办法解决这个问题,让caddy/https正常工作?
系统:
- 树莓派4(aarch64(
- Linux ubuntu 5.4.0-1022-raspi
- Ubuntu服务器20.04.1 LTS
类似问题:
- dig:加载共享库时出错:libdns.so.162:无法打开共享对象文件:没有这样的文件或目录
- dig和nslookup的共享库
尝试在文件系统中进行库的软链接
ln -s /snap/rocketchat-server/1437/usr/lib/aarch64-linux-gnu/libdns.so.162 /lib
或者安装dns-utils,它应该将丢失的lib添加到您的系统中。