All connection attempts on RhodeCode on CentOS 6.3 are refused except from localhost.
Note that iptables is not running, and I am only trying to visit the web interface.
I have googled the exact error message below and looked around SO. I have yet to find a solution.
abort: error: No connection could be made because the target machine actively refused it
If the firewall is down, and I am not trying to modify any repository, what else is preventing me from connecting? EDIT: See #5 below. Not sure how to address it yet.
Things tried and other info
- Using localhost, 127.0.0.1 and hostname in
production.ini service iptables stop- Connected over HTTP successfully. In other words, connections are accepted outside RhodeCode.
- Made sure no authentication methods were enabled or configured in
production.ini - Although the server accepts connections on localhost,
netstat -ldoes not show that port 5000 is listening. Port 5000 is set inproduction.iniandps uax | grep pasterconfirms the server is running. No other software tries to grab port 5000.
Ok, apparently I have been misunderstanding the
hostconfiguration. I was running on the assumption thathostshould be set to127.0.0.1orlocalhostin production.ini for RhodeCode to know what host to look for for another service. This was a faulty presumption on my part, since I am used to pointing web applications to local systems to look for databases.It turns out that
hostbinds the application to a specific address for access, meaning that it RhodeCode was supposed to only respond to local requests, regardless of what other system policies say. The setup docs did not make this clear because it did not specify that external connections would be refused. All it said was:The problem was fixed by binding RhodeCode to
0.0.0.0, which opened it to outside connections. Kudos to Ćukasz Balcerzak for pointing this out in the RC support google group.