Problem upgrading Katello. Upgrade step errata_import failed. Complains about apipie cache

Hello, I get an error when I try to upgrade Katello from ver. 2.3 to 2.4.

Upgrade step errata_import failed.

The logs say :

[ERROR 2017-06-28 18:25:26 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
401 Unauthorized

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ERROR 2017-06-28 18:25:26 main] Upgrade step errata_import failed. Check logs for more information.
[DEBUG 2017-06-28 18:25:26 main] Exit with status code: 1 (signal was 1)
[ERROR 2017-06-28 18:25:26 main] Repeating errors encountered during run:
[ERROR 2017-06-28 18:25:26 main] sed: can't read /etc/mongodb.conf: No such file or directory

[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/userdir.conf]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/welcome.conf]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/README]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
401 Unauthorized

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ERROR 2017-06-28 18:25:26 main] Upgrade step errata_import failed. Check logs for more information.

The Foreman has been upgraded just before from ver. 1.9.3 to 1.10.4, painfully (the Centos 7 SCL repo provides ruby193-rubygem-activesupport-3.2.8-5 but 3.2.8-6 is needed, with
security_utils.rb) but without errors in the end.

I'm using the upstream versions of Foreman and Katello, on Centos 7 (I mean, this is not a RH Satellite)

Do you know how to fix this and restart the faulty step, please ?

Thanks in advance.

Louis Coilliot

I tried this :

foreman-rake apipie:cache --trace

** Invoke apipie:cache (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute apipie:cache
2017-07-03 14:45:15 +0200 | Started
2017-07-03 14:45:29 +0200 | Documents loaded…
2017-07-03 14:45:29 +0200 | Processing docs for
rake aborted!
Missing template …/…/layouts/apipie/apipie with {:locale=>[:ru, :en],
:formats=>[:html], :handlers=>[:erb, :builder, :rabl]}. Searched in:

··· * "/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/app/views/apipie/apipies" /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/path_set.rb:58:in `find' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/lookup_context.rb:116:in `find' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:3:in `find_template' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:80:in `resolve_layout' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:70:in `block in find_layout' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/lookup_context.rb:239:in `with_layout_format' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/abstract_renderer.rb:3:in `with_layout_format' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:70:in `find_layout' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:46:in `render_template' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/template_renderer.rb:18:in `render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:41:in `render_template' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/renderer/renderer.rb:22:in `render' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/rendering_helper.rb:24:in `render' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:117:in `block in render_page' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:113:in `open' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:113:in `render_page' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:147:in `generate_index_page' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:77:in `block (4 levels) in ' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:66:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:66:in `block (3 levels) in ' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:188:in `with_loaded_documentation' /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.2.6/lib/tasks/apipie.rake:64:in `block (2 levels) in ' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in `invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2 levels) in top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in `standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run' /opt/rh/ruby193/root/usr/bin/rake:32:in `' Tasks: TOP => apipie:cache

The packages installed are :

tfm-rubygem-addressable-2.3.6-2.el7.noarch
tfm-rubygem-algebrick-0.7.3-3.el7.noarch
tfm-rubygem-ancestry-2.0.0-3.el7.noarch
tfm-rubygem-anemone-0.7.2-11.el7.noarch
tfm-rubygem-angular-rails-templates-0.1.2-3.el7.noarch
tfm-rubygem-ansi-1.4.3-5.el7.noarch
tfm-rubygem-apipie-bindings-0.0.14-1.el7.noarch
tfm-rubygem-apipie-params-0.0.4-3.el7.noarch
tfm-rubygem-apipie-rails-0.2.6-2.el7.noarch
tfm-rubygem-archive-tar-minitar-0.5.2-10.el7.noarch
tfm-rubygem-audited-3.0.0-4.el7.noarch
tfm-rubygem-audited-activerecord-3.0.0-4.el7.noarch
tfm-rubygem-autoparse-0.3.3-2.el7.noarch
tfm-rubygem-awesome_print-1.0.2-11.el7.noarch
tfm-rubygem-bastion-2.0.3-1.fm1_10.el7.noarch
tfm-rubygem-bundler_ext-0.3.0-7.el7.noarch
tfm-rubygem-clamp-1.0.0-3.el7.noarch
tfm-rubygem-colorize-0.7.7-1.el7.noarch
tfm-rubygem-commonjs-0.2.7-2.el7.noarch
tfm-rubygem-concurrent-ruby-1.0.0-1.fm1_10.el7.noarch
tfm-rubygem-concurrent-ruby-edge-0.2.0-1.fm1_10.el7.noarch
tfm-rubygem-daemons-1.2.3-2.el7.noarch
tfm-rubygem-deep_cloneable-2.1.1-1.el7.noarch
tfm-rubygem-deface-1.0.1-1.el7.noarch tfm-rubygem-diffy-3.0.1-2.el7.noarch
tfm-rubygem-docker-api-1.17.0-2.el7.noarch
tfm-rubygem-dynflow-0.8.10-1.fm1_10.el7.noarch
tfm-rubygem-excon-0.45.3-2.el7.noarch
tfm-rubygem-extlib-0.9.16-2.el7.noarch
tfm-rubygem-facter-2.4.0-2.el7.x86_64
tfm-rubygem-faraday-0.9.1-2.el7.noarch
tfm-rubygem-fast_gettext-0.9.2-2.el7.noarch
tfm-rubygem-fog-1.34.0-2.el7.noarch tfm-rubygem-fog-aws-0.7.4-2.el7.noarch
tfm-rubygem-fog-core-1.32.1-2.el7.noarch
tfm-rubygem-fog-google-0.1.0-1.el7.noarch
tfm-rubygem-fog-json-1.0.2-2.el7.noarch
tfm-rubygem-fog-libvirt-0.0.2-2.el7.noarch
tfm-rubygem-fog-xml-0.1.2-2.el7.noarch
tfm-rubygem-foreigner-1.7.1-2.el7.noarch
tfm-rubygem-foreman_bootdisk-6.1.0-1.fm1_10.el7.noarch
tfm-rubygem-foreman_default_hostgroup-3.0.0-2.el7.noarch
tfm-rubygem-foreman_discovery-4.1.2-1.fm1_10.el7.noarch
tfm-rubygem-foreman_docker-1.4.1-2.fm1_10.el7.noarch
tfm-rubygem-foreman_gutterball-0.0.1-3.el7.noarch
tfm-rubygem-foreman_hooks-0.3.9-1.el7.noarch
tfm-rubygem-foreman_setup-3.0.2-1.fm1_10.el7.noarch
tfm-rubygem-foreman-tasks-0.7.11-1.fm1_10.el7.noarch
tfm-rubygem-foreman_templates-2.0.1-1.fm1_10.el7.noarch
tfm-rubygem-formatador-0.2.1-8.el7.noarch
tfm-rubygem-friendly_id-4.0.10.1-2.el7.noarch
tfm-rubygem-gettext_i18n_rails-1.2.1-2.el7.noarch
tfm-rubygem-git-1.2.5-6.el7.noarch
tfm-rubygem-google-api-client-0.8.2-2.el7.noarch
tfm-rubygem-hammer_cli-0.5.1-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.5.1-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-3.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.3-4.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.9-1.fm1_10.el7.noarch
tfm-rubygem-hammer_cli_gutterball-1.0.1-4.el7.noarch
tfm-rubygem-hammer_cli_import-0.10.22-1.el7.noarch
tfm-rubygem-hammer_cli_katello-0.0.19-1.el7.noarch
tfm-rubygem-hashie-2.0.5-3.el7.noarch tfm-rubygem-hashr-0.0.22-7.el7.noarch
tfm-rubygem-highline-1.6.21-3.el7.noarch
tfm-rubygem-hooks-0.2.2-7.el7.noarch
tfm-rubygem-ipaddress-0.8.0-7.el7.noarch
tfm-rubygem-jquery-ui-rails-4.1.2-2.el7.noarch
tfm-rubygem-jwt-1.2.0-2.el7.noarch tfm-rubygem-katello-2.4.4-1.el7.noarch
tfm-rubygem-launchy-2.4.3-2.el7.noarch
tfm-rubygem-ldap_fluff-0.4.0-1.el7.noarch
tfm-rubygem-less-2.5.1-3.el7.noarch
tfm-rubygem-less-rails-2.5.0-2.el7.noarch
tfm-rubygem-little-plugger-1.1.3-19.el7.noarch
tfm-rubygem-locale-2.0.9-9.el7.noarch
tfm-rubygem-logging-1.8.2-2.el7.noarch
tfm-rubygem-multi_json-1.10.1-2.el7.noarch
tfm-rubygem-multipart-post-1.2.0-3.el7.noarch
tfm-rubygem-net-ldap-0.11-3.el7.noarch tfm-rubygem-netrc-0.7.7-6.el7.noarch
tfm-rubygem-net-scp-1.1.0-4.el7.noarch
tfm-rubygem-net-ssh-2.9.2-1.el7.noarch
tfm-rubygem-nokogiri-1.6.6.2-1.el7.x86_64
tfm-rubygem-oauth-0.4.7-7.el7.noarch
tfm-rubygem-parse-cron-0.1.4-1.fm1_10.el7.noarch
tfm-rubygem-passenger-4.0.18-9.9.el7.x86_64
tfm-rubygem-passenger-native-4.0.18-9.9.el7.x86_64
tfm-rubygem-passenger-native-libs-4.0.18-9.9.el7.x86_64
tfm-rubygem-pg-0.12.2-9.el7.x86_64
tfm-rubygem-powerbar-1.0.11-10.el7.noarch
tfm-rubygem-puppetdb_foreman-0.2.0-1.fm1_10.el7.noarch
tfm-rubygem-qpid_messaging-0.30.0-3.el7.x86_64
tfm-rubygem-rabl-0.11.6-2.el7.noarch
tfm-rubygem-rack-jsonp-1.3.1-2.el7.noarch
tfm-rubygem-rails-i18n-3.0.1-2.el7.noarch
tfm-rubygem-rbovirt-0.0.35-2.el7.noarch
tfm-rubygem-rbvmomi-1.8.2-2.el7.noarch
tfm-rubygem-rest-client-1.6.7-3.el7.noarch
tfm-rubygem-retriable-1.4.1-2.el7.noarch
tfm-rubygem-robotex-1.0.0-17.el7.noarch
tfm-rubygem-ruby2ruby-2.1.3-2.el7.noarch
tfm-rubygem-ruby-libvirt-0.5.2-2.el7.x86_64
tfm-rubygem-ruby_parser-3.6.3-2.el7.noarch
tfm-rubygem-runcible-1.3.5-3.el7.noarch
tfm-rubygem-safemode-1.2.2-2.el7.noarch
tfm-rubygem-scoped_search-3.2.2-2.el7.noarch
tfm-rubygem-secure_headers-1.4.1-2.el7.noarch
tfm-rubygem-sequel-4.20.0-3.el7.noarch
tfm-rubygem-sexp_processor-4.4.4-2.el7.noarch
tfm-rubygem-signet-0.6.0-2.el7.noarch
tfm-rubygem-sprockets-2.12.3-2.el7.noarch
tfm-rubygem-sshkey-1.6.0-3.el7.noarch
tfm-rubygem-strong_parameters-0.2.1-13.el7.noarch
tfm-rubygem-table_print-1.5.1-4.el7.noarch
tfm-rubygem-tire-0.6.2-2.el7.noarch tfm-rubygem-trollop-2.0-4.el7.noarch
tfm-rubygem-turbolinks-2.5.3-2.el7.noarch
tfm-rubygem-validates_lengths_from_database-0.4.0-2.el7.noarch
tfm-rubygem-wicked-1.1.0-2.el7.noarch
tfm-rubygem-will_paginate-3.0.2-9.el7.noarch tfm-runtime-1.1-1.el7.x86_64

katello-2.4.1-1.el7.noarch katello-agent-2.4.0-3.el7.noarch
katello-certs-tools-2.4.0-1.el7.noarch katello-common-2.4.1-1.el7.noarch
katello-debug-2.4.1-1.el7.noarch katello-default-ca-1.0-1.noarch
katello-installer-2.4.0-1.el7.noarch
katello-installer-base-2.4.0-1.el7.noarch katello-repos-2.4.0-5.el7.noarch
katello-selinux-2.2.2-1.el7.noarch katello-server-ca-1.0-1.noarch
katello-service-2.4.1-1.el7.noarch pulp-katello-0.4-3.el7.noarch
tfm-rubygem-hammer_cli_katello-0.0.19-1.el7.noarch
tfm-rubygem-katello-2.4.4-1.el7.noarch

Louis

Le lundi 3 juillet 2017 12:10:54 UTC+2, louis.c...@gmail.com a écrit :

Hello, I get an error when I try to upgrade Katello from ver. 2.3 to 2.4.

Upgrade step errata_import failed.

The logs say :

[ERROR 2017-06-28 18:25:26 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
401 Unauthorized

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ERROR 2017-06-28 18:25:26 main] Upgrade step errata_import failed. Check logs for more information.
[DEBUG 2017-06-28 18:25:26 main] Exit with status code: 1 (signal was 1)
[ERROR 2017-06-28 18:25:26 main] Repeating errors encountered during run:
[ERROR 2017-06-28 18:25:26 main] sed: can’t read /etc/mongodb.conf: No such file or directory

[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/userdir.conf]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/userdir.conf: Got passed new contents for sum {md5}d4a2620683cc3ff2315c685f9f354265
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/welcome.conf]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/welcome.conf: Got passed new contents for sum {md5}9d1328b985d0851eb5bc610da6122f44
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] /Stage[main]/Apache/File[/etc/httpd/conf.d/README]/ensure: change from file to absent failed: Could not back up /etc/httpd/conf.d/README: Got passed new contents for sum {md5}20b886e8496027dcbc31ed28d404ebb1
[ERROR 2017-06-28 18:25:26 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
rake aborted!
401 Unauthorized

Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata

[ERROR 2017-06-28 18:25:26 main] Upgrade step errata_import failed. Check logs for more information.

The Foreman has been upgraded just before from ver. 1.9.3 to 1.10.4, painfully (the Centos 7 SCL repo provides ruby193-rubygem-activesupport-3.2.8-5 but 3.2.8-6 is needed, with
security_utils.rb) but without errors in the end.

I’m using the upstream versions of Foreman and Katello, on Centos 7 (I mean, this is not a RH Satellite)

Do you know how to fix this and restart the faulty step, please ?

Thanks in advance.

Louis Coilliot

1 Like