辛烷是安装在路虎,而跟随官方指南,在Ubuntu 18.04服务器上。在服务器启动之前,每个步骤都按预期工作:
php artisan octane:start --server=roadrunner --port=8181
然后,接收一个错误,命令退出。完整的堆栈跟踪附后:
INFO Server running…
Local: http://127.0.0.1:8181
Press Ctrl+C to stop the server
INFO [INFO] RoadRunner server started; version: 2.6.3, buildtime: 2021-12-03T11:37:00+0000
PHP Warning: require(/path/vendor/bin/bootstrap.php): Failed to open stream: No such file or directory in /path/vendor/bin/roadrunner-worker on line 18
PHP Fatal error: Uncaught Error: Failed opening required '/path/vendor/bin/bootstrap.php' (include_path='.:/usr/share/php') in /path/vendor/bin/roadrunner-worker:18
Stack trace:
#0 {main}
thrown in /path/vendor/bin/roadrunner-worker on line 18
INFO error occurred: WorkerAllocate:
INFO goridge_frame_receive: EOF, plugin: http.Plugin
ERROR 2021-12-07T12:01:53.048Z ERROR container/poller.go:16 vertex got an error {"id": "http.Plugin", "error": "WorkerAllocate:\n\tgoridge_frame_receive: EOF"}
ERROR github.com/spiral/endure/pkg/container.(*Endure).poll.func1
ERROR github.com/spiral/endure@v1.0.10/pkg/container/poller.go:16
ERROR handle_serve_command: WorkerAllocate:
ERROR goridge_frame_receive: EOF因为路虎是基于go的,所以对于如何在错误中导航,我没有太多的见解。如果有人曾经解决过这个问题,请告诉我,谢谢。
发布于 2022-01-09 20:08:39
您应该修复所有像这样的警告:PHP Warning: require(/path/vendor/bin/bootstrap.php): Failed to open stream: No such file or directory in /path/vendor/bin/roadrunner-worker on line 18
这些警告出现在stdout中,但是stdout被用作与RR通信的进程fd。这意味着,如果在RR初始化所有进程(也称为工作进程)之前将一些数据发送到stdout (如allocating ),RR将停止分配工作人员并使用代码1退出。
https://stackoverflow.com/questions/70260993
复制相似问题