Closed mstaack closed 4 months ago
Does it crash at startup?
PHP 8.3.2-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Jan 20 2024 14:16:40) (NTS)
You cannot use an NTS build. FrankenPHP needs a ZTS build.
Actually, if it's just the runner, this should work.
Are you using the official builds of FrankenPHP?
just using a default forge php8.3 provisioned server with octane installation:
php artisan octane:install
Which application server you would like to use?:
[0] roadrunner
[1] swoole
[2] frankenphp
> 2
FrankenPHP's Octane integration is in beta and should be used with caution in production. Do you wish to continue? (yes/no) [no]:
> yes
INFO Octane installed successfully
after that i have:
./frankenphp -v
FrankenPHP v1.0.3 PHP 8.3.2 Caddy v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
update:
./artisan octane:start
works and using curl locally with the server also:
curl http://127.0.0.1:8000
{"message":"Welcome to our world."}
so its maybe some nginx/forge setup weirdness...not directly related to frankenphp crashing..
I get this same issue. Both when running through nginx and when just running frankenphp via Octane normally on port 80
Hi guys,
I have the same problem here using Frankenphp from Octane with Laravel Forge. Let me share the output of the strace:
`getsockname(23, {sa_family=AF_INET6, sin6_port=htons(8000), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "::ffff:127.0.0.1", &sin6_addr), sin6_scope_id=0}, [112 => 28]) = 0 setsockopt(23, SOL_TCP, TCP_NODELAY, [1], 4) = 0 setsockopt(23, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 setsockopt(23, SOL_TCP, TCP_KEEPINTVL, [15], 4) = 0 setsockopt(23, SOL_TCP, TCP_KEEPIDLE, [15], 4) = 0 futex(0xc00049b148, FUTEX_WAKE_PRIVATE, 1) = 1 accept4(16, 0xc00065fba4, [112], SOCK_CLOEXEC|SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable) futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL
) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily unavailable) futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0 futex(0x7f866c686ea0, FUTEX_WAIT_PRIVATE, 0, NULL) = ? +++ killed by SIGSEGV (core dumped) +++ `
Environment: Laravel: 10.48.10 Octane: 2.3.10 FrankenPHP v1.1.4 PHP 8.3.6 Caddy v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
Hi @fjbotti,
Could you please try to gather a stack trace by running these steps? https://frankenphp.dev/docs/contributing/#debugging-segmentation-faults-with-static-builds
Thank you!
latest release worked for me, so closing this one ππΌ
What happened?
just dies without any real log, nginx returns 502
strace
output seems like a memory/segfault thingdebug output:
Build Type
Standalone binary
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
Relevant log output