全新安装AlmaLinux/Debian后Webmin持续加载无法进入登录界面问题
Webmin 加载异常排查记录
我近期搭建了一台运行AlmaLinux 9.2的VPS,安装了Webmin、Apache及dotnet runtime。除Webmin外其余组件均正常运行,但Webmin出现异常:接受SSL证书警告后,页面一直处于加载状态,无法进入登录界面。此问题在任意设备、浏览器及网络环境下均出现,仅使用移动数据(手机浏览器或电脑共享手机网络)时可正常访问。
已执行的排查步骤
- 防火墙排查:停止并禁用firewalld(iptables)及fail2ban,确认无其他防火墙运行,问题仍存在;完全重装系统(尝试过AlmaLinux 9.2和Debian11)后仅安装Webmin,问题依旧。
- 端口排查:停止Webmin与Apache,将Apache改为使用10000端口,可正常访问默认页面;将Webmin改为使用443端口,问题仍存在,排除端口本身故障。
- 流量排查:在服务器执行
ngrep -W byline -d any port 10000 -q,可见流量到达服务器且有响应返回;客户端通过Wireshark确认无双向阻塞。 - 其他尝试:禁用SSL、安装旧版本Webmin,问题均未解决。
Webmin 配置文件
port=10000 addtype_cgi=internal/cgi realm=Webmin Server logfile=/var/webmin/miniserv.log errorlog=/var/webmin/miniserv.error pidfile=/var/webmin/miniserv.pid logtime=168 ssl=1 no_ssl2=1 no_ssl3=1 ssl_honorcipherorder=1 no_sslcompression=1 env_WEBMIN_CONFIG=/etc/webmin env_WEBMIN_VAR=/var/webmin atboot=1 logout=/etc/webmin/logout-flag listen=10000 denyfile=\.pl$ log=1 blockhost_failures=5 blockhost_time=1 syslog=1 ipv6=1 session=1 premodules=WebminCore userfile=/etc/webmin/miniserv.users keyfile=/etc/letsencrypt/live/c3.cloudthewolf.com/privkey.pem certfile=/etc/letsencrypt/live/c3.cloudthewolf.com/fullchain.pem passwd_file=/etc/shadow passwd_uindex=0 passwd_pindex=1 passwd_cindex=2 passwd_mindex=4 passwd_mode=0 preroot=authentic-theme passdelay=1 cipher_list_def=1 logout_script=/etc/webmin/logout.pl failed_script=/etc/webmin/failed.pl login_script=/etc/webmin/login.pl error_handler_404=404.cgi error_handler_403=403.cgi error_handler_401=401.cgi nolog=\/stats\.cgi\?xhr\-stats\=general alwaysresolve=1 libwrap= trust_real_ip=1 sockets=*:8080 no_resolv_myname=0
补充排查信息
通过netstat查看连接状态,发现连接卡在FIN_WAIT1状态:
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 929/perl off (0.00/0/0) tcp 1 6539 66.59.210.237:10000 82.2.116.152:58890 CLOSING - on (5.60/5/0) tcp 0 6486 66.59.210.237:10000 82.2.116.152:58889 FIN_WAIT1 - on (6.18/5/0) tcp 0 0 66.59.210.237:10000 82.2.116.152:58892 ESTABLISHED 5286/perl off (0.00/0/0) udp 0 0 0.0.0.0:10000 0.0.0.0:* 929/perl off (0.00/0/0)
内容的提问来源于stack exchange,提问作者CloudTheWolf
相关产品推荐
相关产品推荐

