bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.61k stars 8.99k forks source link

[Mediawiki] Pod in Crashlookbackoff #27525

Open stanbog opened 1 week ago

stanbog commented 1 week ago

Name and Version

bitnami/mediawiki 20.2.7

What architecture are you using?

amd64

What steps will reproduce the bug?

While trying to install the mediawiki helm chart via ArgoCD on Openshift, the mediawiki pod crashes continuously with this the following log:

mediawiki 10:16:13.65 INFO  ==> 
mediawiki 10:16:13.65 INFO  ==> Welcome to the Bitnami mediawiki container
mediawiki 10:16:13.65 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
mediawiki 10:16:13.65 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
mediawiki 10:16:13.65 INFO  ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
mediawiki 10:16:13.65 INFO  ==> 
mediawiki 10:16:13.66 INFO  ==> ** Starting MediaWiki setup **
mediawiki 10:16:13.66 DEBUG ==> Validating settings in APACHE_* environment variables
mediawiki 10:16:13.67 DEBUG ==> Copying files from /opt/bitnami/apache/conf.default to /opt/bitnami/apache/conf
realpath: /bitnami/apache/conf: No such file or directory
mediawiki 10:16:13.68 INFO  ==> Configuring the HTTP port
mediawiki 10:16:13.69 DEBUG ==> Configuring port 8080 on file /opt/bitnami/apache/conf/httpd.conf
mediawiki 10:16:13.69 DEBUG ==> Configuring port 8080 on file /opt/bitnami/apache/conf/bitnami/bitnami.conf
mediawiki 10:16:13.69 DEBUG ==> Configuring port 8080 on file /opt/bitnami/apache/conf/vhosts/00_status-vhost.conf
mediawiki 10:16:13.69 INFO  ==> Configuring the HTTPS port
mediawiki 10:16:13.69 DEBUG ==> Configuring port 8443 on file /opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf
mediawiki 10:16:13.70 INFO  ==> Configuring Apache ServerTokens directive
mediawiki 10:16:13.70 DEBUG ==> Configuring ServerTokens Prod on file /opt/bitnami/apache/conf/httpd.conf
mediawiki 10:16:13.71 INFO  ==> Configuring PHP options
mediawiki 10:16:13.71 INFO  ==> Setting PHP expose_php option
mediawiki 10:16:13.74 INFO  ==> Setting PHP output_buffering option
mediawiki 10:16:13.75 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
mediawiki 10:16:13.77 DEBUG ==> Validating settings in MEDIAWIKI_* environment variables...
mediawiki 10:16:13.77 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=true. For safety reasons, do not use this flag in a production environment.
mediawiki 10:16:13.96 INFO  ==> Restoring persisted MediaWiki installation
mediawiki 10:16:13.99 INFO  ==> Trying to connect to the database server
mediawiki 10:16:13.99 DEBUG ==> Getting $wgDBserver from MediaWiki configuration
mediawiki 10:16:14.00 DEBUG ==> ^\s*(//\s*)?\$wgDBserver\s*=([^;]+);
grep: /opt/bitnami/mediawiki/LocalSettings.php: No such file or directory

We're using target version 20.2.7.

Most of the parameters are taken from the default values.yaml file.

The MariaDB pod doesn't have this issue, it starts fine.

Are you using any custom parameters or values?

podSecurityContext: false
containerSecurityContext: false
global.compatibility.openshift.adaptSecurityContext: true
mediawikiHost: xxx
mediawikiUser: xxx
mediawikiPassword: xxx
mariadb.auth.rootPassword: xxx
mariadb.auth.password: xxx
image.debug: true
resourcesPreset: medium
mediawikiEmail: computing@cegeka.com
mediawikiName: MediaWiki POC
allowEmptyPassword: true
replicaCount: 1
ingress.enabled: true
ingress.hostname: xxx
ingress.tls: true

What is the expected behavior?

For the pod to be Ready

What do you see instead?

Pod is crashing

carrodher commented 1 week ago

The issue may not be directly related to the Bitnami container image/Helm chart, but rather to how the application is being utilized, configured in your specific environment, or tied to a specific scenario that is not easy to reproduce on our side. Our internal testing is working fine in the different platforms we use for testing: OpenShift, AKS, EKS, TKG, etc.

If you think that's not the case and are interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Suppose you have any questions about the application, customizing its content, or technology and infrastructure usage. In that case, we highly recommend that you refer to the forums and user guides provided by the project responsible for the application or technology.

With that said, we'll keep this ticket open until the stale bot automatically closes it, in case someone from the community contributes valuable insights.