No streams; unsure if cams are working. Debian SID

Forum for questions and support relating to the 1.29.x releases only.
Locked
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

No streams; unsure if cams are working. Debian SID

Post by poffs »

I followed the Ubuntu 14 wiki, mostly, where it made sense to do so, and I installed clean. I did not use git; I used the most recent 1.29 package in the Debian Sid repository.

For PATH_ZMS, I have /usr/lib/zoneminder/cgi-bin/nph-zms
Because that is what I get when run "find / -name nph-zms -type d"

I had the default, /zm/cgi-bin/nph-zms, but that didn't work either.

CGI is enabled in apache2. FollowSymLinks is enabled.
-----

Also, when I start Zoneminder, I used to get issues, but it was just because I hadn't configured the mysql database.

Now it starts up, and I can browse localhost/zm, but when I start, I do get a minor error message that may be worth noting.
""Error getting authority: Error initiating authority: Could not connect: No such file or directory" before it says "Success".

i'm lurking in the freenode IRC channel, btw.
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

By the way, I have NOT used Zoneminder before. In Montage view, I see NO placeholders where there should be video. I am NOT using ONVIF in ZoneMinder (since I did not compile this myself and used a .deb), and I am using configuration details that were detected via ONVIF in BlueIris.

Also... the cams I have are RTP, port 554, /mpeg4, but I also have one camera that is port 34567 and uses a PARAMS option in Blue Iris, rather than a "Remote Host Path". Dunno what to do about that.

--

There IS CPU load and /var/log/zm has nothing in it, so I presume something is happening here.
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

Followup. I did some network monitoring with iftop and verified that there is not a significant amount of bandwidth going to/from the cameras, so zoneminder is NOT aquiring rtsp data from them.

So... this could (?) be cam configuration issues alone, unless there is supposed to be a placeholder in the montage view (I had installed zoneminder on a test debian system before this and I managed to get placeholder images at some point, but not actual streams).
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: No streams; unsure if cams are working. Debian SID

Post by asker »

Code: Select all

For PATH_ZMS, I have /usr/lib/zoneminder/cgi-bin/nph-zms
Does Debian have a 1.29 package now? How did you install it?

The line above is likely incorrect.
Try changing it to /zm/cgi-bin/nph-zms

You should also have a ScriptAlias line in /etc/apache.d/conf-enabled/zoneminder.conf

what is that value?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

No logs in /var/log/zm, but in the GUI there are about 1380000 log entries. Here's a snippet.
https://paste.debian.net/plain/387566

Debian SID has a package
https://packages.debian.org/search?keyw ... lla-search

You sure it should be /zm/cgi-bin/nph-zms? I'll change it back. That was the default, but there is no directory on my system for /zm/cgi-bin/nph-zms. There is only /usr/lib/zoneminder/cgi-bin/nph-zms.

---

There is no ScriptAlias line in /etc/apache2/conf-enabled/zoneminder.conf. I made zoneminder.conf a ln -s to the target /etc/zm/zm.conf, as per the wiki, and it does not have such a line.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: No streams; unsure if cams are working. Debian SID

Post by asker »

poffs wrote: There is no ScriptAlias line in /etc/apache2/conf-enabled/zoneminder.conf. I made zoneminder.conf a ln -s to the target /etc/zm/zm.conf, as per the wiki, and it does not have such a line.
This is completely wrong. zm.conf and zoneminder.conf are two different files for different purposes. Which wiki link says this?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

Sorry, I made a mistake, asker.

I meant that I made zoneminder.conf in both /etc/apache2/conf-enabled/ and /etc/apache2/conf-available/ target /etc/zm/apache.conf.

Apologies.

Have a look at my paste.debian.net from my previous post.

edit:

It seems the largest issue is zmc, which keeps starting and failing immediately.

'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

halp!
2016-02-14 18:37:38.425990 zmdc 16203 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2016-02-14 18:37:38.414477 zmc_m1 351 FAT Can't open memory map file /dev/shm/zm.mmap.1, probably not enough space free: Permission denied zm_monitor.cpp 522
2016-02-14 18:37:38.405373 undef 351 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-02-14 18:37:38.389190 zmwatch 16245 INF Restarting capture daemon for FrontLeft, shared data not valid zmwatch.pl
2016-02-14 18:37:38.380880 zmwatch 16245 ERR Memory map file '/dev/shm/zm.mmap.2' does not exist. zmc might not be running. zmwatch.pl
2016-02-14 18:37:38.360480 zmdc 351 INF 'zmc -m 1' started at 16/02/15 00:37:38 zmdc.pl
2016-02-14 18:37:38.360470 zmdc 16203 INF 'zmc -m 1' starting at 16/02/15 00:37:38, pid = 351 zmdc.pl
2016-02-14 18:37:38.196590 zmwatch 16245 INF Restarting capture daemon for FrontRight, shared data not valid zmwatch.pl
2016-02-14 18:37:38.186120 zmwatch 16245 ERR Memory map file '/dev/shm/zm.mmap.1' does not exist. zmc might not be running. zmwatch.pl
2016-02-14 18:37:28.236510 zmdc 16203 ERR 'zmc -m 4' exited abnormally, exit status 255 zmdc.pl
2016-02-14 18:37:28.226334 zmc_m4 346 FAT Can't open memory map file /dev/shm/zm.mmap.4, probably not enough space free: Permission denied zm_monitor.cpp 522
2016-02-14 18:37:28.216237 undef 346 INF No Server ID or Name specified in config. Not using Multi-Server Mode. zm_config.cpp 139
2016-02-14 18:37:28.161120 zmdc 346 INF 'zmc -m 4' started at 16/02/15 00:37:28 zmdc.pl
2016-02-14 18:37:28.161110 zmdc 16203 INF 'zmc -m 4' starting at 16/02/15 00:37:28, pid = 346 zmdc.pl
There is no lack of free space on the drive.

edit: "df -h"
https://paste.debian.net/plain/390149
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

Resolved that issue. Was a hostname issue.

New level of issues:
https://paste.debian.net/plain/390186

My CPU load went from 0.4 to 3.4 on the server and I still don't see any cams or placeholder images.
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

hmm... i think my path for cgi-bin is wrong
should there be an ln -s in the /www directory to where the /cgi-bin directory is located?

from the source of montage view:
src="/zm/cgi-bin/nph-zms?mode=jpeg
But that directory does not exist.
Using "find / -name cgi-bin -type d", I find that the directory is:

/usr/lib/zoneminder/cgi-bin

so... should there be an ln -s in www targetting the correct directory?
poffs
Posts: 12
Joined: Sun Feb 14, 2016 11:35 pm

Re: No streams; unsure if cams are working. Debian SID

Post by poffs »

I resolved that issue with a ScriptAlias and <Directory> block in /etc/zm/apache.conf

Now I have placeholder images on the Montage view, which is a good sign, but still no streams. Lots of CPU usage, lol.

New error messages. The following message is repeated with slightly different zms-*.sock numbers.
2016-02-16 19:03:51.524232 web_php 15256 ERR socket_sendto( /var/run/zm/zms-861644s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371
Locked