- evol262
- Nov 30, 2010
-
#!/usr/bin/perl
|
Is this error when you try to start zoneminder?
If so, please strace it. And maybe ldd the binary.
You may also have needed vlc-devel
|
#
¿
Aug 2, 2014 00:59
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 20, 2024 23:30
|
|
- evol262
- Nov 30, 2010
-
#!/usr/bin/perl
|
Already have all the vlc development libs. The error, as far as I can tell is due to the fact that some daemon is failing to run. If I do a cmake and make/make install, I get no errors and yet if I stop/start the service I get a failed PID error on shutdown which indicates to me that one of the necessary processes doesn't run/didn't get installed. The ZM logs show that it's capturing video (11fps) so I'm fairly confident the problem is related to viewing /streaming rather than video capture.
Here is a couple writeups of the bug that I'm experiencing:
https://bugs.launchpad.net/ubuntu/+source/zoneminder/+bug/1159361
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741738
Unfortunately it appears that none of the fixes described within apply to my issue, but they do adequately explain the symptoms of what I'm experiencing.
Sorry. It's Friday night and I'm phone posting. Won't get to look at those in detail until tomorrow.
CGI? Post the apache config?
Are these errors in the apache logs?
Cgi-user? Ownership on the tmp directory?
|
#
¿
Aug 2, 2014 03:06
|
|
- evol262
- Nov 30, 2010
-
#!/usr/bin/perl
|
Ownership on tmp dir is www-data, ownership on cgi-bin and wwwroot are www-data. Apache config:
code:<VirtualHost *:80>
ServerName <hostnameisherebutiremovedit>
DocumentRoot /usr/local/share/zoneminder/www
<Directory /usr/local/share/zoneminder/www>
Options FollowSymLinks MultiViews ExecCGI
AllowOverride All
php_value short_open_tag 1
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin /usr/local/share/zoneminder/www/cgi
<Directory /usr/local/share/zoneminder/www/cgi>
Options +ExecCGI +MultiViews +SymLinksIfOwnerMatch
AllowOverride None
php_value short_open_tag 1
Order allow,deny
allow from all
Require all granted
</Directory>
LogLevel warn
</VirtualHost>
I've tried a dozen different variations on this Apache config, this is just the last one I left it at. As far as I can tell visiting the nph-zms script directly works and I don't get any 403 or 500 errors.
Apache logs show this:
code:[Fri Aug 01 22:32:32.620805 2014] [cgi:error] [pid 2507] [client 192.168.1.125:58033] AH01215: MPEG streaming is disabled., referer: [url]http://192.168.1.5/?view=watch&mid=3[/url]
[Fri Aug 01 22:32:32.620947 2014] [cgi:error] [pid 2507] [client 192.168.1.125:58033] AH01215: You should configure with the --with-ffmpeg option and rebuild to use this functionality.
Interesting, because I actually did compile with the --with-ffmpeg option (cmake --with-ffmpeg .). Also jpeg streaming doesn't work in spite of installing libjpeg turbo. I'm thinking the root of my problem may lie here.
I'll leave you with this:
code:> zmdc.pl startup
Starting server
[/root]
> zmdc.pl shutdown
Can't find child with pid of '2413'
Server shutdown at 14/08/01 22:31:30
SUPER MEGA EDIT: I enabled greyscale so that I could test without the libjpeg turbo issues and I get video!!! So I have a solution in sight! Looks like I need to figure out why ffmpeg didn't work (I did add it with a recompile, perhaps a make install wasn't enough?), or how to properly install libjpeg turbo.
SUPER MEGA EDIT 2: I found this page that was very informative:
http://blog.yibi.org/tag/zoneminder
I think the libjpeg turbo stuff would probably have worked, but when I ran the suggested apt-get string towards the top, it broke something and now I can't build ZM anymore! I get this error:
/root/ZoneMinder-1.27.0/src/zm_mpeg.cpp:136:25: error: ‘CODEC_ID_NONE’ was not declared in this scope
It appears to be a known issue, but I have no idea how to resolve it. This is the most frustrating thing.
I'll look tomorrow, but my guess is that 1.27 won't work -- master from github probably has changed source.
|
#
¿
Aug 2, 2014 06:10
|
|
- evol262
- Nov 30, 2010
-
#!/usr/bin/perl
|
Good point. I cloned the Github repo and I am able to compile again! However following that blog I posted previously I'm still unable to get ZM to recognize libjpeg-turbo. I think this is the last remaining hurdle. I added the lines to debian/rules and rebuilt but it appears I'm missing a step still.
EDIT: Following that blog a little closer I realized I needed to build with dpkg-buildpackage in order to get it to recognize debian/rules. I spent a little longer fixing syntax errors and undocumented dependancies both in the blog post and within zoneminder's source and was able to successfully build a .deb. However, I'm still seeing the exact same problems as before; greyscale works, but color does not.
I guess if that's that, I can live with greyscale for monitoring and then just use VLC streaming for monitoring instead of ZM. I really wish Zoneminder wasn't such a buggy POS.
Is this actually using cmake? If so, it looks like exporting CMAKE_PREFIX_PATH=/opt/libjpeg-turbo... may be needed
ldd-ing the binary will tell you if it's actually linked against it, though.
Also, it appears to have a Dockerfile. You may want to try using that, since the devs have probably hammered out all these problems. cd /path/to/git/repo && docker -t zoneminder build && docker run zoneminder (after you fix the laughably insecure root:root auth, hopefully)
|
#
¿
Aug 2, 2014 16:12
|
|