ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.05k stars 1.22k forks source link

Docker issues #1968

Closed phdelodder closed 6 years ago

phdelodder commented 7 years ago

To get the docker container fully working I had to install additional packages in the container:

For 'zmtelemetry.pl' Was receiving this error: exited abnormally, exit status 9 Solved it by: apt-get update; apt-get install libsys-cpu-perl libsys-meminfo-perl

For 'API' Was receiving this error:

[Wed Aug 16 05:28:02.228577 2017] [:error] [pid 463] [client 172.17.0.1:58484] PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /usr/local/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:78\nStack trace:\n#0 /usr/local/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read('myapp_cake_core...')\n#1 /usr/local/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read('cake_dev_en', '_cakecore')\n#2 /usr/local/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate('Cache engine "%...', NULL, 'cake_dev')\n#3 /usr/local/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(184): __d('cake_dev', 'Cache engine "%...', '_cakecore')\n#4 /usr/local/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cakecore')\n#5 /usr/local/share/zoneminder/www/api/app/Config/core.php(375): Cache::config('_cakecore', Array)\n#6 /usr/local/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/local/shar...')\n#7 /usr/local/share/zoneminder/www/api/lib/Cake/bootstrap.php(434): Configure::bootstrap(true)\n#8 /usr/local in /usr/local/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 78

Solved it: echo "deb http://ftp.de.debian.org/debian sid main" >> /etc/apt/sources.list apt-get update; apt-get install php-apcu-bc

Issue ONVIF Probe when adding monitor solved: apt-get update; apt-get install libexpat1-dev cpan install Data::UUID cpan install Class::Std::Fast cpan install Data::Dump cpan install SOAP::WSDL::Transport::HTTP cpan install IO::Socket::Multicast

knight-of-ni commented 7 years ago

Those of us still active with the project are not using Docker so there is currently a knowledge gap.

What docker container are you using? This one? https://hub.docker.com/r/kylejohnson/zoneminder/

phdelodder commented 7 years ago

Yes that's the one i'm using.

knight-of-ni commented 7 years ago

Unfortunately, Kyle has not been active with the project and he holds the keys to that container. We can add this to the list of things we have asked him to give us access to, but we know this won't happen quickly.

We, of course, do have control over the config files in our github repo, but from my limited knowledge of Docker, the root cause of what you have described is in the container itself.

I think we ought to head in a different direction.... A few weeks back, I had a conversation with linxserver.io to get ZoneMinder hosted there. ZoneMinder does not show in their list, but it is on their github site: https://github.com/linuxserver/docker-zoneminder

What we could really use is someone willing to champion this and get it going. I think hosting ZoneMinder there is a much better solution than what we have currently. Your feedback is appreciated.

phdelodder commented 7 years ago

I would love a docker container maintained by linuxserver.io. I have several containers running created/maintained by linuxserver.io and I have nothing but kind words for his work.

Any idea on a timeline?

knight-of-ni commented 7 years ago

No, I don't, unfortunately. I'm not sure what the next step is exactly.

kylejohnson commented 7 years ago

I'm confused. Wouldn't it just be our Dockerfile that needs your updates?

Andrew is right, however. None of us actively use the Dockerfile. I initially created it as a method of speeding up development and testing, but then abandoned that idea and left the Dockerfile as is.

dlandon commented 7 years ago

I've implemented a Docker that I actively maintain here:

https://hub.docker.com/r/dlandon/zoneminder/

I don't think lsio will be interested in creating a docker. I forked my docker from a member of lsio. I'm willing to make any changes necessary.

phdelodder commented 7 years ago

@dlandon In description it mentions unRAID, is it also compatible on eg docker on arch linux?

dlandon commented 7 years ago

Yes. It was created for unRAID, but can run on any docker system.

knight-of-ni commented 7 years ago

FYI, we recently had zonemidner.io host a zoneminder docker container: https://hub.docker.com/r/linuxserver/zoneminder/

We would love it if you could test that and provide feedback on the container and provide feedback here: https://github.com/linuxserver/docker-zoneminder

Feedback is welcome. We are doing this to let those who know Docker better than us manage the container, and at the same time let us focus more on managing the ZoneMinder source code.

phdelodder commented 7 years ago

@knnniggett I'm unable to watch a live feed with the docker image. I already created a ticket for https://github.com/linuxserver/docker-zoneminder/issues/4

knight-of-ni commented 6 years ago

We've moved our dockerfiles here: https://github.com/ZoneMinder/zmdockerfiles

We will continue to troubleshoot docker related issue there.