You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wordpress-Container start, but no connection to Website #942
Hello everyone,
I run my WordPress websites within a Kubernetes cluster. And unfortunately I have a problem with the latest wordpress:latest image that I can't connect to the website.
I just don't get a response on port 80. If I then switch to the container's shell and enter curl http://127.0.0.1:80, the query hangs and doesn't get a response. I then have to cancel it with CTRL + C.
To test whether this is perhaps a Kubernetes cluster problem, I did the same on my Docker server. A new installation with the latest tag cannot be opened either.
The ports are open, there is just no response. Maybe the following will help:
# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::80 :::* LISTEN 1/apache2
# curl http://127.0.0.1:80
^C
The liveness and readiness probes also logically fail. It seems that the web server is not delivering any data or is not responding. But it is sufficient to keep the port open.
I am unable to reproduce the issue. I ran wordpress:latest in one terminal and tested from another.
$ docker run -it --rm --name wordy wordpress:latestUnable to find image 'wordpress:latest' locallylatest: Pulling from library/wordpress63eaf96fd2ee: Pull completebeeeb2e72514: Pull completeb7fd27be5b20: Pull complete8ca47539e139: Pull completec6834909cd19: Pull completee2a530cb2e77: Pull complete4f4fb700ef54: Pull complete814b6ecb84b0: Pull completeea823f46cc3c: Pull completeed50d9a76bab: Pull completea4e58aa84c36: Pull completebcbecb454049: Pull completef473bcbd0e44: Pull complete1475f50d3e62: Pull complete08dc3bd6914b: Pull complete68d70c2b9fc9: Pull complete5ac3fe5e5e7e: Pull completeb545bb7ff18e: Pull complete5c36aa47b3f5: Pull completeb9903ecbcf0b: Pull completed8b79b64a9d5: Pull completeDigest: sha256:0211348df9f5e29a32cb6a65ec5aff2c2e775670fdb054ab98f7833eb539234aStatus: Downloaded newer image for wordpress:latestWordPress not found in /var/www/html - copying now...Complete! WordPress has been successfully copied to /var/www/htmlAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this messageAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message[Mon Feb 24 17:54:06.988521 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.2.27 configured -- resuming normal operations[Mon Feb 24 17:54:06.988756 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'172.17.0.1 - - [24/Feb/2025:17:54:42 +0000] "GET / HTTP/1.1" 302 231 "-" "curl/7.88.1"172.17.0.1 - - [24/Feb/2025:17:55:00 +0000] "GET / HTTP/1.1" 302 231 "-" "curl/7.88.1"172.17.0.1 - - [24/Feb/2025:17:55:00 +0000] "GET /wp-admin/setup-config.php HTTP/1.1" 200 13470 "-" "curl/7.88.1"127.0.0.1 - - [24/Feb/2025:17:55:47 +0000] "GET / HTTP/1.1" 302 230 "-" "curl/7.88.1"127.0.0.1 - - [24/Feb/2025:17:55:47 +0000] "GET /wp-admin/setup-config.php HTTP/1.1" 200 13462 "-" "curl/7.88.1"^C[Mon Feb 24 17:56:20.458055 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00169: caught SIGTERM, shutting down
And in the second terminal:
$ docker container inspect --format '{{ .NetworkSettings.IPAddress }}' wordy172.17.0.2
$ curl 'http://172.17.0.2'
$ # returned instantly, (oh, from the apache logs, that was a 302 redirect, so I need `-L` for my curl)
$ curl -fL 'http://172.17.0.2'<!DOCTYPE html>...
$ docker exec -it wordy bashroot@b33ee9f6f736:/var/www/html# curl -fL 'http://127.0.0.1'<!DOCTYPE html>...
Activity
yosifkit commentedon Feb 24, 2025
I am unable to reproduce the issue. I ran
wordpress:latestin one terminal and tested from another.And in the second terminal:
phillipunzen commentedon Feb 24, 2025
Strange, do you have any idea how I can solve the problem?