Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LazerJesus opened this issue Oct 17, 2024 · 1 comment
Open

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

LazerJesus opened this issue Oct 17, 2024 · 1 comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@LazerJesus
Copy link

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 LazerJesus added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Oct 17, 2024
@LazerJesus
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.
Projects
None yet
Development

No branches or pull requests

1 participant