Error 500 after installing.
Created by: FoxBuru
I'm facing a quite problematic situation here. I'm trying to run Gitlab over apache. I've tried using the ProxyReverse method, and i'm now trying using Passenger. On both scenarios i'm facing with the same problem. When going to the gitlab url (i'm using self-signed SSL), it process for a time, then throws me a 500 error. On production log i have this:
Started GET "/" for 189.192.140.231 at 2013-11-11 13:18:49 -0600 Processing by DashboardController#show as HTML Completed 401 Unauthorized in 144ms
Redis::CannotConnectError (Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)):
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:276:in rescue in establish_connection' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:271:in
establish_connection'
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:69:in connect' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:290:in
ensure_connected'
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:177:in block in process' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:256:in
logging'
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:176:in process' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis/client.rb:84:in
call'
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis.rb:630:in block in set' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis.rb:36:in
block in synchronize'
/opt/local/lib/ruby/1.9.3/monitor.rb:211:in mon_synchronize' vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis.rb:36:in
synchronize'
vendor/bundle/ruby/1.9.3/gems/redis-3.0.4/lib/redis.rb:629:in set' vendor/bundle/ruby/1.9.3/gems/redis-store-1.1.4/lib/redis/store/interface.rb:9:in
set'
vendor/bundle/ruby/1.9.3/gems/redis-store-1.1.4/lib/redis/store/ttl.rb:8:in set' vendor/bundle/ruby/1.9.3/gems/redis-store-1.1.4/lib/redis/store/marshalling.rb:5:in
block in set'
vendor/bundle/ruby/1.9.3/gems/redis-store-1.1.4/lib/redis/store/marshalling.rb:29:in _marshal' vendor/bundle/ruby/1.9.3/gems/redis-store-1.1.4/lib/redis/store/marshalling.rb:5:in
set'
vendor/bundle/ruby/1.9.3/gems/redis-rack-1.4.4/lib/rack/session/redis.rb:31:in block in get_session' vendor/bundle/ruby/1.9.3/gems/redis-rack-1.4.4/lib/rack/session/redis.rb:55:in
with_lock'
vendor/bundle/ruby/1.9.3/gems/redis-rack-1.4.4/lib/rack/session/redis.rb:28:in get_session' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:251:in
load_session'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/session/abstract_store.rb:49:in block in load_session' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/session/abstract_store.rb:57:in
stale_session_check!'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/session/abstract_store.rb:49:in load_session' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:135:in
load!'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:131:in load_for_write!' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:71:in
[]='
vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/failure_app.rb:176:in store_location!' vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/failure_app.rb:55:in
redirect'
vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/failure_app.rb:37:in respond' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in
process_action'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in process' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in
dispatch'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in
block in action'
vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/failure_app.rb:20:in call' vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/failure_app.rb:20:in
call'
vendor/bundle/ruby/1.9.3/gems/devise-2.2.5/lib/devise/delegator.rb:5:in call' vendor/bundle/ruby/1.9.3/gems/warden-1.2.3/lib/warden/manager.rb:130:in
call_failure_app'
vendor/bundle/ruby/1.9.3/gems/warden-1.2.3/lib/warden/manager.rb:116:in process_unauthenticated' vendor/bundle/ruby/1.9.3/gems/warden-1.2.3/lib/warden/manager.rb:47:in
call'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in call' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/etag.rb:23:in
call'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in call' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in
call'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in call' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in
call'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in context' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in
call'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in call' vendor/bundle/ruby/1.9.3/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in
call'
vendor/bundle/ruby/1.9.3/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call'
vendor/bundle/ruby/1.9.3/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in _run__1108572668748813358__call__4571695184428176549__callbacks' vendor/bundle/ruby/1.9.3/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in
__run_callback'
vendor/bundle/ruby/1.9.3/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in _run_call_callbacks' vendor/bundle/ruby/1.9.3/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in
run_callbacks'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in call' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in
call'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call'
vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in call_app' vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in
block in call'
vendor/bundle/ruby/1.9.3/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in tagged' vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in
call'
vendor/bundle/ruby/1.9.3/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in call' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in
call'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/runtime.rb:17:in call' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/lock.rb:15:in
call'
vendor/bundle/ruby/1.9.3/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in forward' vendor/bundle/ruby/1.9.3/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in
fetch'
vendor/bundle/ruby/1.9.3/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in lookup' vendor/bundle/ruby/1.9.3/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in
call!'
vendor/bundle/ruby/1.9.3/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in call' vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/engine.rb:479:in
call'
vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/application.rb:223:in call' vendor/bundle/ruby/1.9.3/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in
method_missing'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/builder.rb:134:in call' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in
block in call'
vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in each' vendor/bundle/ruby/1.9.3/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in
call'
/opt/local/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in process_request' /opt/local/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request'
/opt/local/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:108:in main_loop' /opt/local/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:441:in
block (3 levels) in start_threads'
To point some facts:
I'm using Solaris (SmartOS) to configure all my environment Also, using apache 2.4 to do the full configuration. Redis server is running on another zone of my environment, and web in its own zone (I've modified the resque.yml file to reflect that) Sidekiq running at background correctly (It uses the config in resque.yml)
I'm suspecting redis_rack is not reading the parameters correctly. But I'm not quite sure what could be the problem