Closed eebasadre20 closed 8 years ago
I have the same issue with config.base_api_uri = 'localhost:3000'
Are you using a multithread server?....Rails can only handle one request, and with sabisu you need to run at least 2....
You can add puma o unicorn or run the rails app in two different ports, something like:
% rails s
% rails s -p 4000
I got the same error when i try to access sabisu. I use a multithreaded server (with the Puma gem)
@kurenn I'm also getting the timeout issue.
@ACPK what have you tried so far?
@kurenn -
rails g simple_form:install
as I already use simple_form though phasing it out.Have you tried using Foreman?...checkout the discussion in here, see if that helps, if not we can probably work something out! https://github.com/IcaliaLabs/sabisu-rails/issues/19#issuecomment-155905907
Net::ReadTimeout (Net::ReadTimeout): /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/protocol.rb:158:in
rescue in rbuf_fill' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/protocol.rb:152:in
rbuf_fill' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/protocol.rb:134:inreaduntil' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/protocol.rb:144:in
readline' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http/response.rb:39:inread_status_line' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http/response.rb:28:in
read_new' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1414:inblock in transport_request' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1411:in
catch' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1411:intransport_request' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1384:in
request' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1377:inblock in request' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:853:in
start' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/net/http.rb:1375:inrequest' httparty (0.13.5) lib/httparty/request.rb:101:in
perform' httparty (0.13.5) lib/httparty.rb:522:inperform_request' httparty (0.13.5) lib/httparty.rb:460:in
get' /home/eebasadre20/.rvm/gems/ruby-2.2.2/bundler/gems/sabisu-rails-af7499e87912/lib/sabisu_rails/request.rb:17:inresponse' /home/eebasadre20/.rvm/gems/ruby-2.2.2/bundler/gems/sabisu-rails-af7499e87912/app/controllers/sabisu_rails/explorer_controller.rb:7:in
index' actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (4.1.6) lib/abstract_controller/base.rb:189:in
process_action' actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in
block in process_action' activesupport (4.1.6) lib/active_support/callbacks.rb:113:incall' activesupport (4.1.6) lib/active_support/callbacks.rb:113:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:229:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:229:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:inblock in halting' activesupport (4.1.6) lib/active_support/callbacks.rb:86:in
call' activesupport (4.1.6) lib/active_support/callbacks.rb:86:inrun_callbacks' actionpack (4.1.6) lib/abstract_controller/callbacks.rb:19:in
process_action' actionpack (4.1.6) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:31:in
block in process_action' activesupport (4.1.6) lib/active_support/notifications.rb:159:inblock in instrument' activesupport (4.1.6) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (4.1.6) lib/active_support/notifications.rb:159:ininstrument' actionpack (4.1.6) lib/action_controller/metal/instrumentation.rb:30:in
process_action' actionpack (4.1.6) lib/action_controller/metal/params_wrapper.rb:250:inprocess_action' activerecord (4.1.6) lib/active_record/railties/controller_runtime.rb:18:in
process_action' actionpack (4.1.6) lib/abstract_controller/base.rb:136:inprocess' actionview (4.1.6) lib/action_view/rendering.rb:30:in
process' actionpack (4.1.6) lib/action_controller/metal.rb:196:indispatch' actionpack (4.1.6) lib/action_controller/metal/rack_delegation.rb:13:in
dispatch' actionpack (4.1.6) lib/action_controller/metal.rb:232:inblock in action' actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in
call' actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:82:indispatch' actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in
call' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:inblock in call' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in
each' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:incall' actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:in
call' railties (4.1.6) lib/rails/engine.rb:514:incall' railties (4.1.6) lib/rails/railtie.rb:194:in
public_send' railties (4.1.6) lib/rails/railtie.rb:194:inmethod_missing' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in
block in call' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:ineach' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:59:in
call' actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:678:incall' warden (1.2.3) lib/warden/manager.rb:35:in
block in call' warden (1.2.3) lib/warden/manager.rb:34:incatch' warden (1.2.3) lib/warden/manager.rb:34:in
call' rack (1.5.5) lib/rack/etag.rb:23:incall' rack (1.5.5) lib/rack/conditionalget.rb:25:in
call' rack (1.5.5) lib/rack/head.rb:11:incall' remotipart (1.2.1) lib/remotipart/middleware.rb:27:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/params_parser.rb:27:incall' actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in
call' rack (1.5.5) lib/rack/session/abstract/id.rb:225:incontext' rack (1.5.5) lib/rack/session/abstract/id.rb:220:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:incall' activerecord (4.1.6) lib/active_record/query_cache.rb:36:in
call' activerecord (4.1.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:incall' activerecord (4.1.6) lib/active_record/migration.rb:380:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:29:inblock in call' activesupport (4.1.6) lib/active_support/callbacks.rb:82:in
run_callbacks' actionpack (4.1.6) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:incall' actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:incall' railties (4.1.6) lib/rails/rack/logger.rb:38:in
call_app' railties (4.1.6) lib/rails/rack/logger.rb:20:inblock in call' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in
block in tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:intagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:in
tagged' railties (4.1.6) lib/rails/rack/logger.rb:20:incall' actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:in
call' rack (1.5.5) lib/rack/methodoverride.rb:21:incall' rack (1.5.5) lib/rack/runtime.rb:17:in
call' activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:incall' rack (1.5.5) lib/rack/lock.rb:17:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:incall' rack (1.5.5) lib/rack/sendfile.rb:112:in
call' railties (4.1.6) lib/rails/engine.rb:514:incall' railties (4.1.6) lib/rails/application.rb:144:in
call' rack (1.5.5) lib/rack/lock.rb:17:incall' rack (1.5.5) lib/rack/content_length.rb:14:in
call' rack (1.5.5) lib/rack/handler/webrick.rb:60:inservice' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in
service' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:inrun' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in
block in start_thread'Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.0ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.3ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.9ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (70.0ms)
Started GET "/users/" for 127.0.0.1 at 2015-07-19 00:26:50 +0800
ActionController::RoutingError (No route matches [GET] "/users"): actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call' railties (4.1.6) lib/rails/rack/logger.rb:38:incall_app' railties (4.1.6) lib/rails/rack/logger.rb:20:in
block in call' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:inblock in tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in
tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:intagged' railties (4.1.6) lib/rails/rack/logger.rb:20:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:incall' rack (1.5.5) lib/rack/methodoverride.rb:21:in
call' rack (1.5.5) lib/rack/runtime.rb:17:incall' activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
call' rack (1.5.5) lib/rack/lock.rb:17:incall' actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in
call' rack (1.5.5) lib/rack/sendfile.rb:112:incall' railties (4.1.6) lib/rails/engine.rb:514:in
call' railties (4.1.6) lib/rails/application.rb:144:incall' rack (1.5.5) lib/rack/lock.rb:17:in
call' rack (1.5.5) lib/rack/content_length.rb:14:incall' rack (1.5.5) lib/rack/handler/webrick.rb:60:in
service' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:inservice' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in
run' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.6ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (15.6ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (88.7ms)
Started GET "/users/" for 127.0.0.1 at 2015-07-19 00:26:50 +0800
ActionController::RoutingError (No route matches [GET] "/users"): actionpack (4.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call' railties (4.1.6) lib/rails/rack/logger.rb:38:incall_app' railties (4.1.6) lib/rails/rack/logger.rb:20:in
block in call' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:inblock in tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in
tagged' activesupport (4.1.6) lib/active_support/tagged_logging.rb:68:intagged' railties (4.1.6) lib/rails/rack/logger.rb:20:in
call' actionpack (4.1.6) lib/action_dispatch/middleware/request_id.rb:21:incall' rack (1.5.5) lib/rack/methodoverride.rb:21:in
call' rack (1.5.5) lib/rack/runtime.rb:17:incall' activesupport (4.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
call' rack (1.5.5) lib/rack/lock.rb:17:incall' actionpack (4.1.6) lib/action_dispatch/middleware/static.rb:64:in
call' rack (1.5.5) lib/rack/sendfile.rb:112:incall' railties (4.1.6) lib/rails/engine.rb:514:in
call' railties (4.1.6) lib/rails/application.rb:144:incall' rack (1.5.5) lib/rack/lock.rb:17:in
call' rack (1.5.5) lib/rack/content_length.rb:14:incall' rack (1.5.5) lib/rack/handler/webrick.rb:60:in
service' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:inservice' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in
run' /home/eebasadre20/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.9ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.5ms) Rendered /home/eebasadre20/.rvm/gems/ruby-2.2.2/gems/actionpack-4.1.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (53.3ms)