Welcome Guest | Login

Addon Domain & Mongrel

Hi,

I installed devalot (looks sweet by the way) on my add on domain as the main application. My .htaccess (in the main app) is correct I think since I can reach the page. But it's giving me the rails error.

Application error
Rails application failed to start properly

I added the rewritebase in the devalot .htacces and the relative url root in the environment.rb. The thing is though that I think it's starting up mongrel or something since mongrel has been enabled on my account. I don't get anything in the log folder as well.. so I'm rather clueless as to what is going wrong here. Any thoughts ? :s

edit: I deployed with capistrano as well and if I check ~/public_html/ I don't see my original rails app by the way. Could this be why it's not working ?

I also checked my logs through cPanel and I found:

[Fri Feb 09 09:10:57 2007] [notice] mod_fcgid: process /home/eigenho/public_html/websugar/dispatch.fcgi(22550) exit(shutting down), get stop signal 9
[Fri Feb 09 06:53:38 2007] [notice] mod_fcgid: server /home/eigenho/public_html/websugar/dispatch.fcgi(22550) started

Also, after a while I got the following in my fastcgi.crash.log:

[09/Feb/2007:15:10:56 :: 22550] asked to terminate immediately
[09/Feb/2007:15:10:57 :: 22550] terminated by explicit exit

So I'm guessing there is something wrong that I can't fix ? :s

2007-02-09 07:14 AM

Hi there - check the permissions on your dispatchers
Also,
99% of these kind of troubles can be solved by the info in these two threads: http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9

Cheers,

`William

2007-02-09 04:47 PM

Well, our main app runs on Mongrel with Capistrano. I currently have a problem with an add-on domain. I tested the .htaccess by placing an index.html file and it did pick it up (so all is in order with .htacces files in main app and add-on app + symlink is fine). When I try script/server or mongrel_rails start with production it works flawlessly (in SSH). But when I try to connect to it by using my subdomain URL it says:

Application error
Rails application failed to start properly

I can't find anything in the logs about it, I'm pretty sure everything is checked on both URL's you gave me (otherwise script/server wouldn't run, right ?). So ... what is the problem ? What port do I have to use for mongrel for instance and is it even possible to run a second app on an account that uses mongrel? (without paying for a 50Mb memory block, since it's not for customers or anything. Just as a test)

2007-02-15 01:18 PM

Hi there - please do not use script/server and only start Mongrels on your assigned port(s) that stay within your memory limit.  Are you able to get this app running on fastcgi?  Again please see those URLs above, which will solve that error.  If you're still having trouble send us an email at support and well take a look.

Cheers
~William

2007-02-15 01:23 PM

I only did that (script/server) to test of the app was able to run or not. And what is my assigned port for a second application? But I'd rather not use up memory space with mongrel .. and run on regular FastCGI. That should work in theory right? But the thing is it doesn't :s

The error logs on the server updated a little while ago with:
[Thu Feb 15 14:20:05 2007] [notice] mod_fcgid: process /home/eigenho/public_html/websugar/dispatch.fcgi(25054) exit(communication error), terminated by calling exit(), return code: 121

Production log still empty (except migrations)

Perhaps you know what 121 means? I'm going to run by every possible step again tomorrow and hopefully I just did something wrong :s But I just downloaded the app from the subversion straight on the server. Made the changes for fastCGI & the database, and .htacces etc. Ater that didn't work I copied the dispatch.fcgi & rb from my main app and that didn't help either. Migration worked so it isn't the database.yml file or database related... I also checked the permissions and they seem just fine :/ I started thinking FastCGI didn't work when you hadmongrel enabled but that isn't it either since I now get that error. Strange stuff.

2007-02-15 02:41 PM

>>...what is my assigned port for a second application?

If your assigned port was 4001, then your next would be 40010, then 40011, 40012, etc...


Also, Fastcgi will work no problem with addon domains - open a support ticket if you're still having trouble - there's likely just a typo or something in the second app.  I know this has happened to me a zillion times...

Cheers,
~William  

2007-02-16 02:45 AM


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