Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. [Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed

[Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed

Added by karel lang about 10 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 (8)

RE: Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by karel lang about 10 years ago

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?

RE: Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by Karsten Gallinowski about 10 years ago

Hi,

the application server used is unicorn. Hopefully this answers your question.

Regards,
Karsten

RE: Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by karel lang about 10 years ago

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 :]]

RE: Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by Shivanand Sharma about 10 years ago

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!

RE: [Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by Qbit Solutions about 7 years ago

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?

RE: [Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by Piotr F about 2 years ago

Hello,

After the reboot, for the first time, I am having similar problem:

nothing listening on port 6000.

root@user:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:45432         0.0.0.0:*               LISTEN      983/postgres
tcp        0      0 0.0.0.0:port#            0.0.0.0:*               LISTEN      PID/sshd: /usr/sbin
tcp        0      0 127.0.0.1:port#          0.0.0.0:*               LISTEN      PID/sshd: user@
tcp        0      0 127.0.0.xx:port#           0.0.0.0:*               LISTEN      PID/service
tcp        0      0 127.0.0.1:port#         0.0.0.0:*               LISTEN      PID/service
tcp        0      0 127.0.0.1:port#          0.0.0.0:*               LISTEN      PID/mariadbd
tcp        0      0 0.0.0.0:port#              0.0.0.0:*               LISTEN      xxx
tcp6       0      0 :::port#                :::*                    LISTEN      
tcp6       0      0 :::port#                 :::*                    LISTEN      
tcp6       0      0 :::port#                 :::*                    LISTEN      
tcp6       0      0 :::80                   :::*                    LISTEN      xxx/apache2
tcp6       0      0 :::xx                   :::*                    LISTEN      
tcp6       0      0 :::443                  :::*                    LISTEN      1056/apache2
udp        0      0 127.0.0.xx:xx           0.0.0.0:*                           service

And Apache error log:

[Mon May 08 18:12:14.893316 2023] [proxy:error] [pid 1076] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed
[Mon May 08 18:12:14.893366 2023] [proxy_http:error] [pid 1076] [client IP:xxx] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: https://sub.domain.com/openproject/

Also, I have run configure openproject, to no avail.

Could anybody help with this, please?

Cheers,

Piotr

RE: RE: [Solved] Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by Piotr F about 2 years ago

So far, I have found out that these errors mean that there is no web service running on the given port.

Still no clue but:

root@user:~# systemctl status openproject
● openproject.service
    Loaded: loaded (/etc/systemd/system/openproject.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2023-05-08 17:18:55 CEST; 2h 48min ago
  Main PID: 771 (sleep)
     Tasks: 1 (limit: 11806)
    Memory: 212.0K
       CPU: 1ms
    CGroup: /system.slice/openproject.service
            └─771 /bin/sleep infinity

May 08 17:18:55 user systemd[1]: Started openproject.service.

RE: RE: Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:6000 (127.0.0.1) failed - Added by peacecop kalmer: piiskop over 1 year ago

I have encountered the same situation: after restarting the machine, nothing is running at port 6000 although the service is running.

  • (1 - 8/8)
Loading...