当前位置:论坛首页 > Linux面板 > 求助

【已解答】python项目管理器(版本1.9),经常自动暂停

发表在 Linux面板2022-1-8 17:23 [复制链接] 8 8209

查看日志,python项目也没有报错
WX20220108-172120.png
使用道具 举报 只看该作者 回复
发表于 2022-1-9 14:56:08 | 显示全部楼层
您好,截图看下日志哪里有没有显示
使用道具 举报 回复 支持 反对
发表于 2022-1-9 15:11:17 | 显示全部楼层
大炮运维V587 发表于 2022-1-9 14:56
您好,截图看下日志哪里有没有显示

日志没有报错,只有项目输出的内容。
我项目入口处也做了全局try,遇到错误也不会让程序整结束。顺便问下,日志可以清空吗?没找到按钮。
使用道具 举报 回复 支持 反对
发表于 2022-1-9 15:16:28 | 显示全部楼层
白桃鸡尾酒 发表于 2022-1-9 15:11
日志没有报错,只有项目输出的内容。
我项目入口处也做了全局try,遇到错误也不会让程序整结束。顺便问下 ...

日志的话,在下个版本会做个清理 的功能
使用道具 举报 回复 支持 反对
发表于 2022-1-14 14:22:28 | 显示全部楼层
大炮运维V587 发表于 2022-1-9 15:16
日志的话,在下个版本会做个清理 的功能

有没有什么方法,在面板里守护进程呢?或者可以检测到进程停止的
使用道具 举报 回复 支持 反对
发表于 2022-1-14 20:38:28 | 显示全部楼层
白桃鸡尾酒 发表于 2022-1-14 14:22
有没有什么方法,在面板里守护进程呢?或者可以检测到进程停止的

使用堡塔应用管理器 来进行进程守护

麻烦帮看一下问题:堡塔应用管理器管理PHP7.3的swoole项目,自动停止后,且不能自动启动,必须手动把端口进程杀了才能启动。  发表于 2023-2-17 15:46
使用道具 举报 回复 支持 反对
发表于 2023-2-17 15:45:51 | 显示全部楼层
堡塔应用管理器管理PHP7.3的swoole项目,自动停止后,且不能自动启动,必须手动把端口进程杀了才能启动。
异常日志:
Starting swoole http server...
Swoole http server started: <http://0.0.0.0:8324>
You can exit with `CTRL-C`
PHP Fatal error:  Uncaught think\exception\ErrorException: Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown:0
Stack trace:
#0 [internal function]: think\initializer\Error->appError(8192, 'Swoole\\Event::r...', 'Unknown', 0, NULL)
#1 [internal function]: Swoole\Event::rshutdown()
#2 {main}
  thrown in Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to a member function make() on null in /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php:25
Stack trace:
#0 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php(50): think\swoole\Manager->getPools()
#1 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Container.php(292): think\swoole\Manager->think\swoole\concerns\{closure}()
#2 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Container.php(356): think\Container->invokeFunction(Object(Closure), Array)
#3 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Event.php(260): think\Container->invoke(Object(Closure), Array)
#4 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Event.php(221): think\Event->dispatch(Object(Closure), Array)
#StartStarting swoole http server...
Swoole http server started: <http://0.0.0.0:8324>
You can exit with `CTRL-C`
PHP Fatal error:  Uncaught think\exception\ErrorException: Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown:0
Stack trace:
#0 [internal function]: think\initializer\Error->appError(8192, 'Swoole\\Event::r...', 'Unknown', 0, NULL)
#1 [internal function]: Swoole\Event::rshutdown()
#2 {main}
  thrown in Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to a member function make() on null in /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php:25
Stack trace:
#0 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php(50): think\swoole\Manager->getPools()
#1 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Container.php(292): think\swoole\Manager->think\swoole\concerns\{closure}()
#2 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Container.php(356): think\Container->invokeFunction(Object(Closure), Array)
#3 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Event.php(260): think\Container->invoke(Object(Closure), Array)
#4 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/framework/src/think/Event.php(221): think\Event->dispatch(Object(Closure), Array)
#5 /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/WithApplication.php(45): think\Event->trigger('swoole.workerEr...', Array)
#6 /www/wwwroot/wxyp in /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php on line 25


                                                                                                                                                               
  [think\exception\ErrorException]                                                                                                                              
  Uncaught Error: Call to a member function make() on null in /www/wwwroot/wxypc.cdljy.net/vendor/topthink/think-swoole/src/concerns/InteractsWithPools.php:25  
  Stack trace:                                                                                                                                                  
  #0 /www/wwwrStaStarting swoole http server...
Swoole http server started: <http://0.0.0.0:8324>
You can exit with `CTRL-C`
P
使用道具 举报 回复 支持 反对
发表于 2023-3-10 15:12:53 | 显示全部楼层
cc2xxc 发表于 2023-2-17 15:45
堡塔应用管理器管理PHP7.3的swoole项目,自动停止后,且不能自动启动,必须手动把端口进程杀了才能启动。
...

您好,宝塔应用管理器已经不再维护了,您可以试试进程守护管理器看看还有没有这个问题。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表