Closed rosch100 closed 6 months ago
Hi!
Did you try with the default docker-compose.yaml file just changing the image tags?
It works up to mariadb 11.2.
When using mariadb 11.3, the error Access denied for user 'root'@'%' to database 'wikidb'
is thrown.
Is this happening on a fresh installation with mariadb 11.3 or it only happens when upgrading?
Just tested with a new database for wikidb. Same error:
ERROR 1044 (42000) at line 1: Access denied for user 'root'@'%' to database 'wikidb'
Could you please provide a docker-compose.yml that triggers the issue?
MariaDB:
mariadb:
#image: 'bitnami/mariadb:latest'
image: 'bitnami/mariadb:11.2'
container_name: mariadb
restart: always
ports:
- '3306:3306'
environment:
- MARIADB_ROOT_USER=root
- MARIADB_ROOT_PASSWORD=mypasswd
- BITNAMI_DEBUG=true
volumes:
- /srv/DockerVolumes/sql:/bitnami
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
default:
name: nginx-proxy
external: true
Mediawiki:
mediawiki:
image: 'bitnami/mediawiki:latest'
#image: 'bitnami/mediawiki:1.40.0'
container_name: wiki
restart: always
environment:
- BITNAMI_DEBUG=true
- MEDIAWIKI_HOST=wiki.myhost.de
- MEDIAWIKI_WIKI_NAME=MyWiki
- MEDIAWIKI_DATA_TO_PERSIST=images LocalSettings.php
- MYSQL_CLIENT_DATABASE_HOST=mariadb
- MYSQL_CLIENT_DATABASE_PORT_NUMBER=3306
- MYSQL_CLIENT_DATABASE_ROOT_USER=root
- MYSQL_CLIENT_DATABASE_ROOT_PASSWORD=mypasswd
- MYSQL_CLIENT_CREATE_DATABASE_NAME=wikidb
- MYSQL_CLIENT_CREATE_DATABASE_USER=my_wiki
- MYSQL_CLIENT_CREATE_DATABASE_PASSWORD=mypasswd
- MEDIAWIKI_DATABASE_HOST=mariadb
- MEDIAWIKI_DATABASE_PORT_NUMBER=3306
- MEDIAWIKI_DATABASE_USER=my_wiki
- MEDIAWIKI_DATABASE_NAME=wikidb
- MEDIAWIKI_DATABASE_PASSWORD=mypasswd
- SMTP_HOST=ssl://smtp.mymail.de
- SMTP_HOST_ID=myhost.de
- SMTP_PORT=465
- SMTP_USER=smtp@myhost.de
- SMTP_PASSWORD=mypasswd
- VIRTUAL_HOST=wiki.myhost.de
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=wiki.myhost.de
- LETSENCRYPT_EMAIL=mymail@myhost.de
- SSL_POLICY=Mozilla-Modern
volumes:
- /srv/www/wiki.myhost.de/mediawiki:/bitnami/mediawiki
- /srv/www/wiki.myhost.de/mediawiki/extensions/CharInsert:/opt/bitnami/mediawiki/extensions/CharInsert
- /srv/www/wiki.myhost.de/mediawiki/extensions/NativeSvgHandler:/opt/bitnami/mediawiki/extensions/NativeSvgHandler
- /srv/www/wiki.myhost.de/mediawiki/extensions/Diagrams:/opt/bitnami/mediawiki/extensions/Diagrams
- /srv/www/wiki.myhost.de/mediawiki/extensions/Mermaid:/opt/bitnami/mediawiki/extensions/Mermaid
- /srv/www/wiki.myhost.de/mediawiki/extensions/CodeMirror:/opt/bitnami/mediawiki/extensions/CodeMirror
- /srv/www/wiki.myhost.de/mediawiki/extensions/WebAuthn:/opt/bitnami/mediawiki/extensions/WebAuthn
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "8080"
dns:
- 1.1.1.1
networks:
default:
name: nginx-proxy
external: true
Hi,
We are unable to reproduce the issue because I see several references to local volumes. Do you have a minimal example that we can use to reproduce?
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/mediawiki
What architecture are you using?
amd64
What steps will reproduce the bug?
Using the images:
'bitnami/mediawiki:latest'
and'bitnami/mariadb:latest'
Mediawiki does not start up anymore since 2024-04-03.Until that date, the mediawiki container worked as expected. I suspect an upgrade of MariaDB on 2024-04-03?
The full Mediawiki container log:
What is the expected behavior?
The root user has access to the mediawiki database.
What do you see instead?
Access denied for user 'root'@'%' to database 'wikidb'