New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live view wrong socket name #563
Comments
That happens when your Apache ScriptAlias directive is configured incorrectly or overlaps with another ScriptAlias (like the one that ships with your httpd.conf). I once figured out why it manifests as a name discrepancy, but I forget now. You did not state what distro you are using so I can't be more specific than that. |
my distry:
my apache2 config:
and my zoneminder.conf
still get's the error |
Check the contents of 000-default. It also contains a ScriptAlias directive that likely overlaps with the one you added to zoneminder.conf. |
no sorry: http://pastebin.com/W6cJkiuu i think whatever creates the socket, names it wrong instread with a |
Nope looks like w and s files are two separate things, remote remsockfile and local locsockfile. |
That's correct. Steve you beat me to it! ;-) There is a configuration issue somewhere, which is why that second sock file is not being created. Verify the paths under options, especially if this is part of an upgrade and you have changed your (zoneminder) build method or version of Ubuntu. Can you give us a full page of your log file, so we can get some context as to what is going on? |
Could it be this Apache ModCGI? I think I found the package doesn't do any apache config when I installed Ubuntu 14.04 1.28 last week. |
Log from restart : http://puu.sh/cMNM2/26c55d18d8.png Options:Path: http://puu.sh/cMNGn/fced549b57.png Camera Page 1: http://puu.sh/cMNQ9/1a92b86a58.png If you need something more please tell me 👍 Also done the steps in the last post of the BugReport on Debian -> see Images. |
That looks like a Foscam camera. Without attempting to open a live stream, (re)start zoneminder and wait a little longer while watching your logs... you should get repeating INFO messages stating "Capturing at x.xx fps", which indicates the backend is working properly. Please confirm. You've got the monitor configured for 320x240 resolution. Is that exact same resolution set in the camera? This isn't related, but you should get increased performance by setting your colorspace to 32bits. |
Yes it's a Foscam http://puu.sh/cMR43/0e93955472.png And yes the entries are in the log -> http://puu.sh/cMQWE/20a4e28fd1.png Also updated my resolution and bitrate |
That's the same camera I've got. It works well. ZM_PATH_ZMS is relative to your webroot. It cannot be an absolute folder path. |
Lol nice now it works! With fancy 3,4 fps :D |
You do have to wait a little longer for ffmpeg cameras to "warm up" before the live view works. My camera does the same thing. You can ignore that shared data warning. It just means that, for a split second, the shared memory for that monitor wasn't ready. Since you did get an image, it became ready shortly after. I'm not sure about the other one. Never seen that one. |
@milefork Assume this can be closed? |
Yes thank you all! |
When watch.php calls to this address we have a problem because this address is not recognized by the apache server. http://localhost/cgi-bin/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=3&connkey=29272&rand=686800 Also, according to the default configuration the ScriptAlias was defined like this "/zm/cgi-bin" and the Alias as /zm. Therefore, we hate to add the ZM_BASE_PATH to the ZM_BASE_URL to create the $streamSrc path. And also cam be combined with this command to ensure that the problem is solved sudo ln -s /usr/lib/zoneminder/cgi-bin/nph-zms /usr/lib/cgi-bin/ Related with the issue ZoneMinder#563
had this issue: the PATH_ZMS path and the apache path for the cgi did not match. was missing /zm/cgi... also added +FollowSymLinks to the zonminder.conf for cgi |
slippers, thank you. Adding "/zm" in front of "/cgi-bin/nph-zms" to make it "/zm/cgi-bin/nph-zms" under options->path tab->PATH_ZMS fixed this for me. |
Guys, properly configuring PATH_ZMS is part of the installation documentation of every distro we support. |
Hi,
if i want to Live view the Camera I recently added I get an error like this:
socket_sendto( /var/run/zm/zms-152934s.sock ) failed: No such file or directory
while looking at this directory there exists a
zms-152934w.sock
.Have I configured something wrong?
The text was updated successfully, but these errors were encountered: