Hi all,
I’m having an issue with the upgrade process from Katello 3.4 to Katello 3.5.
My installations runs on CentOS 7.4.x + latest updates.
I tried to upgrade the installation with following commands:
foreman-rake katello:upgrade_check
katello-service stop
yum -y update
yum update -y http://fedorapeople.org/groups/katello/releases/yum/3.5/katello/el7/x86_64/katello-repos-latest.rpm
yum update -y http://yum.theforeman.org/releases/1.16/el7/x86_64/foreman-release.rpm
yum update -y foreman-release-scl
yum clean all
yum -y update
foreman-installer --scenario katello --upgrade
https://theforeman.org/plugins/katello/3.5/upgrade/index.html
But the upgrade process stops with the failure:
Upgrade Step: migrate_foreman…
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
TypeError: no implicit conversion of nil into String
.
.
.
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
foreman-rake db:migrate failed! Check the output for error!
Upgrade step migrate_foreman failed. Check logs for more information.
I think the sub task “apipie cache” ist the main problem. When I try to start the task manually, I got the same error message.
foreman-rake apipie:cache --trace
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
** Invoke apipie:cache (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
TypeError: no implicit conversion of nil into String
/usr/share/foreman/config/initializers/assets.rb:73:injoin' /usr/share/foreman/config/initializers/assets.rb:73:in
block (4 levels) in <top (required)>’
/usr/share/foreman/config/initializers/assets.rb:72:inmap' /usr/share/foreman/config/initializers/assets.rb:72:in
block (3 levels) in <top (required)>’
/usr/share/foreman/config/initializers/assets.rb:69:ineach' /usr/share/foreman/config/initializers/assets.rb:69:in
block (2 levels) in <top (required)>’
.
.
.
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:ininvoke' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in
invoke_task’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:inblock (2 levels) in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
each’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:inblock in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in
run_with_threads’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:intop_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in
block in run’
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:instandard_exception_handling' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in
run’
/opt/rh/rh-ruby22/root/usr/bin/rake:33:in `'
Tasks: TOP => apipie:cache => environment
What can I do to find the problem? I created a virtual machine snapshot befor the upgrade. To get back to version 3.4 for an retry is no problem.
Thanks!
cnu80