distributions icon indicating copy to clipboard operation
distributions copied to clipboard

Invalid configuration value: failovermethod=priority

Open navjotjsingh opened this issue 3 years ago • 2 comments

I am trying to install Node v16 in Rocky Linux 8 and this is the warning error I get when I try to run the install command. Doesn't matter if I use dnf or yum to install.

Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/nodesource-el8.repo; Configuration: OptionBinding with id "failovermethod" does not exist

navjotjsingh avatar Dec 13 '21 13:12 navjotjsingh

failovermethod was deprecated in dnf. Take a look at https://communicode.io/how-to-fix-failovermethod-error-fedora/ for possible mitigation options.

thebitguru avatar Dec 30 '21 17:12 thebitguru

Confirming that we see this in AlmaLinux 8.5 as well, which uses dnf. We used the Node 14 setup script. The installation still works, but this error message (warning?) is printed every time we try to do anything with dnf after the repo has been installed.

The mitigation provided by @thebitguru works, but IMO this should be fixed at the source. For reference, here's what /etc/yum.repos.d/nodesource-el8.repo looks like after I manually applied the fix by commenting out the offending lines:

$ cat /etc/yum.repos.d/nodesource-el8.repo
[nodesource]
name=Node.js Packages for Enterprise Linux 8 - $basearch
baseurl=https://rpm.nodesource.com/pub_14.x/el/8/$basearch
#failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL

[nodesource-source]
name=Node.js for Enterprise Linux 8 - $basearch - Source
baseurl=https://rpm.nodesource.com/pub_14.x/el/8/SRPMS
#failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
gpgcheck=1

themowski avatar Feb 25 '22 14:02 themowski

This issue is resolved with our new repository. More information can be found here.

JesusPaz avatar Aug 29 '23 19:08 JesusPaz