Closed UNILORN closed 6 months ago
Is your Octane version up-to-date? There's a potential issue (laravel/octane#839) that might be addressed in a later version (laravel/octane#852).
Thank you very much! Changing the port used from 80 to 9000 worked fine.
@smortexa
I removed try,catch
from createSwooleServer.php
in Laravel Octane main body and checked the error.
We sent you a Pull Request in #73, but it turned out that port 80 could not be started as a non-privileged user.
We found that port 8000 can be started successfully.
Could you please confirm this?
2024-04-30 01:25:38,428 INFO success: octane_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO Server running…
Local: http://0.0.0.0:80
Press Ctrl+C to stop the server
PHP Fatal error: Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10
Stack trace:
#0 /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php(10): Swoole\Server->__construct()
#1 /var/www/html/vendor/laravel/octane/bin/swoole-server(35): require('...')
#2 {main}
thrown in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php on line 10
Fatal error: Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:80], Error: Permission denied[13] in /var/www/html/vendor/laravel/octane/bin/createSwooleServer.php:10
The log for the change to port 8000 is as follows
2024-04-30 01:43:40,237 INFO Set uid to user 1000 succeeded
2024-04-30 01:43:40,239 INFO supervisord started with pid 1
2024-04-30 01:43:41,240 INFO spawned: 'octane_00' with pid 25
2024-04-30 01:43:42,241 INFO success: octane_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO Server running…
Local: http://0.0.0.0:8000
Press Ctrl+C to stop the server
200 GET /health ........................................ 17.22 mb 62.77 ms
200 GET /health ......................................... 17.35 mb 3.90 ms
When I run the built image on kubernetes, I get the following error.
Adding
variables_order = "EGPCS"
to php.ini failed as well.The composer.json contains the following octane and confirms that the
composer install
has been done correctly.I have minimal k8s resources set up for startup, is that a problem?
How can I solve this problem...? I would be grateful for your wisdom.