/usr/lib64/sasl2 报错解决办法

今天,抽空更新了更新了v11.0.13版本,发现启动时Seahub服务报错。

系统环境: Debian

报错现象:

  1. 服务启动后,可以正常访问系统,但Seahub日志启动错误。
  2. 实测这个错误,会导致WebDAV功能异常。
Dec 17 11:51:10 seafile-debain seahub.sh[632]: Seahub is started
Dec 17 11:51:10 seafile-debain seahub.sh[632]: Done.
Dec 17 11:51:10 seafile-debain systemd[1]: Finished Seafile Seahub.
Dec 17 11:51:25 seafile-debain python3[689]: looking for plugins in '/usr/lib64/sasl2', failed to open directory, error: No such file or directory
Dec 17 11:51:25 seafile-debain python3[688]: looking for plugins in '/usr/lib64/sasl2', failed to open directory, error: No such file or directory

解决办法:

  1. 检查 SASL 库是否已安装:
sudo apt-get install libsasl2-2
  1. 检查程序路径是否存在:
cd  /usr/lib64/sasl2
  1. 创建软连接:适用于/usr/lib64/sasl2目录不存在,但是/usr/lib/x86_64-linux-gnu/sasl2目录存在情况。
ln -sfn /usr/lib/x86_64-linux-gnu/sasl2/ /usr/lib64/sasl2
  1. 重启服务,检查启动日志:
systemctl restart seahub.service
systemctl status seahub.service