Problem:
Hi guys. I have problem with 1.16.1 to 1.17.1 upgrade on CentOS machines. Usually it goes smoothly, but this version stuck with problems for me.
Whole installation goes smoothly until to a point with “foreman-rake db:migrate”.
Misterious sets of confusing errors is what I got - my Ruby skills are to low to even try to diagnose this.
foreman-rake db:migrate
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/sequel-4.20.0/lib/sequel/database/schema_generator.rb:19: warning: constant ::Bignum is deprecated
/usr/share/foreman/lib/core_extensions.rb:183: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.4/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/appender.rb:139: warning: constant ::Fixnum is deprecated
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/logger.rb:295: warning: constant ::Fixnum is deprecated
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.
You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
Called from /opt/theforeman/tfm/root/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
== 20170112175131 MigrateTemplateToParametersMacros: migrating ================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `gsub' for nil:NilClass
/usr/share/foreman/db/migrate/20170112175131_migrate_template_to_parameters_macros.rb:48:in `convert'
/usr/share/foreman/db/migrate/20170112175131_migrate_template_to_parameters_macros.rb:15:in `block (2 levels) in up'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/relation/delegation.rb:39:in `each'
/usr/share/foreman/db/migrate/20170112175131_migrate_template_to_parameters_macros.rb:14:in `block in up'
/usr/share/foreman/db/migrate/20170112175131_migrate_template_to_parameters_macros.rb:13:in `each'
/usr/share/foreman/db/migrate/20170112175131_migrate_template_to_parameters_macros.rb:13:in `up'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:795:in `exec_migration'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:776:in `block (2 levels) in migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:775:in `block in migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:408:in `with_connection'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:774:in `migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:953:in `migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1230:in `block in execute_migration_in_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1298:in `block in ddl_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/transactions.rb:210:in `transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1298:in `ddl_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1229:in `execute_migration_in_transaction'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1201:in `block in migrate_without_lock'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1200:in `each'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1200:in `migrate_without_lock'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1148:in `block in migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1317:in `with_advisory_lock'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1148:in `migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:1007:in `up'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/migration.rb:985:in `migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/tasks/database_tasks.rb:171:in `migrate'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Expected outcome:
No problems with upgrade
Foreman and Proxy versions:
foreman.noarch 1.17.0-1.el7 foreman
foreman-cli.noarch 1.17.0-1.el7 foreman
foreman-compute.noarch 1.17.0-1.el7 foreman
foreman-debug.noarch 1.17.0-1.el7 foreman
foreman-ec2.noarch 1.17.0-1.el7 foreman
foreman-installer.noarch 1:1.17.0-1.el7 foreman
foreman-postgresql.noarch 1.17.0-1.el7 foreman
foreman-proxy.noarch 1.17.0-1.el7 foreman
foreman-release.noarch 1.17.0-1.el7 installed
foreman-release-scl.noarch 4-1.el7 foreman
foreman-selinux.noarch 1.17.0-1.el7 foreman
puppet-agent-oauth.noarch 0.5.1-3.el7 foreman
rubygem-bundler_ext.noarch 0.4.1-2.el7 foreman
rubygem-clamp.noarch 1.1.2-2.el7 foreman
rubygem-concurrent-ruby.noarch 1:1.0.3-6.el7 foreman
rubygem-hashie.noarch 2.0.5-5.el7 foreman
rubygem-highline.noarch 1.7.8-3.el7 foreman
rubygem-kafo.noarch 2.1.0-1.el7 foreman
rubygem-kafo_parsers.noarch 0.1.6-1.el7 foreman
rubygem-kafo_wizards.noarch 0.0.1-2.el7 foreman
rubygem-little-plugger.noarch 1.1.3-22.el7 foreman
rubygem-logging.noarch 1.8.2-5.el7 foreman
rubygem-multi_json.noarch 1.12.2-2.el7 foreman
rubygem-powerbar.noarch 1.0.17-2.el7 foreman
rubygem-rb-inotify.noarch 0.9.7-2.el7 foreman
rubygem-rsec.noarch 0.4.2-1.el7 foreman
rubygem-rubyipmi.noarch 0.10.0-2.el7 foreman
rubygem-smart_proxy_ansible.noarch 2.0.2-1.fm1_17.el7 foreman-plugins
rubygem-smart_proxy_dynflow.noarch 0.1.10-1.el7 foreman-plugins
0.1.6-1.el7 foreman-plugins
tfm-ror51-rubygem-actioncable.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-actionmailer.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-actionpack.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-actionview.noarch 5.1.4-4.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-activejob.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-activemodel.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-activerecord.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-activesupport.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-arel.noarch 8.0.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-builder.noarch 3.2.3-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-coffee-rails.noarch 4.2.2-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-coffee-script.noarch 2.4.1-2.el7.centos group_theforeman-tfm-ror51
1.12.2-2.el7.centos group_theforeman-tfm-ror51
1.0.5-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-crass.noarch 1.0.2-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-erubi.noarch 1.7.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-execjs.noarch 2.7.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-globalid.noarch 0.4.1-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-i18n.noarch 0.9.1-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-loofah.noarch 2.1.1-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-mail.noarch 2.7.0-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-method_source.noarch 0.9.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-mime-types.noarch 3.1-2.el7.centos group_theforeman-tfm-ror51
group_theforeman-tfm-ror51
tfm-ror51-rubygem-mini_mime.noarch 1.0.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-multi_json.noarch 1.12.2-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-mustermann.noarch 1.0.1-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-nio4r.x86_64 2.1.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-nokogiri.x86_64 1.8.1-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-rack.noarch 2.0.3-2.el7.centos group_theforeman-tfm-ror51
2.0.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-rack-test.noarch 0.7.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-rails.noarch 5.1.4-4.el7.centos group_theforeman-tfm-ror51
2.0.3-2.el7.centos group_theforeman-tfm-ror51
1.0.3-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-railties.noarch 5.1.4-3.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-sinatra.noarch 2.0.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-sprockets.noarch 3.7.1-2.el7.centos group_theforeman-tfm-ror51
3.2.1-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-sqlite3.x86_64 1.3.13-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-thor.noarch 0.20.0-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-thread_safe.noarch 0.3.6-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-tilt.noarch 2.0.8-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-turbolinks.noarch 2.5.4-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-rubygem-tzinfo.noarch 1.2.4-3.el7.centos group_theforeman-tfm-ror51
0.6.5-3.el7.centos group_theforeman-tfm-ror51
0.1.2-2.el7.centos group_theforeman-tfm-ror51
tfm-ror51-runtime.x86_64 1.1-2.el7.centos group_theforeman-tfm-ror51
1.1.0-3.el7 foreman
tfm-rubygem-addressable.noarch 2.3.6-5.el7 foreman
tfm-rubygem-algebrick.noarch 0.7.3-5.el7 foreman
tfm-rubygem-ancestry.noarch 3.0.0-2.el7 foreman
tfm-rubygem-apipie-bindings.noarch 0.2.2-1.el7 foreman
tfm-rubygem-apipie-params.noarch 0.0.5-2.el7 foreman
tfm-rubygem-apipie-rails.noarch 0.5.6-2.el7 foreman
tfm-rubygem-audited.noarch 4.4.1-2.el7 foreman
tfm-rubygem-awesome_print.noarch 1.7.0-2.el7 foreman
tfm-rubygem-bundler_ext.noarch 0.4.1-2.el7 foreman
tfm-rubygem-clamp.noarch 1.1.2-2.el7 foreman
tfm-rubygem-concurrent-ruby.noarch 1:1.0.3-1.fm1_16.el7 foreman
tfm-rubygem-concurrent-ruby-edge.noarch 1:0.2.4-1.el7 foreman
tfm-rubygem-css_parser.noarch 1.4.7-2.el7 foreman
tfm-rubygem-daemons.noarch 1.2.3-4.el7 foreman
tfm-rubygem-deacon.noarch 1.0.0-2.el7 foreman
tfm-rubygem-deep_cloneable.noarch 2.2.2-2.el7 foreman
tfm-rubygem-deface.noarch 1.2.0-8.el7 foreman-plugins
tfm-rubygem-docker-api.noarch 1.28.0-3.el7 foreman-plugins
tfm-rubygem-domain_name.noarch 0.5.20160310-2.el7 foreman
tfm-rubygem-dynflow.noarch 0.8.37-2.el7 foreman
tfm-rubygem-excon.noarch 0.58.0-2.el7 foreman
tfm-rubygem-facter.x86_64 2.4.0-5.el7 foreman
tfm-rubygem-faraday.noarch 0.9.1-5.el7 foreman
tfm-rubygem-faraday_middleware.noarch 0.10.0-2.el7 foreman-plugins
tfm-rubygem-fast_gettext.noarch 1.4.1-2.el7 foreman
tfm-rubygem-fog.noarch 1.42.0-1.el7 foreman
tfm-rubygem-fog-aws.noarch 1.3.0-2.el7 foreman
tfm-rubygem-fog-core.noarch 1.45.0-2.el7 foreman
tfm-rubygem-fog-digitalocean.noarch 0.3.0-2.el7 foreman
tfm-rubygem-fog-google.noarch 0.1.0-3.el7 foreman
tfm-rubygem-fog-json.noarch 1.0.2-5.el7 foreman
tfm-rubygem-fog-openstack.noarch 0.1.18-2.el7 foreman
tfm-rubygem-fog-ovirt.noarch 0.1.2-2.el7 foreman
tfm-rubygem-fog-rackspace.noarch 0.1.4-2.el7 foreman
tfm-rubygem-fog-vsphere.noarch 2.1.0-1.el7 foreman
tfm-rubygem-fog-xenserver.noarch 0.2.3-2.el7 foreman
tfm-rubygem-fog-xml.noarch 0.1.2-5.el7 foreman
tfm-rubygem-foreman-tasks.noarch 0.11.2-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman-tasks-core.noarch 0.2.4-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_ansible.noarch 2.0.1-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_ansible_core.noarch 2.0.2-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_bootdisk.noarch 11.0.0-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_custom_parameters.noarch
0.0.2-5.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_custom_parameters-doc.noarch
0.0.2-5.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_docker.noarch 4.0.0-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_hooks.noarch 0.3.14-2.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_host_extra_validator.noarch
0.0.4-2.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_remote_execution.noarch
1.4.5-2.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_remote_execution_core.noarch
1.1.0-1.fm1_17.el7 foreman-plugins
tfm-rubygem-foreman_setup.noarch 6.0.0-1.fm1_17.el7 foreman-plugins
tfm-rubygem-formatador.noarch 0.2.1-10.el7 foreman
tfm-rubygem-friendly_id.noarch 5.1.0-4.el7 foreman
tfm-rubygem-get_process_mem.noarch 0.2.1-2.el7 foreman
tfm-rubygem-gettext_i18n_rails.noarch 1.2.1-4.el7 foreman
tfm-rubygem-hammer_cli.noarch 0.12.0-1.el7 foreman
tfm-rubygem-hammer_cli_foreman.noarch 0.12.0-2.el7 foreman
tfm-rubygem-highline.noarch 1.7.8-3.el7 foreman
tfm-rubygem-http-cookie.noarch 1.0.2-2.el7 foreman
tfm-rubygem-ipaddress.noarch 0.8.0-10.el7 foreman
tfm-rubygem-ldap_fluff.noarch 0.4.7-2.el7 foreman
tfm-rubygem-little-plugger.noarch 1.1.3-22.el7 foreman
tfm-rubygem-locale.noarch 2.0.9-12.el7 foreman
tfm-rubygem-logging.noarch 1.8.2-5.el7 foreman
tfm-rubygem-multi_json.noarch 1.12.2-2.el7 foreman
tfm-rubygem-multipart-post.noarch 1.2.0-5.el7 foreman
tfm-rubygem-net-ldap.noarch 0.15.0-2.el7 foreman
tfm-rubygem-net-ping.noarch 2.0.1-2.el7 foreman
tfm-rubygem-net-scp.noarch 1.2.1-2.el7 foreman
tfm-rubygem-net-ssh.noarch 4.0.1-4.el7 foreman
tfm-rubygem-netrc.noarch 0.11.0-2.el7 foreman
tfm-rubygem-oauth.noarch 0.5.4-2.el7 foreman
tfm-rubygem-parse-cron.noarch 0.1.4-3.fm1_17.el7 foreman-plugins
tfm-rubygem-passenger.x86_64 4.0.18-9.12.el7 foreman
tfm-rubygem-passenger-native.x86_64 4.0.18-9.12.el7 foreman
4.0.18-9.12.el7 foreman
tfm-rubygem-pg.x86_64 0.21.0-2.el7 foreman
tfm-rubygem-polyglot.noarch 0.3.5-1.el7 foreman-plugins
tfm-rubygem-rabl.noarch 0.13.1-1.el7 foreman
tfm-rubygem-rack-jsonp.noarch 1.3.1-6.el7 foreman
tfm-rubygem-rails-i18n.noarch 5.0.4-1.el7 foreman
tfm-rubygem-rainbow.noarch 2.2.1-2.el7 foreman-plugins
tfm-rubygem-rbovirt.noarch 0.1.4-2.el7 foreman
tfm-rubygem-rbvmomi.noarch 1.10.0-2.el7 foreman
tfm-rubygem-record_tag_helper.noarch 1.0.0-1.el7 foreman
tfm-rubygem-responders.noarch 2.4.0-1.el7 foreman
tfm-rubygem-rest-client.noarch 2.0.1-2.el7 foreman
tfm-rubygem-roadie.noarch 3.2.2-1.el7 foreman
tfm-rubygem-roadie-rails.noarch 1.2.1-1.el7 foreman
tfm-rubygem-ruby2ruby.noarch 2.4.0-1.el7 foreman
tfm-rubygem-ruby_parser.noarch 3.10.1-1.el7 foreman
tfm-rubygem-safemode.noarch 1.3.4-1.el7 foreman
tfm-rubygem-scoped_search.noarch 4.1.2-2.el7 foreman
tfm-rubygem-secure_headers.noarch 3.4.1-2.el7 foreman
tfm-rubygem-sequel.noarch 4.20.0-7.el7 foreman
tfm-rubygem-sexp_processor.noarch 4.10.0-4.el7 foreman
0.1.10-2.fm1_17.el7 foreman-plugins
tfm-rubygem-sprockets-rails.noarch 3.2.0-2.el7 foreman
tfm-rubygem-sshkey.noarch 1.9.0-2.el7 foreman
tfm-rubygem-systemu.noarch 2.6.5-2.el7 foreman-plugins
tfm-rubygem-trollop.noarch 2.1.2-2.el7 foreman
tfm-rubygem-unf.noarch 0.1.3-6.el7 foreman
tfm-rubygem-unf_ext.x86_64 0.0.6-7.el7 foreman
tfm-rubygem-unicode.x86_64 0.4.4.1-4.el7 foreman
1.0.5-2.el7 foreman
tfm-rubygem-useragent.noarch 0.16.8-2.el7 foreman
0.5.0-4.el7 foreman
tfm-rubygem-webpack-rails.noarch 0.9.8-2.el7 foreman
tfm-rubygem-wicked.noarch 1.3.2-1.el7 foreman-plugins
tfm-rubygem-will_paginate.noarch 3.1.5-2.el7 foreman
tfm-rubygem-x-editable-rails.noarch 1.5.5-2.el7 foreman
tfm-runtime.x86_64 4.0-1.el7 foreman
Foreman and Proxy plugin versions:
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]