Skip to content

Script '/container/init/init.d' did not pass their completion check and container doesn't get healthy #91

@jvillegasd

Description

@jvillegasd

Summary

I was trying to deploy some new changes of my personal project into my VPS (I'm using kamal-deploy) and I got "Some initialization scripts haven't completed" error message. The weird thing is I didn't touch my Docker image in months. I setup env var DEBUG_MODE to TRUE to get logs.

Steps to reproduce

  1. Create a simple Dockerfile with nfrastack/nginx-php-fpm:8.4-debian_trixie_faflopza as base image

  2. enable the following PHP extensions:

ENV PHP_ENABLE_IGBINARY=TRUE
ENV PHP_ENABLE_MSGPACK=TRUE
ENV PHP_ENABLE_REDIS=TRUE
ENV PHP_ENABLE_OPENSSL=FALSE
ENV PHP_ENABLE_PDO_SQLITE=TRUE
ENV PHP_ENABLE_SQLITE3=TRUE
ENV PHP_MEMORY_LIMIT=256M
ENV DEBUG_MODE=TRUE

// Since we don't use zabbix remove it right away
ENV CONTAINER_ENABLE_MONITORING=FALSE

// Since this is production image, we don't need to create sample PHP files
ENV PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE

// Since we are using Laravel workers, we don't need to enable cron
ENV CONTAINER_ENABLE_SCHEDULING=FALSE

ENV TIMEZONE=America/Bogota

RUN php-ext enable igbinary
&& php-ext enable msgpack
&& php-ext enable redis
&& php-ext enable posix
&& php-ext enable zip
&& php-ext enable pdo_sqlite
&& php-ext sqlite3

  1. Copy the Nginx configuration
    COPY --chown=www-data:www-data ./config/some-nginx.conf /etc/nginx/sites.available/some-nginx.conf

  2. Build

What is the expected correct behavior?

The docker image to build correctly.

Relevant logs and/or screenshots

Environment

  • Image version / tag: nfrastack/nginx-php-fpm:8.4-debian_trixie_faflopza
  • Host OS: Ubuntu 24.04

log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions