Moving Ruby Application

T

Tommaso Paci

Hallo everybody,
I am trying to move one application from one server to another both
running Suse 10.2 64Bit (one is a SLES one is Open Suse). I've tried to
reinstall all packages on both machines (so that they both are running
Ruby 1.8.6 X64, Rails 1.1.6 with the related gems), the app is using
Mongrel Cluster to run.
On the old server it runs smoothly but on the new server i don't get it
to run.

In the environment.rb file there is a line:
# user erubis as rendering engine
require 'erubis/helpers/rails_helper'

If I leave it uncommented I get the following error in the Mongrel log
file when launching Mongrel:

** Daemonized, any open files are closed. Look at
tmp/pids/mongrel.4000.pid and log/mongrel.4000.log for info.
** Starting Mongrel listening at 0.0.0.0:4000
** Starting Rails with production environment...
/usr/lib64/ruby/gems/1.8/gems/erubis-2.4.0/lib/erubis/helpers/rails_helper.rb:112:
uninitialized constant ActionView (NameError)
from
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
...

and Mongrel doesn't start. erubys is installed (the same version (2.4.0)
on both machines). I've also tried to update erubys to the latest
version but did not make any difference.

If I comment the line, I get the following in the Mongrel Log File:
** Daemonized, any open files are closed. Look at
tmp/pids/mongrel.4000.pid and log/mongrel.4000.log for info.
** Starting Mongrel listening at 0.0.0.0:4000
** Starting Rails with production environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It might
not work well.
** Mongrel available at 0.0.0.0:4000
** Writing PID file to tmp/pids/mongrel.4000.pid

and I can reach the login page of the Ruby Application, but then
whatever login name/password I enter (correct or not) it tells me (login
unsuccessful) and it returns to the login page:

Processing UserController#login (for 3.249.49.22 at 2008-11-27 16:43:36)
[POST]
Session ID: 7e9ad39851380df7e7e50e789b2708ce
Parameters: {"user"=>{"login"=>"XXXXXXXXXXX",
"password"=>"XXXXXXXXXX"}, "commit"=>"Login", "action"=>"login",
"controller"=>"user"}
Rendering within layouts/default
Rendering user/login
Completed in 0.06250 (15 reqs/sec) | Rendering: 0.02990 (47%) | DB:
0.01490 (23%) | 200 OK [http://3.249.237.170/user/login]
Processing ThemeController#stylesheets (for 3.249.49.22 at 2008-11-27
16:43:37) [GET]
Session ID: 7e9ad39851380df7e7e50e789b2708ce
Parameters: {"theme"=>"ge", "action"=>"stylesheets",
"controller"=>"theme", "filename"=>["ge-10.css"]}
Sending file
/srv/www/htdocs/pmt/config/../themes/ge/stylesheets/ge-10.css
Completed in 0.00313 (319 reqs/sec) | Rendering: 0.00005 (1%) | DB:
0.00000 (0%) | 200 OK
[http://3.249.237.170/themes/ge/stylesheets/ge-10.css?]

Does anyone has an idea?
Thank you in anticipation for all your help!!!!
MrBreaker
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,516
Members
44,991
Latest member
Josephnag

Latest Threads

Top