I'm seeing the same error from git master for a while now. Diffs not appearing in merge requests.
A NoMethodError occurred in merge_request_versions#show: undefined method `diffs' for nil:NilClass [RAILS_ROOT]/app/models/merge_request_version.rb:108:in `single_commit_diff' On Aug 4, 8:19 am, ttbek <ttb...@gmail.com> wrote: > I have an error very similar to the one > here:http://groups.google.com/group/gitorious/browse_frm/thread/fad690506e... > > Here is mine: > > A NoMethodError occurred in merge_request_versions#show: > > undefined method `diffs' for nil:NilClass > [RAILS_ROOT]/app/models/merge_request_version.rb:108:in > `single_commit_diff' > > ------------------------------- > Request: > ------------------------------- > > * URL > :http://gitorious.removedbyme.com/risk-assessment/mainline/merge_reque... > * IP address: Removed by me > * Parameters: {"project_id"=>"risk-assessment", "action"=>"show", > "commit_shas"=>"", "id"=>"191", > "controller"=>"merge_request_versions", "merge_request_id"=>"39", > "repository_id"=>"mainline"} > * Rails root: /var/www/gitorious/gitorious > > ------------------------------- > Session: > ------------------------------- > > * session: {:_csrf_token=>"ya7xo6b8xXcTmfvjg6kpygQ7FsHnWZkDKC6lDX > +0eeY=", :user_id=>4, :session_id=>"03c13bdd534b848cf3e86cfeb4f85110", > "flash"=>{}} > > ------------------------------- > Environment: > ------------------------------- > > * DOCUMENT_ROOT : /var/www/gitorious/ > gitorious/public > * HTTP_ACCEPT : */*, text/javascript > * HTTP_ACCEPT_CHARSET : > ISO-8859-1,utf-8;q=0.7,*;q=0.3 > * HTTP_ACCEPT_ENCODING : gzip,deflate,sdch > * HTTP_ACCEPT_LANGUAGE : en-US,en;q=0.8 > * HTTP_CONNECTION : keep-alive > * HTTP_COOKIE : > BX=50p9rnd6dlai0&b=3&s=e1; > _gitorious_sess=BAh7CToQX2NzcmZfdG9rZW4iMXlhN3hvNmI4eFhjVG1mdmpnNmtweWdRN0ZzSG5XWmtES0M2bERYKzBlZVk9Ogx1c2VyX2lkaQk6D3Nlc3Npb25faWQiJTAzYzEzYmRkNTM0Yjg0OGNmM2U4NmNmZWI0Zjg1MTEwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3d5df181bfc4cc6f24ad83a1f7a55bbfa56f3152 > * HTTP_HOST : > gitorious.redcedarsolutionsgroup.com > * HTTP_REFERER > :http://gitorious.redcedarsolutionsgroup.com/risk-assessment/mainline/... > * HTTP_USER_AGENT : Mozilla/5.0 > (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/534.30 (KHTML, like > Gecko) Chrome/12.0.742.122 Safari/534.30 > * HTTP_X_REQUESTED_WITH : XMLHttpRequest > * PASSENGER_CONNECT_PASSWORD : [FILTERED] > * PATH_INFO : /risk-assessment/ > mainline/merge_requests/39/merge_request_versions/191 > * QUERY_STRING : commit_shas= > * REMOTE_ADDR : 98.103.131.155 > * REMOTE_PORT : 56391 > * REQUEST_METHOD : GET > * REQUEST_URI : /risk-assessment/ > mainline/merge_requests/39/merge_request_versions/191?commit_shas= > * SCRIPT_NAME : > * SCRIPT_URI > :http://gitorious.redcedarsolutionsgroup.com/risk-assessment/mainline/... > * SCRIPT_URL : /risk-assessment/ > mainline/merge_requests/39/merge_request_versions/191 > * SERVER_ADDR : removed by me > * SERVER_ADMIN : [no address given] > * SERVER_NAME : > gitorious.removedbyme.com > * SERVER_PORT : 80 > * SERVER_PROTOCOL : HTTP/1.1 > * SERVER_SOFTWARE : Apache/2.2.14 > (Ubuntu) DAV/2 SVN/1.6.6 Phusion_Passenger/3.0.2 PHP/5.3.2-1ubuntu4.9 > with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k > * _ : _ > * action_controller.request.path_parameters : project_idrisk- > assessmentactionshowid191controllermerge_request_versionsrepository_idmainlinemerge_request_id39 > * action_controller.request.query_parameters : commit_shas > * action_controller.request.request_parameters: > * action_controller.rescue.request : > #<ActionController::Request:0x7f564ffc4b60> > * action_controller.rescue.response : > #<ActionController::Response:0x7f564ffc4b38> > * rack.errors : #<IO:0x7f56596b8aa8> > * rack.input : > #<PhusionPassenger::Utils::RewindableInput:0x7f564ffcc6a8> > * rack.multiprocess : true > * rack.multithread : false > * rack.request.cookie_hash : > BX50p9rnd6dlai0&b=3&s=e1_gitorious_sessBAh7CToQX2NzcmZfdG9rZW4iMXlhN3hvNmI4eFhjVG1mdmpnNmtweWdRN0ZzSG5XWmtES0M2bERYKzBlZVk9Ogx1c2VyX2lkaQk6D3Nlc3Npb25faWQiJTAzYzEzYmRkNTM0Yjg0OGNmM2U4NmNmZWI0Zjg1MTEwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3d5df181bfc4cc6f24ad83a1f7a55bbfa56f3152 > * rack.request.cookie_string : > BX=50p9rnd6dlai0&b=3&s=e1; > _gitorious_sess=BAh7CToQX2NzcmZfdG9rZW4iMXlhN3hvNmI4eFhjVG1mdmpnNmtweWdRN0ZzSG5XWmtES0M2bERYKzBlZVk9Ogx1c2VyX2lkaQk6D3Nlc3Npb25faWQiJTAzYzEzYmRkNTM0Yjg0OGNmM2U4NmNmZWI0Zjg1MTEwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--3d5df181bfc4cc6f24ad83a1f7a55bbfa56f3152 > * rack.request.query_hash : commit_shas > * rack.request.query_string : commit_shas= > * rack.run_once : false > * rack.session : > _csrf_tokenya7xo6b8xXcTmfvjg6kpygQ7FsHnWZkDKC6lDX > +0eeY=user_id4session_id03c13bdd534b848cf3e86cfeb4f85110flash > * rack.session.options : > httponlytruedomain.gitorious.redcedarsolutionsgroup.comkey_session_idid03c13bdd534b848cf3e86cfeb4f85110path/ > expire_after1814400 > - Hide quoted text - > * rack.url_scheme : http > * rack.version : 10 > > * Process: 8520 > * Server : charon > > ------------------------------- > Backtrace: > ------------------------------- > > [RAILS_ROOT]/app/models/merge_request_version.rb:108:in > `single_commit_diff' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/cache.rb: > 162:in `fetch' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/ > benchmark.rb:17:in `ms' > /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/ > benchmark.rb:17:in `ms' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/cache.rb: > 162:in `fetch' > [RAILS_ROOT]/app/models/merge_request_version.rb:107:in > `single_commit_diff' > [RAILS_ROOT]/app/models/merge_request_version.rb:39:in `diffs' > [RAILS_ROOT]/app/controllers/merge_request_versions_controller.rb: > 24:in `show' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 1331:in `send' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 1331:in `perform_action_without_filters' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb: > 617:in `call_filters' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb: > 610:in `perform_action_without_benchmark' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/ > benchmark.rb:17:in `ms' > /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/core_ext/ > benchmark.rb:17:in `ms' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/rescue.rb: > 160:in `perform_action_without_flash' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/flash.rb: > 146:in `perform_action' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 532:in `send' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 532:in `process_without_filters' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/filters.rb: > 606:in `process' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 391:in `process' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/base.rb: > 386:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/routing/ > route_set.rb:437:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:87:in `dispatch' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:121:in `_call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:130 > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in `call' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:29:in `call' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/query_cache.rb:34:in `cache' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:9:in `cache' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > query_cache.rb:28:in `call' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:361:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > string_coercion.rb:25:in `call' > /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call' > /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in > `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > params_parser.rb:15:in `call' > [RAILS_ROOT]/vendor/rails/railties/lib/rails/rack/metal.rb:47:in > `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/session/ > cookie_store.rb:93:in `call' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/cache/ > strategy/local_cache.rb:24:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > failsafe.rb:26:in `call' > /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call' > /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in > `synchronize' > /var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > dispatcher.rb:106:in `call' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/rack/ > request_handler.rb:96:in `process_request' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_request_handler.rb:513:in `accept_and_process_next_request' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_request_handler.rb:274:in `main_loop' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > classic_rails/application_spawner.rb:321:in `start_request_handler' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > classic_rails/application_spawner.rb:275:in `send' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > classic_rails/application_spawner.rb:275:in `handle_spawn_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/utils.rb: > 479:in `safe_fork' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > classic_rails/application_spawner.rb:270:in `handle_spawn_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:357:in `__send__' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:357:in `server_main_loop' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:206:in `start_synchronously' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:180:in `start' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > classic_rails/application_spawner.rb:149:in `start' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > spawn_manager.rb:219:in `spawn_rails_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server_collection.rb:132:in `lookup_or_add' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > spawn_manager.rb:214:in `spawn_rails_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server_collection.rb:82:in `synchronize' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server_collection.rb:79:in `synchronize' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > spawn_manager.rb:213:in `spawn_rails_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > spawn_manager.rb:132:in `spawn_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > spawn_manager.rb:275:in `handle_spawn_application' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:357:in `__send__' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:357:in `server_main_loop' > /var/lib/gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/ > abstract_server.rb:206:in `start_synchronously' > /var/lib/gems/1.8/gems/passenger-3.0.2/helper-scripts/passenger-spawn- > server:99 > > The repository has a /refs/merge-requests , but it is empty. We see > new repositories listed in the database when the merge request is > made, but they don't exist in the file system and the exception isn't > thrown until we attempt to view the merge request. Everything else in > the install works to our knowledge. I can't seem to tell if that > other thread was ever properly resolved. Also I believe this is true > of all our repos, not just that one. We migrated to a new server and > upgraded to the current version of gitorious at the same time, don't > know if that info helps, we had to take Sheldon's advice > here:http://groups.google.com/group/gitorious/browse_thread/thread/ced2b96... > to migrate the database. The repositories we were able to just copy > over directly. I've been over permissions... so many times, I'm > pretty stumped on this one. -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com