Welcome Guest | Login

Connection problem with capistrano

Hello!

I'm trying to deploy an app via capistrano and when capistrano  tries to connect to my domain here in hostingrails I get the following error:

Capistrano::ConnectionError, connection failed for: <mydomain>.com (Errno::ETIMEDOUT:


I'm not prompted for password or anything.


I've already deployed an app with capistrano here in hostingrails, but in my client's account. I've made a test and in that other account capistrano can connect withou a problem.


Thanks in advance.

2008-06-11 08:25 AM

I guess that your client account and the account where you are facing problems are on different HostingRails servers. Can you please update us the global IP that you are using at your local end. We will check if there is any blockage from the server end.
You can obtain the global Ip by accessing the following URL.
http://whatismyip.com/

2008-06-11 10:52 AM

Regards,
Rahul
Hi Rahul!

my ip is 201.9.101.61
but I don't have a fix ip adress and yesterday I was having the same problem (whit another ip adress).


Thanks for your attention.

2008-06-11 11:28 AM

I didnt find this Ip blocked in the server.

Ok.. lets rule out this possibility by running a test.
Try to ssh to this account from your local end. If it succeeds then there wont be any block to the Ip from the server end.

Please try to ssh to your server account and update us the status.

2008-06-11 12:35 PM

Regards,
Rahul
I can ssh with no problems.
the problem occurs only when capistrano tries to connect.

2008-06-11 12:56 PM

Hi Tagview,

Please re-check the domain name, port and the repository variable given in the deploy.rb file. Is the error mentioned above obtained immediately after the "cap deploy:setup" command? It seems like the values given in the  deploy.rb file are creating issues. Are the Svn repo and the deploy_to folders in the same account?

2008-06-11 05:37 PM

Hi!

The variables are correctly set.
My svn repository is at assembla.com, but that's the same with my client's app wich I don't have problems with capistrano.

That's the output I get from capistrano:

 * executing `deploy:setup'
 * executing "umask 02 && mkdir -p /home/tagview/requisicoes /home/tagview/requisicoes/releases /home/tagview/requisicoes/shared /home/tagview/requis
icoes/shared/system /home/tagview/requisicoes/shared/log /home/tagview/requisicoes/shared/pids"
   servers: ["requisicoes.tagview.com"]
connection failed for: requisicoes.tagview.com (Errno::ETIMEDOUT: Uma tentativa de conexão falhou porque o componente conectado não respondeu corretamente
após um período de tempo ou a conexão estabelecida falhou porque o host conectado não respondeu. - connect(2))

* Translating the message to english:
(Errno::ETIMEDOUT: A connection attempt failed because the connected component didn't answered correctly after a
period of time or the established connection failed because the connected host didn't answered. - connect(2))


Thanks for your attention.

2008-06-12 08:49 AM

Hi Tagview,

It seems like the domain is not pointing to your account. Please give a try after changing the domain name given in the deploy.rb file to one which can access your account.

2008-06-12 07:34 PM

Hi!

Ok, Vinayan, problem solved!
The problem was exactly what you mentioned: I was trying to acess a domain wich doesn't belong to me. Domain tagview.com was already registered and I didn't notice that.


Thanks a lot for your help.

2008-06-17 09:16 AM


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