I have followed this guide and get to the end to start zoneminder. It will not start and this is the errors.
https://wiki.zoneminder.com/Debian_10_B ... pro_Master
root@Zoneminder:~# systemctl start zoneminder
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
root@Zoneminder:~# systemctl status zoneminder.service
* zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2019-09-12 17:44:48 EDT; 1s ago
Process: 31025 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
Anyone know what I could be missing?
New install on Debian Buster
Re: New install on Debian Buster
Hi,
I did follow exactly the same procedure as you did, resulting to the same error at service startup. I installed it on Debian 10 as well.
However, the web server part seems to work well.
Any insight would be very helpful.
Cheers,
Raj
I did follow exactly the same procedure as you did, resulting to the same error at service startup. I installed it on Debian 10 as well.
However, the web server part seems to work well.
Any insight would be very helpful.
Cheers,
Raj
Re: New install on Debian Buster
The only issue I had writing that procedure was with Apache. I believe Apache had not started after I installed it and I had to manually do a start not a restart. There was an issue deleting events from the gui which was supposed to be fixed. On a reboot Apache and Zoneminder started and ran well.
Re: New install on Debian Buster
Really strange indeed.
Apache runs well since I’m able to use the GUI and navigate.
Cheers
Raj
Apache runs well since I’m able to use the GUI and navigate.
Cheers
Raj
Re: New install on Debian Buster
Did my initial test on an amd64 system. Tried Pi 3B+ with Buster and failed. Will look into it next week.
Re: New install on Debian Buster
Just done a fresh install with the same errors.
I've rebooted the system but the same error happens.
I have now run the Mysql database update procedure as detailed in the Jessie install and Zoneminder has started OK.
I've rebooted the system but the same error happens.
I have now run the Mysql database update procedure as detailed in the Jessie install and Zoneminder has started OK.
https://zoneminder.readthedocs.io/en/latest/installationguide/debian.html#easy-way-debian-jessie wrote:
cat /usr/share/zoneminder/db/zm_create.sql | sudo mysql --defaults-file=/etc/mysql/debian.cnf
echo 'grant lock tables,alter,create,select,insert,update,delete,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | sudo mysql --defaults-file=/etc/mysql/debian.cnf mysql
Last edited by clipo on Sun Sep 15, 2019 3:49 pm, edited 2 times in total.
Re: New install on Debian Buster
Mmmm, still unable to get it started.
Here is the log I get, don't know if it helps :
Sep 15 15:55:56 lynx zmpkg[2244]: INF [Command: start]
Sep 15 15:56:05 lynx zmfilter_2[1158]: WAR [No query in Filter!]
Sep 15 15:56:05 lynx zmfilter_1[1150]: WAR [No query in Filter!]
Sep 15 15:56:05 lynx zmfilter_2[1158]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(2)]
Sep 15 15:56:05 lynx zmfilter_1[1150]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(1)]
Sep 15 15:56:06 lynx zmpkg[2259]: INF [Sanity checking States table...]
Also wondering why I don't have any zmuser in my database... (only admin).
Has actually anyone succeeded with installing ZM on Debian 10, amd64 arch ?
Raj.
Here is the log I get, don't know if it helps :
Sep 15 15:55:56 lynx zmpkg[2244]: INF [Command: start]
Sep 15 15:56:05 lynx zmfilter_2[1158]: WAR [No query in Filter!]
Sep 15 15:56:05 lynx zmfilter_1[1150]: WAR [No query in Filter!]
Sep 15 15:56:05 lynx zmfilter_2[1158]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(2)]
Sep 15 15:56:05 lynx zmfilter_1[1150]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(1)]
Sep 15 15:56:06 lynx zmpkg[2259]: INF [Sanity checking States table...]
Also wondering why I don't have any zmuser in my database... (only admin).
Has actually anyone succeeded with installing ZM on Debian 10, amd64 arch ?
Raj.
Re: New install on Debian Buster
Raj,
I have a fully working system using amd64 arch.
Run the two command as listed in my post above and I've also had to run a command to rebuild the database as detailed in a post by iconnor
https://forums.zoneminder.com/viewtopic.php?f=39&t=28523&p=111648&hilit=sql#p111648 wrote:
mysql -u zmuser -p zm < /usr/share/zoneminder/db/zm_update-1.33.14.sql
Re: New install on Debian Buster
Hi there,
I still have this strange error in /var/log/message, and still unable to start the service :
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
sept. 17 13:08:28 lynx systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: L'unité (unit) zoneminder.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
Sep 17 12:59:56 lynx zmfilter_2[1158]: WAR [No query in Filter!]
Sep 17 12:59:56 lynx zmfilter_2[1158]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(2)]
Sep 17 12:59:56 lynx zmfilter_1[1150]: WAR [No query in Filter!]
Sep 17 12:59:56 lynx zmfilter_1[1150]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(1)]
Raj
I still have this strange error in /var/log/message, and still unable to start the service :
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
sept. 17 13:08:28 lynx systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: L'unité (unit) zoneminder.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
Sep 17 12:59:56 lynx zmfilter_2[1158]: WAR [No query in Filter!]
Sep 17 12:59:56 lynx zmfilter_2[1158]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(2)]
Sep 17 12:59:56 lynx zmfilter_1[1150]: WAR [No query in Filter!]
Sep 17 12:59:56 lynx zmfilter_1[1150]: WAR [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1#012 or `AutoVideo` = 1#012 or `AutoUpload` = 1#012 or `AutoEmail` = 1#012 or `AutoMessage` = 1#012 or `AutoExecute` = 1#012 or `AutoDelete` = 1#012 or `UpdateDiskSpace` = 1#012 or `AutoMove` = 1#012 or `AutoCopy` = 1#012 ) ORDER BY `Name` with values(1)]
Raj
Re: New install on Debian Buster
For anyone still bumping into this, you need to specify User=www-data in the systemd unit file (or whatever ZM_WEB_USER is in /etc/zm/zm.conf)
It looks like it is commented out by default. Following should do:
It looks like it is commented out by default. Following should do:
Code: Select all
# systemctl edit zoneminder
[Service]
User=www-data
# systemctl daemon-reload
# systemctl start zoneminder