swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 786 forks source link

访问TaskController出现错误 #280

Closed xt99857 closed 6 years ago

xt99857 commented 6 years ago
Q A
Bug report? yes
Feature request? yes
Swoft version 2018-04-05
Swoole version 2.2.0
PHP version PHP 7.1.18 (cli) (built: May 25 2018 19:18:59) ( NTS )
Runtime environment Mac

Details

2018/06/13 10:22:32 [DEBUG] [HttpServer] [WorkerId:0] [CoId:25] GET /task/co 
2018/06/13 10:22:32 [DEBUG] [Application] [WorkerId:1] Trigger the event beforeTask 
2018/06/13 10:22:32 [DEBUG] [Application] [WorkerId:1] Trigger the event resourceReleaseBefore 
2018/06/13 10:22:32 [DEBUG] [Application] [WorkerId:1] Trigger the event resourceRelease 
PHP Fatal error:  go(): can't use async-io in task process. in /Workspace/swoole-swoft/vendor/swoft/framework/src/Log/FileHandler.php on line 79

Fatal error: go(): can't use async-io in task process. in /Workspace/swoole-swoft/vendor/swoft/framework/src/Log/FileHandler.php on line 79
2018/06/13 10:22:33 [DEBUG] [Application] [WorkerId:1] Trigger the event applicationLoader 
Children process start successful. PID 97588, Worker Id 1, Role Task
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event resourceReleaseBefore 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event resourceRelease 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event afterRequest 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event beforeRequest 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event resourceReleaseBefore 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event resourceRelease 
2018/06/13 10:22:35 [DEBUG] [Application] [WorkerId:0] Trigger the event afterRequest 
2018/06/13 10:27:48 [DEBUG] [Application] [WorkerId:0] Trigger the event beforeRequest 

测试框架自带例子时出现异常 swoole.log

[2018-06-13 10:27:49 ^97588.1]  ERROR   zm_deactivate_swoole (ERROR 503): Fatal error: go(): can't use async-io in task process. in /Workspace/swoole-swoft/vendor/swoft/framework/src/Log/FileHandler.php on line 79.
[2018-06-13 10:27:49 $97551.0]  WARNING swManager_check_exit_status: worker#1 abnormal exit, status=255, signal=0
huangzhhui commented 6 years ago

swoft/framework 请更新至 1.0.19 以上

xt99857 commented 6 years ago

更新后正常了,谢谢。

xt99857 commented 6 years ago

更新后正常了。谢谢🙏在 2018年6月13日,上午10:43,黄朝晖 notifications@github.com 写道:swoft/framework 请更新至 1.0.19 以上—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.