Project

General

Profile

Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2)

Added by Daniel Denis almost 13 years ago

hi.
i am using:

ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
pussion passenger
Rails 2.3.5
Linux test 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i686) using readline 6.1
Ruby-aware server used: Webrick -(because i do not understand :) )
About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20100705164950

problem:
i have a crontab script
*/10 * * * * root cd /usr/share/redmine/extra/svn;/usr/bin/ruby reposman.rb --key='CORRECT_KEY' --redmine MY_HOST_IP/redmine --svn-dir /var/svn --owner www-data --url http://MY_HOSTNAME/svn/ --verbose >> /var/log/reposman.log

the error:
querying Redmine for projects...
Unable to connect to http://MY_HOST_IP/redmine/sys/: Connection timed out - connect(2)

any help is apreciated. thanks.


Replies (13)

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Felix Schäfer almost 13 years ago

Well, what does curl or wget say if you try to hit the URL reposman complains about?

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

wget http://MY_IP/redmine/sys/
--2011-04-15 11:47:05-- http://MY_IP/redmine/sys/
Connecting to MY_IP:80... failed: Connection timed out.
Retrying.

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Felix Schäfer almost 13 years ago

Then you have a problem either with your network or your redmine install, but not with reposman.

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

everything is on the same host. so network problems are out of discution.
what more should i check ?

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

there is nothing in the logs.
i checked acces,error and other_vhosts.log
i checked if apache is logging and it is.

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Felix Schäfer almost 13 years ago

Daniel Denis wrote:

everything is on the same host. so network problems are out of discution.

Having everything on the same host doesn't rule out network problems at all.

Anyway, the facts are there: you can't wget the address and nothing shows up in your webserver logs, so either you're trying to hit the wrong address or you have a networking problem (which can either be routing, a firewall, and so on). And this is not something up to "discussion", those are facts.

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

using localhost gives the same result.

i think i solved this:
after flushing the firewall rules i get a forbidden error. this i a progress.

thanks Etienne Massip.

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

thanks to Felix Schäfer too.

you both were kind and helpfull !!

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Daniel Denis almost 13 years ago

you were !! now works with localhost, but not with the ip :)

RE: Unable to connect to http://MY_IP/redmine/sys/: Connection timed out - connect(2) - Added by Mark Anderson over 6 years ago

Old thread but related to what I experienced.

I was getting a certificate mismatch when trying to get my repositories automatically created.

Traced it to reposman.rb command in my cron table. I used "--redmine https://localhost/" which has no SSL cert. I changed this to "--redmine https://my.fqdn.name" and it now works.

    (1-13/13)