ZM in Docker on Unraid - "Can't connect to local MySQL" - was working, just suddenly stopped

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
arretx
Posts: 15
Joined: Fri Nov 05, 2021 3:30 am

ZM in Docker on Unraid - "Can't connect to local MySQL" - was working, just suddenly stopped

Post by arretx »

I don't know how to diagnose this.

Until yesterday, when we had a power interruption, ZM was working perfectly fine in Unraid under a Docker container.

After rebooting, I'm getting the following:

Starting services...
* Starting Apache httpd web server apache2
*
* Stopping MariaDB database server mysqld
...done.
* Starting MariaDB database server mysqld
...fail!
DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/share/perl5/ZoneMinder/Database.pm line 110.

I don't know how to diagnose this error as the Docker container won't start, so I can't CLI into it to test anything.

What now?
Post Reply