Nethserver 7.3 install failure

Using the instructions for installing on a CentOS machine, I am trying it on Red Hat 7.3 and the initial download succeeds but “nethserver-install” fails with the following log excerpt:

Starting installation process. It will take a while…

Installing base system…

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager

One of the configured repositories failed (Unknown),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=<repoid> ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable <repoid>
    or
        subscription-manager repos --disable=<repoid>

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: nethserver-base/7Server/x86_64
Could not retrieve mirrorlist http://mirrorlist.nethserver.org/?release=7Server&repo=base&arch=x86_64 error was
14: HTTP Error 404 - Not Found
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager

One of the configured repositories failed (Unknown),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=<repoid> ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable <repoid>
    or
        subscription-manager repos --disable=<repoid>

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: nethserver-base/7Server/x86_64
Could not retrieve mirrorlist http://mirrorlist.nethserver.org/?release=7Server&repo=base&arch=x86_64 error was
14: HTTP Error 404 - Not Found

Configuring system, please wait…

Failed to start nethserver-system-init.service: Unit not found.

You can access the Web interface at:
/sbin/nethserver-install: line 51: /sbin/e-smith/db: No such file or directory
/sbin/nethserver-install: line 52: /sbin/e-smith/db: No such file or directory

https://.:980/sbin/nethserver-install: line 48: /sbin/e-smith/db: No such file or directory

Any ideas, thoughts, tips, would be appreciated.

I think RedHat is using 7Server as $releasever while NethServer expects just 7 as in CentOS, then the repo URLs are wrongly guessed.

1 Like

I thought it might be something like that but wasn’t sure.

I had figured that Nethserver 7.3 would work nicely with RHEL 7.3. Gotta find a way to make them play nice.

Maybe the devs can set symlinks on the repo folders or do some redirection, IDK

I believe, yeah, someone upstream might want to take a look; people are upgrading RH and CentOS out here.

I was looking forward to seeing the changes and new stuff on Nethserver 7.3.

In the past I prepared a POWER8 build on a RHEL7 system. I think NethServer 7 can be installed on RHEL, but as you see there are some YUM repository issues. You need to install EPEL repository for additional dependencies: I don’t know how EPEL plays with RHEL. Some modules might require also SCL collections… In other words I’d expect some troubles when installing additional modules.

Supporting a “7Server” redirect to “7” on mirrorlist could fix some nethserver-install issues. However, before implementing it I must be sure it is worth the effort, and everything else works.

You can work around it by editing the NethServer.repo file: replace $releasever with 7.

…but why RHEL? Can I ask why don’t you install CentOS?

I’ll try the EPEL and a couple of other things; we have a Red Hat license and support and due to legal considerations are going with RHEL rather than CentOS at this time, which could change, but we’ll see. Thanks for the suggestions.

1 Like