Welcome Guest | Login

Deployment not working with capistrano and then 404 error

Hi,

Yestarday my application was running fine. Then I commited some changes to the svn repository and then deployed those changes with capistrano. At first everything looked to have worked (It was not the first deploy), the migrations were run ok and didn't get any errors. Then I went to my application to see I the changes took effect but they didn't. The deployment did not changed my application. It did however saved a copy of it on the /rutanet/releases/xxxxxxx directory.

Then I tried to upload the directories from my development machine and I made the mistake of uploading the whole public directory. At first I tried everything on the forums and tutorials including checking the .htaccess, the symlink, the enviroment and database document, everything. So i decided to start again from scratch and created a new rails application and then followed exactly the tutorial on how to deploy a rails app.

Unfortunatley i am still getting the "The page you were looking for doesn't exist (404)" error.

And i get the following error on the error Log. "Warning: DocumentRoot [/home/rutanet/public_html/svn] does not exist"

Iam trying with these to links that do not require login:
- http://www.rutanet.com.mx/register/
- http://www.rutanet.com.mx/signin/signin/

Thanks for your help.

2008-02-19 10:27 AM

Hello,

You have not mentioned the Link corresponding to the "404 error". Please post a ticket with the Link to our support team. We will help you out with it.

Thank You,
Kumar

2008-02-19 12:03 PM

HostingRails Support
I did not do anything and now I is suddenly working.

2008-02-19 12:36 PM

Hi, It started to fail again and I did not moved a thing on the server. But now i am getting the "Application Error, Rails application failed to start properly"

And on the error log i receive these two errors:
- Warning: DocumentRoot [/home/rutanet/public_html/svn] does not exist
- [Wed Feb 20 12:59:21 2008] [notice] mod_fcgid: process /home/rutanet/public_html/dispatch.fcgi(10207) exit(communication error), terminated by calling exit(), return code: 1

What is wrong?

thanks.

2008-02-20 01:04 PM

Hi, I checked the dispatch.fcgi and its an ActionMailer problem.

I get the following error:

./../config/environment.rb:61: uninitialized constant ActionMailer (NameError)
from ./../config/../vendor/rails/railties/lib/initializer.rb:45:in `run'
from ./../config/environment.rb:14
from dispatch.fcgi:21:in `require'
from dispatch.fcgi:21

And on my enviroment.rb I have:

 ActionMailer::Base.delivery_method = :sendmail  
 ActionMailer::Base.perform_deliveries = true  
 ActionMailer::Base.raise_delivery_errors = true  
 ActionMailer::Base.default_charset = "utf-8"

Is there something else I have to add to enviroment?

thanks.

2008-02-20 01:13 PM

Those entries should work fine for you. Could you try putting those lines under ~app/config/environments/environment.rb

2008-02-20 01:58 PM

Do you mean in ~app/config/environments/production.rb?

Because there is no enviroment.rb inside the directory you are indicating.

Also i have another question. Where do you specify the :domain, :user, :password, etc.?

2008-02-20 02:06 PM

Yes, it's the file, I'm sorry for the confusions. The entries below should also work if you wish to specify the :domain :user etc.

ActionMailer::Base.delivery_method = :smtp  
ActionMailer::Base.server_settings = {  
 :address => "domain-of-smtp-host.com",
 :domain => "domain-of-sender.com",
 :port => 25,  
 :authentication => :login,  
 :user_name => "your_user_name",  
 :password => "*****" }  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true  
ActionMailer::Base.default_charset = "utf-8"

2008-02-20 02:17 PM


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