Skip to content

Can't connect to local MySQL server #74

@emield12

Description

@emield12

Hello,
I upgraded my docker image to the latest version today and now the container won't start anymore. The local MySQL database does fails to start.
Docker logs:

 * Starting MySQL database server service   ...done.
 * Warning: Mysql startup timer expired!
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
 * First run of mysql in the container, creating ZoneMinder dB.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
 * Starting Apache http web server service   ...done.
 * Starting ZoneMinder video surveillance recorder   ...failed!

I am using the ubuntu18.04 version of the image, command:

sudo docker run -d -t -p 1080:80 
-e TZ='Europe/Brussels' 
-v /mnt/user/cctv_rec/Zoneminder/events/:/var/cache/zoneminder/events 
-v /mnt/user/cctv_rec/Zoneminder/images/:/var/cache/zoneminder/images 
-v /mnt/user/appdata/Zoneminder/mysql/:/var/lib/mysql 
-v /mnt/user/appdata/Zoneminder/logs/:/var/log/zm 
--name zoneminder_bis zoneminderhq/zoneminder:latest-ubuntu18.04

Maybe it is related to issue #73, but I am not using an external database.

p.s.: It would be nice to have version tags on the docker images, as now I can't even roll back to a previous version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions