coollabsio / coolify

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

[Bug]: Install script for version 3 not working #2616

Closed brunomenezes closed 4 months ago

brunomenezes commented 4 months ago

Description

First of all great job with this tool. I tried to use the coolify version 3 using the following command (wget -q https://get.coollabs.io/coolify/install.sh -O install.sh; sudo bash ./install.sh) in a hetzner vps. But this URL has a Cloudflare in front of it to check if I am human, making the created install.sh empty. I overcame that by getting the file and uploading it to the server. After the installation, I can see 1 docker container running, but it quickly exited with similar message as in issue #2331 (I will include it in the Error section). I don't want to use the v4 even though the installation went smoothly. I would like to use the v3. Maybe some images on ghcr.io were removed or renamed. Any advice would be appreciated.

Minimal Reproduction (if possible, example repository)

  1. Create a clean VPS on, e.g. Hetzner (ubuntu 24.04 or Debian 12).
  2. Make sure the Firewall has the usual allowances (80 / 443 / 3000) as specified in v3 docs.
  3. Run wget -q https://get.coollabs.io/coolify/install.sh -O install.sh; sudo bash ./install.sh (install.sh should be empty)
  4. Passing step 2 (e.g.By using scp to copy the file), run it.
  5. After the completion message, check the docker ps and check the docker logs for the container.

Exception or Error



/ | / |() | | | | | | \ \ / _ \ \ \ / / _ \ _| \ | |/ ` |/ \ | | | | _ \ ) | / | \ V / / | ) | | (_| | / | || | |) | |__/ _|| _/ \|| |____/||_,|_| _/| ._/ ||

Brought to you by serversideup.net

To support Server Side Up projects visit: https://serversideup.net/sponsor

GID/UID

User uid: 9999 User gid: 9999

🏃‍♂️ Checking for Laravel automations... 🔐 Linking the storage... 🔐 SSL_MODE has set to FULL, setting the web server to work in HTTPS only... 🏃‍♂️ An SSL key was not detected, so I'll generate a self-signed SSL certificate pair for you... ....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+.........................+.........+...+........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++....+.......+........+....+.................+....+..+.........+...+...+...+....+......+.........+..+.+...+....................+.......+..............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .....+...+....+.....+...+.......+.....+.+....................+.......+..+.+............+..+......+....+..+...+...+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...+........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.......+...........+.+.........+............+...+..+....+........+......+.+...+..+......+.......+.....+..........+.....+......+....+......+.....+.......+..+......+.+...........+...+.+...+...........+...................+.......................+....+........+.+..+...+....+......+.....+.+........+...+...+.+......+........+....+......+..+..........+...+..+....+.....+.............+.....+...+..........+..+.+............+..+...+...+......+..........+.....+....+...............+......+...............+...+........+....+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

INFO The [public/storage] link has been connected to [storage/app/public].

In PhpRedisConnector.php line 159:

php_network_getaddresses: getaddrinfo for coolify-redis failed: Name or ser vice not known

In PhpRedisConnector.php line 159:

Redis::connect(): php_network_getaddresses: getaddrinfo for coolify-redis f ailed: Name or service not known

s6-rc: warning: unable to start service db-migration: command exited 1 [21-Jun-2024 00:25:41] NOTICE: fpm is running, pid 99 [21-Jun-2024 00:25:41] NOTICE: ready to handle connections [21-Jun-2024 00:25:41] NOTICE: systemd monitor interval set to 10000ms /run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information. prog: fatal: stopping the container. [21-Jun-2024 00:25:43] NOTICE: Terminating ... [21-Jun-2024 00:25:43] NOTICE: exiting, bye-bye!

Version

v3 (Whatever comes in the install script v1.4.2)

brunomenezes commented 4 months ago

I solved my problem; I'll leave a comment for posterity. There is a problem with this Cloudflare check in front of the curls and wget used to start the auto-install and through the installation script. So, on line 8 of the script, it does the following

VERSION=$(curl --silent https://get.coollabs.io/versions.json | grep -i version | xargs | awk '{print $2}' | tr -d ',')

Check yourself the URL https://get.coollabs.io/versions.json and replace that call with whatever version is returned(If there is a curl command to bypass the Cloudflare check/delay, please comment). That solves the problem of the installation, at the moment of this comment the coolify version is 3.12.36. I am not sure I'll encounter other problems I hope not as I will start to use and navigate through the software.

That is pretty much it. The V4 works smoothly because it is in a different URL, https://cdn.coollabs.io/coolify/install.sh, and it does not show the Cloudflare check. I think that will only go back to work seamlessly once that check is lifted.

cc: @andrasbacsai