Fresh install on Debain 9 - Dont know what I'm doing wrong.

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
Reset
Posts: 2
Joined: Fri Sep 27, 2019 2:33 am

Fresh install on Debain 9 - Dont know what I'm doing wrong.

Post by Reset »

I had been running Zoneminder in Debian 9 for years in a VM. That whole physical server bit the dust. I didnt back up the install, just the video, figured it would be easy to just redo the install. Oh boy... I started that server on Debian 8 and upgrade to 9 down the line with no issues. But I have had one heck of a time getting ZM 1.30 or 1.32 installed. I followed the wiki and the readme exactly here. https://zoneminder.readthedocs.io/en/la ... an-stretch

currently have 1.32.3

I cannot get the f-in thing to work in a significant number of ways.

I try to change settings, no dice. They don't save. The options page reloads when I click save and the options are still just the same.

I try add my cameras with ONVIF and it never finds any of them, I get this in apache's log.

>Name "ZoneMinder::ONVIF::verbose" used only once: possible typo at /usr/bin/zmonvif-probe.pl line 81.

I try and add camera's manually. Well that craps out too. I click on the source tab to manually enter the camera's IP and credentials. Well the page eventually times out. Then this mess shows up in apache's log.

>PHP Fatal error: Uncaught Error: Unsupported operand types in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php:310\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(255): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php on line 310, referer: http://192.168.1.78/zm/index.php?view=monitor&popup=1

I have googled for hours. Lots of suggestions about CRUD and Cake and update to this version of PHP or downgrade to that version of PHP. Most of the threads have 3-4 bumps and no answers. Right now I've got PHP 7.0.33+deb9u5 Nothing has worked. Most of the suggestions are for Gentoo anyway. Well I know debian and deb based distros. I really dont want to have to learn a whole new OS just for one web app that doesnt work.

I am at my wit's end here. I have verified the database credentials. I have verified system permissions. I have even made literally every file related to ZM completely 777 just to make sure theres nothing it needs that it cant get. And nothing. I even tried Debian 10 following those instructions on the wiki and I got a whole fresh new set of interesting errors that I didn;t have the patience to look into and just formated the VDISK and reinstalled 9.

Does anybody please know how I can get this working before I pull out the rest of my hair.

Thanks.


*EDIT* I was eventually able to get ZM debug logs on . All I get is :
09/26/19 21:31:22.292734 web_php[31963].DBG [View: onvifprobe Request: Action: ] at /usr/share/zoneminder/www/index.php line 209
09/26/19 21:31:30.954587 web_php[31963].DBG [Results from probe: ] at /usr/share/zoneminder/www/skins/classic/views/onvifprobe.php line 44
09/26/19 21:33:54.406355 web_php[31963].DBG [View: options Request: Action: ] at /usr/share/zoneminder/www/index.php line 209
09/26/19 21:34:59.997739 web_php[31963].DBG [View: request Request: status Action: ] at /usr/share/zoneminder/www/index.php line 209

repeated over and over
CountyLine
Posts: 63
Joined: Thu Aug 29, 2019 5:22 pm
Location: USA

Re: Fresh install on Debain 9 - Dont know what I'm doing wrong.

Post by CountyLine »

Do a fresh install of Debian 10, then install ZM 1.33 following these instructions:

https://wiki.zoneminder.com/Debian_10_B ... pro_Master

While I did have ZM 1.32 sort of working, it was really unusable. ZM 1.33 is much, much better.
Reset
Posts: 2
Joined: Fri Sep 27, 2019 2:33 am

Re: Fresh install on Debain 9 - Dont know what I'm doing wrong.

Post by Reset »

Did that. Still no dice.

[Sat Sep 28 16:55:44.503981 2019] [core:notice] [pid 416:tid 140709513859136] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:15:00.279688 2019] [mpm_event:notice] [pid 416:tid 140709513859136] AH00491: caught SIGTERM, shutting down
[Sat Sep 28 17:15:00.325413 2019] [mpm_prefork:notice] [pid 8610] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:15:00.325477 2019] [core:notice] [pid 8610] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:15:00.651028 2019] [mpm_prefork:notice] [pid 8610] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:15:00.960025 2019] [mpm_prefork:notice] [pid 8665] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:15:00.960064 2019] [core:notice] [pid 8665] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:19:23.178851 2019] [mpm_prefork:notice] [pid 8665] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:21:06.383409 2019] [mpm_prefork:notice] [pid 17042] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:21:06.383452 2019] [core:notice] [pid 17042] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:22:43.851274 2019] [mpm_prefork:notice] [pid 17042] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:22:43.895966 2019] [mpm_prefork:notice] [pid 25228] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:22:43.896043 2019] [core:notice] [pid 25228] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:26:08.042397 2019] [mpm_prefork:notice] [pid 25228] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 17:26:08.044881 2019] [mpm_prefork:notice] [pid 25228] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:26:08.044889 2019] [core:notice] [pid 25228] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:27:44.683692 2019] [mpm_prefork:notice] [pid 25228] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 17:27:44.686470 2019] [mpm_prefork:notice] [pid 25228] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:27:44.686481 2019] [core:notice] [pid 25228] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:28:21.739655 2019] [mpm_prefork:notice] [pid 25228] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:28:21.819756 2019] [mpm_prefork:notice] [pid 14538] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:28:21.819873 2019] [core:notice] [pid 14538] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:28:23.537424 2019] [mpm_prefork:notice] [pid 14538] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:28:23.609754 2019] [mpm_prefork:notice] [pid 14559] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:28:23.610015 2019] [core:notice] [pid 14559] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:41:14.626386 2019] [mpm_prefork:notice] [pid 14559] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 17:41:14.695295 2019] [mpm_prefork:notice] [pid 15201] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:41:14.695460 2019] [core:notice] [pid 15201] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:48:19.457583 2019] [mpm_prefork:notice] [pid 15201] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 17:48:19.461162 2019] [mpm_prefork:notice] [pid 15201] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:48:19.461172 2019] [core:notice] [pid 15201] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:51:26.304696 2019] [mpm_prefork:notice] [pid 15201] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 17:51:26.307399 2019] [mpm_prefork:notice] [pid 15201] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:51:26.307408 2019] [core:notice] [pid 15201] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 17:55:01.804650 2019] [mpm_prefork:notice] [pid 15201] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 17:55:01.812962 2019] [mpm_prefork:notice] [pid 15201] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 17:55:01.812973 2019] [core:notice] [pid 15201] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 18:11:14.675974 2019] [mpm_prefork:notice] [pid 15201] AH00169: caught SIGTERM, shutting down
[Sat Sep 28 18:11:14.728026 2019] [mpm_prefork:notice] [pid 17533] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 18:11:14.728071 2019] [core:notice] [pid 17533] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 18:11:30.170987 2019] [php7:notice] [pid 17548] [client 192.168.1.228:35690] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php?view=console
[Sat Sep 28 18:11:30.171018 2019] [php7:warn] [pid 17548] [client 192.168.1.228:35690] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php?view=console
Name "ZoneMinder::ONVIF::verbose" used only once: possible typo at /usr/bin/zmonvif-probe.pl line 81.
[Sat Sep 28 18:13:12.384087 2019] [php7:notice] [pid 17543] [client 192.168.1.228:35754] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:13:12.384193 2019] [php7:warn] [pid 17543] [client 192.168.1.228:35754] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:13:54.611003 2019] [mpm_prefork:notice] [pid 17533] AH00171: Graceful restart requested, doing restart
[Sat Sep 28 18:13:54.637227 2019] [mpm_prefork:notice] [pid 17533] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Sat Sep 28 18:13:54.637241 2019] [core:notice] [pid 17533] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 28 18:14:08.286048 2019] [php7:notice] [pid 17588] [client 192.168.1.228:35782] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:14:08.286137 2019] [php7:warn] [pid 17588] [client 192.168.1.228:35782] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:14:57.216014 2019] [php7:notice] [pid 17694] [client 192.168.1.228:35800] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:14:57.216047 2019] [php7:warn] [pid 17694] [client 192.168.1.228:35800] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php
[Sat Sep 28 18:15:22.857174 2019] [php7:notice] [pid 17697] [client 192.168.1.228:35806] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php?view=c ... e=&Source=
[Sat Sep 28 18:15:22.857199 2019] [php7:warn] [pid 17697] [client 192.168.1.228:35806] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php?view=c ... e=&Source=
[Sat Sep 28 18:15:40.734940 2019] [php7:error] [pid 17591] [client 192.168.1.228:35810] PHP Fatal error: Uncaught Error: Unsupported operand types in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php:310\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(272): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php on line 310, referer: http://192.168.1.78/zm/index.php?view=monitor&popup=1
[Sat Sep 28 18:15:44.162108 2019] [php7:error] [pid 17592] [client 192.168.1.228:35812] PHP Fatal error: Uncaught Error: Unsupported operand types in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php:310\nStack trace:\n#0 /usr/share/zoneminder/www/index.php(272): require_once()\n#1 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/monitorprobe.php on line 310, referer: http://192.168.1.78/zm/index.php?view=monitor&popup=1
[Sat Sep 28 18:19:49.345509 2019] [php7:notice] [pid 17695] [client 192.168.1.228:35840] PHP Notice: Undefined variable: monitor_options in /usr/share/zoneminder/www/skins/classic/views/monitor.php on line 673, referer: http://192.168.1.78/zm/index.php?view=console
[Sat Sep 28 18:19:49.345535 2019] [php7:warn] [pid 17695] [client 192.168.1.228:35840] PHP Warning: Invalid argument supplied for foreach() in /usr/share/zoneminder/www/includes/functions.php on line 486, referer: http://192.168.1.78/zm/index.php?view=console
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Fresh install on Debain 9 - Dont know what I'm doing wrong.

Post by bbunge »

If you are running in a VM, don't.
If you are trying to use a copy of an old zm database and saved images, don't.
Might be best to switch to Ubuntu Bionic.
I will take the time soon to retest that install. Stay tuned...

Edit: looks like https://zmrepo.zoneminder.com/debian is down or moved. Checking with the devs....

Last Edit: The zmrepro was down. If the repro is not added correctly and the "key" is not downloaded/installed you will not get the iconnor install package the instructions were written for.

Have just finished running the WIKI instructions https://wiki.zoneminder.com/Debian_10_B ... pro_Master and was able to get a working Zoneminder install on Buster on the first try.
Post Reply