Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

Copying an existing Ruby on Rails from one computer to another system and run it

Hai,

There is a Ruby on Rails which needs to be transferred from one system to another system and run there. I tried copying the whole folder from the 'Ruby' folder to my system and also took the databse from the mySQL as a dump and set up in my system. When I try to access it, in the WEBrick, it is throwing an error like this. Can somebody help with the correct procedure of copying RoR apps or is something wrong in what I did. thanks.

PS: I am working on Windows XP. Added below is the error description
C:\ruby\library>ruby script/server
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-04-23 11:23:03] INFO  WEBrick 1.3.1
[2009-04-23 11:23:03] INFO  ruby 1.8.6 (2007-09-24) [i386-mswin32]
[2009-04-23 11:23:03] INFO  WEBrick::HTTPServer#start: pid=5160 port=3000
/!\ FAILSAFE /!\  Thu Apr 23 11:23:08 +0530 2009
  Status: 500 Internal Server Error
  Access denied for user 'root'@'localhost' (using password: YES)
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/mysql_adapter.rb:576:in `real_connect'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/mysql_adapter.rb:576:in `connect'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/mysql_adapter.rb:204:in `initialize'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/mysql_adapter.rb:76:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/mysql_adapter.rb:76:in `mysql_connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:223:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:223:in `new_connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:188:in `checkout'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:184:in `loop'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:184:in `checkout'
    c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:183:in `checkout'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:98:in `connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_specification.rb:115:in `connection'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_ca
che.rb:9:in `cache'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/query_ca
che.rb:28:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connecti
on_adapters/abstract/connection_pool.rb:361:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/head.rb:9:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/methodoverride.rb:24:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/params
_parser.rb:15:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rewind
able_input.rb:25:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/sessio
n/cookie_store.rb:93:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/reload
er.rb:9:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/failsa
fe.rb:11:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/lock.rb:11:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/lock.rb:11:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/lock.rb:11:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/dispat
cher.rb:106:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:31:in `c
all'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/urlmap.rb:46:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/urlmap.rb:40:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/urlmap.rb:40:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/log_tailer.rb:17:i
n `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/content_length.rb:13:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/handler/webrick.rb:46:in `service'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor
/rack-1.0/rack/handler/webrick.rb:13:in `run'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_origina
l_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

Open in new window

0
sreekanthvasireddy
Asked:
sreekanthvasireddy
1 Solution
 
sreekanthvasireddyAuthor Commented:
I solved it myself. I gave the password for mySQL wrong, that is the reason for

"Access denied for user 'root'@'localhost' (using password: YES)". Thanks anyway
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now