# Problem with rails\_root

**URL:** <https://www.ruby-forum.com/t/problem-with-rails-root/196421>\
**Category:** Rails\
**Created:** [August 6, 2007, 9:15am UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421 "2007-08-06T09:15:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![austeretown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Post date:** [August 6, 2007, 9:15am UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421/1 "2007-08-06T09:15:49Z")

</div>

Hi everybody,

I used a openseradmin who is based on rubygem (i suppose ), so when i  
start my server of this openseradmin in the [http://localhost:3000](http://localhost:3000), i  
reciceved some messages like this:

SocketError in LoginController#login

getaddrinfo: Name or service not known

RAILS\_ROOT: script/…/config/…  
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `connect’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:152:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:82:in  
`mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:262:in  
`connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection=’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:230:in  
`retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1456:in  
`quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1427:in  
`gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1416:in  
`sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in `sanitize\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1163:in  
`add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in `construct\_finder\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:997:in  
`find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in `find\_initial’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:417:in  
`find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in `find\_first\_without\_deprecation’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/deprecation.rb:94:in  
`find_first' app/models/user.rb:7:in `authenticate’  
app/controllers/login\_controller.rb:11:in `login’

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `connect’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:152:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:82:in  
`mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:262:in  
`connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection=’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:230:in  
`retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1456:in  
`quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1427:in  
`gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1416:in  
`sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in `sanitize\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1163:in  
`add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in `construct\_finder\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:997:in  
`find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in `find\_initial’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:417:in  
`find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in `find\_first\_without\_deprecation’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/deprecation.rb:94:in  
`find_first' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:1095:in  
`perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call\_filter’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:634:in  
`call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform\_action\_without\_benchmark’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/benchmarking.rb:66:in  
`perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/benchmarking.rb:66:in  
`perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform\_action’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:430:in  
`send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process\_without\_filters’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:624:in  
`process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:330:in  
`process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:113:in  
`handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79: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’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:63:in  
`dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new\_constants\_in’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require’  
script/server:3

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/vendor/mysql.rb:111:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
`real_connect' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:389:in `connect’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:152:in  
`initialize' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:82:in `new’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/mysql\_adapter.rb:82:in  
`mysql_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:262:in  
`connection_without_query_cache=' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection=’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/connection\_adapters/abstract/connection\_specification.rb:230:in  
`retrieve_connection' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1456:in  
`quote_bound_value' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1427:in  
`gsub' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace\_bind\_variables’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1416:in  
`sanitize_sql_array' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in `sanitize\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:1163:in  
`add_conditions!' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in `construct\_finder\_sql’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:997:in  
`find_every' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in `find\_initial’  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/base.rb:417:in  
`find' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/deprecated_finders.rb:23:in `find\_first\_without\_deprecation’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/deprecation.rb:94:in  
`find_first' app/models/user.rb:7:in `authenticate’  
app/controllers/login\_controller.rb:11:in `login' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:1095:in  
`perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call\_filter’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:634:in  
`call_filter' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform\_action\_without\_benchmark’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/benchmarking.rb:66:in  
`perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/benchmarking.rb:66:in  
`perform_action_without_rescue' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform\_action’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:430:in  
`send' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process\_without\_filters’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/filters.rb:624:in  
`process_without_session_management_support' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action\_controller/base.rb:330:in  
`process' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:113:in  
`handle_dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79: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’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick\_server.rb:63:in  
`dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new\_constants\_in’  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require’  
script/server:3

Request

Parameters: {“user\_login”=\>“openser”, “user\_password”=\>“openserrw”,  
“login”=\>“Login Â»”}

Show session dump

* * *

return-to: /  
flash: !map:ActionController::Flash::FlashHash {}

Response  
Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}

So can anybody tell me what does it mean? and how to resolve it? Thank  
you very much!!!

---

<div class="post-metadata">

**Author:** ![austeretown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Post date:** [August 6, 2007, 9:29am UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421/2 "2007-08-06T09:29:18Z")

</div>

the error is not of Rails\_Root, it is of a Db error:

> SocketError in LoginController#login
> 
> getaddrinfo: Name or service not known
> 
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active\_record/vendor/mysql.rb:111:in  
> `real\_connect’

is the mysql running?

---

<div class="post-metadata">

**Author:** ![austeretown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Post date:** [August 6, 2007, 9:45am UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421/3 "2007-08-06T09:45:34Z")

</div>

Hi,thank you very much for your help! I am waiting.

Yes Mysql is running. And can you tell me anything more? I don’t  
understand ruby and rail. But I have to use openseradmin. ☹ Thanks!

---

<div class="post-metadata">

**Author:** ![austeretown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Post date:** [August 6, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421/4 "2007-08-06T12:33:10Z")

</div>

it’s really a pretty general server - error ;

something is wrong with the app, or the db, because the connection  
between the two isn’t working.  
it could be a couple of things, but my first guess is a prob with the  
mysql -

did you set up the openseradmin database in mysql? set up a user to  
access the db? set the correct permissions in the database.yml file?

i don’t know if you did your setup according to this link but in case  
you haven’t:

[http://openseradmin.sourceforge.net/docs.php](http://openseradmin.sourceforge.net/docs.php)

…anyway, i’d check the db to see if there are any problems.  
basically what you should be having is this:

\*) the app  
\*) the correct permissions to  
access the db (RAILS\_ROOT/config/database.yml)

```
   # btw, RAILS_ROOT is a constant that stores the path to your app
   # on your system - it is basically a string that is:
   # /path/to/your/app/

```

\*) mysql  
\*) the db exists

hope some of the above helps

---

<div class="post-metadata">

**Author:** ![austeretown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@austeretown](https://www.ruby-forum.com/u/austeretown)\
**Post date:** [August 6, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/problem-with-rails-root/196421/5 "2007-08-06T15:51:17Z")

</div>

Hi, thank you very much!! I think there’s something wrong with mysql  
too. Because I have to do: gem install mysql before intalling  
openseradmin. And then I have  
ruby extconf.rb install mysql  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lm… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lz… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lsocket… no  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lnsl… yes  
checking for mysql\_query() in -lmysqlclient… no  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
–with-opt-dir  
–without-opt-dir  
–with-opt-include  
–without-opt-include=${opt-dir}/include  
–with-opt-lib  
–without-opt-lib=${opt-dir}/lib  
–with-make-prog  
–without-make-prog  
–srcdir=.  
–curdir  
–ruby=/usr/local/bin/ruby  
–with-mysql-config  
–without-mysql-config  
–with-mysql-dir  
–without-mysql-dir  
–with-mysql-include  
–without-mysql-include=${mysql-dir}/include  
–with-mysql-lib  
–without-mysql-lib=${mysql-dir}/lib  
–with-mysqlclientlib  
–without-mysqlclientlib  
–with-mlib  
–without-mlib  
–with-mysqlclientlib  
–without-mysqlclientlib  
–with-zlib  
–without-zlib  
–with-mysqlclientlib  
–without-mysqlclientlib  
–with-socketlib  
–without-socketlib  
–with-mysqlclientlib  
–without-mysqlclientlib  
–with-nsllib  
–without-nsllib  
–with-mysqlclientlib  
–without-mysqlclientlib

Gem files will remain installed in  
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.  
Results logged to  
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem\_make.out

So I went to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 to install  
mysql-2.7  
I did like what said in README:

#ruby extconf.rb --with-mysql-dir=/usr/local/mysql  
#make  
#ruby ./test

and I got many error just like:

…  
93) Error:  
test\_fetch(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

1. Error:  
test\_fetch(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

2. Error:  
test\_fetch\_bigint(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

3. Error:  
test\_fetch\_bigint(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

4. Error:  
test\_fetch\_bigint\_unsigned(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

5. Error:  
test\_fetch\_bigint\_unsigned(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

6. Error:  
test\_fetch\_binary(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

7. Error:  
test\_fetch\_binary(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

8. Error:  
test\_fetch\_blob(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

9. Error:  
test\_fetch\_blob(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

10. Error:  
test\_fetch\_char(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

11. Error:  
test\_fetch\_char(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

12. Error:  
test\_fetch\_date(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

13. Error:  
test\_fetch\_date(TC\_MysqlStmt2):  
NoMethodError: undefined method `close' for nil:NilClass ./test.rb:418:in`teardown’

14. Error:  
test\_fetch\_datetime(TC\_MysqlStmt2):  
Mysql::Error: Access denied for user ‘root’@‘localhost’ (using password:  
NO)  
./test.rb:414:in `new' ./test.rb:414:in`setup’

…

So what does that mean??? Thank you very much!!!
