coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.73k stars 1.9k forks source link

[Bug]: FPM initialization failed on clean install #4351

Open thesethtruth opened 4 days ago

thesethtruth commented 4 days ago

Error Message and Logs

[21-Nov-2024 10:56:36] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
[21-Nov-2024 10:56:36] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
[21-Nov-2024 10:56:36] ERROR: FPM initialization failed
[21-Nov-2024 10:56:36] ERROR: FPM initialization failed

Steps to Reproduce

  1. Clean server VPS

  2. sudo -i to root

  3. Run the install script script, crashes out of the installer script at L517

  4. Run docker ps, see state unhealthy

    CONTAINER ID   IMAGE                                       COMMAND                  CREATED          STATUS                      PORTS                                               NAMES
    74930d1e5cf4   ghcr.io/coollabsio/coolify:4.0.0-beta.370   "/init"                  15 minutes ago   Up 15 minutes (unhealthy)   443/tcp, 8000/tcp, 9000/tcp, 0.0.0.0:8000->80/tcp   coolify
    c5f516ccc05c   ghcr.io/coollabsio/coolify-realtime:1.0.4   "/bin/sh /soketi-ent…"   15 minutes ago   Up 15 minutes (healthy)     0.0.0.0:6001-6002->6001-6002/tcp                    coolify-realtime
    7dc0372f3560   postgres:15-alpine                          "docker-entrypoint.s…"   15 minutes ago   Up 15 minutes (healthy)     5432/tcp                                            coolify-db
    b19507f36928   redis:7-alpine                              "docker-entrypoint.s…"   15 minutes ago   Up 15 minutes (healthy)     6379/tcp                                            coolify-redis
  5. Inspect logs of coolify instance with docker logs 74930d1e5cf4 ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97

Example Repository URL

No response

Coolify Version

v4.0.0-beta.370

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.04.1 LTS

Additional Information

I've tried uninstalling and installing again, to no avail.

peaklabs-dev commented 4 days ago

This is probably not a Coolify issue, but a Docker issue.

Can you check this issue comment as the user has proposed a solution there: https://github.com/coollabsio/coolify/issues/4037#issuecomment-2440521500

thesethtruth commented 1 day ago

Thanks @peaklabs-dev !! That's a very specific issue on my side and a great pointer from your side. Would it be helpful to include this as a FAQ/troubleshooting item? I'd be happy to contribute.