On Tuesday, November 19, 2013 2:22:00 AM UTC+1, Mathieu Bouchard wrote:
> Hi there,
> 
> I just upgraded our local installation of Gitorious and we have the following 
> error when viewing the full diff of a merge request:
> 
> A NoMethodError occurred in merge_request_versions#show:
>   undefined method `merge_requests' for nil:NilClass
>   app/finders/params_finder.rb:35:in `merge_request'
> 
> The URL is https://< xxx >/< project >/< repository >/merge_requests/30/diffs
> 
> I tried with an old merge request (gitorious 2.x) and a new merge request 
> created from a new project / repository. Both have the same error.
> 
> -------------------------------
> Backtrace:
> -------------------------------
> 
>   app/finders/params_finder.rb:35:in `merge_request'
>   app/finders/params_finder.rb:41:in `merge_request_version'
>   app/controllers/params_model_resolver.rb:24:in `merge_request_version'
>   app/controllers/merge_request_versions_controller.rb:33:in `show'
>   actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:4:in 
> `send_action'
>   actionpack (3.2.15) lib/abstract_controller/base.rb:167:in `process_action'
>   actionpack (3.2.15) lib/action_controller/metal/rendering.rb:10:in 
> `process_action'
>   actionpack (3.2.15) lib/abstract_controller/callbacks.rb:18:in `block in 
> process_action'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:469:in 
> `_run__2068303428839750921__process_action__3825904882972603778__callbacks'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:405:in 
> `__run_callback'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:385:in 
> `_run_process_action_callbacks'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
>   actionpack (3.2.15) lib/abstract_controller/callbacks.rb:17:in 
> `process_action'
>   actionpack (3.2.15) lib/action_controller/metal/rescue.rb:29:in 
> `process_action'
>   actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:30:in 
> `block in process_action'
>   activesupport (3.2.15) lib/active_support/notifications.rb:123:in `block in 
> instrument'
>   activesupport (3.2.15) 
> lib/active_support/notifications/instrumenter.rb:20:in `instrument'
>   activesupport (3.2.15) lib/active_support/notifications.rb:123:in 
> `instrument'
>   actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:29:in 
> `process_action'
>   actionpack (3.2.15) lib/action_controller/metal/params_wrapper.rb:207:in 
> `process_action'
>   activerecord (3.2.15) 
> lib/active_record/railties/controller_runtime.rb:18:in `process_action'
>   actionpack (3.2.15) lib/abstract_controller/base.rb:121:in `process'
>   actionpack (3.2.15) lib/abstract_controller/rendering.rb:45:in `process'
>   actionpack (3.2.15) lib/action_controller/metal.rb:203:in `dispatch'
>   actionpack (3.2.15) lib/action_controller/metal/rack_delegation.rb:14:in 
> `dispatch'
>   actionpack (3.2.15) lib/action_controller/metal.rb:246:in `block in action'
>   actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:in `call'
>   actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:in 
> `dispatch'
>   actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:36:in `call'
>   journey (1.0.4) lib/journey/router.rb:68:in `block in call'
>   journey (1.0.4) lib/journey/router.rb:56:in `each'
>   journey (1.0.4) lib/journey/router.rb:56:in `call'
>   actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:608:in `call'
>   exception_notification (3.0.1) lib/exception_notifier.rb:41:in `call'
>   app/middlewares/dolt_cache_middleware.rb:24:in `call'
>   app/middlewares/dolt_auth_middleware.rb:26:in `call'
>   rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
>   rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
>   actionpack (3.2.15) 
> lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
>   rack (1.4.5) lib/rack/etag.rb:23:in `call'
>   rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/head.rb:14:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/params_parser.rb:21:in 
> `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/flash.rb:242:in `call'
>   rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
>   rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/cookies.rb:341:in `call'
>   activerecord (3.2.15) lib/active_record/query_cache.rb:64:in `call'
>   activerecord (3.2.15) 
> lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in 
> `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:28:in 
> `block in call'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:405:in 
> `_run__4422583609609311651__call__3755410463497712531__callbacks'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:405:in 
> `__run_callback'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:385:in 
> `_run_call_callbacks'
>   activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
>   actionpack (3.2.15) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
>   rack (1.4.5) lib/rack/sendfile.rb:102:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
>   actionpack (3.2.15) 
> lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/show_exceptions.rb:56:in 
> `call'
>   railties (3.2.15) lib/rails/rack/logger.rb:32:in `call_app'
>   railties (3.2.15) lib/rails/rack/logger.rb:16:in `block in call'
>   activesupport (3.2.15) lib/active_support/tagged_logging.rb:22:in `tagged'
>   railties (3.2.15) lib/rails/rack/logger.rb:16:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/request_id.rb:22:in 
> `call'
>   rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
>   rack (1.4.5) lib/rack/runtime.rb:17:in `call'
>   activesupport (3.2.15) 
> lib/active_support/cache/strategy/local_cache.rb:72:in `call'
>   actionpack (3.2.15) lib/action_dispatch/middleware/static.rb:63:in `call'
>   railties (3.2.15) lib/rails/engine.rb:484:in `call'
>   railties (3.2.15) lib/rails/application.rb:231:in `call'
>   railties (3.2.15) lib/rails/railtie/configurable.rb:30:in `method_missing'
>   passenger (4.0.24) 
> lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
>   passenger (4.0.24) 
> lib/phusion_passenger/request_handler/thread_handler.rb:140:in 
> `accept_and_process_next_request'
>   passenger (4.0.24) 
> lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
>   passenger (4.0.24) lib/phusion_passenger/request_handler.rb:441:in `block 
> (3 levels) in start_threads'

Hi Mathieu,

We've upgraded Gitorious 2.4.12 to 3.0.0 and we were unable to reproduce the 
problem. Have you used the the upgrade script or you have done all the steps 
manually? Have you tried to restart the web server 
(/etc/init.d/gitorious-unicorn restart)? Are you using private repositories? 
Which version of gitorious you were upgrading to 3.0?

Cheers,
Pawel

-- 
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to