ZoneMinder Installation and usage

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


    I have a port redirect in the router: 8082->81, since I'm accessing this from the outside.https://github.com/ZoneMinder/ZoneMinder/issues/538


    https://github.com/ZoneMinder/ZoneMinder/issues/538I've uninstalled (apt-get remove --purge) and reinstalled Zoneminder, and now I have this:


  • 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?


    Zitat

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


    This should not happen when using my version as permission is granted during the install.

    [align=center]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[size=8]) | 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.



    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.

    [align=center]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[size=8]) | 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.

    [align=center]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[size=8]) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS

    Einmal editiert, zuletzt von jhmiller ()

  • i will revert with my results tomorrow - today was a loooong day... i lost about 8 hours trying to work this out - the rebuild of zoneminder was about 30 minutes to be fair... but the rest sapped my confidence in my linux abilities.... i shall regroup tomorrow.

  • 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,

    [align=center]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[size=8]) | 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

    [align=center]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[size=8]) | 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.

    [align=center]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[size=8]) | Newznab | Sonarr | CP | HP | NZBget | YAMJ | CUPS

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!