'"Failed to initialize Lua VM with Passenger on Docker
I'm trying to setup a development environment that uses docker but the passenger docker image gives me this error over and over again.
[1] development-passenger-1 | 2022/04/28 10:17:53 [error] 148#148: failed to initialize Lua VM in /etc/nginx/nginx.conf:66
[1] development-passenger-1 | 2022/04/28 10:17:56 [error] 159#159: failed to initialize Lua VM in /etc/nginx/nginx.conf:66
Using an M1 Mac and I'm new to this whole Mac thing so not sure what's wrong. Our setup has worked without any issues on linux, windows and older macs. Although I'm happy to change my setup from the Master branch just to get this working but ideally it'll be something that works on all platforms.
Docker desktop gives me a !amd64
warning for the passenger container.
I've installed OpenResty and Rosetta, changing platforms for passenger, and basically everything else I could find. Best I could do was get rid of the !amd64
warning but not the Lua VM error.
I can attach more details like parts of our docker-compose or passenger config if need be, but I don't think those will be too helpful at this stage.
Solution 1:[1]
I don't know if this exactly helps but you could try to build your docker image with platform: "linux/amd64"
I read something about this here:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | tiefenb |