ZM doesnt start anymore after update to 1.35.13

Previous development branch now released as 1.36
Locked
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

ZM doesnt start anymore after update to 1.35.13

Post by biologisch »

Code: Select all

# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
     Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor pr>
     Active: activating (auto-restart) (Result: exit-code) since Thu 2020-11-05>
    Process: 7757 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EX>
lines 1-4/4 (END)

Code: Select all

# journalctl -xe
Nov 05 13:21:24 postmaster sudo[10976]: pam_unix(sudo:session): session closed >
Nov 05 13:21:24 postmaster systemd[1]: zoneminder.service: Control process exit>
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit zoneminder.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 255.
Nov 05 13:21:24 postmaster systemd[1]: zoneminder.service: Failed with result '>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit zoneminder.service has entered the 'failed' state with result 'exit>
Nov 05 13:21:24 postmaster systemd[1]: Failed to start ZoneMinder CCTV recordin>
-- Subject: A start job for unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit zoneminder.service has finished with a failure.
-- 
-- The job identifier is 2875 and the job result is failed.
lines 2948-2970/2970 (END)

ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM doesnt start anymore after update to 1.35.13

Post by iconnor »

The update probably failed.

1.35.13 updates triggers which will fail on a lot of people's systems.

On a debian/ubuntu system you need to do:
mysql --defaults-file=/etc/mysql/debian.cnf
set global log_bin_trust_function_creators=1;

Then re-run zmupdate
sudo zmupdate.pl
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Re: ZM doesnt start anymore after update to 1.35.13

Post by biologisch »

Works again and thanks a lot <3
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM doesnt start anymore after update to 1.35.13

Post by iconnor »

This will probably happen in 1.35.14 as well.
dougmccrary
Posts: 1375
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: ZM doesnt start anymore after update to 1.35.13

Post by dougmccrary »

iconnor wrote: Thu Nov 05, 2020 11:45 pm This will probably happen in 1.35.14 as well.
Is that to say it will probably break it again and the fix will need to be re-applied?

Update: yes.
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: ZM doesnt start anymore after update to 1.35.13

Post by homebrewdude »

I need help with this. I am sure I am doing something wrong.

@basement:~$ mysql --defaults-file=/etc/mysql/debian.cnf
mysql: [ERROR] Failed to open required defaults file: /etc/mysql/debian.cnf
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
dougmccrary
Posts: 1375
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: ZM doesnt start anymore after update to 1.35.13

Post by dougmccrary »

Try $ sudo -i first.
You need a root (#) prompt, like when you do an install.
homebrewdude
Posts: 54
Joined: Mon Aug 26, 2019 12:42 pm

Re: ZM doesnt start anymore after update to 1.35.13

Post by homebrewdude »

That worked!

dougmccrary wrote: Fri Nov 13, 2020 9:33 am Try $ sudo -i first.
You need a root (#) prompt, like when you do an install.
Locked