好家伙,电脑每一次重启都要提着心、吊着胆,生怕开机后某个软件运行异常,尤其是Seafile,毕竟担负着重要文件同步备份的重担。
但怕啥来啥,开机就看到系统栏图标上有一个类似小叹号的玩意,打开一看无法获取文件列表,退出后重新登陆提示“Network error: SSL handshake failed ”,但Web端、Pad和手机客户端一切正常。查看Log文件"applet.log
":
[10/14/2021 08:53:46 PM][Rpc Client] connected to daemon
*注:敏感信息以“***”代替,下同。
[10/14/2021 08:53:46 PM][Rpc Client] connected to daemon
[10/14/2021 08:53:47 PM]Starting the network status detector
[10/14/2021 08:53:47 PM][AutoUpdateManager] cancel all download tasks
[10/14/2021 08:53:47 PM][AutoUpdateManager] clean file caches db
[10/14/2021 08:53:47 PM][AutoUpdateManager] clean file caches
[10/14/2021 08:53:47 PM]starting applet rpc service
[10/14/2021 08:53:47 PM]applet rpc service started
[10/14/2021 08:53:47 PM]Relogin to account ***@sunlei.net
[10/14/2021 08:53:47 PM]the certificate for https://***.sunlei.net/api2/server-info/ is null
[10/14/2021 08:53:47 PM][network detector] got a network failure
[10/14/2021 08:53:47 PM][api] network error for https://***.sunlei.net/api2/server-info/: SSL handshake failed
电脑终端运行:
curl https://***.sunlei.net/api2/server-info/
显示:
curl: (60) SSL certificate problem: certificate has expired
但登录服务器查看证书并未到期,强制更新后仍然提示证书已过期。然后又是百度又是谷歌捣鼓了一个多小时,终于在https://community.letsencrypt.org/t/problem-with-certificate-has-expired/161013找到了解决方法:简单修改一个 “fullchain.pem
” 文件即可。
登录服务器,编辑“fullchain.pem
” 文件:
sudo nano /etc/letsencrypt/live/sunlei.net/fullchain.pem
删除最后一个 “CERTIFICATE” 后,重启Web服务器:
sudo systemctl restart apache2.service
最后,在电脑端再次登录Seafile,成功。