There seems to be a permission issue. If i reset the permissions on the repositories directory too the git user, i can view the repo fine. However a new repo is not created with permissions of the git user. Any ideas why? Are the repos created by the same user that runs the poller script? i.e does the poller script need to be run as the git user?
On Wed, Jun 29, 2011 at 12:29 PM, Ismail Dhorat <idho...@gmail.com> wrote: > Hi Guys, > > I am getting a 500 Internal Server error when creating a new repository and > trying to view it. I have checked the message processing log and that seems > to be fine. However in the production log i have the following error: > > > ActionView::TemplateError > (/home/git/repositories/375/dd6/bafce5ddce64248e1502c2737ce591d897.git) on > line #46 of app/views/repositories/_overview.html.erb: > 43: :locals => {:repository => repository} -%> > 44: > 45: </div> > 46: <% if verbose && repository.has_commits? && > !repository.git.heads.blank? -%> > 47: <div class="branches"> > 48: <ul class="branch_list"> > 49: <li><strong>Branches:</strong></li> > > vendor/grit/lib/grit/repo.rb:36:in `initialize' > app/models/repository.rb:251:in `new' > app/models/repository.rb:251:in `git' > app/models/repository.rb:256:in `has_commits?' > app/views/repositories/_overview.html.erb:46 > vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send' > vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `render' > vendor/rails/actionpack/lib/action_view/base.rb:306:in `with_template' > vendor/rails/actionpack/lib/action_view/renderable.rb:30:in `render' > vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in > `render' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in > `benchmark' > vendor/rails/actionpack/lib/action_view/renderable_partial.rb:19:in > `render' > vendor/rails/actionpack/lib/action_view/template.rb:205:in > `render_template' > vendor/rails/actionpack/lib/action_view/renderable_partial.rb:44:in > `render_partial' > vendor/rails/actionpack/lib/action_view/partials.rb:184:in > `render_partial' > vendor/rails/actionpack/lib/action_view/base.rb:267:in `render' > app/views/repositories/show.html.erb:30 > app/helpers/application_helper.rb:116:in `render_if_ready' > app/views/repositories/show.html.erb:27 > vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `send' > vendor/rails/actionpack/lib/action_view/renderable.rb:34:in `render' > vendor/rails/actionpack/lib/action_view/base.rb:306:in `with_template' > vendor/rails/actionpack/lib/action_view/renderable.rb:30:in `render' > vendor/rails/actionpack/lib/action_view/template.rb:205:in > `render_template' > vendor/rails/actionpack/lib/action_view/base.rb:265:in `render' > vendor/rails/actionpack/lib/action_view/base.rb:348:in > `_render_with_layout' > vendor/rails/actionpack/lib/action_view/base.rb:262:in `render' > vendor/rails/actionpack/lib/action_controller/base.rb:1250:in > `render_for_file' > vendor/rails/actionpack/lib/action_controller/base.rb:951:in > `render_without_benchmark' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in > `render' > > vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in > `ms' > /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' > > vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in > `ms' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in > `render' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in > `send' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135 > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:179:in > `call' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:179:in > `respond' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:173:in > `each' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:173:in > `respond' > vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in > `respond_to' > app/controllers/repositories_controller.rb:58:in `show' > vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `send' > vendor/rails/actionpack/lib/action_controller/base.rb:1331:in > `perform_action_without_filters' > vendor/rails/actionpack/lib/action_controller/filters.rb:617:in > `call_filters' > vendor/rails/actionpack/lib/action_controller/filters.rb:610:in > `perform_action_without_benchmark' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > > vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in > `ms' > /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' > > vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in > `ms' > vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in > `perform_action_without_flash' > vendor/rails/actionpack/lib/action_controller/flash.rb:146:in > `perform_action' > vendor/rails/actionpack/lib/action_controller/base.rb:532:in `send' > vendor/rails/actionpack/lib/action_controller/base.rb:532:in > `process_without_filters' > vendor/rails/actionpack/lib/action_controller/filters.rb:606:in > `process' > vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process' > vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call' > > vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in > `call' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in > `dispatch' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in > `_call' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130 > vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call' > vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call' > > vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in > `cache' > vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache' > vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call' > > vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in > `call' > vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in > `call' > rack (1.0.1) lib/rack/head.rb:9:in `call' > rack (1.0.1) lib/rack/methodoverride.rb:24:in `call' > vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in > `call' > vendor/rails/railties/lib/rails/rack/metal.rb:47:in `call' > > vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in > `call' > > vendor/rails/activesupport/lib/active_support/cache/strategy/local_cache.rb:24:in > `call' > vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call' > rack (1.0.1) lib/rack/lock.rb:11:in `call' > rack (1.0.1) lib/rack/lock.rb:11:in `synchronize' > rack (1.0.1) lib/rack/lock.rb:11:in `call' > vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in > `call' > passenger (3.0.7) lib/phusion_passenger/rack/request_handler.rb:96:in > `process_request' > passenger (3.0.7) > lib/phusion_passenger/abstract_request_handler.rb:513:in > `accept_and_process_next_request' > passenger (3.0.7) > lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' > passenger (3.0.7) > lib/phusion_passenger/classic_rails/application_spawner.rb:321:in > `start_request_handler' > passenger (3.0.7) > lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' > passenger (3.0.7) > lib/phusion_passenger/classic_rails/application_spawner.rb:275:in > `handle_spawn_application' > passenger (3.0.7) lib/phusion_passenger/utils.rb:479:in `safe_fork' > passenger (3.0.7) > lib/phusion_passenger/classic_rails/application_spawner.rb:270:in > `handle_spawn_application' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `__send__' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `server_main_loop' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > `start_synchronously' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:180:in > `start' > passenger (3.0.7) > lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:219:in > `spawn_rails_application' > passenger (3.0.7) > lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:214:in > `spawn_rails_application' > passenger (3.0.7) > lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' > passenger (3.0.7) > lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:213:in > `spawn_rails_application' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:132:in > `spawn_application' > passenger (3.0.7) lib/phusion_passenger/spawn_manager.rb:275:in > `handle_spawn_application' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `__send__' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:357:in > `server_main_loop' > passenger (3.0.7) lib/phusion_passenger/abstract_server.rb:206:in > `start_synchronously' > passenger (3.0.7) helper-scripts/passenger-spawn-server:99 > > Regards, > Ismail > -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com