installer does not work on Fedora 42 #381

Closed
opened 2025-11-13 11:58:43 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @cascer1 on GitHub (May 27, 2025).

Originally assigned to: @oschwartz10612 on GitHub.

In fedora 42, DNF 5 is the default DNF implementation.

This line: b467d6afa1/install/main.go (L443)

fails in the installer, because the command for adding repos has changed.

Instead, it should be

dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo
Originally created by @cascer1 on GitHub (May 27, 2025). Originally assigned to: @oschwartz10612 on GitHub. In fedora 42, DNF 5 is the default DNF implementation. This line: https://github.com/fosrl/pangolin/blob/b467d6afa198a4d77d6399d3418382b5081d7eae/install/main.go#L443 fails in the installer, because the command for adding repos has changed. Instead, it should be ```sh dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo ```
GiteaMirror added the potential bug label 2025-11-13 11:58:43 -06:00
Author
Owner

@oschwartz10612 commented on GitHub (May 29, 2025):

Thanks for bringing this up! I have made a change in 0cfc4d7dad. Would you be able to test the attached installer to see if it works?

installer_linux.zip

@oschwartz10612 commented on GitHub (May 29, 2025): Thanks for bringing this up! I have made a change in 0cfc4d7dad37fd78b6c020a76f7369632fa2a951. Would you be able to test the attached installer to see if it works? [installer_linux.zip](https://github.com/user-attachments/files/20506612/installer_linux.zip)
Author
Owner

@cascer1 commented on GitHub (May 30, 2025):

Thanks! I'll spin up a testing box later today and let you know.

@cascer1 commented on GitHub (May 30, 2025): Thanks! I'll spin up a testing box later today and let you know.
Author
Owner

@cascer1 commented on GitHub (May 30, 2025):

@oschwartz10612 I've tested the installer. It now successfully adds the repository and installs docker. The only thing I've noticed is that it fails in starting the service after install:

=== Starting installation ===
Would you like to install and start the containers? (yes/no) (default: yes): yes
Pulling the container images...
unable to get image 'fosrl/gerbil:1.0.0': Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Error: failed to pull the containers: exit status 1

So I manually ran systemctl enable --now docker

and then docker compose up -d

and then everything was working.

For completeness sake I also decided to test on a Fedora 41 box, and it ran into the same original issue with adding the repo. I looked up the docs and it looks like versions 41+ use DNF5, so that'll need to be changed in the fix for this.

https://fedoraproject.org/wiki/Changes/SwitchToDnf5

@cascer1 commented on GitHub (May 30, 2025): @oschwartz10612 I've tested the installer. It now successfully adds the repository and installs docker. The only thing I've noticed is that it fails in starting the service after install: > === Starting installation === > Would you like to install and start the containers? (yes/no) (default: yes): yes > Pulling the container images... > unable to get image 'fosrl/gerbil:1.0.0': Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? > Error: failed to pull the containers: exit status 1 So I manually ran `systemctl enable --now docker` and then `docker compose up -d` and then everything was working. For completeness sake I also decided to test on a Fedora 41 box, and it ran into the same original issue with adding the repo. I looked up the docs and it looks like versions 41+ use DNF5, so that'll need to be changed in the fix for this. https://fedoraproject.org/wiki/Changes/SwitchToDnf5
Author
Owner

@oschwartz10612 commented on GitHub (May 30, 2025):

Thanks for testing! I did not have time to spin up a box so that is very helpful. Ill work on some fixes for these things.

@oschwartz10612 commented on GitHub (May 30, 2025): Thanks for testing! I did not have time to spin up a box so that is very helpful. Ill work on some fixes for these things.
Author
Owner

@oschwartz10612 commented on GitHub (May 31, 2025):

I think I fixed the docker issue and v41 issue if you would be so kind as to test again that would be amazing!

d18200739a
a62b2e8d10

installer_linux.zip

@oschwartz10612 commented on GitHub (May 31, 2025): I think I fixed the docker issue and v41 issue if you would be so kind as to test again that would be amazing! d18200739a73fc695f6e77eae118c2f432915cf7 a62b2e8d10cdd5c874425e5c8828047829fa944b [installer_linux.zip](https://github.com/user-attachments/files/20534215/installer_linux.zip)
Author
Owner

@cascer1 commented on GitHub (Jun 1, 2025):

Thanks again! I'm not sure if I'll have time today but I'll definitely be able to test this tomorrow.

@cascer1 commented on GitHub (Jun 1, 2025): Thanks again! I'm not sure if I'll have time today but I'll definitely be able to test this tomorrow.
Author
Owner

@cascer1 commented on GitHub (Jun 2, 2025):

I've tested on Fedora 40, 41, and 42 and it works everywhere now.

@cascer1 commented on GitHub (Jun 2, 2025): I've tested on Fedora 40, 41, and 42 and it works everywhere now.
Author
Owner

@Vertux commented on GitHub (Jun 5, 2025):

I think I fixed the docker issue and v41 issue if you would be so kind as to test again that would be amazing!

d182007 a62b2e8

installer_linux.zip

Does the installer have any command-line options for restarting the installation process? I don't want to set up the whole server because of this repository and docker issue. When I run the fixed installer version, it only asks for Crowdsec to be installed.

@oschwartz10612 The fixed Installer works without issues on Fedora 42, thank you.

@Vertux commented on GitHub (Jun 5, 2025): > I think I fixed the docker issue and v41 issue if you would be so kind as to test again that would be amazing! > > [d182007](https://github.com/fosrl/pangolin/commit/d18200739a73fc695f6e77eae118c2f432915cf7) [a62b2e8](https://github.com/fosrl/pangolin/commit/a62b2e8d10cdd5c874425e5c8828047829fa944b) > > [installer_linux.zip](https://github.com/user-attachments/files/20534215/installer_linux.zip) Does the installer have any command-line options for restarting the installation process? I don't want to set up the whole server because of this repository and docker issue. When I run the fixed installer version, it only asks for Crowdsec to be installed. @oschwartz10612 The fixed Installer works without issues on Fedora 42, thank you.
Author
Owner

@oschwartz10612 commented on GitHub (Jun 5, 2025):

Thanks @cascer1!

If you want to start from scratch you can delete or move the docker compose and config directory and do it again. We probably should add a restart and overwrite option or something...

@oschwartz10612 commented on GitHub (Jun 5, 2025): Thanks @cascer1! If you want to start from scratch you can delete or move the docker compose and config directory and do it again. We probably should add a restart and overwrite option or something...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#381