Access denied Docker installation

I tried to install Xibo 1.8.1 in a Docker on Windows 10. I use Docker for Windows not Docker-Toolbox.

After navigating to localhost, I get the error: Fatal Error - sorry this shouldn’t happen. SQLSTATE[28000] [1045] Access denied for user ‘cms’@‘172.18.0.4’ (using password: YES)

What should I do?

It sounds like you initially started the containers without having a config.env in place, or with the MYSQL_PASSWORD variable empty.

You’ll need to do the following:

docker-compose down

then delete the shared folder (this will delete any media items or database backups you have stored there, so back these up if they are important to you).

Then ensure config.env exists, and that it contains a password for MySQL to use. Then run

docker-compose up -d or whatever the up command you are using is from the install guide.

2 Likes

I have the similar issue, with following message when try to reach http://localhost (Windows 10 Pro x64 with Docker is used)

Fatal Error - sorry this shouldn’t happen. SQLSTATE[28000] [1045] Access denied for user ‘cms’@‘172.18.0.4’ (using password: NO)

Fresh installation, with xibo MySQL database, MYSQL_PASSWORD=az7PH9YBAE4S2Wbm (random password from https://www.random.org/passwords/?num=1&len=16&format=plain&rnd=new) is defined in config.env.

Could you please advise what I should do? I found in several posts that passwords for MySQL and the one defined in config.env are not the same so that is the issue, but I don’t know how to check default password created automatically with docker-compose up -d.

Thank you in advance for help.

Ugljesa

I solved the issue. Windows was under update procedure. After PC restart and docker restarting everything is working.

Thanks anyway

Regards

1 Like