Actions
Bug #12942
closedDB migration fails under Rails 4
Description
The plugin uses a non-Rails 4 compatible way of setting up DB migrations, which should be changed in the same way as https://github.com/theforeman/foreman_plugin_template/pull/10/files.
+ /usr/bin/tfm-rake db:migrate RAILS_ENV=development --trace Log file /builddir/build/BUILD/rubygem-foreman_salt-4.0.1/usr/share/foreman/log/development.log cannot be opened. Falling back to STDOUT WARN root : No appender set, logging to STDOUT ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. rake aborted! NoMethodError: undefined method `+' for #<Rails::Paths::Path:0x000000038f8b00> /builddir/build/BUILDROOT/tfm-rubygem-foreman_salt-4.0.1-1.fm1_11.git.113.1a502e6.el7.centos.x86_64/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_salt-4.0.1/lib/foreman_salt/engine.rb:25:in `block in <class:Engine>' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run' /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:226:in `block in tsort_each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:429:in `each_strongly_connected_component_from' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:347:in `block in each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `call' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:345:in `each_strongly_connected_component' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:224:in `tsort_each' /opt/rh/rh-ruby22/root/usr/share/ruby/tsort.rb:203:in `tsort_each'
There may be further incompatibilities, please update and release the plugin for compatibility with Foreman's develop so the RPM package can be maintained. More info at https://groups.google.com/forum/#!topic/foreman-dev/m7HrOIm3vIU
Updated by Anonymous almost 9 years ago
- Status changed from New to Closed
- Assignee set to Stephen Benjamin
- Pull request https://github.com/theforeman/foreman_salt/pull/56 added
this was done in a121bba7049cbb00eefb815d07b0241e0e2bdbd4
Actions