[opensuse-buildservice] undefined method `status' for #<Result:0x2ba3f17d6860>
Hi: While creating a package in my home proyect I get the following error message. OpenSUSE Webclient Error: Error Details: Errorcode: 500 Message: undefined method `status' for #Result:0x2ba3f17d6860 Exception from Webclient: ActionView::TemplateError: undefined method `status' for #Result:0x2ba3f17d6860 Stack Trace: On line #38 of app/views/package/_buildstatus.rhtml 35: :action => 'trigger_rebuild', :project => @project, :package => @package, :repo => result.repository, :arch => result.arch %> 36: <%=h result.arch %> 37: </td> 38: <td><%=h result.status.code %></td> 39: <td> 40: <% if result.status.has_element? :details -%> 41: <%=h result.status.details %> /srv/www/opensuse/common/current/lib/activexml/node.rb:265:in `method_missing' #{RAILS_ROOT}/app/views/package/_buildstatus.rhtml:38:in `_run_rhtml_package__buildstatus' /srv/www/opensuse/common/current/lib/activexml/node.rb:237:in `method_missing' /usr/lib64/ruby/1.8/rexml/element.rb:939:in `each' /usr/lib64/ruby/1.8/rexml/xpath.rb:53:in `each' /usr/lib64/ruby/1.8/rexml/element.rb:939:in `each' /srv/www/opensuse/common/current/lib/activexml/node.rb:235:in `method_missing' #{RAILS_ROOT}/app/views/package/_buildstatus.rhtml:21:in `_run_rhtml_package__buildstatus' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:314:in `compile_and_render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:290:in `render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:249:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:264:in `render' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/partials.rb:59:in `render_partial' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:29:in `benchmark' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/1.8/benchmark.rb:307:in `realtime' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:29:in `benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/partials.rb:58:in `render_partial' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:276:in `render' #{RAILS_ROOT}/app/views/package/show.rhtml:43:in `_run_rhtml_package_show' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:314:in `compile_and_render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:290:in `render_template' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_view/base.rb:249:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:699:in `render_file' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:621:in `render_with_no_layout' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/layout.rb:243:in `render_without_benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:53:in `render' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:53:in `render' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:911:in `perform_action_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib64/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/rescue.rb:82:in `perform_action' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/base.rb:381:in `process_without_filters' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /usr/lib64/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/session_management.rb:117:in `process' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in `dispatch' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:150:in `process_request' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:54:in `process!' /usr/lib64/ruby/1.8/fcgi.rb:612:in `each_cgi' /usr/lib64/ruby/1.8/fcgi.rb:609:in `each_cgi' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:53:in `process!' /usr/lib64/ruby/gems/1.8/gems/rails-1.1.4/lib/fcgi_handler.rb:23:in `process!' /srv/www/opensuse/webclient/current/public/dispatch.fcgi:24 can someone plz look into this ? ;)
Cristian Rodriguez R. escribió:
Hi:
While creating a package in my home proyect I get the following error message.
OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: undefined method `status' for #Result:0x2ba3f17d6860
This error seems to be some kind of "race" since it happends only at package creation stage when the package metadata(?) is not created by the system yet, waiting minute or so before accessing the created package page solves the problem.
On Wednesday, 21. March 2007 08:30, Cristian Rodriguez R. wrote:
Cristian Rodriguez R. escribió:
Hi:
While creating a package in my home proyect I get the following error message.
OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: undefined method `status' for #Result:0x2ba3f17d6860
This error seems to be some kind of "race" since it happends only at package creation stage when the package metadata(?) is not created by the system yet, waiting minute or so before accessing the created package page solves the problem.
Kind of. If the package is new, the API doesn't return any build status, which up to now the webclient failed to check. Fixed. -- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Andreas Bauer
-
Cristian Rodriguez R.