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]: Cannot add Fedora servers. Docker installation fails #4765

Open
ahmetveburak opened this issue Jan 7, 2025 · 0 comments
Open

[Bug]: Cannot add Fedora servers. Docker installation fails #4765

ahmetveburak opened this issue Jan 7, 2025 · 0 comments
Labels
🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization.

Comments

@ahmetveburak
Copy link

Error Message and Logs

Thanks for this awesome service!

Findings

Coolify can be successfully installed to Fedora as localhost installation, but managed servers cannot be added.

As far as I can find, Adding a server and Revalidate Server, Validate Server & Install Docker Engine buttons trigger the Docker Installation from InstallDocker.php. This script forces to install the minimum version of Docker based on the constants.php.

This causes the install-docker script to fail since dnf returns only the latest versions.

Is there a specific reason for forcing Docker installation to an old version?

Installation Logs

Installing Prerequisites...
Installing Docker Engine...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 24599    0 24599    0     0   123k      0 --:--:-- --:--:-- --:--:--  124k
# Executing docker install script, commit: e5543d473431b782227f8908005543bb4389b8de
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c 'dnf install -y -q dnf-plugins-core'
Package "dnf-plugins-core-4.10.0-1.fc41.noarch" is already installed.

Nothing to do.
+ sh -c 'dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo'
Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 22592  100 22592    0     0   341k      0 --:--:-- --:--:-- --:--:--  344k
# Executing docker install script, commit: 4c94a56999e10efcf48c5b8e3f6afea464f9108e
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can ignore this message, but be aware that the
script resets any custom changes in the deb and rpm repo configuration
files to match the parameters passed to the script.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ command_exists dnf5
+ command -v dnf5
+ sh -c 'dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core'
Nothing to do.
Package "dnf-plugins-core-4.10.0-1.fc41.noarch" is already installed.

+ sh -c 'dnf5 config-manager addrepo --overwrite --save-filename=docker-ce.repo --from-repofile='\''https://download.docker.com/linux/fedora/docker-ce.repo'\'''
 https://download.docker.com/linux/fedo 100% |  44.6 KiB/s |   1.9 KiB |  00m00s
+ '[' stable '!=' stable ']'
+ sh -c 'dnf makecache'
Updating and loading repositories:
 Docker CE Stable - x86_64              100% |  93.4 KiB/s |   3.5 KiB |  00m00s
Metadata cache created.
Repositories loaded.
Updating and loading repositories:
Repositories loaded.
INFO: Searching repository for VERSION '24.0'
INFO: dnf list --showduplicates docker-ce | grep '24.0.*fc41' | tail -1 | awk '{print $2}'

ERROR: '24.0' not found amongst dnf list results

Steps to Reproduce

  1. Have two Fedora 41 servers. (M: Main Server, A: App Server)
  2. Setup Coolify to M.
  3. Add server A from the dashboard.
  4. During the installation process, it fails.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.380

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Fedora 41

Additional Information

No response

@ahmetveburak ahmetveburak added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Jan 7, 2025
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