Page 1 of 1
Upgrade failed for Debian
Posted: Mon Dec 29, 2014 11:44 pm
by keyboardgnome
Howdy-
Trying to upgade to 1.28 in debian sid.
the /usr/local/bin/zmupdate.pl script bombs out constantly with
Bareword "ZM_DIR_EVENTS" not allowed while "strict subs" in use at /usr/local/bin/zmupdate.pl line 57.
Bareword "ZM_DIR_EVENTS" not allowed while "strict subs" in use at /usr/local/bin/zmupdate.pl line 57.
Bareword "ZM_PATH_WEB" not allowed while "strict subs" in use at /usr/local/bin/zmupdate.pl line 57.
Bareword "ZM_DIR_EVENTS" not allowed while "strict subs" in use at /usr/local/bin/zmupdate.pl line 57.
Bareword "ZM_DYN_DB_VERSION" not allowed while "strict subs" in use at /usr/local/bin/zmupdate.pl line 111.
BEGIN not safe after errors--compilation aborted at /usr/local/bin/zmupdate.pl line 149.
Anyone have any suggestions as to how to fix this?
Re: Upgrade failed for Debian
Posted: Tue Dec 30, 2014 12:28 am
by keyboardgnome
Fix was to remove the scripts in
/usr/local/bin
and a bunch of hacking on the sql updates.
and now stuck at another point:
Database successfully upgraded to version 1.28.0.
Database upgrade to version 1.28.0 successful.
● zoneminder.service - LSB: Control ZoneMinder as a Service
Loaded: loaded (/etc/init.d/zoneminder)
Active: inactive (dead) since Mon 2014-12-29 19:25:57 EST; 2min 12s ago
Dec 29 19:23:09 camserver zmpkg[27546]: INF [Command: start]
Dec 29 19:23:09 camserver pkexec[27552]: pam_unix(polkit-1:session): session opened for user root by (uid=0)
Dec 29 19:25:57 camserver zoneminder[27544]: Starting ZoneMinder: Job for zoneminder.service canceled.
invoke-rc.d: initscript zoneminder, action "status" failed.
Re: Upgrade failed for Debian
Posted: Tue Dec 30, 2014 1:18 am
by keyboardgnome
Latest with a fresh install ends with this
Setting up zoneminder (1.28.0-dmo2) ...
● zoneminder.service - LSB: Control ZoneMinder as a Service
Loaded: loaded (/etc/init.d/zoneminder)
Active: inactive (dead)
Dec 29 19:08:53 camserver zoneminder[21938]: Starting ZoneMinder: Killed
Dec 29 19:08:53 camserver zoneminder[21938]: failure
Dec 29 19:08:53 camserver systemd[1]: zoneminder.service: control process exited, code=exited status=137
Dec 29 19:08:53 camserver systemd[1]: Failed to start LSB: Control ZoneMinder as a Service.
Dec 29 19:08:53 camserver systemd[1]: Unit zoneminder.service entered failed state.
Dec 29 19:23:09 camserver zmpkg[27546]: INF [Command: start]
Dec 29 19:23:09 camserver pkexec[27552]: pam_unix(polkit-1:session): session opened for user root by (uid=0)
Dec 29 19:25:57 camserver zoneminder[27544]: Starting ZoneMinder: Job for zoneminder.service canceled.
Dec 29 19:28:10 camserver pkexec[28508]: pam_unix(polkit-1:session): session opened for user root by (uid=0)
Dec 29 19:30:55 camserver zoneminder[28500]: Starting ZoneMinder: Job for zoneminder.service canceled.
invoke-rc.d: initscript zoneminder, action "status" failed.
Oh, and apt-get never finishes... it just hangs.
Re: Upgrade failed for Debian
Posted: Tue Dec 30, 2014 10:06 am
by jfm
What is your PATH settings? (In Options - path tab).
Have you checked if any zoneminder processes are running? ( ps -ef | grep zm)
Re: Upgrade failed for Debian
Posted: Wed Dec 31, 2014 2:42 pm
by knight-of-ni
Based on your output, I think I know what the answers are to the following, but please verify them for me:
The previous version of zoneminder was installed from source or package?
The current version of zoneminder was installed from source or package?
Re: Upgrade failed for Debian
Posted: Wed Dec 31, 2014 7:06 pm
by keyboardgnome
Well, doesnt matter much at the moment... I formatted the box and reinstalled it... stupidly. Boy did I open up a lot of issues again. I'm going to post on a new thread with the fresh install information.
But to answer your question, both versions of zoneminder were installed from packages.