1Panel
1Panel copied to clipboard
[BUG] 网站相关操作会提示超时
联系方式
1Panel 版本
v1.10.2-lts
问题描述
OpenResty相关操作都提示超时
重现步骤
- 新建一个反代"A",提示超时,刷新页面有"A"未创建成功,之后所有网站都失效了,查看日志发现是"A"找不到日志文件,删除"A"的conf文件后重启openresty,其他网站恢复正常。
- 新建一个反代"B",依然提示超时,但刷新页面后,"B"正常启动了。
- 为"B"开启HTTPS点击保存后等待一段时间提示操作超时,无法开启HTTPS。
- 查看日志发现了如下日志。
2024/04/13 15:02:53 [notice] 1#1: signal 1 (SIGHUP) received from 108, reconfiguring
2024/04/13 15:02:53 [notice] 1#1: reconfiguring
- 尝试修改OpenResty的Nginx配置,也提示超时。
期待的正确结果
No response
相关日志输出
No response
附加信息
No response
感谢反馈,我们先在本地环境复现一下上述问题。
从启动到执行超时的操作的日志如下
2024/04/13 20:05:11 [notice] 1#1: using the "epoll" event method
2024/04/13 20:05:11 [notice] 1#1: openresty/1.21.4.3
2024/04/13 20:05:11 [notice] 1#1: built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
2024/04/13 20:05:11 [notice] 1#1: OS: Linux 6.1.0-18-amd64
2024/04/13 20:05:11 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/04/13 20:05:11 [notice] 1#1: start worker processes
2024/04/13 20:05:11 [notice] 1#1: start worker process 7
2024/04/13 20:05:11 [notice] 1#1: start worker process 8
2024/04/13 20:05:11 [notice] 1#1: start worker process 9
2024/04/13 20:05:11 [notice] 1#1: start worker process 10
2024/04/13 20:05:11 [notice] 1#1: start worker process 11
2024/04/13 20:05:11 [notice] 1#1: start worker process 12
2024/04/13 20:05:11 [notice] 1#1: start worker process 13
2024/04/13 20:05:11 [notice] 1#1: start worker process 14
2024/04/13 20:05:11 [notice] 1#1: start cache manager process 15
2024/04/13 20:05:11 [notice] 1#1: start cache loader process 16
2024/04/13 20:05:24 [notice] 1#1: using the "epoll" event method
2024/04/13 20:05:24 [notice] 1#1: openresty/1.21.4.3
2024/04/13 20:05:24 [notice] 1#1: built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
2024/04/13 20:05:24 [notice] 1#1: OS: Linux 6.1.0-18-amd64
2024/04/13 20:05:24 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/04/13 20:05:24 [notice] 1#1: start worker processes
2024/04/13 20:05:24 [notice] 1#1: start worker process 7
2024/04/13 20:05:24 [notice] 1#1: start worker process 8
2024/04/13 20:05:24 [notice] 1#1: start worker process 9
2024/04/13 20:05:24 [notice] 1#1: start worker process 10
2024/04/13 20:05:24 [notice] 1#1: start worker process 11
2024/04/13 20:05:24 [notice] 1#1: start worker process 12
2024/04/13 20:05:24 [notice] 1#1: start worker process 13
2024/04/13 20:05:24 [notice] 1#1: start worker process 14
2024/04/13 20:05:24 [notice] 1#1: start cache manager process 15
2024/04/13 20:05:24 [notice] 1#1: start cache loader process 16
// 这里执行了修改Nginx配置的操作,提示超时后出现如下日志
2024/04/13 20:06:34 [notice] 16#16: http file cache: /www/common/proxy/proxy_cache_dir 6.621M, bsize: 4096
2024/04/13 20:06:35 [notice] 1#1: signal 17 (SIGCHLD) received from 16
2024/04/13 20:06:35 [notice] 1#1: cache loader process 16 exited with code 0
2024/04/13 20:06:35 [notice] 1#1: signal 29 (SIGIO) received
当我禁用proxy cache后各种操作依然会出现超时,以在页面上修改Nginx配置为例
2024/04/13 20:27:06 [notice] 1#1: using the "epoll" event method
2024/04/13 20:27:06 [notice] 1#1: openresty/1.21.4.3
2024/04/13 20:27:06 [notice] 1#1: built by gcc 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
2024/04/13 20:27:06 [notice] 1#1: OS: Linux 6.1.0-18-amd64
2024/04/13 20:27:06 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/04/13 20:27:06 [notice] 1#1: start worker processes
2024/04/13 20:27:06 [notice] 1#1: start worker process 7
2024/04/13 20:27:06 [notice] 1#1: start worker process 8
2024/04/13 20:27:06 [notice] 1#1: start worker process 9
2024/04/13 20:27:06 [notice] 1#1: start worker process 10
2024/04/13 20:27:06 [notice] 1#1: start worker process 11
2024/04/13 20:27:06 [notice] 1#1: start worker process 12
2024/04/13 20:27:06 [notice] 1#1: start worker process 13
2024/04/13 20:27:06 [notice] 1#1: start worker process 14
// 这里在页面上修改了Nginx配置,超时后出现如下日志
2024/04/13 20:28:08 [notice] 1#1: signal 1 (SIGHUP) received from 21, reconfiguring
2024/04/13 20:28:08 [notice] 1#1: reconfiguring
2024/04/13 20:28:08 [notice] 1#1: using the "epoll" event method
2024/04/13 20:28:08 [notice] 1#1: start worker processes
2024/04/13 20:28:08 [notice] 1#1: start worker process 27
2024/04/13 20:28:08 [notice] 1#1: start worker process 28
2024/04/13 20:28:08 [notice] 1#1: start worker process 29
2024/04/13 20:28:08 [notice] 1#1: start worker process 30
2024/04/13 20:28:08 [notice] 1#1: start worker process 31
2024/04/13 20:28:08 [notice] 1#1: start worker process 32
2024/04/13 20:28:08 [notice] 1#1: start worker process 33
2024/04/13 20:28:08 [notice] 1#1: start worker process 34
2024/04/13 20:28:28 [notice] 7#7: gracefully shutting down
2024/04/13 20:28:28 [notice] 8#8: gracefully shutting down
2024/04/13 20:28:28 [notice] 9#9: gracefully shutting down
2024/04/13 20:28:28 [notice] 8#8: exiting
2024/04/13 20:28:28 [notice] 9#9: exiting
2024/04/13 20:28:28 [notice] 13#13: gracefully shutting down
2024/04/13 20:28:28 [notice] 12#12: gracefully shutting down
2024/04/13 20:28:28 [notice] 13#13: exiting
2024/04/13 20:28:28 [notice] 12#12: exiting
2024/04/13 20:28:28 [notice] 7#7: exiting
2024/04/13 20:28:28 [notice] 10#10: gracefully shutting down
2024/04/13 20:28:28 [notice] 11#11: gracefully shutting down
2024/04/13 20:28:28 [notice] 11#11: exiting
2024/04/13 20:28:28 [notice] 10#10: exiting
2024/04/13 20:28:28 [notice] 14#14: gracefully shutting down
2024/04/13 20:28:28 [notice] 14#14: exiting
2024/04/13 20:28:28 [notice] 1#1: signal 17 (SIGCHLD) received from 13
2024/04/13 20:28:28 [notice] 1#1: worker process 13 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: signal 29 (SIGIO) received
2024/04/13 20:28:28 [notice] 1#1: signal 17 (SIGCHLD) received from 12
2024/04/13 20:28:28 [notice] 1#1: worker process 7 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: worker process 10 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: worker process 12 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: signal 29 (SIGIO) received
2024/04/13 20:28:28 [notice] 1#1: signal 17 (SIGCHLD) received from 14
2024/04/13 20:28:28 [notice] 1#1: worker process 14 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: signal 29 (SIGIO) received
2024/04/13 20:28:28 [notice] 1#1: signal 17 (SIGCHLD) received from 9
2024/04/13 20:28:28 [notice] 1#1: worker process 8 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: worker process 9 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: worker process 11 exited with code 0
2024/04/13 20:28:28 [notice] 1#1: signal 29 (SIGIO) received
经过几次测试,感觉应该不是OpenResty的问题,因为手动修改nginx的配置文件,然后在openresty容器里执行openresty -s reload后修改的配置是可以正常生效的。
出现 请求超时!请您稍后重试 后浏览器里可以看到Error:xxxx.com-1713077628234.log
提示超时 可能是因为从请求到执行 reload 命令的时间过长 考虑可能是 1. 服务器网络响应时间长 2.服务器配置太低
提示超时 可能是因为从请求到执行 reload 命令的时间过长 考虑可能是 1. 服务器网络响应时间长 2.服务器配置太低
可以排除服务器配置低,我手动执行reload非常快就操作完成了。
网络响应这个,我是在局域网环境下操作的,用域名访问和ip访问都超时。
之前一直是好的,某一天突然变成这样的。
建议能在面板里加一个调试模式选项,开启后多打印些log。
提示超时 可能是因为从请求到执行 reload 命令的时间过长 考虑可能是 1. 服务器网络响应时间长 2.服务器配置太低
可以排除服务器配置低,我手动执行reload非常快就操作完成了。
网络响应这个,我是在局域网环境下操作的,用域名访问和ip访问都超时。
之前一直是好的,某一天突然变成这样的。
建议能在面板里加一个调试模式选项,开启后多打印些log。
可以尝试用 docker exec 来执行 nginx reload
提示超时 可能是因为从请求到执行 reload 命令的时间过长 考虑可能是 1. 服务器网络响应时间长 2.服务器配置太低
可以排除服务器配置低,我手动执行reload非常快就操作完成了。 网络响应这个,我是在局域网环境下操作的,用域名访问和ip访问都超时。 之前一直是好的,某一天突然变成这样的。 建议能在面板里加一个调试模式选项,开启后多打印些log。
可以尝试用 docker exec 来执行 nginx reload
用docker exec执行reload是没有问题的,很快就执行完成了,配置也能如预期一样正常工作。 现在问题就出现在网站页面上的操作,必超时。现在我加个网站或改个配置都要手动操作了。。。