Project

General

Profile

Cannot Access Redmine After Closing Terminal (Webrick Stops)

Added by Luca Fusi over 14 years ago

Hi All,

Hoping this is a fairly simple problem to troubleshoot, though I didn't turn up much on it.

Very new to webservers/setting up applications like this, but am the PM for the company and wanted desperately to get Redmine running on our MediaTemple dv box (Apache). Have configured Ruby on Rails (1.8.7, which I grabbed from the front site as the latest release) using the following sets of instructions:

1) Mongrel Clusters according to MediaTemple's guide (http://kb.mediatemple.net/questions/279/Ruby+on+Rails+using+Mongrel+Clusters)
2) Steps 1-2 from this guide (http://carrotplant.com/en/blog/installing-redmine-on-a-media-temple-dv-server)
3) Steps 1-8 from the official Redmine install (http://www.redmine.org/wiki/redmine/RedmineInstall)

Basically, I'm at the point where I can successfully load Redmine (yay!) as I start the webrick service (ruby script/server webrick -e production) and point my browser to http://localhost:3000/.

But as soon as I close the terminal, I can no longer access Redmine - I'm guessing it's because the webrick service is meant to continue running for as long as I don't restart Apache, but something is killing it?

I realize there are many pieces in play here but am looking for some general guidance. I have tried a few things and made the following post-setup configuration changes (none of which have made the problem better or worse). I backed up all files before making these tweaks.

  • FastCGI is enabled in my Apache's global conf file
  • conf/environment.rb RAILS_GEM_VERSION is set to 1.8.7, same as the ruby -v version
  • Have replaced the contents of the redmine directory conf/vhost.conf file with:
DocumentRoot /var/www/vhosts/dev.layerframe.com/rails/redmine-0.8.7/public
<Directory "/var/www/vhosts/dev.layerframe.com/rails/redmine-0.8.7/public">
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
RailsBaseURI /

None of these seem to be doing it.

Any thoughts? Plan to be sticking around these forums, so thanks in advance for the welcome :)

Luca


Replies (5)

RE: Cannot Access Redmine After Closing Terminal (Webrick Stops) - Added by Sarah Crooke over 14 years ago

I am experiencing the same problem, would love to hear if you found a solution.

Thanks
Sarah

RE: Cannot Access Redmine After Closing Terminal (Webrick Stops) - Added by Luca Fusi over 14 years ago

No luck yet, Sarah, but I'm still looking for a solution.

Will update the board when I know more!

RE: Cannot Access Redmine After Closing Terminal (Webrick Stops) - Added by Eric Davis over 14 years ago

Luca Fusi:

I'm a bit confused, from what it sounds like you are trying to run Redmine using three separate web servers (you only need one):

  • script/server (webrick)
  • FastCGI
  • Apache Passenger (from your vhost.conf file)

Eric Davis

RE: Cannot Access Redmine After Closing Terminal (Webrick Stops) - Added by Werner Hackmann almost 14 years ago

1) go to ruby install dir
2) run at terminal:

ruby script/server webrick -e production

3) leave every Terminalsession with the command "exit"

That work for us :-)

RE: Cannot Access Redmine After Closing Terminal (Webrick Stops) - Added by Werner Hackmann almost 14 years ago

ups, i mean: 2) "ruby script/server webrick -e production &" ...

    (1-5/5)