coollabsio / coolify

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

[Bug]: Coolify starts and health checks work but realtime logs etc not working - getting authentication errors #3495

Open danyoung236 opened 3 weeks ago

danyoung236 commented 3 weeks ago

Error Message and Logs

root@master1:/data# docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up --pull always --remove-orphans --force-recreate [+] Running 4/4 ✔ coolify Pulled 1.0s ✔ postgres Pulled 2.1s ✔ redis Pulled 2.1s ✔ soketi Pulled 1.0s [+] Running 4/4 ✔ Container coolify-realtime Created 0.0s ✔ Container coolify-db Created 0.0s ✔ Container coolify-redis Created 0.0s ✔ Container coolify Created 0.0s Attaching to coolify, coolify-db, coolify-realtime, coolify-redis coolify-db | coolify-db | PostgreSQL Database directory appears to contain a database; Skipping initialization coolify-db | coolify-db | 2024-09-19 04:27:37.874 UTC [1] LOG: starting PostgreSQL 15.8 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1git20240309) 13.2.1 20240309, 64-bit coolify-db | 2024-09-19 04:27:37.875 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 coolify-db | 2024-09-19 04:27:37.875 UTC [1] LOG: listening on IPv6 address "::", port 5432 coolify-db | 2024-09-19 04:27:37.877 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" coolify-db | 2024-09-19 04:27:37.880 UTC [29] LOG: database system was shut down at 2024-09-19 04:26:50 UTC coolify-db | 2024-09-19 04:27:37.892 UTC [1] LOG: database system is ready to accept connections coolify-realtime | 2024-09-19 04:27:38 [TERMINAL] Server listening on port 6002 coolify-realtime | 2024-09-19 04:27:39 [SOKETI] coolify-realtime | 2024-09-19 04:27:39 [SOKETI] 🕵️‍♂️ Initiating metrics endpoints... coolify-realtime | 2024-09-19 04:27:39 [SOKETI] coolify-realtime | 2024-09-19 04:27:39 [SOKETI] 🎉 Server is up and running! coolify-realtime | 2024-09-19 04:27:39 [SOKETI] 📡 The Websockets server is available at 127.0.0.1:6001 coolify-realtime | 2024-09-19 04:27:39 [SOKETI] 🔗 The HTTP API server is available at http://127.0.0.1:6001 coolify-realtime | 2024-09-19 04:27:39 [SOKETI] 🎊 The /usage endpoint is available on port 9601. coolify-realtime | 2024-09-19 04:27:39 [SOKETI] coolify-realtime | 2024-09-19 04:27:39 [SOKETI] (node:8) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023. coolify-realtime | 2024-09-19 04:27:39 [SOKETI] coolify-realtime | 2024-09-19 04:27:39 [SOKETI] Please migrate your code to use AWS SDK for JavaScript (v3). coolify-realtime | 2024-09-19 04:27:39 [SOKETI] For more information, check the migration guide at https://a.co/7PzMCcy coolify-realtime | 2024-09-19 04:27:39 [SOKETI] (Use node --trace-warnings ... to show where the warning was created) coolify | coolify | -------------------------------------------------------------------- coolify | _ coolify | / | / |() | | | | | | coolify | \ \ / _ \ \ \ / / _ \ _| \ | |/ ` |/ \ | | | | _ \ coolify | ) | / | \ V / / | ) | | (_| | / | || | |) | coolify | |__/ _|| _/ \|| |____/||_,|_| _/| ._/ coolify | || coolify | coolify | Brought to you by serversideup.net coolify | -------------------------------------------------------------------- coolify | coolify | To support Server Side Up projects visit: coolify | https://serversideup.net/sponsor coolify | ------------------------------------- coolify | GID/UID coolify | ------------------------------------- coolify | coolify | User uid: 9999 coolify | User gid: 9999 coolify | ------------------------------------- coolify | coolify | 🏃‍♂️ Checking for Laravel automations... coolify | 🔐 Linking the storage... coolify | 🔓 SSL_MODE has been DISABLED, setting the web server to work in HTTP only... coolify | coolify | INFO The [public/storage] link has been connected to [storage/app/public].
coolify | coolify | [19-Sep-2024 04:27:44] NOTICE: fpm is running, pid 96 coolify | [19-Sep-2024 04:27:44] NOTICE: ready to handle connections coolify | [19-Sep-2024 04:27:44] NOTICE: systemd monitor interval set to 10000ms coolify | NOTICE: PHP message: PHP Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 coolify | coolify | INFO Nothing to migrate.
coolify | coolify | coolify | INFO Seeding database.
coolify | coolify | Running in self-hosted mode. coolify | Checking localhost key. coolify | Refreshing public ips! coolify | I am alive! coolify | Refreshing public ips! coolify | Running queue cleanup... coolify | Running cleanup stucked resources. coolify | Horizon is enabled. Starting. coolify | NOTICE: PHP message: PHP Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0 coolify | Scheduler is enabled. Starting. coolify | coolify | In PhpRedisConnector.php line 99: coolify |
coolify | NOAUTH Authentication required.
coolify |
coolify | coolify | Could not setup dynamic configuration: Failed to establish multiplexed connection: kex_exchange_identification: read: Connection reset by peer coolify | coolify | Horizon is enabled. Starting. coolify | coolify | In PhpRedisConnector.php line 99: coolify |
coolify | NOAUTH Authentication required.
coolify |
coolify | coolify | Horizon is enabled. Starting. coolify | coolify | In PhpRedisConnector.php line 99: coolify |
coolify | NOAUTH Authentication required.
coolify |
coolify | coolify | In Connection.php line 825: coolify |
coolify | SQLSTATE[08006] [7] connection to server at "postgres" (172.18.0.3), port 5
coolify | 432 failed: fe_sendauth: no password supplied (Connection: pgsql, SQL: sele
coolify | ct * from "servers")
coolify |
coolify | coolify | In Connector.php line 66: coolify |
coolify | SQLSTATE[08006] [7] connection to server at "postgres" (172.18.0.3), port 5
coolify | 432 failed: fe_sendauth: no password supplied
coolify |
coolify | coolify | Horizon is enabled. Starting. coolify | coolify | In PhpRedisConnector.php line 99: coolify |
coolify | NOAUTH Authentication required.
coolify |
coolify | coolify | Horizon is enabled. Starting. coolify | coolify | In PhpRedisConnector.php line 99: coolify |
coolify | NOAUTH Authentication required.
coolify |
coolify |

Steps to Reproduce

Automated installation: root@master1:/data# curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash


/ _| | ()/ _| | | __ | || | | | / \ / | | | _| | | | | || () | () | | | | | || | ____/ _/|||| _, | __/ | |___/

Welcome to Coolify Installer! This script will install everything for you. Sit back and relax. Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh


| Operating System | ubuntu 22.04 | Docker | 26.0 | Coolify | 4.0.0-beta.341 | Helper | 1.0.1 | Realtime | 1.0.1

  1. Installing required packages (curl, wget, git, jq). W: https://pxxxx:8140/packages/2021.7.6/ubuntu-22.04-amd64/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. W: https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
  2. Check OpenSSH server configuration.
  3. Check Docker Installation.
    • Docker is installed.
  4. Check Docker Configuration.
    • Docker configuration is up to date.
  5. Download required files from CDN.
  6. Make backup of .env to .env-20240919-143315
  7. Propagating .env with new values - if necessary.
  8. Checking for SSH key for localhost access. cat: /data/coolify/ssh/keys/id.root@host.docker.internal.pub: No such file or directory
  9. Installing Coolify (4.0.0-beta.341)
    • It could take a while based on your server's performance, network speed, stars, etc.
    • Please wait.
    • Until then, here's a joke for you:

The glass is neither half-full nor half-empty, the glass is twice as big as it needs to be.

What's the object-oriented way to become wealthy?

Inheritance.


/ | | | _| | | |() | | | | / | ' \ / _| '__/ _ | | | | | |/ _` | | |/ | ' \/ | | | || () | | | | (| | | | (| | || || | | (| | || | () | | | _ _| __/|| ||_, || _,|_|_,||_,|_||__/|| |_|_() |/

Your instance is ready to use. Please visit http://xxxxx:8000 to get started.

WARNING: We recommend you to backup your /data/coolify/source/.env file to a safe location, outside of this server

Example Repository URL

No response

Coolify Version

v4.0.0-beta.341

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

No response

Additional Information

Eveyrthing looks healthy:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3645ffea081f ghcr.io/coollabsio/coolify:4.0.0-beta.341 "/init" 2 minutes ago Up 2 minutes (healthy) 443/tcp, 8000/tcp, 9000/tcp, 0.0.0.0:8000->80/tcp, :::8000->80/tcp coolify 685404be9dbd postgres:15-alpine "docker-entrypoint.s…" 2 minutes ago Up 2 minutes (healthy) 5432/tcp coolify-db 316a746e9eac ghcr.io/coollabsio/coolify-realtime:1.0.1 "/bin/sh /soketi-ent…" 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:6001-6002->6001-6002/tcp, :::6001-6002->6001-6002/tcp coolify-realtime 222af6adbb21 redis:alpine "docker-entrypoint.s…" 2 minutes ago Up 2 minutes (healthy) 6379/tcp coolify-redis

And I am able to add an external server but and even a proxy, but no other resources and I don't get any logs - I assume due to realtime server errors.

IRediTOTO commented 2 weeks ago

Same here :D

danyoung236 commented 1 day ago

Hi, I am still getting the same issue with coolify:4.0.0-beta.357 - any thoughts?