Halo使用中的一些调试经验

Amfe
Amfe
发布于 2025-08-03 / 101 阅读
0
0

问题1:插件 服务器内部发生错误,请稍候再试。

比如我想在应用市场更新这个插件,点击更新后是这样,在转圈,显示更新中。

过了几十秒报错,没更新成功:

会弹出提示框:

服务器内部发生错误,请稍候再试。

Request failed with status code 500

halo的日志如下:

halo-log-2025-08-03 18_48.log

日志里面最后有一段:

Caused by: io.netty.channel.ConnectTimeoutException: connection timed out after 30000 ms: halo-store-
assets.031150231bf47fe490654f9e3d11f01d.r2.cloudflarestorage.com/162.159.141.50:443

于是我就尝试用服务器去ping 这个网址,结果如下:

user@server:~# ping halo-store-assets.031150231bf47fe490654f9e3d11f01d.r2.cloudflarestorage.com
PING halo-store-assets.031150231bf47fe490654f9e3d11f01d.r2.cloudflarestorage.com(2606:4700:7::12e (2606:4700:7::12e)) 56 data bytes
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=1 ttl=55 time=306 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=2 ttl=55 time=226 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=3 ttl=55 time=249 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=4 ttl=55 time=272 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=5 ttl=55 time=295 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=6 ttl=55 time=192 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=7 ttl=55 time=237 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=8 ttl=55 time=260 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=9 ttl=55 time=283 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=10 ttl=55 time=204 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=11 ttl=55 time=227 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=12 ttl=55 time=249 ms
64 bytes from 2606:4700:7::12e (2606:4700:7::12e): icmp_seq=13 ttl=55 time=272 ms
--- halo-store-assets.031150231bf47fe490654f9e3d11f01d.r2.cloudflarestorage.com ping statistics ---
13 packets transmitted, 13 received, 0% packet loss, time 12014ms
rtt min/avg/max/mdev = 192.096/251.745/305.775/32.766 ms

好像也正常,我的服务器网络连接是通畅的。

问题2:邮箱通知Failed to send email, please check your email configuration

Halo在设置邮箱通知的时候,不论自己试什么方法,什么邮箱,永远报错:

 Failed to send email, please check your email configuration

以上问题的解决方案

这里我们:

1.先关闭部署HALO的服务器上的VPN服务。

2.重启一下服务就好了,比如我是用docker 安装的Halo,我就重启docker就可以了,我猜网络配置问题。


# 重启 Docker 服务
sudo systemctl restart docker

# 检查服务状态
sudo systemctl status docker


评论