Looking through the code in assets.rb, it would seem that it's dying because plugin.id is nil, I assume because I uninstalled the memcache plugin.
On Tuesday, December 5, 2017 at 3:45:44 PM UTC-6, Tyler Gregory wrote: > > Here it is. > > foreman-rake db:migrate --trace > ** 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! > TypeError: no implicit conversion of nil into String > /usr/share/foreman/config/initializers/assets.rb:73:in `join' > /usr/share/foreman/config/initializers/assets.rb:73:in `block (4 levels) in > <top (required)>' > /usr/share/foreman/config/initializers/assets.rb:72:in `map' > /usr/share/foreman/config/initializers/assets.rb:72:in `block (3 levels) in > <top (required)>' > /usr/share/foreman/config/initializers/assets.rb:69:in `each' > /usr/share/foreman/config/initializers/assets.rb:69:in `block (2 levels) in > <top (required)>' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:36:in > `call' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:36:in > `execute_hook' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:45:in > `block in run_load_hooks' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:44:in > `each' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:44:in > `run_load_hooks' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:62:in > `block in <module:Finisher>' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in > `instance_exec' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in > `run' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/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' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in > `run_initializers' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in > `initialize!' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in > `public_send' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in > `method_missing' > /usr/share/foreman/config/environment.rb:5:in `<top (required)>' > /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in > `require' > /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in > `require' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in > `block in require' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in > `load_dependency' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in > `require' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in > `require_environment!' > /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in > `block in run_tasks_blocks' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in > `call' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in > `block in execute' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in > `each' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in > `execute' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in > `block in invoke_with_call_chain' > /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in > `invoke_with_call_chain' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:201:in > `block in invoke_prerequisites' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in > `each' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:199:in > `invoke_prerequisites' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:178:in > `block in invoke_with_call_chain' > /opt/rh/rh-ruby22/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in > `invoke_with_call_chain' > /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in > `invoke' > /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:in > `block (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:in > `block 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:in > `top_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:in > `standard_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 `<main>' > Tasks: TOP => db:migrate => environment > > > On 5 Dec 2017, at 15:31, Ivan Necas wrote: > > > On Tue, 5 Dec 2017 at 20:02, Tyler Gregory <[email protected]> wrote: > >> We use the following plugins: >> >> - Memcache >> - Setup >> - xen >> - default hostgroup >> >> I uninstalled the Memcache plugin, and the error changed into: >> >> >> TypeError: no implicit conversion of nil into String >> >> I assume this is because there is some sort of data remaining in the >> database from that plugin? Any idea how to get rid of that? >> > > The memcache plugin looks quite simply, it might be just some completely > different issue. Please share the full backtrace for this particular issue > > -- Ivan > >> >> Thanks >> >> On Tuesday, December 5, 2017 at 12:19:56 PM UTC-6, Ivan Necas wrote: >> >>> There was a suspicion on the original issue, that it might be >>> connected to the foreman_memcache: could you >>> check if you have this plugin installed and trying it without it? Any >>> other plugins/tunings on the setup? >>> >>> -- Ivan >>> >>> On Tue, Dec 5, 2017 at 3:48 PM, Tyler Gregory <[email protected]> >>> wrote: >>> > All, >>> > >>> > I upgraded one of our Foreman installs from 1.14.3 -> 1.15.6 -> 1.16.0 >>> > yesterday, and when attempting to run foreman-rake db:migrate the rake >>> task >>> > throws: >>> > >>> > I see that there’s a similar issue open for Rails 5, not sure if >>> that’s >>> > related in any way. >>> > >>> > foreman-rake db:migrate >>> > API controllers newer than Apipie cache! Run apipie:cache rake task to >>> > regenerate cache. >>> > rake aborted! >>> > No such middleware to insert after: >>> > ActionDispatch::Session::ActiveRecordStore >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/stack.rb:125:in >>> >>> >>> > `assert_index' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/stack.rb:96:in >>> >>> >>> > `insert_after' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/configuration.rb:68:in >>> >>> >>> > `block in merge_into' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/configuration.rb:67:in >>> >>> >>> > `each' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/configuration.rb:67:in >>> >>> >>> > `merge_into' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:501:in >>> >>> >>> > `app' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application/finisher.rb:34:in >>> >>> >>> > `block in <module:Finisher>' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in >>> >>> >>> > `instance_exec' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in >>> >>> >>> > `run' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in >>> >>> >>> > `block in run_initializers' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in >>> >>> >>> > `run_initializers' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:352:in >>> >>> >>> > `initialize!' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in >>> >>> >>> > `public_send' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in >>> >>> >>> > `method_missing' >>> > /usr/share/foreman/config/environment.rb:5:in `<top (required)>' >>> > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >>> 4.2.5.1/lib/active_support/dependencies.rb:274:in >>> > `block in require' >>> > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >>> 4.2.5.1/lib/active_support/dependencies.rb:240:in >>> > `load_dependency' >>> > /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport- >>> 4.2.5.1/lib/active_support/dependencies.rb:274:in >>> > `require' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:328:in >>> >>> >>> > `require_environment!' >>> > >>> /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:457:in >>> >>> >>> > `block in run_tasks_blocks' >>> > Tasks: TOP => db:migrate => environment >>> > (See full trace by running task with --trace) >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups >>> > "Foreman users" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an >>> >> > email to [email protected]. >>> > To post to this group, send email to [email protected]. >>> >> > Visit this group at https://groups.google.com/group/foreman-users. >>> > For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Foreman users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/foreman-users/QLidyv9mVss/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
