Hello, I hope all is well. I am hoping someone can help me with a
problem that I am certain is user error?
The configuration details below work in all my other environments
including integration, development and qa. However, the production
servers give the following error:
unable to find server during initialization.
When I telnet to the memcached box from the server having the problem
and run ''stats'', I get
STAT pid 16136
STAT uptime 7398638
STAT time 1275059978
STAT version 1.2.8
STAT pointer_size 64
STAT rusage_user 7.085922
STAT rusage_system 13.275981
STAT curr_items 10878
STAT total_items 11441
STAT bytes 2020180
STAT curr_connections 5
STAT total_connections 306
STAT connection_structures 11
STAT cmd_flush 0
STAT cmd_get 457326
STAT cmd_set 11441
STAT get_hits 412184
STAT get_misses 45142
STAT evictions 0
STAT bytes_read 22600329
STAT bytes_written 53036649
STAT limit_maxbytes 30064771072
STAT threads 5
STAT accepting_conns 1
STAT listen_disabled_num 0
Below are the configuration details and stacktrace:
config/environment.rb (the important parts)
===============================config.action_controller.session_store =
:mem_cache_store
config.gem "memcache-client", :lib => ''memcache''
config/environments/production.rb
==========================config.cache_store = :mem_cache_store
require ''memcache''
Caching
Memcached configuration
memcache_options = {
:c_threshold => 100_000,
:compression => true,
:debug => false,
:namespace => ''gucci'',
:readonly => false,
:urlencode => false,
:multithread => true
}
CACHE = MemCache.new memcache_options
CACHE.servers = [''10.x.x.x:11211'']
Stacktrace
===========/var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/session/mem_cache_store.rb 20 in
initialize''
1 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 72 innew''
2 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 72 in build''
3 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 116 inbuild''
4 /var/www/oro/production/releases/20100528130253/vendor/rails/
activesupport/lib/active_support/inflector.rb 361 in inject''
5 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 116 ineach''
6 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 116 in inject''
7 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/middleware_stack.rb 116 inbuild''
8 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/dispatcher.rb 130 in
build_middleware_stack''
9 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/dispatcher.rb 81 ininitialize''
10 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/dispatcher.rb 51 in new''
11 /var/www/oro/production/releases/20100528130253/vendor/rails/
actionpack/lib/action_controller/dispatcher.rb 51
inrun_prepare_callbacks''
12 /var/www/oro/production/releases/20100528130253/vendor/rails/
railties/lib/initializer.rb 631 in prepare_dispatcher''
13 /var/www/oro/production/releases/20100528130253/vendor/rails/
railties/lib/initializer.rb 185 inprocess''
14 /var/www/oro/production/releases/20100528130253/vendor/rails/
railties/lib/initializer.rb 113 in send''
15 /var/www/oro/production/releases/20100528130253/vendor/rails/
railties/lib/initializer.rb 113 inrun''
16 /var/www/oro/production/releases/20100528130253/config/
environment.rb 29
17 /usr/local//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require''
18 /usr/local//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 31
inrequire'' 19 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/railz/application_spawner.rb 303 in
preload_application''
20 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/railz/application_spawner.rb 252
ininitialize_server''
21 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/utils.rb 255 in report_app_init_status''
22 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/railz/application_spawner.rb 237
ininitialize_server''
23 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server.rb 194 in start_synchronously''
24 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server.rb 163 instart''
25 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/railz/application_spawner.rb 213 in start''
26 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/spawn_manager.rb 262 inspawn_rails_application''
27 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server_collection.rb 126 in lookup_or_add''
28 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/spawn_manager.rb 256 inspawn_rails_application''
29 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server_collection.rb 80 in synchronize''
30 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server_collection.rb 79 insynchronize''
31 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/spawn_manager.rb 255 in spawn_rails_application''
32 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/spawn_manager.rb 154 inspawn_application''
33 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/spawn_manager.rb 287 in handle_spawn_application''
34 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server.rb 352 insend''
35 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server.rb 352 in main_loop''
36 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/lib/
phusion_passenger/abstract_server.rb 196 instart_synchronously''
37 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10/bin/passenger-
spawn-server 61
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.