distributions
distributions copied to clipboard
Invalid configuration value: failovermethod=priority
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
failovermethod was deprecated in dnf. Take a look at https://communicode.io/how-to-fix-failovermethod-error-fedora/ for possible mitigation options.
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
This issue is resolved with our new repository. More information can be found here.