Hello. Any help the community can give me will be greatly appreciated.
I’ve got the server guys who administer my dedicated server working on
my issue, but it’s been two days and they are still at square one.
Let’s start with the history. I’ve been working with ruby for a month
or so now, and am starting to get pretty comfortable with it. I asked
my host (hostgator) to install ruby/rails on my dedicated server so I
can use typo for my blog and run some applications we have in
development.
A couple of days ago, I set forth to install Typo. Got it up on the
server, changed it to production, symlinked it, setup the database and
was ready to run through the install process. Through ssh from my mac,
I initialized the server with script/server and only got a blank page
when I went to my typo site. As soon as I closed terminal, I got a 404
at my typo site. I proceeded to ask the host to check my server for
errors. That’s when the fun began.
The host has been telling me they installed ruby/rails with FastCGI to
work with Apache. Now, since i’m not a server tech, but a programmer,
I’m a little confused. This is what I got this morning while trying to
setup a simple test on the server:
ruby script/server
=> Booting WEBrick…
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-03-09 06:35:38] INFO WEBrick 1.3.1
[2006-03-09 06:35:38] INFO ruby 1.8.4 (2005-12-24) [x86_64-linux]
[2006-03-09 06:35:38] WARN TCPServer Error: Address already in use -
bind(2)
/usr/local/lib/ruby/1.8/webrick/utils.rb:73:in initialize': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/local/lib/ruby/1.8/webrick/utils.rb:73:in
create_listeners’
from /usr/local/lib/ruby/1.8/webrick/utils.rb:70:in
create_listeners' from /usr/local/lib/ruby/1.8/webrick/server.rb:75:in
listen’
from /usr/local/lib/ruby/1.8/webrick/server.rb:63:in
initialize' from /usr/local/lib/ruby/1.8/webrick/httpserver.rb:24:in
initialize’
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:61:in
dispatch' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/webrick.rb:59 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
require' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
require’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require’
from script/server:3
For starters, it’s telling me that the server is already initialized for
that site. Second, it’s telling me it’s using WEBrick, not FastCGI.
Forgive my ignorance, but am I wrong in assuming it’s NOT using FastCGI?
At this point, the host is not helping much. They’ve admitted they
don’t know what they are up against. Frankly, I don’t know what route
to take at this point. I cannot get anything to run on the server and
never could since they installed ruby/rails.
Again, any help will be greatly appreciated, and if you’re in my area,
I’ll buy you a beer.