The issue you described above seems to be docker-related. So, I highly recommend you to have look at the following Docker documentation:
https://docs.docker.com/engine/swarm/secrets/
And check your docker-compose file out carefully again trying to find some possible error.
-
This reply was modified 1 year, 9 months ago by Jorge Luiz. Reason: Grammar fixing
Thanks, Jorge, for your reply.
Although my secrets have successfully been passed into the container I switched to not using secret files to get WP running anyways.
The following error message appears when browsing to my WP frontend (debug true in wp-config):
Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ‘mywpuser’@’192.168.64.3’ (using password: YES) in /var/www/html/wp-includes/wp-db.php on line 1653
Access denied for user ‘mywpuser’@’192.168.64.3’ (using password: YES)
Following is from my databse server:
MariaDB [mysql]> select Host,User from user;
+———–+————-+
| Host | User |
+———–+————-+
| % | mywpuser |
| % | root |
| localhost | mariadb.sys |
| localhost | root |
+———–+————-+`
Both the WP and the SQL container are located in the same docker network.
Any further idea on how to troubleshoot this one?
Another information: When bashing into the mariadb container I am able to login to the database by using “mysql -u mywpuser -p”.
So there obviously seem to be an issue when connecting with the given credentials from the WordPress container.
Everything works perfectly, now. Had a typo in the database user password…
-
This reply was modified 1 year, 9 months ago by okoestner.