mysql Unable to connect to ZM db
-
- Posts: 203
- Joined: Thu Jan 01, 2015 5:12 pm
- Location: Rhode Island
mysql Unable to connect to ZM db
I thought I would give a heads up on this.... using Linux mint 18.2 16.04 LAMP configured
After upgrading iconner zoneminder-master 1.31.1 8-14-17 update
error
mysql Unable to connect to ZM db.SQLSTATE[HY000] [2006] MySQL server has gone away
I did a new clean mint install and Iconner zonemindr 1.30.4 and worked fine
upgrade to 1.31.1 then failed with same error
Jimmy
After upgrading iconner zoneminder-master 1.31.1 8-14-17 update
error
mysql Unable to connect to ZM db.SQLSTATE[HY000] [2006] MySQL server has gone away
I did a new clean mint install and Iconner zonemindr 1.30.4 and worked fine
upgrade to 1.31.1 then failed with same error
Jimmy
Linux Mint 23 Cinnamon Mariadb 10.x using Master 1.37.x latest always
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: mysql Unable to connect to ZM db
This has already been fixed:
https://github.com/ZoneMinder/ZoneMinde ... f2762b2080
To get ZoneMinder working again, you should either roll back to the previous package or wait a day or so for our build system to crank out a new package.
https://github.com/ZoneMinder/ZoneMinde ... f2762b2080
To get ZoneMinder working again, you should either roll back to the previous package or wait a day or so for our build system to crank out a new package.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
Re: mysql Unable to connect to ZM db
I lost my mind yesterday trying to troubleshoot this exact error attempting to install ZM on a XenialDog OS. ZoneMinder installed as expected using the iconner PPA and version 1.31.1 and ran error free UNTIL I rebooted the system. Mysql disappeared and I received the same error noted above. All the rest of the LAMP stack was okay. All attempts to fix it failed. Then started again with a fresh XenialDog(Ubuntu 16.04) and used the 1.30.4 stable branch and everything worked again before and after rebooting the system.
Is it the same? I don't know if it was the OS itself or how I had it installed (frugally) or how the Grub4Dos boot code affected the loading of a Save folder. But sounds similar to what the previous post presents.
UPDATE : I see the fix is in and will test it out to see if I was the OS causing the error (which I think is the fact)
Is it the same? I don't know if it was the OS itself or how I had it installed (frugally) or how the Grub4Dos boot code affected the loading of a Save folder. But sounds similar to what the previous post presents.
UPDATE : I see the fix is in and will test it out to see if I was the OS causing the error (which I think is the fact)
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: mysql Unable to connect to ZM db
Yeah, we were all in the same boat. I was trying to test something else yesterday when my local build wouldn't work with the same "sql gone away message". Troubleshooting revealed a recent commit to add support for encrypted mysql connection had a bug.
Scroll to the end of this:
https://github.com/ZoneMinder/ZoneMinder/pull/1965
It is fixed now. This is why we test. Thank you being a guinea pig.
Scroll to the end of this:
https://github.com/ZoneMinder/ZoneMinder/pull/1965
It is fixed now. This is why we test. Thank you being a guinea pig.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 203
- Joined: Thu Jan 01, 2015 5:12 pm
- Location: Rhode Island
Re: mysql Unable to connect to ZM db
Well on the bright side I have a new clean mint 18.2 and lamp , replacing an 1 1/2 year upgrade
Jimmy
Jimmy
Linux Mint 23 Cinnamon Mariadb 10.x using Master 1.37.x latest always
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
Re: mysql Unable to connect to ZM db
You could always replace MySQL with Mariadb......
-
- Posts: 203
- Joined: Thu Jan 01, 2015 5:12 pm
- Location: Rhode Island
Re: mysql Unable to connect to ZM db
I did, I LOVE YOUR INSTALL SCRIPT !!!! nice work
is /etc/my.cnf the proper path for mariadb config I want to add nano to edit it
I always need to set lower_case_table_names=2, i run a point of sale software also
and can share the pos db between
windows and Mint test servers
Jimmy
is /etc/my.cnf the proper path for mariadb config I want to add nano to edit it
I always need to set lower_case_table_names=2, i run a point of sale software also
and can share the pos db between
windows and Mint test servers
Jimmy
Linux Mint 23 Cinnamon Mariadb 10.x using Master 1.37.x latest always
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
DVB stands for Digital VIdeo Broadcasting , retired satellite downlink supplier
Re: mysql Unable to connect to ZM db
https://wiki.zoneminder.com/Ubuntu_Serv ... ZoneminderDVB Hardware wrote: ↑Wed Aug 16, 2017 9:39 pm I did, I LOVE YOUR INSTALL SCRIPT !!!! nice work
is /etc/my.cnf the proper path for mariadb config I want to add nano to edit it
I always need to set lower_case_table_names=2, i run a point of sale software also
and can share the pos db between
windows and Mint test servers
Jimmy
Re: mysql Unable to connect to ZM db
Anyone know when a working build will be out on the iconnor repository?
Re: mysql Unable to connect to ZM db
I think version 1.30.4 is rock solid stable. This version 1.31.1 is still the most forward and still in development code and is not yet a release.
Re: mysql Unable to connect to ZM db
Thank God! I thought I was going crazy last night.... Trying to build a new ZM 4 times from scratch. (I'm a glutton for punishment)
Question though, I used this link for install instructions:https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Both the install script and the do it yourself methods with and w/o MariaDB.
Does the
I thought it was 1.30.4. (this is where I'm a little deficient in knowledge).
If not, how do I set the repository to 1.30.4?
Thanks All
PS. I'll second that 1.30.4 is rock solid!
PS.PS - Just to be clear, I had this problem last night and the conversation sounds like it was fixed. What did I miss?
Question though, I used this link for install instructions:https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
Both the install script and the do it yourself methods with and w/o MariaDB.
Does the
repository point to 1.30.4 or 1.31.x?add-apt-repository ppa:iconnor/zoneminder
I thought it was 1.30.4. (this is where I'm a little deficient in knowledge).
If not, how do I set the repository to 1.30.4?
Thanks All
PS. I'll second that 1.30.4 is rock solid!
PS.PS - Just to be clear, I had this problem last night and the conversation sounds like it was fixed. What did I miss?
Re: mysql Unable to connect to ZM db
points to 1.30.4
I believe 1.31.1 is here ->
Code: Select all
add-apt-repository ppa:iconnor/zoneminder
I believe 1.31.1 is here ->
Code: Select all
add-apt-repository ppa:iconnor/zoneminder-master
Re: mysql Unable to connect to ZM db
I still haven't been able to build 1.31.1 from source yet either. I did not have any problems through version 1.30+ compiling ZM from source...now I make it to 88% and the build fails. So I use the iconner PPA to install ZM. That works great.
Re: mysql Unable to connect to ZM db
@rockedge, thanks for the clarification.
So something is amiss, or I've just become a complete moron....
Not sure why the zm database isn't getting created.
I'm in a PVE Container. Might that have anything to do with it?
There is no zm database in MariaDB.
Is there a command I can do to manually create the DB?
(1.30.4, Ubuntu 16.04, PVE Container)
PS. Moved my discussion over to 1.30.x forum...
So something is amiss, or I've just become a complete moron....
Not sure why the zm database isn't getting created.
I'm in a PVE Container. Might that have anything to do with it?
There is no zm database in MariaDB.
Is there a command I can do to manually create the DB?
(1.30.4, Ubuntu 16.04, PVE Container)
PS. Moved my discussion over to 1.30.x forum...
Re: mysql Unable to connect to ZM db
when I install ZM on various flavors of Puppy Linux I also have to manually insert all the mysql db stuff, including user,ZM db...I usually install phpmyadmin to do it but using the command line ito prepare mysql or mariadb works just as well.