truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.14k stars 617 forks source link

Wordpress: Switching homepage to static page breaks the probes #18255

Closed MilanSchilling closed 7 months ago

MilanSchilling commented 7 months ago

App Name

Wordpress

Operating System

TrueNAS SCALE 23.10.1

App Version

6.4.3

Application Events

Related Kubernetes Events

2024-02-09 20:52:58
Container wordpress-test failed liveness probe, will be restarted
2024-02-09 20:52:58
Readiness probe failed: Get "http://172.16.8.53:10591/": EOF
2024-02-09 20:52:18
Liveness probe failed: Get "https://172.16.8.53:10591/": http: server gave HTTP response to HTTPS client
2024-02-09 20:52:18
Readiness probe failed: Get "https://172.16.8.53:10591/": http: server gave HTTP response to HTTPS client

[user changes home page]

2024-02-09 20:49:44
Created container wordpress-test-codeserver
2024-02-09 20:49:44
Started container wordpress-test-codeserver
2024-02-09 20:49:44
Container image "bitnami/wordpress:6.4.3@sha256:a4339c491793ef72804a6ceb6888de2fc730b60eb3aed02feb4bf1f569951d85" already present on machine
2024-02-09 20:49:44
Created container wordpress-test
2024-02-09 20:49:44
Started container wordpress-test
2024-02-09 20:49:43
Container image "tccr.io/tccr/code-server:v4.20.1@sha256:2a06dfbe8fc95b5308efb733ad4a6201e007c3750e1e6808e2d50f72f19dd4fa" already present on machine
2024-02-09 20:49:21
Created container wordpress-test-system-mariadb-wait
2024-02-09 20:49:21
Started container wordpress-test-system-mariadb-wait
2024-02-09 20:49:21
Created container wordpress-test-mariadb
2024-02-09 20:49:21
Started container wordpress-test-mariadb
2024-02-09 20:49:19
Add eth0 [172.16.8.53/16] from ix-net
2024-02-09 20:49:19
Container image "tccr.io/tccr/db-wait-mariadb:v1.1.0@sha256:62858b8191b662716d84840f8d9b3c86654f175686159c5267a1c860d75f398d" already present on machine
2024-02-09 20:49:19
Add eth0 [172.16.8.54/16] from ix-net
2024-02-09 20:49:19
Container image "bitnami/mariadb:11.2.2@sha256:5802a5eb705ba96e36300da7abacfa2a1f9f55887943de2c1bedab1dad83ac96" already present on machine
2024-02-09 20:49:18
Successfully assigned ix-wordpress-test/wordpress-test-6bb5f49d9d-rmhq2 to ix-truenas
2024-02-09 20:49:17
Order completed successfully
2024-02-09 20:49:17
Certificate fetched from issuer successfully
2024-02-09 20:49:17
The certificate has been successfully issued
2024-02-09 20:49:17
Successfully assigned ix-wordpress-test/wordpress-test-mariadb-757cbfcd88-r9mbv to ix-truenas
2024-02-09 20:49:16
Order completed successfully
2024-02-09 20:49:16
Certificate fetched from issuer successfully
2024-02-09 20:49:16
The certificate has been successfully issued
2024-02-09 20:49:15
Updated LoadBalancer with new IPs: [] -> [192.168.10.181]
2024-02-09 20:49:15
Successfully provisioned volume pvc-ef63a650-2290-48b1-ae8d-922e20c745a4
2024-02-09 20:49:15
0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..
2024-02-09 20:49:15
0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..
2024-02-09 20:49:15
Successfully provisioned volume pvc-9e8762e8-50fe-4104-bb01-465996c78fb9
2024-02-09 20:49:14
External provisioner is provisioning volume for claim "ix-wordpress-test/wordpress-test-mariadb-data"
2024-02-09 20:49:14
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2024-02-09 20:49:14
Ensuring load balancer
2024-02-09 20:49:14
External provisioner is provisioning volume for claim "ix-wordpress-test/wordpress-test-config"
2024-02-09 20:49:14
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2024-02-09 20:49:14
Applied LoadBalancer DaemonSet kube-system/svclb-wordpress-test-f5a0f255
2024-02-09 20:49:14
Applied LoadBalancer DaemonSet kube-system/svclb-wordpress-test-codeserver-af5cba63
2024-02-09 20:49:14
Scaled up replica set wordpress-test-mariadb-757cbfcd88 to 1
2024-02-09 20:49:14
Scaled up replica set wordpress-test-6bb5f49d9d to 1
2024-02-09 20:49:14
Created pod: wordpress-test-mariadb-757cbfcd88-r9mbv
2024-02-09 20:49:14
0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..
2024-02-09 20:49:14
Created pod: wordpress-test-6bb5f49d9d-rmhq2
2024-02-09 20:49:14
0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod..
2024-02-09 20:49:14
There are no available nodes for LoadBalancer
2024-02-09 20:49:14
Ensuring load balancer
2024-02-09 20:49:14
Successfully created Certificate "wordpress-test-tls-0"
2024-02-09 20:49:14
There are no available nodes for LoadBalancer
2024-02-09 20:49:14
Successfully created Certificate "wordpress-test-codeserver-tls-0"
2024-02-09 20:49:14
Issuing certificate as Secret does not exist
2024-02-09 20:49:14
Issuing certificate as Secret does not exist
2024-02-09 20:49:14
Stored new private key in temporary Secret resource "wordpress-test-tls-0-4dmlf"
2024-02-09 20:49:14
Created new CertificateRequest resource "wordpress-test-tls-0-1"
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Certificate request has been approved by cert-manager.io
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Created Order resource ix-wordpress-test/wordpress-test-tls-0-1-886743586
2024-02-09 20:49:14
Waiting on certificate issuance from order ix-wordpress-test/wordpress-test-tls-0-1-886743586: ""
2024-02-09 20:49:14
Stored new private key in temporary Secret resource "wordpress-test-codeserver-tls-0-zw5hb"
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Created new CertificateRequest resource "wordpress-test-codeserver-tls-0-1"
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Not signing CertificateRequest until it is Approved
2024-02-09 20:49:14
Certificate request has been approved by cert-manager.io
2024-02-09 20:49:14
Created Order resource ix-wordpress-test/wordpress-test-codeserver-tls-0-1-2875671243
2024-02-09 20:49:14
Waiting on certificate issuance from order ix-wordpress-test/wordpress-test-codeserver-tls-0-1-2875671243: ""

Application Logs

2024-02-09T20:54:02.997365949+01:00 wordpress 20:54:02.99 INFO  ==> 
2024-02-09T20:54:02.997948258+01:00 wordpress 20:54:02.99 INFO  ==> Welcome to the Bitnami wordpress container
2024-02-09T20:54:02.998499458+01:00 wordpress 20:54:02.99 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
2024-02-09T20:54:02.999178918+01:00 wordpress 20:54:02.99 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
2024-02-09T20:54:02.999746038+01:00 wordpress 20:54:02.99 INFO  ==> 
2024-02-09T20:54:03.001173437+01:00 wordpress 20:54:03.00 INFO  ==> ** Starting WordPress setup **
2024-02-09T20:54:03.010965521+01:00 wordpress 20:54:03.01 INFO  ==> Generating sample certificates
2024-02-09T20:54:03.013542028+01:00 Generating RSA private key, 4096 bit long modulus (2 primes)
2024-02-09T20:54:03.158650319+01:00 ..........................................................................++++
2024-02-09T20:54:03.172499508+01:00 .....++++
2024-02-09T20:54:03.172678853+01:00 e is 65537 (0x010001)
2024-02-09T20:54:03.183018211+01:00 Signature ok
2024-02-09T20:54:03.183030103+01:00 subject=CN = example.com
2024-02-09T20:54:03.183113169+01:00 Getting Private key
2024-02-09T20:54:03.200198638+01:00 realpath: /bitnami/apache/conf: No such file or directory
2024-02-09T20:54:03.201078753+01:00 wordpress 20:54:03.20 INFO  ==> Configuring the HTTP port
2024-02-09T20:54:03.213877188+01:00 wordpress 20:54:03.21 INFO  ==> Configuring Apache ServerTokens directive
2024-02-09T20:54:03.223238047+01:00 wordpress 20:54:03.22 INFO  ==> Configuring PHP options
2024-02-09T20:54:03.224031671+01:00 wordpress 20:54:03.22 INFO  ==> Setting PHP opcache.enable option
2024-02-09T20:54:03.232102177+01:00 wordpress 20:54:03.23 INFO  ==> Setting PHP expose_php option
2024-02-09T20:54:03.236334018+01:00 wordpress 20:54:03.23 INFO  ==> Setting PHP memory_limit option
2024-02-09T20:54:03.240321202+01:00 wordpress 20:54:03.24 INFO  ==> Setting PHP output_buffering option
2024-02-09T20:54:03.248765427+01:00 wordpress 20:54:03.24 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
2024-02-09T20:54:03.399394368+01:00 wordpress 20:54:03.39 INFO  ==> Restoring persisted WordPress installation
2024-02-09T20:54:04.318929068+01:00 wordpress 20:54:04.31 INFO  ==> Trying to connect to the database server
2024-02-09T20:54:04.709441039+01:00 wordpress 20:54:04.70 INFO  ==> ** WordPress setup finished! **
2024-02-09T20:54:04.709460315+01:00 
2024-02-09T20:54:04.717691142+01:00 wordpress 20:54:04.71 INFO  ==> ** Starting Apache **
2024-02-09T20:54:04.775721452+01:00 [Fri Feb 09 20:54:04.775654 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.58 (Unix) OpenSSL/1.1.1w configured -- resuming normal operations
2024-02-09T20:54:04.775751007+01:00 [Fri Feb 09 20:54:04.775674 2024] [core:notice] [pid 1] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -D FOREGROUND'
2024-02-09T20:54:14.144499968+01:00 172.16.0.1 - - [09/Feb/2024:20:54:13 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:14.144872304+01:00 172.16.0.1 - - [09/Feb/2024:20:54:14 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:18.930959318+01:00 172.16.0.1 - - [09/Feb/2024:20:54:18 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:18.930989765+01:00 172.16.0.1 - - [09/Feb/2024:20:54:18 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:18.931257485+01:00 172.16.0.1 - - [09/Feb/2024:20:54:18 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:18.931273355+01:00 172.16.0.1 - - [09/Feb/2024:20:54:18 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:28.931077111+01:00 172.16.0.1 - - [09/Feb/2024:20:54:28 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:28.931502035+01:00 172.16.0.1 - - [09/Feb/2024:20:54:28 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:28.936000274+01:00 172.16.0.1 - - [09/Feb/2024:20:54:28 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:28.936282251+01:00 172.16.0.1 - - [09/Feb/2024:20:54:28 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:38.921291611+01:00 172.16.0.1 - - [09/Feb/2024:20:54:38 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:38.921554332+01:00 172.16.0.1 - - [09/Feb/2024:20:54:38 +0100] "\x16\x03\x01" 400 226
2024-02-09T20:54:38.927685314+01:00 172.16.0.1 - - [09/Feb/2024:20:54:38 +0100] "GET / HTTP/1.1" 301 -
2024-02-09T20:54:38.928010411+01:00 172.16.0.1 - - [09/Feb/2024:20:54:38 +0100] "\x16\x03\x01" 400 226

Application Configuration

Default configuration except:

Describe the bug

On a fresh wordpress installation I change the home page to be a static page instead of the latest blog entry (in my case I change it to the already existing Sample Page) in the wp admin panel. After changing this, the home page changes, but after a few moments I get a 404 page not found error on the entire page.

To Reproduce

  1. Install wordpress with all-default values, with ingress (traefik/cert)
    1. Accessing the homepage works fine
    2. Accessing the admin panel works fine
  2. Then, change the home page to the already existing static Sample Page, as shown in the image
  3. For a few moments the home page actually shows the Sample Page
  4. After a minute or so, I get a 404 on the whole site, and the app gets stuck in a Deploying loop

Expected Behavior

I expect the home page to change to the Sample Page while still being accessible.

Screenshots

Screenshot 2024-02-09 at 20-52-14 Reading Settings ‹ Truecharts Blog — WordPress

Screenshot 2024-02-09 at 20-53-21 https __tesla shoggoth ch

Additional Context

Ticket on Discord

I've read and agree with the following

PrivatePuffin commented 7 months ago

Problem is here: http: server gave HTTP response to HTTPS client