ZM 1.33 with Docker Complete Wipe
Posted: Fri Sep 20, 2019 9:23 pm
Okay, I have completely bungled my Zoneminder (with Docker) install.
I am trying to wipe everything out and start over.
The mysql container (zm_db) seems to have other ideas.
I started (and then restarted with https://www.youtube.com/watch?v=EQIS1QsB6Lo
.... and things got screwed up (my fault).
Well, this is a container. I "should" be able to remove the container, reboot, and start over cleanly.
This is not the case.
The reinstall of the Zoneminder db works fine, but there is something that is "stuck" about the mysql
The Docker Command to install the MySql Server and database Container:
sudo docker run -d --name zm_db --restart always -e TZ=America/Chicago \
-e MYSQL_USER=zmuser \
-e MYSQL_PASSWORD=zmpass \
-e MYSQL_DATABASE=zm \
-e MYSQL_ROOT_PASSWORD=mysqlpasswd \
-e MYSQL_ROOT_HOST=% \
--net net mysql/mysql-server:5.7
Then the reinstall for the Zoneminder Docker Container:
sudo docker run -d --name zm --restart always --shm-size 4096m \
-e TZ=America/Chicago -e ZM_DB_HOST=zm_db \
--net net -p 9080:80 quantumobject/docker-zoneminder
Previously, it at least got it installed and running.
Now I get a "healthy" zm_db" and Zoneminder will not start:
Starting pre-service scritps in /etc/my_init.d
*** Running: /etc/my_init.d/startup.sh
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'172.19.0.3' (using password: YES)
*** Failed with return value: 1
I do not seem to be able to access (or even find) mysql except for running a Console in Portainer.IO.
However it ignores all attempts to login (e.g. mysql -u zmuser -p zmpass)
What do I need to do?
I feel like I am at the point where I need to format the drive and start over with a OS reinstall
OS: CentOS Linux release 7.7.1908 (Core)
I am trying to wipe everything out and start over.
The mysql container (zm_db) seems to have other ideas.
I started (and then restarted with https://www.youtube.com/watch?v=EQIS1QsB6Lo
.... and things got screwed up (my fault).
Well, this is a container. I "should" be able to remove the container, reboot, and start over cleanly.
This is not the case.
The reinstall of the Zoneminder db works fine, but there is something that is "stuck" about the mysql
The Docker Command to install the MySql Server and database Container:
sudo docker run -d --name zm_db --restart always -e TZ=America/Chicago \
-e MYSQL_USER=zmuser \
-e MYSQL_PASSWORD=zmpass \
-e MYSQL_DATABASE=zm \
-e MYSQL_ROOT_PASSWORD=mysqlpasswd \
-e MYSQL_ROOT_HOST=% \
--net net mysql/mysql-server:5.7
Then the reinstall for the Zoneminder Docker Container:
sudo docker run -d --name zm --restart always --shm-size 4096m \
-e TZ=America/Chicago -e ZM_DB_HOST=zm_db \
--net net -p 9080:80 quantumobject/docker-zoneminder
Previously, it at least got it installed and running.
Now I get a "healthy" zm_db" and Zoneminder will not start:
Starting pre-service scritps in /etc/my_init.d
*** Running: /etc/my_init.d/startup.sh
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'172.19.0.3' (using password: YES)
*** Failed with return value: 1
I do not seem to be able to access (or even find) mysql except for running a Console in Portainer.IO.
However it ignores all attempts to login (e.g. mysql -u zmuser -p zmpass)
What do I need to do?
I feel like I am at the point where I need to format the drive and start over with a OS reinstall
OS: CentOS Linux release 7.7.1908 (Core)