Displaying 19 results from an estimated 19 matches for "connectionnotestablished".
2006 Jul 06
0
Can''t generate AR from script (ActiveRecord::ConnectionNotEstablished)
...!/usr/bin/env ruby
require File.dirname(__FILE__) + ''/../config/boot''
Pim.new()
Will spit out this:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:225:in
`retrieve_connection'': ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished)
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection''
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:696:in...
2010 Sep 07
3
ActiveRecord::ConnectionNotEstablished error
I''ve attached my database.yml
I''ve installed gem install activerecord-sqlserver-adapter
But when I navigate to a simple page I get the
ActiveRecord::ConnectionNotEstablished error
Any ideas what I should be checking?
Ruby 1.92
Rails 3
Attachments:
http://www.ruby-forum.com/attachment/5016/database.yml
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To po...
2011 Dec 01
1
ActiveRecord::ConnectionNotEstablished
Hi All,
I am new in ruby on rail. i have successfully Ruby on Rails setup and
create application but i have run application in browser everytime
display "ActiveRecord::ConnectionNotEstablished " this error .
I am using ruby 1.9.3 and below my db connection.
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem ''sqlite3''
development:
adapter: mysql
encoding: utf8
host: localhost
username: root
pass...
2011 Mar 25
4
how to solve ActiveRecord::ConnectionNotEstablished
*im using mysql as a database*
*
*
*im getting the error which says that *
ActiveRecord::ConnectionNotEstablished in GreetingsController#index
ActiveRecord::ConnectionNotEstablished
Rails.root: C:/railsdev/hello
Application Trace <http://localhost:3000/#> | Framework Trace<http://localhost:3000/#>
| Full Trace <http://localhost:3000/#>
app/controllers/greetings_controller.rb:7:in `index...
2012 Mar 02
0
ConnectionNotEstablished when using connection on AR::Base abstract subclass
...ablish_connection on an
ActiveRecord::Base abstract_class subclass (to protect my connection
in case anyone else is using AR). It was working just fine with AR
3.0.9, but I recently attempted to upgrade to AR 3.2.2. Now, when I
hit a "nested" query from a has_many, I get a
ActiveRecord::ConnectionNotEstablished. If I call
establish_connection on ActiveRecord::Base, instead of the DB abstract
subclass, everything works fine.
I''ve stripped out a minimal example below, which should be self-
contained, as well as a snippet that highlights the problem. Is this
a bug, or does my code need to change...
2005 Dec 21
6
Rails without a db - how to run tests
...omplains about no connection being established. Well...I don''t want
a connection to be established. I''ve tried overriding
Fixtures#teardown to be blank, but that doesn''t do anything. The
actual error is:
1) Error:
test_get_convert(HhconvControllerTest):
ActiveRecord::ConnectionNotEstablished: ActiveRecord::ConnectionNotEstablished
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:111:in
`retrieve_connection''
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abst...
2010 Jun 15
2
ActiveRecordConnection from jobs script
...I make a cron jobs and I would like to use ActiveRecord. but I have this
error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
`retrieve_connection'': ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished)
Do I have to require something else?
This is what I am already requiring:
require ''rubygems''
require ''hpricot''
require ''open-uri''
require ''ostruct''
require ''active_record'...
2011 Oct 24
9
ActiveRecord::ConnectionNotEstablished
...ic pages. In this
chapter, I entered the following command into the prompt: "rails
generate controller Pages home contact" and everything worked fine.
Then the book directs me to http://localhost:3000/pages/home. When I
point my browser there, I receive the following error.
ActiveRecord::ConnectionNotEstablished
ActiveRecord::ConnectionNotEstablished
Rails.root: /home/ralph/railsprojects/sample_app
Application Trace | Framework Trace | Full Trace
The routes and controller erb don''t appear to have any errors. Is this
a database related error? Any ideas?
Thanks,
DMAT
--
You received this me...
2006 May 16
5
rake aborted! ActiveRecord::ConnectionNotEstablished
Hi all
I''m just learning to use rake and ran into the following problem:
chraftbuech:/Users/Josh/Webwork/CommentingSystem josh$ rake
create_test_news
(in /Users/Josh/Webwork/CommentingSystem)
Create test news
rake aborted!
ActiveRecord::ConnectionNotEstablished
The task''s code is:
desc ''Creates some test news items with comments''
task ''create_test_news'' do
puts ''Create test news''
n = NewsItem.new
n.subject = ''This is the first news item''
n.body = ''After day...
2012 Feb 06
0
Error ActiveRecord::ConnectionNotEstablished
Hello, this morning I was trying to access my app on my computer, but,
when I initialize the server and access localhost:3000, this message
shows up:
ActiveRecord::ConnectionNotEstablished
So, I try to access via rails console, but again, another error:
felipe@Felipe:~/rails_projects/simple_cms$ rails console
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in
`block in replace_gem'': Please install the mysql adapter: `gem ins...
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a
ActiveRecord::ConnectionNotEstablished when I try to run it on
lighttpd. Here''s the app''s lighttpd config:
$HTTP["host"] =~ "(www\.)?mysite\.com" {
server.document-root = "/home/pergesuteore/public/"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = ( ".f...
2012 Feb 26
15
ActiveRecord::ConnectionNotEstablished
Hi,
I am trying the tutorial in:
http://guides.rubyonrails.org/getting_started.html
when I try to navigate to http://localhost:3000 after the 4.3 change
I get the error : ActiveRecord::ConnectionNotEstablished
and I don''t know how to solve it
the database.yml file is:
adapter => mysql
host => 127.0.0.1
database => blog
username => root
password => *****
my gems:
rails 3.1.3
activerecord 3.1.3
mysql 2.8.1
What to do, please?
regards
--
Posted via http://www.ruby-foru...
2010 Jan 03
24
SQLServer on Rails
Does any one know how to setup SQLserver with ruby1.9. It was working
on an earlier version and now nothing works! I have installed the
gems dbi ,dbd-odbc and activerecord-odbc-adapter and can connect in
straight Ruby. However, using rails with database.yml nothing works!
I hosed everything and reinstalled rails and now, I get Win32/Parite
virus on ruby.exe. Any ideas? I''m losing
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
I''m running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. I need to back down rails to 3.1.0 for a project but when I do that a simple index page give me a
ActiveRecord::ConnectionNotEstablished
error.
Rails 3.2.3 works, 3.1.0 not. Any ideas?
Just to show you it''s nothing fancy....
Gem file is only:
source ''https://rubygems.org''
gem ''rails'', ''3.1.0''
# Bundle edge Rails instead:
# gem ''rails'', :git...
2005 Oct 27
0
Re: Skipping framework in new initializer doesn't skip framework - IGNORE
...: If you''re wondering why I''m trying to suppress loading of
> active_record, it''s because I''m using active_ldap for the models.)
>
> Just for fun, I did the same thing to an app that does have a db
> behind it, and got, as expected,
> ActiveRecord::ConnectionNotEstablished on login attempt.
>
> I upgraded to 0.14.2 yesterday and did ''rails trunk'' on both apps, so
> I suspect that something went wrong with that process on the first app
> (the ldap one). If anyone can see what that might be, let me know..
>
> jh
>
> --
> Jam...
2005 Oct 27
0
Skipping framework in new initializer doesn't skip framework
...ction''
(Aside: If you''re wondering why I''m trying to suppress loading of
active_record, it''s because I''m using active_ldap for the models.)
Just for fun, I did the same thing to an app that does have a db
behind it, and got, as expected,
ActiveRecord::ConnectionNotEstablished on login attempt.
I upgraded to 0.14.2 yesterday and did ''rails trunk'' on both apps, so
I suspect that something went wrong with that process on the first app
(the ldap one). If anyone can see what that might be, let me know..
jh
--
James Hughes
Web application developer
Centre...
2007 Jan 11
12
Rails not properly handling Oracle db connections/sesions in dev mode
We are running edge rails with oracle. After a few hundred requests
all available sesions are used up. It seems prior connections are
being left open. When this happens no one using the installation of
Oracle can create a new session until you kill your mongrel/webrick
server.
Patch #6928 addresses this problem, and i applied it to my vendor rails
and it worked.
I think, if possible, this
2006 Jul 24
7
[PATCH] Support for DB Clusters/Replication in ActiveRecord (RFC)
...e in round_robin_read is #{active_connection_name}"
+ # It''s very important to use active_connection_name instead of @active_connection_name
+ if read_connection_pool[active_connection_name].nil? || read_connection_pool[active_connection_name].size == 0
+ raise ConnectionNotEstablished, "No Connection is available"
+ else
+ @@last_read_connection[active_connection_name] = (@@last_read_connection[active_connection_name] + 1) % read_connection_pool[active_connection_name].size
+ read_connection_pool[active_connection_name].to_a[@@last_read_connect...
2012 Feb 27
9
Bit of a issue with creating a new app and running it
HI all,
I have just setup the ROR environment on a vps, but once i created the
app and run rails s or db:create after modifying the database.yml it
keeps on appearing with the "Could not find gem sqlite3" etc message
which i know this as it''s not install as i am using mysql. What else
have i got to do other than modifying the database.yml as to me it''s
still looking