Content
[Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed
Added by karel lang about 8 years ago
Hi guys,
i start to be quite ‘wildeyed’ because i can not start OP after restarting box.
Facts:
- clean install on clean installed OS CEntOS 6.6 (fully updated)
- installed openproject-ce.x86_64 4.0.8-1424886355.cbd36a3.centos6 from “pkgr-openproject-community” repository
- after installation i ran “openproject-ce configure” command
- services: mysqld memcached and httpd are running and starting automatically upon reboot
- i can connect to mysql database with my user ‘openproject’ with given pw
Behaviour:
After running the mentioned “openproject-ce configure” (and filling all details about database, database user, SSL certificates, apache etc) i was immediately able to connect to Openproject, hook it to LDAP server, users could login …. simply PERFECT.
But!
After install I did first sanitary reboot and disaster - after reboot i can not connect at all and all i can see is the message from Apache “error_log” (as i stated in subject) and my browser says:
“503 Service Temporarily Unavailable”
“The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later”
I spent several hours browsing log, googling etc, but to no luck :[. Anyone would have a hint what to try to do?
note: disabling / enabling SElinux has had no effect
Thanks a lot
Replies (5)
Ok,
here:
pwd
/etc/httpd/conf.d
cat openproject-ce.conf
Include /etc/openproject-ce/addons/apache2/includes/server/*.conf
<VirtualHost *:80>
ServerName srv-019.example.com
Redirect permanent / https://srv-019.example.com:443/
<VirtualHost *:443>
ServerName srv-019.example.com
DocumentRoot /opt/openproject-ce/public
ProxyRequests off
Include /etc/openproject-ce/addons/apache2/includes/vhost/*.conf
ProxyPass / http://127.0.0.1:6000/ retry=0
ProxyPassReverse / http://127.0.0.1:6000/
As i understand it, “ProxyPass” and “ProxyPassReverse” directives send traffic from the Apache server to the application server, which in this case is OpenProject.
Can anybody here tell me at least which process should be listening on that port 6000?
Hi,
the application server used is unicorn. Hopefully this answers your question.
Regards,
Karsten
Thanks for tip, that is what i needed, after i knew what to look for, things were much easier :]
I had to revise ‘upstart’ scripts in /etc/init and after that all started - and ‘unicorn master’ is running!
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1272/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1503/master
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN 4757/svnserve
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1410/mysqld
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 1252/memcached
tcp 0 0 127.0.0.1:6000 0.0.0.0: LISTEN 7233/unicorn master*
tcp 0 0 :::22 :::* LISTEN 1272/sshd
tcp 0 0 ::1:25 :::* LISTEN 1503/master
tcp 0 0 :::443 :::* LISTEN 4978/httpd
tcp 0 0 :::11211 :::* LISTEN 1252/memcached
tcp 0 0 :::80 :::* LISTEN 4978/httpd
udp 0 0 0.0.0.0:11211 0.0.0.0:* 1252/memcached
udp 0 0 :::11211 :::* 1252/memcached
All is fine now and i’m happy admin :]]
Currently there doesn’t seem to be a way to get the packaged installation work with Apache/passenger. This post solved the issue. Thanks a ton!
Hi, I’ve been looking around for the unicorn fix but haven’t found it yet. Can you tell me what to do to start the unicorn master every time at boot?