Error Message on Worker Node


#1

Hey there,

i got an error every minute in evm.log

[----] E, [2016-06-03T12:15:42.905716 #13704:7cb988] ERROR -- : MIQ(MiqServer#monitor) undefined method `pop' for #<MiqUiWorker::ActiveRecord_Relation:0x000000095b0f28>
[----] E, [2016-06-03T12:15:42.906103 #13704:7cb988] ERROR -- : [NoMethodError]: undefined method `pop' for #<MiqUiWorker::ActiveRecord_Relation:0x000000095b0f28>  Method:[rescue in monitor]
[----] E, [2016-06-03T12:15:42.906244 #13704:7cb988] ERROR -- : /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/relation/delegation.rb:136:in `method_missing'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/activerecord-4.2.5/lib/active_record/relation/delegation.rb:99:in `method_missing'
/var/www/miq/vmdb/app/models/mixins/miq_web_server_worker_mixin.rb:95:in `block in sync_workers'
/var/www/miq/vmdb/app/models/mixins/miq_web_server_worker_mixin.rb:94:in `times'
/var/www/miq/vmdb/app/models/mixins/miq_web_server_worker_mixin.rb:94:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:49:in `block in sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:47:in `each'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:47:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:19:in `monitor_workers'
/var/www/miq/vmdb/app/models/miq_server.rb:362:in `block in monitor'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:30:in `realtime_block'
/var/www/miq/vmdb/app/models/miq_server.rb:362:in `monitor'
/var/www/miq/vmdb/app/models/miq_server.rb:382:in `block (2 levels) in monitor_loop'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:11:in `realtime_store'
/var/www/miq/vmdb/gems/pending/util/extensions/miq-benchmark.rb:30:in `realtime_block'
/var/www/miq/vmdb/app/models/miq_server.rb:382:in `block in monitor_loop'
/var/www/miq/vmdb/app/models/miq_server.rb:381:in `loop'
/var/www/miq/vmdb/app/models/miq_server.rb:381:in `monitor_loop'
/var/www/miq/vmdb/app/models/miq_server.rb:273:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:60:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:79:in `start'
/var/www/miq/vmdb/lib/workers/bin/evm_server.rb:3:in `<top (required)>'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/runner.rb:60:in `load'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/runner.rb:60:in `<top (required)>'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in `require'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:90:in `runner'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
/var/www/miq/vmdb/bin/rails:4:in `require'
/var/www/miq/vmdb/bin/rails:4:in `<main>'
[----] I, [2016-06-03T12:15:42.906438 #13704:7cb988]  INFO -- : MIQ(MiqServer#monitor) Reconnecting to database after error...

Can someone help me understand this error ?

Thanks


#2

Hi @schmandforke, what version of MIQ are you using?


#3

latest downloadable capablance version


#4

Hi @schmandforke,

The same basic issue was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1286811 (See Comment #6) and fixed in the following PR with a 1-line change.

This change is not in the Capablanca release so you will need to manually apply it. Please test and let me know if this fixes your issue.

Thanks


#5

awesome that was it ! Thanks for the quick reply ! ! !