how to fix this error?

83 views
Skip to first unread message

Buyaka

unread,
Jul 2, 2009, 9:21:32 PM7/2/09
to Gitorious
i'm using Passenger2.2.4 with Apache2.0 and Gitorious on the ubuntu
machine, in my local network.

Gitirous settings:
repository_base_path: /srv/git_repositories
gitorious_host: www.gits.bnt
gitorious_client_port: 80
gitorious_client_host: www.gits.bnt


Error:

** ultrasphinx: spelling support not available (raspell configuration
raised "The file "/usr/lib/aspell/ap.rws" can not be opened for
reading.")

NoMethodError (private method `split' called for nil:NilClass):
app/controllers/application_controller.rb:249:in
`subdomain_without_common'
app/controllers/application_controller.rb:233:in `find_current_site'
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in
`send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in
`evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in
`call'
vendor/rails/actionpack/lib/action_controller/filters.rb:225:in
`call'
vendor/rails/actionpack/lib/action_controller/filters.rb:629:in
`run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:615: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'
passenger (2.2.4) vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call'
passenger (2.2.4) vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call'
passenger (2.2.4) 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'
passenger (2.2.4) vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in
`call'
passenger (2.2.4) vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in
`synchronize'
passenger (2.2.4) vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in
`call'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in
`call'
passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:
91:in `process_request'
passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:
206:in `main_loop'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:
376:in `start_request_handler'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:
334:in `handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:
332:in `handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in
`__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in
`main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in
`start'
passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:
213:in `start'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/
abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/
abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.4) lib/phusion_passenger/
abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in
`spawn_rails_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in
`spawn_application'
passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in
`handle_spawn_application'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in
`__send__'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in
`main_loop'
passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in
`start_synchronously'
passenger (2.2.4) bin/passenger-spawn-server:61


Please help me. how to fix this error?

Marius Mårnes Mathiesen

unread,
Jul 3, 2009, 3:54:44 AM7/3/09
to gito...@googlegroups.com
On Fri, Jul 3, 2009 at 3:21 AM, Buyaka <buyan...@gmail.com> wrote:

i'm using Passenger2.2.4 with Apache2.0 and Gitorious on the ubuntu
machine, in my local network.

Gitirous settings:
      repository_base_path: /srv/git_repositories
      gitorious_host: www.gits.bnt
      gitorious_client_port: 80
      gitorious_client_host: www.gits.bnt

(snip)


NoMethodError (private method `split' called for nil:NilClass):
 app/controllers/application_controller.rb:249:in
`subdomain_without_common'
 
Buyaka,
This error means gitorious_host is not defined for your current rails environment, although from the settings you pasted above it should be. Which Rails environment (ie. production/development) are you running; and are  you sure this setting is defined for that environment? Could it be the indentation in the yaml file is wrong?

If you run script/console <your rails environment> and enter:

  puts GitoriousConfig['gitorious_host']

you should see which value Gitorious reads from the YAML file. 

-- 
Marius Mårnes Mathiesen
Rubyist, Shortcut AS
Tel.: (+47) 92 60 95 38.

http://shortcut.no

Buyaka

unread,
Jul 6, 2009, 4:37:55 AM7/6/09
to Gitorious
thank you Dear Marius

script/console production

Loading production environment (Rails 2.3.2)
/srv/gitorious/config/environment.rb:101: warning: already initialized
constant CA_FILE
/srv/gitorious/app/metal/git_http_cloner.rb:53: warning: already
initialized constant TRUSTED_PROXIES
>> puts GitoriousConfig['gitorious_host']
nil
=> nil
>>


config/gitorious.yml

repository_base_path: /srv/git_repositories
gitorious_host: www.gits.bnt
gitorious_client_port: 80
gitorious_client_host: www.gits.bnt

how i do fix?


On Jul 3, 4:54 pm, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:

Marius Mårnes Mathiesen

unread,
Jul 8, 2009, 6:50:48 AM7/8/09
to gito...@googlegroups.com
On Fri, Jul 3, 2009 at 3:21 AM, Buyaka <buyan...@gmail.com> wrote:

i'm using Passenger2.2.4 with Apache2.0 and Gitorious on the ubuntu
machine, in my local network.

Gitirous settings:
      repository_base_path: /srv/git_repositories
      gitorious_host: www.gits.bnt
      gitorious_client_port: 80
      gitorious_client_host: www.gits.bnt

(snip)


NoMethodError (private method `split' called for nil:NilClass):
 app/controllers/application_controller.rb:249:in
`subdomain_without_common'
 
Buyaka,
This error means gitorious_host is not defined for your current rails environment, although from the settings you pasted above it should be. Which Rails environment (ie. production/development) are you running; and are  you sure this setting is defined for that environment? Could it be the indentation in the yaml file is wrong?

If you run script/console <your rails environment> and enter:

  puts GitoriousConfig['gitorious_host']

you should see which value Gitorious reads from the YAML file. 

Hope this helps,
- Marius
Reply all
Reply to author
Forward
0 new messages