500 Internal Error

I have on ubuntu a digital library application Kete which gives in the
log/production.log:

Please help, thnx.

/!\ FAILSAFE /!\ Fri Feb 05 19:05:08 +0200 2010
Status: 500 Internal Server Error
No connection to server (localhost:11211 DEAD (Errno::ECONNREFUSED:
Connection refused - connect(2)), will retry at Fri Feb 05 19:05:38
+0200 2010)
/usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/
memcache.rb:855:in with_socket_management' /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/ memcache.rb:732:incache_get’
/usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/
memcache.rb:253:in get' /usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/ memcache.rb:878:inwith_server’
/usr/local/lib/ruby/gems/1.8/gems/memcache-client-1.7.7/lib/
memcache.rb:251:in get' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ session/mem_cache_store.rb:61:ininitialize’
/usr/local/lib/ruby/1.8/cgi/session.rb:280:in new' /usr/local/lib/ruby/1.8/cgi/session.rb:280:ininitialize_without_cgi_reader’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
cgi_ext/session.rb:39:in initialize' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ cgi_process.rb:132:innew’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
cgi_process.rb:132:in session' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ cgi_process.rb:168:instale_session_check!’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
cgi_process.rb:116:in session' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ base.rb:1139:inassign_shortcuts_without_flash’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
flash.rb:166:in assign_shortcuts' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ base.rb:523:inprocess_without_filters’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
filters.rb:568:in process_without_session_management_support' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ session_management.rb:130:inprocess’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
base.rb:389:in process' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:149:inhandle_request’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:107:in dispatch' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:104:insynchronize’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:104:in dispatch' /home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:120:indispatch_cgi’
/home/kete/apps/kato/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:35:in dispatch' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/railz/request_handler.rb:50:inprocess_request’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_request_handler.rb:207:in main_loop' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/railz/application_spawner.rb:378:instart_request_handler’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/railz/application_spawner.rb:336:in
handle_spawn_application' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/utils.rb:183:insafe_fork’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/railz/application_spawner.rb:334:in
handle_spawn_application' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/abstract_server.rb:352:insend
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_server.rb:352:in main_loop' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/abstract_server.rb:196:instart_synchronously’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_server.rb:163:in start' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/railz/application_spawner.rb:213:instart’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/spawn_manager.rb:262:in spawn_rails_application' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/abstract_server_collection.rb:126:inlookup_or_add’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/spawn_manager.rb:256:in spawn_rails_application' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/abstract_server_collection.rb:80:insynchronize’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_server_collection.rb:79:in synchronize' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/spawn_manager.rb:255:inspawn_rails_application’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/spawn_manager.rb:154:in spawn_application' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/spawn_manager.rb:287:inhandle_spawn_application’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_server.rb:352:in __send__' /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/ phusion_passenger/abstract_server.rb:352:inmain_loop’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/
phusion_passenger/abstract_server.rb:196:in `start_synchronously’
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/bin/passenger-
spawn-server:61

On Feb 6, 6:50 am, nbsimsah [email protected] wrote:

I have on ubuntu a digital library application Kete which gives in the
log/production.log:

Please help, thnx.

/!\ FAILSAFE /!\ Fri Feb 05 19:05:08 +0200 2010
Status: 500 Internal Server Error
No connection to server (localhost:11211 DEAD (Errno::ECONNREFUSED:
Connection refused - connect(2)), will retry at Fri Feb 05 19:05:38
+0200 2010)

Looks like your app is trying to use memcache but it couldn’t talk to
the memcache server.

Fred

Hello,
As per your post, i think you are trying to run application on
the already used port. so try to use some alternate port and try to run
application.

Hi Fred,

I can’t telnet localhost 112111 either. I will dig in and notify what
happened. Thank you for the prompt suggestion

Ahmet

On Feb 6, 12:29 pm, Frederick C. [email protected]

On Sun, 2010-02-07 at 17:22 -0800, nbsimsah wrote:

apps/
kato/
log/development.log exists and is chmod 0666. The log level has been
raised to
W
ARN and the output directed to STDERR until the problem is fixed.


chmod -R 666 /home/kete/apps/kato/log

const_missing' app/models/basket.rb:49 app/controllers/application.rb:143:inload_standard_baskets’


line 49 in /home/kete/apps/kato/app/models/basket.rb has something
referring to HELP_BASKET

It doesn’t work - it is causing an error.

You are going to have to learn how to solve these errors.

Craig


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

By the adventrous KETE installation on Ubuntu server, 500 error is
gone, but I’m missing still some crucial intallation steps (?) Upon
ruby script/server command the server generates the following error.
The development database is empty. I entered in to basket table just a
dummy name.

Thanks being patient with me.

=> Booting WEBrick…
Rails Error: Unable to access log file. Please ensure that /home/kete/
apps/
kato/
log/development.log exists and is chmod 0666. The log level has been
raised to
W
ARN and the output directed to STDERR until the problem is fixed.

=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2010-02-08 04:52:15] INFO WEBrick 1.3.1
[2010-02-08 04:52:15] INFO ruby 1.8.7 (2009-06-12) [i686-linux]
[2010-02-08 04:52:15] INFO WEBrick::HTTPServer#start: pid=18687
port=3000


NameError in Index pageController#index

uninitialized constant Basket::HELP_BASKET

RAILS_ROOT: /home/kete/apps/kato
Application Trace | Framework Trace | Full Trace

vendor/rails/activesupport/lib/active_support/dependencies.rb:493:in
const_missing' app/models/basket.rb:49 app/controllers/application.rb:143:in load_standard_baskets’

vendor/rails/activesupport/lib/active_support/dependencies.rb:493:in
const_missing' vendor/rails/activesupport/lib/active_support/dependencies.rb:216:in load_without_new_constant_marking’
vendor/rails/activesupport/lib/active_support/dependencies.rb:216:in
load_file' vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in new_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:215:in
load_file' vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in require_or_load’
vendor/rails/activesupport/lib/active_support/dependencies.rb:261:in
load_missing_constant' vendor/rails/activesupport/lib/active_support/dependencies.rb:468:in const_missing’
vendor/rails/activesupport/lib/active_support/dependencies.rb:480:in
const_missing' vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in send’
vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in
const_missing' vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in send’
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in
evaluate_method' vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in call’
vendor/rails/actionpack/lib/action_controller/filters.rb:191:in call' vendor/rails/actionpack/lib/action_controller/filters.rb:591:in run_before_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:577:in
call_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:572:in perform_action_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in measure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue' vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in perform_action_without_caching’
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
13:in perform_action' vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/query_cache.rb:33:in cache’
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
cache' vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb: 12:in perform_action’
vendor/rails/actionpack/lib/action_controller/base.rb:529:in send' vendor/rails/actionpack/lib/action_controller/base.rb:529:in process_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in
process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb: 130:in process’
vendor/rails/actionpack/lib/action_controller/base.rb:389:in process' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in handle_request’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in
dispatch' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in synchronize’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
dispatch' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in dispatch_cgi’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in
dispatch' vendor/rails/railties/lib/webrick_server.rb:112:in handle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:78:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread’
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in each’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:62:in dispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:66
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require’
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in new_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in
require' vendor/rails/railties/lib/commands/server.rb:39 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require’
script/server:3

vendor/rails/activesupport/lib/active_support/dependencies.rb:493:in
const_missing' app/models/basket.rb:49 vendor/rails/activesupport/lib/active_support/dependencies.rb:216:in load_without_new_constant_marking’
vendor/rails/activesupport/lib/active_support/dependencies.rb:216:in
load_file' vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in new_constants_in’
vendor/rails/activesupport/lib/active_support/dependencies.rb:215:in
load_file' vendor/rails/activesupport/lib/active_support/dependencies.rb:96:in require_or_load’
vendor/rails/activesupport/lib/active_support/dependencies.rb:261:in
load_missing_constant' vendor/rails/activesupport/lib/active_support/dependencies.rb:468:in const_missing’
vendor/rails/activesupport/lib/active_support/dependencies.rb:480:in
const_missing' vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in send’
vendor/rails/activesupport/lib/active_support/dependencies.rb:486:in
const_missing' app/controllers/application.rb:143:in load_standard_baskets’
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in
send' vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in evaluate_method’
vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in
call' vendor/rails/actionpack/lib/action_controller/filters.rb:191:in call’
vendor/rails/actionpack/lib/action_controller/filters.rb:591:in
run_before_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:577:in call_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue’
/usr/local/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in
perform_action_without_caching' vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb: 13:in perform_action’
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:33:in cache' vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in cache’
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:
12:in perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:529:in send’
vendor/rails/actionpack/lib/action_controller/base.rb:529:in
process_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:568:in process_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:
130:in process' vendor/rails/actionpack/lib/action_controller/base.rb:389:in process’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in
handle_request' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in dispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
synchronize' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in dispatch’
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in
dispatch_cgi' vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in dispatch’
vendor/rails/railties/lib/webrick_server.rb:112:in handle_dispatch' vendor/rails/railties/lib/webrick_server.rb:78:in service’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in run’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in start’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in start’
vendor/rails/railties/lib/webrick_server.rb:62:in dispatch' vendor/rails/railties/lib/commands/servers/webrick.rb:66 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require’
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in require’
vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in
new_constants_in' vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in require’
vendor/rails/railties/lib/commands/server.rb:39
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require’
script/server:3

Request

Parameters:

{“urlified_name”=>“kete”}

Show session dump


flash: !map:ActionController::Flash::FlashHash {}

On Feb 6, 12:29 pm, Frederick C. [email protected]