Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue starting server in production that don't use activeRecord
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
arturo drlt  
View profile  
 More options Oct 30 2012, 1:50 pm
From: arturo drlt <li...@ruby-forum.com>
Date: Tue, 30 Oct 2012 18:49:16 +0100
Local: Tues, Oct 30 2012 1:49 pm
Subject: Issue starting server in production that don't use activeRecord
I have been working in one application that don't have database and for
storage only use redis and I never tried before to run it in production
environment and o surprise the server is run but when try to load it
says ups something went wrong and in the log it says ActiveRecord no
conection stablish here is the error:

ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished):
  activerecord (3.2.8)
lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in
`retrieve_connection'
  activerecord (3.2.8)
lib/active_record/connection_adapters/abstract/connection_specification.rb: 170:in
`retrieve_connection'
  activerecord (3.2.8)
lib/active_record/connection_adapters/abstract/connection_specification.rb: 144:in
`connection'
  activerecord (3.2.8) lib/active_record/query_cache.rb:67:in `call'
  activerecord (3.2.8)
lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in
`call'
  actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in
`call'
  activesupport (3.2.8) lib/active_support/callbacks.rb:405:in
`_run__1956948221__call__4__callbacks'
  activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `send'
  activesupport (3.2.8) lib/active_support/callbacks.rb:405:in
`__run_callback'
  activesupport (3.2.8) lib/active_support/callbacks.rb:385:in
`_run_call_callbacks'
  activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `send'
  activesupport (3.2.8) lib/active_support/callbacks.rb:81:in
`run_callbacks'
  actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in
`call'
  actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in
`call'
  actionpack (3.2.8)
lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.8)
lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
  railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in
`call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.8)
lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.8) lib/rails/engine.rb:479:in `call'
  railties (3.2.8) lib/rails/application.rb:223:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
  rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
  /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
  /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
  rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run'
  rack (1.4.1) lib/rack/server.rb:265:in `start'
  railties (3.2.8) lib/rails/commands/server.rb:70:in `start'
  railties (3.2.8) lib/rails/commands.rb:55
  railties (3.2.8) lib/rails/commands.rb:50:in `tap'
  railties (3.2.8) lib/rails/commands.rb:50
  script/rails:6:in `require'
  script/rails:6

but well none of my models uses activerecord what is happening here?

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
arturo drlt  
View profile  
 More options Oct 30 2012, 3:10 pm
From: arturo drlt <li...@ruby-forum.com>
Date: Tue, 30 Oct 2012 20:08:50 +0100
Local: Tues, Oct 30 2012 3:08 pm
Subject: Re: Issue starting server in production that don't use activeRecord
Issue solved with a little modification to application.rb changin
require rails/all for

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "sprockets/railtie"

and removing the white_list

and removing some lines from development.rb and

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »