Foreman-nightly-rpm-pipeline 76 failed


#1

Foreman RPM nightly pipeline failed:

https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/76/


#2

Couple of warning from installer run I haven’t seen before

  [ WARN 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: rake aborted!
    [ WARN 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: LoadError: cannot load such file -- uglifier
    [ WARN 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require'
    [ WARN 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'

but the errors seems to be failing migrations

 [ERROR 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
    [ERROR 2019-05-15T22:07:19 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
    [ERROR 2019-05-15T22:07:19 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/errors.rb:157:in `fail'
    [ERROR 2019-05-15T22:07:19 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:164:in `sync'
    [ERROR 2019-05-15T22:07:19 verbose] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/exec.rb:616:in `refresh'

I was unable to reproduce locally. Could someone with the access to CI machines run the rake task with --trace?


#3

Ah I see it’s reported already at Bug #26800: Running db migrations on nightlies fails with "LoadError: cannot load such file -- uglifier" - Foreman so most likely caused by https://github.com/theforeman/foreman/pull/6755 and cherrypicked to 1.22 stable already https://github.com/theforeman/foreman/pull/6759

@Ondrej_Prazak could you please take a look?


#4

I reverted the uglifier change and restarted nightlies now which will hopefully pass in .https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/77/


closed #5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.