No Views, only in Zoneminder Interface

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
JP Stlzk
Posts: 5
Joined: Thu Nov 07, 2024 12:35 pm

No Views, only in Zoneminder Interface

Post by JP Stlzk »

Hello everyone here,
I just signed up and have been using Zoneminder on an AMD64 PC with Debian 10 - 12 for about 6 years now. I haven't been able to see a live stream in Zoneminder for a few months now, only the "broken image" icon. ZM 1.36.35 is currently running on Bookworm, no major problems when updating Debian, Zoneminder and, for your information, Nextcloud and Openhab.
Only Zoneminder still doesn't show a live stream, sockets are created and /dev/shm is also filled with the correct files, user and group are OK (www-data). The error in the ZM logs is that the socket files are missing (file not found) and no access to /dev/shm/zm.mmap.2 (up to 5) (no such file or directory). As already mentioned, files are present and rights are also correct.
I get a stream in Openhab via the Zoneminder binding and can access images directly with "zmu -m 2 -i -U zr -P xxxx" also for the 3 other monitors. Google searches with the obvious error messages (no socket..., No such file or directory..., Can't connect to capture daemon..., ) gave very similar results, mostly about cgi-bin, but it is Also correct as far as I can see (no error messages in logs from ZM or Apache2 and path is OK) I use FireFox and Chrome as browsers. Nextcloud can be reached from outside, Openhab and Zoneminder can only be reached via VPN from outside the local network.
After weeks of troubleshooting, I don't know what to do anymore, especially since the stream only doesn't work in the ZM web interface. I've tried a few solutions to provoke the errors that are similar to mine (e.g. rights deliberately set incorrectly, paths set incorrectly, etc ) which of course caused the corresponding errors and also disrupted the stream in Openhab and the retrieval of the images. Correcting these errors restored the stream in Openhab and grabbing images worked again as expected, but I can't get a stream in Zoneminder.
Setting up ZM completely again including MariaDB databases hasn't changed anything.
Does anyone here have any advice on where I can check which log files should be activated other than the standard ones? Extra debugging with level 9 didn't bring any further information, and I can't find anything else in the system.log either.
I'm at a loss now, I can't get a picture within ZM.
with many thanks for any help
JP S.
User avatar
iconnor
Posts: 3266
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No Views, only in Zoneminder Interface

Post by iconnor »

Right click on where the image should be, click open in new tab. There may be more information presented.

Check the network tab (right click, inspect, go to network tab). The broken images will be red lines. What is the response code? Probably 404.
Could also be 401 (unauth).
JP Stlzk
Posts: 5
Joined: Thu Nov 07, 2024 12:35 pm

Re: No Views, only in Zoneminder Interface

Post by JP Stlzk »

Hello, thanks for the answer.
Right click > in new tab, gives 404.
In the network tab, 404 get is first output for html, a little later comes 200 get for json, then repeats continuously, between 404 again.
I'll take a look at it to see if I can find any more information somewhere.
Can you help me with what I should possibly be looking for?
thank you in advance
User avatar
iconnor
Posts: 3266
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No Views, only in Zoneminder Interface

Post by iconnor »

Your PATH_ZMS and script alias are not in alignment.
JP Stlzk
Posts: 5
Joined: Thu Nov 07, 2024 12:35 pm

Re: No Views, only in Zoneminder Interface

Post by JP Stlzk »

Hi,
Thanks again, 2 children and just before Christmas :-) so little time, I'll take a look at it today and see what I may have overlooked, in any case, thank you very much for the quick answer
CU
JP S
JP Stlzk
Posts: 5
Joined: Thu Nov 07, 2024 12:35 pm

Re: No Views, only in Zoneminder Interface

Post by JP Stlzk »

hi, little update
the paths to cgi-bin "/usr/lib/zoneminder/cgi-bin"
and ZM_PATH_ZMS "/usr/lib/zoneminder/cgi-bin/nph-zms"
are identical everywhere.
However, I may have missed an error message so far: "zms, referer: http://'my server':8080/"
Zoneminder runs on :7080.
In Apache the zoneminder.conf correctly says " <VirtualHost *:7080> "
8080 is not used under Apache2, OpenHAB runs on it.
I haven't found a port number in Zoneminder yet.
But discovered a new SQL error that the zm DB cannot be reached and fixed it, the error message "zms, referer: http://'my server':8080/" has now disappeared
Is there a port in the MySQL DB?
I'll continue to search diligently to see where any error messages may still appear.
Thank you again for your help
User avatar
iconnor
Posts: 3266
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No Views, only in Zoneminder Interface

Post by iconnor »

It is probably the url portion. In Apache you have line ScriptAlias /zm/ /usr/lib/zoneminder/cgi-bin
But if you aren't using a virtual host, there may be a default value taking precedence. I typically have to a2dissite 000-default in order to kill the default config.
JP Stlzk
Posts: 5
Joined: Thu Nov 07, 2024 12:35 pm

Re: No Views, only in Zoneminder Interface

Post by JP Stlzk »

Hi,
thank you very much for your patience.
after I tested too many times, after I reinstalled ZM, db-user and the database, I did it again, order: created database, created db-user and assigned rights, installed zoneminder with apt, old zoneminder.conf back to etc/apache2/sites-available Copy and link to -/sites-enabled, create the necessary users in ZM, change admin password, set time and location, create monitors... and it works... Stream in ZM and Openhab, motion detection, etc. Except I want to know why? everything is fine now :-)
thank you again and greetings from North Rhine-Westphalia
JP S

ps: one more question, how do I set the treat to "Solved", or better "Solved, I just don't know why" :-))?
One last piece of information, I left the path for ZM_PATH_ZMS=/zm/cgi-bin/nph-zms as is. The previous adjustment may have been the cause.
dougmccrary
Posts: 1336
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: No Views, only in Zoneminder Interface (Solved)

Post by dougmccrary »

Just edit the subject... :)
Post Reply