documentation icon indicating copy to clipboard operation
documentation copied to clipboard

`nginx:mainline` module stream is missing

Open mb-shorai opened this issue 1 year ago • 4 comments

Hi, I'm following https://docs.rockylinux.org/guides/web/nginx-mainline/#installing-the-repository-enabling-the-module and I cannot enable the mainline stream:

❯ docker run --rm -it --pull=always rockylinux:9
9: Pulling from library/rockylinux
Digest: sha256:c944604c0c759f5d164ffbdf0bbab2fac582b739938937403c067ab634a0518a
Status: Image is up to date for rockylinux:9

[root@0cd2baf32f51 /]# dnf update -yq
Importing GPG key 0x350D275D:
 Userid     : "Rocky Enterprise Software Foundation - Release key 2022 <[email protected]>"
 Fingerprint: 21CB 256A E16F C54C 6E65 2949 702D 426D 350D 275D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9

Upgraded:
  gnutls-3.7.6-23.el9_3.3.x86_64            libxml2-2.9.13-5.el9_3.x86_64           openssl-1:3.0.7-25.el9_3.x86_64
  openssl-libs-1:3.0.7-25.el9_3.x86_64      python3-3.9.18-1.el9_3.1.x86_64         python3-libs-3.9.18-1.el9_3.1.x86_64
  python3-rpm-4.16.1.3-27.el9_3.x86_64      rocky-gpg-keys-9.3-1.2.el9.noarch       rocky-release-9.3-1.2.el9.noarch
  rocky-repos-9.3-1.2.el9.noarch            rpm-4.16.1.3-27.el9_3.x86_64            rpm-build-libs-4.16.1.3-27.el9_3.x86_64
  rpm-libs-4.16.1.3-27.el9_3.x86_64         rpm-sign-libs-4.16.1.3-27.el9_3.x86_64  sqlite-libs-3.34.1-7.el9_3.x86_64
  systemd-libs-252-18.el9.0.1.rocky.x86_64  tzdata-2024a-1.el9.noarch

[root@0cd2baf32f51 /]# dnf install epel-release -yq

Installed:
  dbus-libs-1:1.12.20-8.el9.x86_64                      dnf-plugins-core-4.3.0-11.el9_3.noarch
  epel-release-9-7.el9.noarch                           python3-dateutil-1:2.8.1-7.el9.noarch
  python3-dbus-1.2.18-2.el9.x86_64                      python3-dnf-plugins-core-4.3.0-11.el9_3.noarch
  python3-six-1.15.0-9.el9.noarch                       python3-systemd-234-18.el9.x86_64

[root@0cd2baf32f51 /]# dnf module enable nginx:mainline
Extra Packages for Enterprise Linux 9 - x86_64                                              8.8 MB/s |  20 MB     00:02
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64                        1.3 kB/s | 2.5 kB     00:01
Error: Problems in request:
missing groups or modules: nginx:mainline

[root@0cd2baf32f51 /]# dnf module list nginx
Last metadata expiration check: 0:00:27 ago on Wed Feb 28 16:20:42 2024.
Rocky Linux 9 - AppStream
Name                        Stream                      Profiles                        Summary
nginx                       1.22                        common [d]                      nginx webserver

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

I've found https://github.com/rocky-linux/documentation/issues/605, but epel-release is already there. Am I missing something?

mb-shorai avatar Feb 28 '24 16:02 mb-shorai

Hello @mb-shorai and welcome!

I believe that this procedure was originally written for 8. At the time, an "nginx:mainline" module existed, however that isn't the case any longer. For Rocky Linux 9, your only option is nginx 1.22, which is the default.

sspencerwire avatar Feb 28 '24 17:02 sspencerwire

Ah, thanks @sspencerwire! Should I leave this issue open in such case?

mb-shorai avatar Feb 29 '24 10:02 mb-shorai

Ah, thanks @sspencerwire! Should I leave this issue open in such case?

I think it is fine to leave this open for now. I reached out to the original author and I believe he will rewrite it. If not, I'll take a stab at refreshing the document so that it is up-to-date. Thank you!

sspencerwire avatar Feb 29 '24 14:02 sspencerwire

@EzequielBruni Here is the issue that prompted the call for a rewrite of this procedure. If you don't have time to get it done, I'll attempt it. I understand that you have scheduling issues to contend with. :-)

sspencerwire avatar Feb 29 '24 16:02 sspencerwire

@mb-shorai I believe this issue is resolved with recent additions to the used procedure in the last few months. If not, please open another issue. Thank you!

sspencerwire avatar Apr 19 '24 13:04 sspencerwire

It's resolved indeed, thanks!

mb-shorai avatar Apr 19 '24 13:04 mb-shorai