#1088 docker: fix improperly running httpd in distgit container
Merged 4 years ago by praiskup. Opened 4 years ago by frostyx.
copr/ frostyx/copr docker-httpd-error  into  master

@@ -9,4 +9,11 @@ 

    echo "#########################################################"

  EOF

  

+ # We have a recurring problem with httpd, which manifests itself

+ # in the following way

+ # 1. httpd is running, while supervisorctl thinks it failed

+ # 2. It is not accessible e.g. via curl and returns "connection refused"

+ # 3. Killing httpd and starting it again fixes the issue

+ kill -9 `pidof httpd` && supervisorctl start httpd

+ 

  /bin/bash

We have a recurring problem with httpd, which manifests itself
in the following way:

  1. httpd is running, while supervisorctl thinks it failed
  2. It is not accessible e.g. via curl and returns "connection refused"
  3. Killing httpd and starting it again fixes the issue

We decided to not burn out a large amount of time on this issue
and just try to hackishly workaround it.

rebased onto df5bfeb

4 years ago

Commit 6ae3127 fixes this pull-request

Pull-Request has been merged by praiskup

4 years ago

Hmm, this hack probably won't work because

[root@distgit /]# pidof httpd
[root@distgit /]# /usr/sbin/httpd -DFOREGROUND
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 
172.18.0.6. Set the 'ServerName' directive globally to suppress this message
httpd (pid 35) already running

The PID 35 is

[root@distgit /]# ps ax |grep 35
   35 ?        S      0:00 /usr/libexec/git-core/git-daemon --base-path=/var/lib/dist-git/git --export-all --user-path=public_git --syslog --inetd --verbose

[root@distgit /]# rpm -qf /usr/libexec/git-core/git-daemon
git-daemon-2.21.0-1.fc30.x86_64
Metadata