Fatal error: Exception: PHP-FPM failed to start #870
Replies: 4 comments 1 reply
-
The first curl call returns nothing. If I give it another try, the second curl call returns that: > curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
{"errorMessage":"Error while starting PHP-FPM PHP-FPM failed to start: \n\n[25-Feb-2021 03:14:41] ALERT: [pool default] user has not been defined\n[25-Feb-2021 03:14:41] ERROR: failed to post process the configuration\n[25-Feb-2021 03:14:41] ERROR: FPM initialization failed\n","errorType":"Exception","stackTrace":["#0 \/var\/task\/vendor\/bref\/bref\/src\/Event\/Http\/FpmHandler.php(88): Bref\\Event\\Http\\FpmHandler->waitUntilReady()","#1 \/var\/runtime\/bootstrap(37): Bref\\Event\\Http\\FpmHandler->start()","#2 {main}"]} But third and subsequent calls return nothing. |
Beta Was this translation helpful? Give feedback.
-
Just to be sure, could you make sure you're using all the latest versions ( |
Beta Was this translation helpful? Give feedback.
-
Both > docker pull bref/php-74-fpm
Using default tag: latest
latest: Pulling from bref/php-74-fpm
Digest: sha256:415a06ab3b3b1006838be79bbd88b28642e364f8c9bb48fd0f2f18e7248558ec
Status: Image is up to date for bref/php-74-fpm:latest
docker.io/bref/php-74-fpm:latest - Locking bref/bref (1.2.0) |
Beta Was this translation helpful? Give feedback.
-
I keep re-reading your post but I don't understand what you are trying to do. The Dockerfile is confusing to me, I'm not sure why you are running it locally and the port mapping makes no sense either. Also why are you trying to call the invocation API directly? I do understand something is crashing in there, but I'd love to understand the context to help a bit better. |
Beta Was this translation helpful? Give feedback.
-
I just built a simple demo app, using this command:
This is my Dockerfile:
This is my index.php (I have only this file in my current directory):
Then I start the container locally:
After that, I try to run a curl command:
My container logs that:
Anyone have faced that issue?
Beta Was this translation helpful? Give feedback.
All reactions