On Jun 3, 10:36 am, Johan Sørensen <[email protected]> wrote:
> On Wed, Jun 3, 2009 at 4:41 PM, prlawrence <[email protected]> wrote:
> >> > Now I enter 'barteam' as the team name, and "Team Bar" as the team
> >> > description. I don't add a team image. I click the create team
> >> > button:
> >> > nnn.nn.n.nn - - [02/Jun/2009:22:27:08 -0500] "POST /teams HTTP/1.1"
> >> > 200 2695 "http://gitorious.domain.com/teams/new" "Mozilla/5.0
> >> > (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316
> >> > Firefox/3.0.10"
>
> Could change line 13 of config/environments/production.rb to say
> config.log_level = :info # eg info loglevel instead of warn
>
> Restart the server (I'm guessing you're running passenger? What
> version?). That way it'll log (a lot) more and maybe we see what's
> really happening when you post.
I'm running ruby-enterprise-1.8.6-20090421 with the passenger gem
2.2.2.
OK, here is the expanded log/production.log output (with added
commentary). Thanks!
# started at main page
Processing SiteController#index (for nnn.nn.n.nn at 2009-06-03
23:38:05) [GET]
Rendering template within layouts/application
Rendering site/index
Completed in 1374ms (View: 201, DB: 466) | 200 OK [http://
gitorious.domain.com/]
# clicked the link for teams
Processing GroupsController#index (for nnn.nn.n.nn at 2009-06-03
23:38:21) [GET]
Rendering template within layouts/application
Rendering groups/index
Completed in 68ms (View: 23, DB: 43) | 200 OK [http://
gitorious.domain.com/teams]
# clicked add team link
Processing GroupsController#new (for nnn.nn.n.nn at 2009-06-03
23:38:26) [GET]
Rendering template within layouts/application
Rendering groups/new
Completed in 21ms (View: 17, DB: 6) | 200 OK [http://
gitorious.domain.com/teams/new]
# filled in form, clicked create team button
Processing GroupsController#create (for nnn.nn.n.nn at 2009-06-03
23:38:40) [POST]
Parameters: {"commit"=>"Create team", "group"=>{"name"=>"foo-team",
"description"=>"Team Foo!"}}
[paperclip] Saving attachments.
Rendering template within layouts/application
Rendering groups/new
Completed in 109ms (View: 15, DB: 45) | 200 OK [http://
gitorious.domain.com/teams]
# the same form appeared again. I clicked create team again, and it
seemed
# to try to update the team, as though it succeeded in creating it the
first time.
# Instead, it turns up a 404 for http://gitorious.domain.com/+foo-team
Processing GroupsController#update (for nnn.nn.n.nn at 2009-06-03
23:39:17) [PUT]
Parameters: {"commit"=>"Create team", "id"=>"foo-team", "group"=>
{"name"=>"foo-team", "description"=>"Team Foo!"}}
Rendering /var/www/gitorious/public/404.html (404)
# Now I'll try and add someone to the team I created using the rails
console.
# First I click the Home link, then the teams link, then the entapps
team link,
# then the add member link, then add the member info and submit:
** [localized_dates] localized_dates plugin loaded.
** [localized_dates] loading file /var/www/gitorious/config/locales/
en.rb
** [localized_dates] loading file /var/www/gitorious/config/locales/
es.rb
** [localized_dates] loading file /var/www/gitorious/config/locales/pt-
BR.rb
** [localized_dates] loading file /var/www/gitorious/config/locales/
en.yml
** [localized_dates] locales loaded from config/locales.
** ultrasphinx: spelling support not available (raspell configuration
raised "uninitialized constant Ultrasphinx::Spell::Aspell")
Processing SiteController#index (for nnn.nn.n.nn at 2009-06-03
23:45:35) [GET]
Rendering template within layouts/application
Rendering site/index
Completed in 137ms (View: 58, DB: 12) | 200 OK [http://
gitorious.domain.com/]
Processing GroupsController#index (for nnn.nn.n.nn at 2009-06-03
23:46:03) [GET]
Rendering template within layouts/application
Rendering groups/index
Completed in 42ms (View: 23, DB: 27) | 200 OK [http://
gitorious.domain.com/teams]
Processing GroupsController#show (for nnn.nn.n.nn at 2009-06-03
23:46:07) [GET]
Parameters: {"id"=>"entapps"}
Rendering template within layouts/application
Rendering groups/show
Event rendering (0.0ms)
Completed in 110ms (View: 88, DB: 26) | 200 OK [http://
gitorious.domain.com/+entapps]
Processing MembershipsController#new (for nnn.nn.n.nn at 2009-06-03
23:46:10) [GET]
Parameters: {"group_id"=>"entapps"}
Rendering template within layouts/application
Rendering memberships/new
Completed in 33ms (View: 16, DB: 26) | 200 OK [http://
gitorious.domain.com/+entapps/memberships/new]
Processing MembershipsController#auto_complete_for_user_login (for
nnn.nn.n.nn at 2009-06-03 23:46:18) [POST]
Parameters: {"user"=>{"login"=>"pl"}, "group_id"=>"entapps"}
Rendering memberships/auto_complete_for_user_login
Completed in 15ms (View: 9, DB: 6) | 200 OK [http://
gitorious.domain.com/+entapps/memberships/
auto_complete_for_user_login]
Processing MembershipsController#create (for nnn.nn.n.nn at 2009-06-03
23:46:25) [POST]
Parameters: {"user"=>{"login"=>"plawrence"}, "commit"=>"Save
changes", "group_id"=>"entapps"}
NoMethodError (undefined method `[]' for nil:NilClass):
app/controllers/memberships_controller.rb:41:in `create'
vendor/rails/actionpack/lib/action_controller/base.rb:1323:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1323: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'
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:
10: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:141:in
`perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:523:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:523: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:
433:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:88:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:111:in
`_call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:82:in
`initialize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/lib/rack/head.rb:9:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/lib/rack/head.rb:9:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/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/
abstract_store.rb:122: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/activesupport/lib/active_support/cache/strategy/
local_cache.rb:24:in `call'
vendor/rails/actionpack/lib/action_controller/failsafe.rb:11:in
`call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/lib/rack/lock.rb:11:in `call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/lib/rack/lock.rb:11:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/vendor/
rack-1.0.0-git/lib/rack/lock.rb:11:in `call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
`call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/rack/request_handler.rb:81:in `process_request'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_request_handler.rb:203:in `main_loop'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/railz/application_spawner.rb:340:in
`start_request_handler'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/railz/application_spawner.rb:298:in
`handle_spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/utils.rb:181:in `safe_fork'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/railz/application_spawner.rb:296:in
`handle_spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:337:in `__send__'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:337:in `main_loop'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:187:in `start_synchronously'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:154:in `start'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/railz/application_spawner.rb:192:in `start'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/spawn_manager.rb:153:in `spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:337:in `__send__'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:337:in `main_loop'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/lib/
phusion_passenger/abstract_server.rb:187:in `start_synchronously'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.2/bin/
passenger-spawn-server:61
Rendering /var/www/gitorious/public/500.html (500 Error)
rendering section "request"
rendering section "session"
rendering section "environment"
rendering section "backtrace"
Sent mail to
--
Phil Lawrence
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---