coollabsio / coolify

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

[Bug]: install.sh fails silently on step Docker #3943

Open LazerJesus opened 3 hours ago

LazerJesus commented 3 hours ago

Error Message and Logs

There was no error message. but i dug into the script and found it.

Source code: https://github.com/coollabsio/coolify/blob/main/scripts/install.sh

---------------------------------------------
| Operating System  | ubuntu 24.10
| Docker            | 26.0
| Coolify           | 4.0.0-beta.360
| Helper            | 1.0.2
| Realtime          | 1.0.3
---------------------------------------------

1. Installing required packages (curl, wget, git, jq).
2. Check OpenSSH server configuration.
 - OpenSSH server is installed.
 - SSH PermitRootLogin is enabled.
3. Check Docker Installation.
 - Docker is not installed. Installing Docker. It may take a while.
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# export DOCKER_VERSION=26.0
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://releases.rancher.com/install-docker/${DOCKER_VERSION}.sh | sh >/dev/null 2>&1
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# docker ps
Command 'docker' not found, but can be installed with:
snap install docker         # version 24.0.5, or
apt  install docker.io      # version 26.1.3-0ubuntu1
apt  install podman-docker  # version 5.0.3+ds1-5ubuntu1
See 'snap info docker' for additional versions.
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://releases.rancher.com/install-docker/26.0.sh | sh
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu oracular stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
INFO: Searching repository for VERSION '26.0.2'
INFO: apt-cache madison docker-ce | grep '26.0.2' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3

ERROR: '26.0.2' not found amongst apt-cache madison results

root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~#
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# curl -s https://get.docker.com | sh -s -- --version ${DOCKER_VERSION}
# Executing docker install script, commit: 6d51e2cd8c04b38e1c2237820245f4fc262aca6c
+ sh -c apt-get -qq update >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get -y -qq install ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu oracular stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get -qq update >/dev/null
INFO: Searching repository for VERSION '26.0'
INFO: apt-cache madison docker-ce | grep '26.0' | head -1 | awk '{$1=$1};1' | cut -d' ' -f 3

ERROR: '26.0' not found amongst apt-cache madison results

Steps to Reproduce

  1. Fresh VPS from Digitalocean
  2. run curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
  3. coffee
  4. silence

Example Repository URL

No response

Coolify Version

main

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu 24.10

Additional Information

No response

LazerJesus commented 3 hours ago

installing docker is no problem.

#!/bin/bash

# Update the package index
sudo apt-get update

# Install required packages
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

# Set up the stable Docker repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Update the package index again
sudo apt-get update

# Install Docker Engine
sudo apt-get install -y docker-ce docker-ce-cli containerd.io

# Add current user to the docker group to run Docker without sudo
sudo usermod -aG docker $USER

# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker

# Install Docker Compose
sudo apt-get install -y docker-compose-plugin
root@ubuntu-s-1vcpu-1gb-amd-fra1-01:~# docker -v
Docker version 27.3.1, build ce12230

running the script again was successfull.