Mailinglist Archive: opensuse-buildservice (247 mails)

< Previous Next >
Re: [opensuse-buildservice] Own instance - "requests" error in WebUI, and rake error
As a quick update:

RAILS_ENV=production rake jobs:enforceissuesupdate
RAILS_ENV=production rake jobs:updateissues

Seems to have cleared up this error, however, WebUI still says:

[ERROR|#81086] rescue_action: caught ActionView::TemplateError: undefined method `has_element?' for nil:NilClass
[INFO |#81086] Rendering template within layouts/application
[INFO |#81086] Rendering error (400)






[INFO |#81086] Processing HomeController#my_work (for 68.67.167.106 at 2013-06-19 14:19:00) [GET]
[INFO |#81086] Parameters: {"action"=>"my_work", "controller"=>"home"}
[INFO |#81086] Authenticated request to "/home/my_work" from mdrobnak
[ERROR|#81086] --> caught EOFError: end of file reached, retrying with new HTTP connection
[INFO |#81086] Rendering template within layouts/application
[INFO |#81086] Rendering home/my_work

[FATAL|#81086] ActionView::TemplateError (undefined method `has_element?' for nil:NilClass) on line #34 of app/views/shared/_requests.html.erb:
31: <td class="nowrap"><span class="hidden"><%= Time.parse(req.state.when).to_i %></span><%= fuzzy_time_string(req.state.when) %></td>
32: <% end %>
33: <td>
34: <% if ae.has_element? :source %> <!-- <%= ae.source.project %> -->
35: <% if ae.source.has_attribute? :package %> <!-- <%= ae.source.package %> -->
36: <% src_proj, src_pack = elide_two(ae.source.project, ae.source.package, elide_len) %>
37: <%= link_to(src_proj, :controller => :project, :action => :show, :project => ae.source.project) %> /

app/views/shared/_requests.html.erb:34
app/views/shared/_requests.html.erb:26:in `each'
app/views/shared/_requests.html.erb:26
app/views/home/my_work.html.erb:49
app/controllers/home_controller.rb:51:in `my_work'
passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.9) lib/phusion_passenger/classic_rails/framework_spawner.rb:268:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.9) lib/phusion_passenger/classic_rails/framework_spawner.rb:263:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.9) lib/phusion_passenger/classic_rails/framework_spawner.rb:261:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.9) lib/phusion_passenger/classic_rails/framework_spawner.rb:93:in `start'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.9) helper-scripts/passenger-spawn-server:99


[ERROR|#81086] rescue_action: caught ActionView::TemplateError: undefined method `has_element?' for nil:NilClass
[INFO |#81086] Rendering template within layouts/application
[INFO |#81086] Rendering error (400)


-Matt

On 06/19/2013 10:11 AM, Matthew Drobnak wrote:
It looks like the cron job is failing:

wwwrun@obs01:/srv/www/obs/api> RAILS_ENV=production rake -s jobs:updateissues --trace
** Invoke jobs:updateissues (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute jobs:updateissues
rake aborted!
Wrong type NilClass. Not allowed!
/usr/lib64/ruby/1.8/xmlrpc/create.rb:207:in `conv2value'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:230:in `conv2value'
/usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `collect'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:227:in `each'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:227:in `collect'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:227:in `conv2value'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:118:in `methodCall'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:117:in `collect'
/usr/lib64/ruby/1.8/xmlrpc/create.rb:117:in `methodCall'
/usr/lib64/ruby/1.8/xmlrpc/client.rb:419:in `call2'
/usr/lib64/ruby/1.8/xmlrpc/client.rb:410:in `call'
/usr/lib64/ruby/1.8/xmlrpc/client.rb:617:in `send'
/usr/lib64/ruby/1.8/xmlrpc/client.rb:617:in `method_missing'
/srv/www/obs/api/app/models/issue_tracker.rb:54:in `update_issues'
/srv/www/obs/api/lib/tasks/delayed_job.rake:17
/srv/www/obs/api/lib/tasks/delayed_job.rake:15:in `each'
/srv/www/obs/api/lib/tasks/delayed_job.rake:15
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:228:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:166:in `invoke_with_call_chain'
/usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:101:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:73:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-10.0.3/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => jobs:updateissues

Anyone have any clues as to why this would be?

OBS package versions:

wwwrun@obs01:/srv/www/obs/api> rpm -qa |grep obs
obs-service-download_files-0.4-34.1.noarch
obs-service-source_validator-0.2-22.1.noarch
obs-service-cpanspec-0.1-2.2.noarch
obs-service-verify_file-0.1-13.1.noarch
obs-worker-2.3.8-3.10.noarch
obs-productconverter-2.3.8-3.10.x86_64
obs-service-download_src_package-0.2-2.2.noarch
obs-api-2.3.8-3.10.x86_64
obs-service-tar_scm-0.2.3-47.1.noarch
obs-signd-2.1.5-1.1.x86_64
obs-service-download_url-0.1-13.1.noarch
obs-service-extract_file-0.1-6.2.noarch
obs-service-set_version-0.2-7.1.noarch
obs-source_service-2.3.8-3.10.x86_64
obs-server-2.3.8-3.10.x86_64
obs-utils-2.3.8-3.10.x86_64
obs-service-recompress-0.2-7.1.noarch


Any help getting this fixed ASAP would be greatly appreciated. I didn't find anything on the wiki referring to this.

Thanks.

-Matt

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References