exaco / laravel-octane-dockerfile

Production-ready Dockerfile for Laravel Octane (FrankenPHP, Swoole, RoadRunner) powered web services and microservices. Done right.
MIT License
545 stars 83 forks source link

Local development - WARN exited: octane_00 (exit status 139; not expected) #79

Open iamvincentong opened 2 months ago

iamvincentong commented 2 months ago

I performed the following steps to set up my Laravel project with Docker:

  1. Created a new Laravel project.
  2. Navigated to the newly created Laravel project directory and installed Laravel Octane.
  3. After installing Octane, cloned directory contents, including the deployment directory, Dockerfile, and .dockerignore, into the Laravel project directory.
  4. In the Laravel project directory, ran the following commands:

docker build -t octane-test1:latest -f FrankenPHP.Dockerfile .

docker run -p 80:8000 --rm octane-test1:latest

I encountered the following errors (as shown in the screenshot below): SCR-20240519-pngd

Could someone assist with troubleshooting this issue? Thank you.

denistorresan commented 1 month ago

Hi @iamvincentong are you running it on Mac arm64 / v8 or similar ?

iamvincentong commented 1 month ago

Yes running on Mac M3 Max arm64.

denistorresan commented 1 month ago

I'm running the same problem on a Mac arm64 of my customer with a tested application that run perfectly on Windows and Linux. Actually I'm unable to test it because I don't have a mac to test it, but seems there's an incompatibility based on arm platform (?!)

jbl-scf commented 1 month ago

@iamvincentong have you try with jit disabled?

denistorresan commented 1 month ago

hi @iamvincentong finally I got the chance to try on a Mac M2 and disabling JIT it works. I changed on deployments/php.ini:

opcache.jit = disable

smortexa commented 1 month ago

First, these Dockerfiles are intended for production, not development. Second, this is an upstream issue. You can follow it in dunglas/frankenphp.