【发布时间】:2020-12-11 16:58:07
【问题描述】:
我按照文档here 使用 snap 安装了rocket chat。
现在我正在尝试按照文档启用 SSL:Auto SSL with Snaps。但是,出现以下错误:
$ 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
相关库似乎存在于 snap 下。
有没有办法解决这个问题并使 caddy/https 工作?
系统:
- 树莓派 4 (aarch64)
- Linux ubuntu 5.4.0-1022-raspi
- Ubuntu 服务器 20.04.1 LTS
类似问题:
【问题讨论】:
标签: linux ubuntu raspberry-pi rocket.chat caddy