Upgrade to 1.15 (Dependencies rubygems)

Problem:
I tried to upgrade form Foreman 1.14 to 1.15 on a Centos7 virtual-machine following the upgrade instructions. In “Step 2 (A) - Fedora or RHEL package (RPM) and installer setups” I got some errors while “yum upgrade tfm* ruby* foreman*”. Errors are unfortunately in german, but they are all like “rubygem(rails) >= 3.2.0” is required for rubygem-webpack-rails-0.9.8-1.fc24.noarch. (around 15 of similar errors with different rubygems and different packages).

Repositories are:
base/7/x86_64 CentOS-7 - Base
centos-sclo-rh/x86_64 CentOS-7 - SCLo rh
centos-sclo-sclo/x86_64 CentOS-7 - SCLo sclo
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 (epel-release-7-11.noarch)
extras/7/x86_64 CentOS-7 - Extras
foreman/x86_64 Foreman 1.15
foreman-plugins/x86_64 Foreman plugins 1.15
puppetlabs-pc1/x86_64 Puppet Labs PC1 Repository el 7 - x86_64
updates/7/x86_64 CentOS-7 - Updates

Expected outcome:

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Other relevant data:
we have installed the plugin “hooks”

I installed the rubygems with “gem install …”, but that has not helped. Also an upgrade to ruby2.2 was not helpful.

In a step before upgrading foreman, it was recommended to use “dnf upgrade https://yum.theforeman.org/releases/1.15/f24/x86_64/foreman-release.rpm” instead of yum, although Centos7 doesnt support dnf (anymore, due to some security issue or something?). I used dnf (downloaded as rpm from springdale.math.ias.edu) anyway.

I am looking for a solution for 2 days now, so any help is highly welcome.

From what I see in your latest URL, https://yum.theforeman.org/releases/1.15/f24/x86_64/foreman-release.rpm, that’s the URL for f24 = Fedora 24 repos.

Could it be possible that your foreman, foreman plugins etc repos are pointing to the f24 version instead of https://yum.theforeman.org/releases/1.15/el7/ ?

:slight_smile: Thank you very much! This solved the problem.

Although this might look “trivial” now, it might be a good idea to specify in the setup instructions Foreman :: Manual, that on Centos/Redhat systems “yum upgrade https://yum.theforeman.org/releases/1.15/el7/x86_64/foreman-release.rpm” should be used and “dnf upgrade https://yum.theforeman.org/releases/1.15/f24/x86_64/foreman-release.rpm” must not be used (and vice versa for Fedora).