Welcome Guest | Login

Not sure whats wrong [Mongrel keeps stopping]

Hi,
I am running a mongrel instance to support my mephisto blog and I have run into some troubles.  First I tried to use chrontab to restart my mongrel instance @reboot.  However for some reason it would never restart the mongrel instance in my mephisto folder which would then cause the app to not work because the log folder would not have the .pid file.  Anyways, long story short I ended up writing a very detailed bash file that made sure that the mongrel instance wasn't running, and then moved to my directory and rebooted the mongrel instance.  It works perfectly when I run it, and it says that it works fine when it runs @reboot...  But for some reason my mongrel instance still goes down randomly every three days or so.  I am not sure what the problem is but its getting quite annoying...

2008-04-19 05:34 AM

-Sorry for the double post-

But...  Just after I wrote that I saw that hosting rails supports mod_rails.  Would that be a good solution to my problem, as well as making it easier for me to manage my blog?

If it is though...  The tutorial says symlink the rails public directory to public_html.  However, my blog is a subdomain of my website.  So is it possible to symlink the public dir to the subdomain dir?  Or better, simply install it in the subdomain dir (which is in the root dir)?  Thanks!

2008-04-19 05:43 AM

We don't have mod_rails installed on your server currently. We however have it installed on one of our newer servers and are weighing it's resource usage and performance with the current fastcgi-mongrel set up. That being said, we'd like to investigate as to why your mongrel goes down intermittently. The only case where we've found this happening on our servers is extensive usage RMagick gem to Upload and process images. Is this the case with your app ?

2008-04-19 06:14 AM

I am not using RMagick at all (although I believe mephisto requires it)...  Perhaps my code to restart is messed up?  You can check it, its the bash file in my bin folder.

Let me know if you need more detailed info or the code its-self.

2008-04-19 03:42 PM

Hello,

I've checked your codes and it seems to be set properly. But this script is set to operate at reboot only.

2008-04-19 04:01 PM

Regards,
Rahul
@Rahul:  Do you recommend that I set it to run more often?  Why is my mongrel instance going down so much that I would need to reboot it more often than at reboot?

2008-04-19 04:29 PM

Hello,

Yes, try running this every 30 mins..Can you please check the following link..

http://www.hostingrails.com/forums/everything_else_thread/343

2008-04-19 04:37 PM

Regards,
Rahul
@Rahul:  I went to that link and used this script as my new restart/check script: http://pastie.caboo.se/64998

In crontab I have it set to run every 15 mins.

I have one problem though, it seems like the SMTP email service is not working correctly because I get the following error when I run the ruby file: http://pastie.caboo.se/183605

Do you have any idea on why I am getting that smtp error?

Thanks, I will let you guys know if my mongrel instance stops going down.

2008-04-19 05:53 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.