Found the cause of this problem. The application server was running under a different user to what the git daemon and the owner of the git repos. As soon as I changed the application server user to match that of git, the problem was solved.
Regards, Peter On Dec 16, 5:27 pm, Peter <[email protected]> wrote: > Somehow I got this fixed. I moved the repository from /var/gitorious/ > repositories to git's home directory (/home/git/repositories). I also > ensured that all repository directories and files are owned by the git > user. That seemed to do the trick. > > However, I came accross another problem when I tried to access the > repository from the gitorious web interface on my server. When I try > to view the mainline tree, I get this error: > > "We're sorry, but something went wrong. > We've been notified about this issue and we'll take a look at it > shortly." > > The error email contains this (first few lines only, I include the > complete message at the end of the message): > > ########################################## > A Grit::NoSuchPathError occurred in trees#index: > > /home/git/gitorious/repositories/depot5/mainline.git > [RAILS_ROOT]/vendor/grit/lib/grit/repo.rb:35:in `initialize' > > ------------------------------- > Request: > ------------------------------- > > * URL:http://127.0.0.1:9002/projects/depot5/repos/mainline/trees > * Parameters: {"namespace"=>nil, "project_id"=>"depot5", > "action"=>"index", "path_prefix"=>"/projects/:project_id/ > repos/:repository_id", "controller"=>"trees", > "name_prefix"=>"project_repository_", "repository_id"=>"mainline"} > * Rails root: /var/www/gitorious > ######################################## > > I have triple checked that the directory /home/git/gitorious/ > repositories/depot5/mainline.git exists and is owned by the git user. > I have checked all configuration files I can find to make sure there > is no other reference to an incorrect repository. > > A similar error comes up when I click on two other links under the > Repositories tab ("Commits" and "Source Tree"). "Overview", "Comments" > and "Merge requests" work fine. > > Any ideas as to what the problem is? Any hints at all are appreciated. > > Thanks, > > Peter > > ============FULL ERROR MESSAGE========== > A Grit::NoSuchPathError occurred in trees#index: > > /home/git/gitorious/repositories/depot5/mainline.git > [RAILS_ROOT]/vendor/grit/lib/grit/repo.rb:35:in `initialize' > > ------------------------------- > Request: > ------------------------------- > > * URL:http://127.0.0.1:9002/projects/depot5/repos/mainline/trees > * Parameters: {"namespace"=>nil, "project_id"=>"depot5", > "action"=>"index", "path_prefix"=>"/projects/:project_id/ > repos/:repository_id", "controller"=>"trees", > "name_prefix"=>"project_repository_", "repository_id"=>"mainline"} > * Rails root: /var/www/gitorious > > ------------------------------- > Session: > ------------------------------- > > * @cgi: #<Mongrel::CGIWrapper:0xb715d634 > �...@args=nil, > �...@cookies= > {"_learningrails_9_session"=> > ["BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo > %0ASGFzaHsABjoKQHVzZWR7AA%3D > %3D--7c4dd0e7fc16f43fa2827a4f2403c8402268c6ae"], > "_session_id"=>["326a99c9bf71319238e7f955c7c4e1ce"], > "_ks1_session_id"=> > ["BAh7CDoOcmV0dXJuX3RvMDoMdXNlcl9pZGkPIgpmbGFzaElDOidBY3Rpb25D > \nb250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--863e0d1fc8cbea1e7e3b2ea9179534c86872a314"], > "preferred_auth"=>["database"], > "tracks_login"=>["peter"], > "_rails-base_session"=> > ["BAh7BzoMdXNlcl9pZDAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZs > \nYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=-- > eb0330abbb4c1bb1e57e8607b3e78b50aa7fff22"]}, > �...@default_really_final=false, > �...@handler= > #<Mongrel::Rails::RailsHandler:0xb708d844 > �...@active_request_path="/projects/depot5/repos/mainline/trees", > �...@files= > #<Mongrel::DirHandler:0xb708d344 > �...@default_content_type="application/octet-stream", > �...@index_html="index.html", > �...@listing_allowed=false, > �...@path="/var/www/gitorious/public">, > �...@guard=#<Mutex:0xb708ce58>, > �...@listener= > #<Mongrel::HttpServer:0xb78df420 > �...@acceptor=#<Thread:0xb6d67ea8 sleep>, > �...@classifier= > #<Mongrel::URIClassifier:0xb78df3d0 > �...@handler_map={"/"=>[#<Mongrel::Rails::RailsHandler: > 0xb708d844 ...>]}, > �...@matcher=//, > �...@root_handler=[#<Mongrel::Rails::RailsHandler: > 0xb708d844 ...>]>, > �...@host="127.0.0.1", > �...@num_processors=1024, > �...@port=9002, > �...@socket=#<TCPServer:0xb78df3e4>, > �...@throttle=0.0, > �...@timeout=60, > �...@workers=#<ThreadGroup:0xb78df3a8>>>, > �...@head={}, > �...@input=#<StringIO:0xb715d9a4>, > �...@multipart=false, > �...@out_called=false, > �...@output_cookies=nil, > �...@output_hidden=nil, > �...@params={}, > �...@request= > #<Mongrel::HttpRequest:0xb715d9b8 > �...@body=#<StringIO:0xb715d9a4>, > �...@dispatchers=[], > �...@params= > {"SERVER_NAME"=>"127.0.0.1", > "HTTP_ACCEPT"=> > "text/html,application/xhtml+xml,application/xml;q=0.9,*/ > *;q=0.8", > "HTTP_HOST"=>"127.0.0.1:9002", > "HTTP_X_FORWARDED_HOST"=>"192.168.111.200:100", > "HTTP_USER_AGENT"=> > "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv: > 1.9.0.4) Gecko/2008102920 Firefox/3.0.4", > "REQUEST_PATH"=>"/projects/depot5/repos/mainline/trees", > "SERVER_PROTOCOL"=>"HTTP/1.1", > "HTTP_ACCEPT_LANGUAGE"=>"en-us,en;q=0.5", > "REMOTE_ADDR"=>"127.0.0.1", > "PATH_INFO"=>"/projects/depot5/repos/mainline/trees", > "SERVER_SOFTWARE"=>"Mongrel 1.1.5", > "SCRIPT_NAME"=>"/", > "HTTP_REFERER"=> > "http://192.168.111.200:100/projects/depot5/repos/mainline", > "HTTP_COOKIE"=> > "preferred_auth=database; tracks_login=peter; > _learningrails_9_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo > %250ASGFzaHsABjoKQHVzZWR7AA%253D > %253D--7c4dd0e7fc16f43fa2827a4f2403c8402268c6ae; _rails- > base_session=BAh7BzoMdXNlcl9pZDAiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZs > %0AYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D-- > eb0330abbb4c1bb1e57e8607b3e78b50aa7fff22; > _ks1_session_id=BAh7CDoOcmV0dXJuX3RvMDoMdXNlcl9pZGkPIgpmbGFzaElDOidBY3Rpb25D > %0Ab250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--863e0d1fc8cbea1e7e3b2ea9179534c86872a314; > _session_id=326a99c9bf71319238e7f955c7c4e1ce", > "HTTP_VERSION"=>"HTTP/1.1", > "HTTP_X_FORWARDED_SERVER"=>"ubuntuserver.futureshock.com.au", > "REQUEST_URI"=>"/projects/depot5/repos/mainline/trees", > "SERVER_PORT"=>"9002", > "HTTP_X_FORWARDED_FOR"=>"192.168.111.49", > "HTTP_ACCEPT_CHARSET"=>"ISO-8859-1,utf-8;q=0.7,*;q=0.7", > "REQUEST_METHOD"=>"GET", > "GATEWAY_INTERFACE"=>"CGI/1.2", > "HTTP_CONNECTION"=>"Keep-Alive", > "HTTP_ACCEPT_ENCODING"=>"gzip,deflate"}, > �...@socket=#<TCPSocket:0xb715e2b4>>, > �...@response= > #<Mongrel::HttpResponse:0xb715d9e0 > �...@body=#<StringIO:0xb715d968>, > �...@body_sent=false, > �...@header= > #<Mongrel::HeaderOut:0xb715d904 > �...@allowed_duplicates= > {"WWW-Authenticate"=>true, > "Set-Cookie2"=>true, > "Warning"=>true, > "Set-Cookie"=>true}, > �...@out=#<StringIO:0xb715d92c>, > �...@sent={"Date"=>true}>, > �...@header_sent=false, > �...@reason=nil, > �...@socket=#<TCPSocket:0xb715e2b4>, > �...@status=404, > �...@status_sent=false>, > �...@stdinput=#<IO:/dev/null>> > * @data: {:return_to=>nil, :user_id=>10, "flash"=>{}} > * @session_id: > "BAh7CDoOcmV0dXJuX3RvMDoMdXNlcl9pZGkPIgpmbGFzaElDOidBY3Rpb25D > \nb250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--863e0d1fc8cbea1e7e3b2ea9179534c86872a314" > * @new_session: false > > ------------------------------- > Environment: > ------------------------------- > > * 23: GATEWAY_INTERFACE > * 23: HTTP_ACCEPT > * 23: HTTP_ACCEPT_CHARSET > * 23: HTTP_ACCEPT_ENCODING > * 23: HTTP_ACCEPT_LANGUAGE > * 23: HTTP_CONNECTION > * 23: HTTP_COOKIE > * 23: HTTP_HOST > * 23: HTTP_REFERER > * 23: HTTP_USER_AGENT > * 23: HTTP_VERSION > * 23: HTTP_X_FORWARDED_FOR > * 23: HTTP_X_FORWARDED_HOST > * 23: HTTP_X_FORWARDED_SERVER > * 23: PATH_INFO > * 23: REMOTE_ADDR > * 23: REQUEST_METHOD > * 23: REQUEST_PATH > * 23: REQUEST_URI > * 23: SCRIPT_NAME > * 23: SERVER_NAME > * 23: SERVER_PORT > * 23: SERVER_PROTOCOL > * 23: SERVER_SOFTWARE > > * Process: 12088 > * Server : home > > ------------------------------- > Backtrace: > ------------------------------- > > [RAILS_ROOT]/vendor/grit/lib/grit/repo.rb:35:in `initialize' > [RAILS_ROOT]/app/models/repository.rb:102:in `new' > [RAILS_ROOT]/app/models/repository.rb:102:in `git' > [RAILS_ROOT]/app/models/repository.rb:107:in `has_commits?' > [RAILS_ROOT]/app/controllers/application.rb:62:in > `check_repository_for_commits' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:173:in `send' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:173:in `evaluate_method' > [RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/ > callbacks.rb:161:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > filters.rb:430:in `call' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > filters.rb:592:in `run_before_filters' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > filters.rb:578:in `call_filters' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > filters.rb:573:in `perform_action_without_benchmark' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' > [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: > 201:in `perform_action_without_caching' > [RAILS_ROOT]/vendor/rails/actionpack/lib/action_controller/caching/ > sql_cache.rb:13:in `perform_action' > [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/ > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Gitorious" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gitorious?hl=en -~----------~----~----~----~------~----~------~--~---
