ZoneMinder Installation and usage

    • OMV 1.0
    • ZoneMinder Installation and usage

      Fresh install of OMV and after a few plugin installations Zoneminder starts to act up. I've reported this bug: github.com/ZoneMinder/ZoneMinder/issues/538

      I have a port redirect in the router: 8082->81, since I'm accessing this from the outside.

      I've uninstalled (apt-get remove --purge) and reinstalled Zoneminder, and now I have this:

      Source Code

      1. 2014-10-23 14:10:08.058690 zmpkg[20695].INF-zmpkg.pl [Command: status]
      2. 2014-10-23 14:10:08.774190 zmpkg[20787].INF-zmpkg.pl [Command: status]
      3. 2014-10-23 14:10:09.150290 zmpkg[20826].INF-zmpkg.pl [Command: start]
      4. 2014-10-23 14:10:09.423750 zmdc[20837].INF-zmdc.pl [Server starting at 14/10/23 14:10:09]
      5. 2014-10-23 14:10:12.565170 zmdc[20837].INF-zmdc.pl ['zmfilter.pl' starting at 14/10/23 14:10:12, pid = 20863]
      6. 2014-10-23 14:10:12.565180 zmdc[20863].INF-zmdc.pl ['zmfilter.pl' started at 14/10/23 14:10:12]
      7. 2014-10-23 14:10:12.718530 zmdc[20837].INF-zmdc.pl ['zmaudit.pl -c' starting at 14/10/23 14:10:12, pid = 20868]
      8. 2014-10-23 14:10:12.724390 zmdc[20868].INF-zmdc.pl ['zmaudit.pl -c' started at 14/10/23 14:10:12]
      9. 2014-10-23 14:10:12.861490 zmdc[20837].INF-zmdc.pl ['zmwatch.pl' starting at 14/10/23 14:10:12, pid = 20873]
      10. 2014-10-23 14:10:12.863590 zmdc[20873].INF-zmdc.pl ['zmwatch.pl' started at 14/10/23 14:10:12]
      11. 2014-10-23 14:10:12.943660 zmfilter[20863].INF-zmfilter.pl [Scanning for events]
      12. 2014-10-23 14:10:13.005510 zmwatch[20873].INF-zmwatch.pl [Watchdog starting]
      13. 2014-10-23 14:10:13.011230 zmwatch[20873].INF-zmwatch.pl [Watchdog pausing for 30 seconds]
      14. 2014-10-23 14:10:13.051200 zmdc[20878].INF-zmdc.pl ['zmupdate.pl -c' started at 14/10/23 14:10:13]
      15. 2014-10-23 14:10:13.051200 zmdc[20837].INF-zmdc.pl ['zmupdate.pl -c' starting at 14/10/23 14:10:13, pid = 20878]
      16. 2014-10-23 14:10:13.192380 zmupdate[20878].INF-zmupdate.pl [Checking for updates]
      17. 2014-10-23 14:10:13.423470 zmupdate[20878].INF-zmupdate.pl [Got version: '1.27']
      18. 2014-10-23 14:13:14.066860 zmdc[20837].WAR-zmdc.pl [Can't find process with command of 'zma -m 1']
      19. 2014-10-23 14:13:14.198450 zmdc[20837].WAR-zmdc.pl [Can't find process with command of 'zmc -d /dev/video0']
      20. 2014-10-23 14:13:14.323260 zmdc[20837].INF-zmdc.pl ['zmc -d /dev/video0' starting at 14/10/23 14:13:14, pid = 20982]
      21. 2014-10-23 14:13:14.323270 zmdc[20982].INF-zmdc.pl ['zmc -d /dev/video0' started at 14/10/23 14:13:14]
      22. 2014-10-23 14:13:14.350430 zmc_dvideo0[20982].INF-zm_local_camera.cpp/346 [Selected capture palette: YUV 4:2:2 (YUYV) (YUYV)]
      23. 2014-10-23 14:13:14.354285 zmc_dvideo0[20982].INF-zm_local_camera.cpp/408 [No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected]
      24. 2014-10-23 14:13:14.372428 zmc_dvideo0[20982].INF-zmc.cpp/195 [Starting Capture]
      25. 2014-10-23 14:13:14.452280 zmdc[20837].WAR-zmdc.pl [Can't find process with command of 'zma -m 1']
      26. 2014-10-23 14:13:18.585208 web_js[20965].WAR- [Adjusting to minimum width when getting popup size for tag 'watch' - getPopupSize()]
      27. 2014-10-23 14:13:18.882484 zms[21005].WAR-zm_user.cpp/167 [Can't determine remote address, using null]
      28. 2014-10-23 14:13:18.889313 zms[21005].ERR-zms.cpp/225 [Unable to authenticate user]
      29. 2014-10-23 14:13:19.043225 zms[21008].WAR-zm_user.cpp/167 [Can't determine remote address, using null]
      30. 2014-10-23 14:13:19.049796 zms[21008].ERR-zms.cpp/225 [Unable to authenticate user]
      31. 2014-10-23 14:13:32.190566 web_php[21003].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      32. 2014-10-23 14:13:32.269768 web_js[20965].ERR-?view=watch [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory - checkStreamForErrors()]
      33. 2014-10-23 14:13:45.271875 web_php[21003].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      34. 2014-10-23 14:13:48.300132 web_php[21014].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      35. 2014-10-23 14:13:48.382399 web_js[21003].ERR-?view=watch [getStreamCmdResponse stream error: socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory - checkStreamForErrors()]
      36. 2014-10-23 14:13:58.836270 web_php[21003].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      37. 2014-10-23 14:13:58.859025 web_js[21014].ERR-http://apollo.geekaliens.com:8082/skins/flat/views/js/watch.js/234 [Uncaught TypeError: Cannot read property 'delayed' of undefined]
      38. 2014-10-23 14:14:01.883581 web_php[21021].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      39. 2014-10-23 14:14:04.915301 web_php[21022].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      40. 2014-10-23 14:14:07.942722 web_php[21014].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      41. 2014-10-23 14:14:07.965936 web_js[21003].ERR-http://apollo.geekaliens.com:8082/skins/flat/views/js/watch.js/234 [Uncaught TypeError: Cannot read property 'delayed' of undefined]
      42. 2014-10-23 14:14:10.985730 web_php[21021].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      43. 2014-10-23 14:14:14.013599 web_php[21025].ERR-includes/functions.php/2330 [socket_sendto( /tmp/zm/zms-877433s.sock ) failed: No such file or directory]
      44. 2014-10-23 14:14:53.832407 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 1000 - Capturing at 10.10 fps]
      45. 2014-10-23 14:16:33.831706 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 2000 - Capturing at 10.00 fps]
      46. 2014-10-23 14:18:13.831017 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 3000 - Capturing at 10.00 fps]
      47. 2014-10-23 14:19:53.834285 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 4000 - Capturing at 10.00 fps]
      48. 2014-10-23 14:21:33.833584 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 5000 - Capturing at 10.00 fps]
      49. 2014-10-23 14:23:13.832885 zmc_dvideo0[20982].INF-zm_monitor.cpp/2845 [Monitor-1: 6000 - Capturing at 10.00 fps]
      Display All
    • Did you install the zoneminder package I made for OMV or another package?
      I am guessing you used my package as your using ports to view the console. You said it was working until you installed extra plugins, what were the plugins?

      failed to open video device /dev/video0: Permission denied

      This should not happen when using my version as permission is granted during the install.
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • I have added my build setting to github so any one can build zoneminder for OMV

      I use a VM to build so as to avoid having the dependencies the build process needs interfering when testing on my main machine.

      omv-zoneminder
      ==============
      cd /tmp
      git clone github.com/ZoneMinder/ZoneMinder.git

      apt-get install autoconf automake dpatch libphp-serialization-perl libgnutls-dev libmysqlclient-dev libdbd-mysql-perl libdate-manip-perl libwww-perl libjpeg8-dev libpcre3-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev libbz2-dev libtool libsys-mmap-perl libav-tools libnetpbm10-dev libavdevice-dev libdevice-serialport-perl libpcre3 libarchive-zip-perl libmime-lite-perl libjpeg8 dh-autoreconf libvlccore-dev libvlc-dev libcurl4-openssl-dev libgcrypt11-dev libfile-fcntllock-perl git-core build-essential libpolkit-gobject-1-dev

      wget --trust-server-names sourceforge.net/projects/libjpeg-turbo/files/1.3.90 (1.4 beta1)/libjpeg-turbo-official_1.3.90_amd64.deb/download
      dpkg -i libjpeg-turbo-official_1.3.90_amd64.deb

      cd ZoneMinder
      git clone github.com/cptjhmiller/omv-zoneminder.git /tmp/ZoneMinder/debian

      dpkg-checkbuilddeps
      #apt-get any missing packages

      #build the package
      dpkg-buildpackage


      Before building it would be best to check if the main debian folder for zoneminder has had any modifications added, I will try to keep it up to date but can't promise that it will always be.
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • I was unable to set up ZM 1.27.1 to see an ip camera that i know i have all the required strings. The only one i have to test is a Sunell 1080p camera. Since i know this is not a support forum for Zoneminder, suffice it to say - i can access 3 different RTSP streams from the camera via VLC - i know they are correct 100%.

      The problem is - vlc did not appeared to be installed in your version i downloaded. So i installed vlc - that also did not work. i have the logs somewhere - but i decided - WTH - let me try build a new version with your instructions above as Zoneminder has been telling me 1.28 is out.

      I think i managed to build it successully - but there were some dependency issues when trying to install the package:-
      libmime-tools-perl libio-pty-perl libexpect-perl liburi-escape-perl libio-stty-perl.

      i managed to install all but: liburi-escape-perl

      Bottom line: - i know my limitations - so i am going to give this a break.
      I don't think i would have been much of an OMV user if it were not for plugins.
      These little puzzling problems make me dabble a little in Linux - but it's depressing when one finds out how little one knows!

      At any rate - maybe if there is a new build posted, or a plugin or a little guidance with the above, then i can give zoneminder another go.
    • You could first try apt-get install liburi-perl It should install everything needed but to be sure try running cpan install URI::Escape and see if says URI::Escape is up to date (3.31)

      I have updated my zoneminder repo, try building again.
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS

      The post was edited 1 time, last by jhmiller ().

    • i am going to start over with a rebuild.

      i tried what you suggested:- apt-get install liburi-perl
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      liburi-perl is already the newest version.
      liburi-perl set to manually installed.
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      zoneminder : Depends: liburi-escape-perl but it is not installable
      E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

      if i run apt-get -f install - i get this..
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following packages were automatically installed and are no longer required:
      ffmpeg libconvert-binhex-perl libexpect-perl libffms2-2 libio-pty-perl libio-stty-perl libjson-any-perl
      libmime-tools-perl libmp3lame-dev libnet-sftp-foreign-perl libx264-dev netpbm php5 x264
      Use 'apt-get autoremove' to remove them.
      The following packages will be REMOVED:
      zoneminder
      0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
      1 not fully installed or removed.

      with regards your other suggestions:-
      cpan install URI::Escape and see if says URI::Escape is up to date (3.31) - well - thats exactly what it says - it is up to date - it did run through an installation though.

      i am going to rebuild and let you know.
    • There appears to be no errors with the build, but it would not install.
      The file created is in /tmp :- zoneminder_1.28.0-wheezy_amd64.deb (2764102)

      I get this:-
      Setting up zoneminder (1.28.0-wheezy) ...
      Stopping ZoneMinder: Zoneminder already stopped

      Database already at version 1.28.0, update aborted.

      chown: cannot access `/var/log/zm': No such file or directory
      dpkg: error processing zoneminder (--install):
      subprocess installed post-installation script returned error exit status 1
      Processing triggers for man-db ...
      Errors were encountered while processing:
      zoneminder

      i am purging the install - rebooting and trying to re-install
    • after purge / reboot / try re-install

      dpkg -i zoneminder_1.28.0-wheezy_amd64.deb

      (Reading database ... 73715 files and directories currently installed.)
      Preparing to replace zoneminder 1.28.0-wheezy (using zoneminder_1.28.0-wheezy_amd64.deb) ...
      Stopping ZoneMinder: Zoneminder already stopped

      Unpacking replacement zoneminder ...
      Setting up zoneminder (1.28.0-wheezy) ...
      Stopping ZoneMinder: Zoneminder already stopped

      Database already at version 1.28.0, update aborted.

      chown: cannot access `/var/log/zm': No such file or directory
      dpkg: error processing zoneminder (--install):
      subprocess installed post-installation script returned error exit status 1
      Processing triggers for man-db ...
      Errors were encountered while processing:
      zoneminder
    • apt-get -f install

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following package was automatically installed and is no longer required:
      libmp3lame-dev
      Use 'apt-get autoremove' to remove it.
      0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up zoneminder (1.28.0-wheezy) ...
      Stopping ZoneMinder: Zoneminder already stopped

      Database already at version 1.28.0, update aborted.

      chown: cannot access `/var/log/zm': No such file or directory
      dpkg: error processing zoneminder (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      zoneminder
      Creating index of upgradeable packages ...
      Creating index of OpenMediaVault plugins ...
      E: Sub-process /usr/bin/dpkg returned an error code (1)
    • Have you tried creating /var/log/zm, I think it is just a folder so mkdir /var/log/zm should do it

      I will try building it again on my end to see what happens,
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • Tried building on my end and had issues like yourself, managed to fix it all now so that it should build and install ok, you will still need to run apt-get install -f after installing zoneminder. I like to do it like this

      dpkg -i zoneminder_1.28.0-wheezy_amd64.deb; apt-get install -f as it does everything in 1 line
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS
    • Cool - thanks for that. i will give a try - no access to the server for now.

      Tried the Zoneminder in a VM - am a little disappointed it doesn't see these Sunell cameras.
      Sunell actually give you an app that returns the correct url for direct access to the video feed.
      Confirmed it works in VLC, blue-iris etc.

      Zoneminder forums basically say if all else fails use libvlc and it guaranteed to work - well - it doesn't.

      Will try build again (i prefer not to have the vm running) - will test it with some older Toshiba cameras i have at another site.
      Otherwise it's a little bit of wasted time - would be nice if they finally implemented ONVIF into Zoneminder - would save a lot of hassle.
    • ZM can be a real PITA to setup, you need to get everything correct. After I built the latest version on my VM I had to use my tablet to test, set everything up and it refused to display a feed, in the end it turned out to be the video size (height - width) I had it set to small, when it need to be set to the actual received dimensions.
      [IMG:http://widgets.trakt.tv/users/1f5d0f5ed67f98ed9d06d9849b42dd0e/watched/banner@1x.jpg]
      What I am watching/watched on my Popcorn Hour media player
      omv 2.1.1 stoneburner | 64 bit | omvextrasorg 1.29
      MySQL (Percona) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS