socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file or di
socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file or di
I recently install zoneminder on ubuntu 12.04. I am getting the following error while trying to watch a live stream or view an event.
"socket_sendto( /tmp/zm/zms-891483s.sock ) failed: No such file or directory"
I have checked that the directory /tmp/zm/ exists, but when I select the live feed or event, no socket spawns. I do see a socket zms-xxxxxxw.sock in the directory for a short period of time. Below are my version information.
ZoneMinder 1.25.0
Server version: Apache/2.2.22 (Ubuntu)
Server built: Feb 13 2012 01:51:50
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
mysql Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2
I have left pretty much all of the default settings. I have made www-data the owner of /usr/share/zoneminder/* as well as any directory which is linked from that location.
I believe that the error has to do with how the socket is being spawned (or in this case, not being spawned). I am able to see the individual frames that are in an event, but not view the event as video playback.
"socket_sendto( /tmp/zm/zms-891483s.sock ) failed: No such file or directory"
I have checked that the directory /tmp/zm/ exists, but when I select the live feed or event, no socket spawns. I do see a socket zms-xxxxxxw.sock in the directory for a short period of time. Below are my version information.
ZoneMinder 1.25.0
Server version: Apache/2.2.22 (Ubuntu)
Server built: Feb 13 2012 01:51:50
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
mysql Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2
I have left pretty much all of the default settings. I have made www-data the owner of /usr/share/zoneminder/* as well as any directory which is linked from that location.
I believe that the error has to do with how the socket is being spawned (or in this case, not being spawned). I am able to see the individual frames that are in an event, but not view the event as video playback.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Same problem here with Centos 6 x64
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
I resolved by issue by ensuring that my CGI-BIN was setup correctly.
something like this depending on you file structure within your /etc/apache2/sites-enables/<site_file>
Add the following under the virtual host in question:
ScriptAlias /cgi-bin/ /usr/share/zoneminder/cgi-bin/
I also had a permissions issue on my cambozola.jar file. I used the following command to change the permissions.
sudo chmod 755 /usr/share/zoneminder/cambozola.jar
Your path man very. I hope that this helps!
something like this depending on you file structure within your /etc/apache2/sites-enables/<site_file>
Add the following under the virtual host in question:
ScriptAlias /cgi-bin/ /usr/share/zoneminder/cgi-bin/
I also had a permissions issue on my cambozola.jar file. I used the following command to change the permissions.
sudo chmod 755 /usr/share/zoneminder/cambozola.jar
Your path man very. I hope that this helps!
similar issue ZM 1.25 on Centos 6.3 x86_64
I made a clean install of Centos 6.3 x86_64, and built zoneminder-1.25 from source following the instructions at the wiki : wiki index.php CentOS (using FFmpeg 0.6.5).
My camera source is mjpeg streamer on another host. Mjpeg streamer has been outputting to a web browser on another of my desktops for over 24 hours without any apparent issues. Therefore I think my issue is to do with how I have set up zoneminder and not the video source.
I installed and configured this machine around mindnight last night, added my source and zones. Motion detection worked, events were generated, no errors in the log. Around 05:30, errors start appearing in the log. When I wake up around 7am, the zoneminder console shows red under "source" and I cannot display my video feed. Further, no events have been generated despite the camera monitoring a busy area. mjpg_streamer is still working correctly on the other host.
Checking my logs, I am receiving four errors of note.
web_php socket_sendto ( / tmp/zms-286624s.sock ) failed : No suck file or directory.
and
zms Unable to store frame as shared memory invalid
zms Shared data not intialised by capture daemon, some query functions may not be available or produce invalid results
zms Terminating, last frame sent time 10.024962 secs more than maximum of 10.000000
The shared memory error is baffling me as I though ZM 1.25 used memory mapping. The hardware is an Intel Q6600 with 1GB of RAM.
I have been trying to get zoneminder working for several days using several distributions and experimenting with building from source or using packages. This was a clean install and built from source and did appear to work for a few hours. I have read the FAQ, the troubleshooting guide, the rest of the documentation and have searched the forum and web for answers.
I have looked at the cgi-bin solution described above however my nph-zms and zms appear correctly permissioned and owned by apache. I find it interesting that the errors only started occurring after it had been running properly for a few hours, and rebooting does not seem to fix the problem. The video source I am using is 960x720@24 bit and 15 fps with a ring buffer of 100 frames. This should fit inside my 1GB RAM with room to spare.
Here are some log snips and finally I attach complete logs in case they are useful.
Thank you for your attention. Please let me know how I can provide any other information which would be helpful.
Here are some log snips and finally I attach complete logs in case they are useful.
/var/log/httpd/error_log
/var/log/messages
uname -a
ipcs
My camera source is mjpeg streamer on another host. Mjpeg streamer has been outputting to a web browser on another of my desktops for over 24 hours without any apparent issues. Therefore I think my issue is to do with how I have set up zoneminder and not the video source.
I installed and configured this machine around mindnight last night, added my source and zones. Motion detection worked, events were generated, no errors in the log. Around 05:30, errors start appearing in the log. When I wake up around 7am, the zoneminder console shows red under "source" and I cannot display my video feed. Further, no events have been generated despite the camera monitoring a busy area. mjpg_streamer is still working correctly on the other host.
Checking my logs, I am receiving four errors of note.
web_php socket_sendto ( / tmp/zms-286624s.sock ) failed : No suck file or directory.
and
zms Unable to store frame as shared memory invalid
zms Shared data not intialised by capture daemon, some query functions may not be available or produce invalid results
zms Terminating, last frame sent time 10.024962 secs more than maximum of 10.000000
The shared memory error is baffling me as I though ZM 1.25 used memory mapping. The hardware is an Intel Q6600 with 1GB of RAM.
I have been trying to get zoneminder working for several days using several distributions and experimenting with building from source or using packages. This was a clean install and built from source and did appear to work for a few hours. I have read the FAQ, the troubleshooting guide, the rest of the documentation and have searched the forum and web for answers.
I have looked at the cgi-bin solution described above however my nph-zms and zms appear correctly permissioned and owned by apache. I find it interesting that the errors only started occurring after it had been running properly for a few hours, and rebooting does not seem to fix the problem. The video source I am using is 960x720@24 bit and 15 fps with a ring buffer of 100 frames. This should fit inside my 1GB RAM with room to spare.
Here are some log snips and finally I attach complete logs in case they are useful.
Thank you for your attention. Please let me know how I can provide any other information which would be helpful.
Here are some log snips and finally I attach complete logs in case they are useful.
/var/log/httpd/error_log
Code: Select all
[Fri Aug 10 09:29:29 2012] [error] [client 192.168.1.15] ERR [socket_sendto( /tmp/zm/zms-286624s.sock ) failed: No such file or directory], referer:
Code: Select all
Aug 10 09:29:29 zm-centos web_php[1564]: ERR [socket_sendto( /tmp/zm/zms-286624s.sock ) failed: No such file or directory]
Aug 10 09:35:20 zm-centos zms[1855]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Aug 10 09:35:20 zm-centos zms[1855]: WAR [Unable to store frame as shared memory invalid]
Aug 10 09:35:23 zm-centos zms[1852]: ERR [Terminating, last frame sent time 10.024965 secs more than maximum of 10.000000]
Aug 10 09:35:30 zm-centos zms[1855]: ERR [Terminating, last frame sent time 10.024962 secs more than maximum of 10.000000]
Code: Select all
Linux zm-centos 2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
root@zm-centos ~]# ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x6c6c6536 0 root 600 4096 0
------ Semaphore Arrays --------
key semid owner perms nsems
0x00000000 0 root 600 1
0x00000000 65537 root 600 1
0x00000000 98306 apache 600 1
0x00000000 131075 apache 600 1
0x00000000 163844 apache 600 1
------ Message Queues --------
key msqid owner perms used-bytes messages
Last edited by zoneluser on Fri Aug 10, 2012 9:17 am, edited 1 time in total.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
(split the post to get past a "spam" error, my mistake, please remove extra post)
Last edited by zoneluser on Fri Aug 10, 2012 9:18 am, edited 2 times in total.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
(my error, can this please be removed)
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
It sounds like you are running into a shortage of shared memory.
check out the shared memory portion of the FAQ under the title of "What does a 'Can't shmget: Invalid argument' error in my logs mean? and my cameras won't display video at higher resolutions."
I am running ubuntu server so my settings are located in
/etc/sysctl.conf
add to the bottom of the config file the below line with a value that reflect your system.
kernel.shmmax = 536870912
128 MB = 134217728
256 MB = 268435456
I had been getting similar errors because I was running out of memory. I hope that this helps.
check out the shared memory portion of the FAQ under the title of "What does a 'Can't shmget: Invalid argument' error in my logs mean? and my cameras won't display video at higher resolutions."
I am running ubuntu server so my settings are located in
/etc/sysctl.conf
add to the bottom of the config file the below line with a value that reflect your system.
kernel.shmmax = 536870912
128 MB = 134217728
256 MB = 268435456
I had been getting similar errors because I was running out of memory. I hope that this helps.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Sorry, I should have posted my shared memory information. Looks like this wasn't the problem. These are default settings in Centos 6.
Followers may be interested to know that I've taken another machine, installed Fedora 17 following the instructions on the wiki, and set up ZM with the same settings. Runs fine for a few hours, and just now I'm getting the socket_sendto errors back in the log. This time I used the package from the yum repos rather than compiling from source.
Off to try ubuntu.....
It might interest followers to read this post at the Linux Mint forums: forums dot linuxmint dot c-o-m slash viewtopic.php?f=47&t=78395
Code: Select all
cat /proc/sys/kernel/shmmax
68719476736
cat /proc/sys/kernel/shmall
4294967296
Off to try ubuntu.....
It might interest followers to read this post at the Linux Mint forums: forums dot linuxmint dot c-o-m slash viewtopic.php?f=47&t=78395
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Just to update, I have now wiped clean and installed three times on this machine - Centos 6 with a build from source, Fedora 17 with a packaged rpm, and ubuntu 32 bit server with a packaged deb. So whether I build from source or take a package, whether I am using 32 or 64 bit, and no matter which distribution this error pops up on ZM 1.25. I have followed the wiki and documentation for each install, and have tried the troubleshooting steps mentioned. Using a remote mjpeg streamer source.
What might I be doing wrong?
What might I be doing wrong?
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Are you still getting the same errors?
have you validated that your cgi-bin and all scripts are owned by your www-data (or whatever your apache user is)?
have you validated that your cgi-bin and all scripts are owned by your www-data (or whatever your apache user is)?
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Yes I am still getting the same errors. I have tried build from source and packages across three different distributions. I've double and triple checked the permissions. However, here is what I found as a potential solution.kevinkk wrote:Are you still getting the same errors?
have you validated that your cgi-bin and all scripts are owned by your www-data (or whatever your apache user is)?
The messages about the corrupt jpeg images...I don't know a thing about ZM but my sense is that it doesn't error check / gracefully process garbage data. As they say, garbage in > garbage out. The errors with shared memory, sockets, etc all seemed to occur after ZM was fed a bad jpeg. Using a web browser to view the mjpeg stream, I noticed some glitchy images, but of course this doesn't crash the browser.
In a nutshell, I believe these problems are caused by JPEG errors. I had been using ZM 1.24 for over a week with this camera and mjpg streamer. The 1.24 build was on a machine with old software (Peterssons VM build) - apache would crash several times making it unworkable, hence I made a new machine to install 1.25. Anyway, when I configured my new mjpeg streamer server I left off the "-y" option to turn on YUV which I had previously used. This was an oversight.
I knew something was wrong when I loaded back the 1.24 VM resigned to not being able to solve the errors on my new 1.25 machines. buggy apache nuisance when viewing, but at least the captures were reliable. Guess what? Same JPEG errors. So I twigged about the YUV after reading a helpful thread over at the mjpg streamer project.
tl;dr - my errors appear to have been caused by garbage JPEG frames coming from the camera - running mjpg streamer in yuv mode appears to have fixed. Will update over the weekend if the problem comes back.
Hope this helps, I might add some info to the wikis if I have time.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Just to update all, about 14-15 hours into switching to yuv from mjpeg mode, the socket_sendto errors have started again. Log is full of them however I have notice no apparent symptoms - the motion detection, capture ,record, and web interface appear to be working normally.
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
I just dropped in here, searching on socket_sendto and am getting same errors, fresh install of CentOS 6.3 on a brand-new AMD 6-core machine that gives the exact same shmmax and shmall numbers as zoneluser posted. (Prior 1.25 install on an old quad-core 32-bit machine worked great, no errors, but it got fried in a storm.)
This new rig has been running without errors for a couple of days with just a couple of CCTV cameras, each plugged into PICO 2000 cards.
This afternoon I set out to add the IP foscams back to the mix, got one going, and since then I get the socket_sendto error every six to eight seconds if httpd is started, whether zm is started or stopped.
Even after deleting the monitor for the foscam the socket_sendto errors happen if httpd is running.
A similar bug shows up in a debian forum a few months past: bugs.debian.org/cgi-bin/bugreport.cgi?bug=666980
Is any of this a clue?
This new rig has been running without errors for a couple of days with just a couple of CCTV cameras, each plugged into PICO 2000 cards.
This afternoon I set out to add the IP foscams back to the mix, got one going, and since then I get the socket_sendto error every six to eight seconds if httpd is started, whether zm is started or stopped.
Even after deleting the monitor for the foscam the socket_sendto errors happen if httpd is running.
A similar bug shows up in a debian forum a few months past: bugs.debian.org/cgi-bin/bugreport.cgi?bug=666980
Is any of this a clue?
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
When authentication is not used and there are no other errors other than socket_sendto errors, is anyone experiencing symptoms of undesired behaviour?
I have been running for 3 days 1 hour Zoneminder with the single quickcam 9000 over mjpg_streamer without problems- there is the occasional corruption which is fixed by restarting mjpg_streamer which I have now automated using a bash script to scrape the syslog for errors and cron.
I see the socket_sendto errors from time to time, however this does not seem to cause issues with source output viewing or motion detection / recording. Here are my logs for the last two days:
I have been running for 3 days 1 hour Zoneminder with the single quickcam 9000 over mjpg_streamer without problems- there is the occasional corruption which is fixed by restarting mjpg_streamer which I have now automated using a bash script to scrape the syslog for errors and cron.
I see the socket_sendto errors from time to time, however this does not seem to cause issues with source output viewing or motion detection / recording. Here are my logs for the last two days:
/var/log/syslog:Aug 14 12:44:46 zm-ubuntu web_php[12184]: ERR [socket_sendto( /tmp/zm/zms-425175s.sock ) failed: No such file or directory]
/var/log/syslog:Aug 14 12:46:32 zm-ubuntu web_php[30276]: ERR [socket_sendto( /tmp/zm/zms-807836s.sock ) failed: No such file or directory]
/var/log/syslog:Aug 14 12:47:55 zm-ubuntu web_php[31906]: ERR [socket_sendto( /tmp/zm/zms-994229s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:34:59 zm-ubuntu web_php[18955]: ERR [socket_sendto( /tmp/zm/zms-881031s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:36:29 zm-ubuntu web_php[28861]: ERR [socket_sendto( /tmp/zm/zms-018637s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:42:16 zm-ubuntu web_php[28937]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:42:23 zm-ubuntu web_php[28937]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:42:29 zm-ubuntu web_php[28902]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:43:50 zm-ubuntu web_php[28936]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:43:53 zm-ubuntu web_php[28938]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:17 zm-ubuntu web_php[18955]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:20 zm-ubuntu web_php[14848]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:26 zm-ubuntu web_php[28902]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:44 zm-ubuntu web_php[28902]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:50 zm-ubuntu web_php[15152]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 11:44:56 zm-ubuntu web_php[28936]: ERR [socket_sendto( /tmp/zm/zms-437361s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 14:47:37 zm-ubuntu web_php[28079]: ERR [socket_sendto( /tmp/zm/zms-935895s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 14:48:33 zm-ubuntu web_php[28079]: ERR [socket_sendto( /tmp/zm/zms-336044s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 15:04:39 zm-ubuntu web_php[28902]: ERR [socket_sendto( /tmp/zm/zms-450478s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 19:03:20 zm-ubuntu web_php[31906]: ERR [socket_sendto( /tmp/zm/zms-911064s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 19:03:49 zm-ubuntu web_php[30276]: ERR [socket_sendto( /tmp/zm/zms-407376s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 19:04:29 zm-ubuntu web_php[28938]: ERR [socket_sendto( /tmp/zm/zms-589857s.sock ) failed: No such file or directory]
/var/log/syslog.1:Aug 13 19:05:08 zm-ubuntu web_php[31906]: ERR [socket_sendto( /tmp/zm/zms-391083s.sock ) failed: No such file or directory]
Re: socket_sendto( /tmp/zm/zms-xxxxxxs.sock ) No such file o
Sorry not to be very helpful here, have a different configuration with seven CCTV cameras running on a pair of bttv cards and 4 wireless IP cams, this on an AMD 6 core running CentOS 6.3.
I got the socket_sendto errors a few times after setting up the IP cameras and posted here.
Later, without _knowing_ the cause I was able to stop the errors by using setup removing httpd and zm from service to start at boot, then power off and reboot, then starting httpd and zm using service httpd start and service zm start.
Since this worked reliably I left httpd and zm out of the services to start for run level 3, then added service httpd start and service zm start to my startup scripts in /etc/rc.d/rc.local instead, so they start after everything else has started.
(I'll mess with the sequence numbers in rc3.d at some point, meanwhile this works for me.)
I was able to solve another problem by moving 'options bbtv...' from modprobe.d to 'modprobe bttv...' in rc.local so I'm _guessing_ there's some issue with the sequence of when mods are probed and services are started?
I got the socket_sendto errors a few times after setting up the IP cameras and posted here.
Later, without _knowing_ the cause I was able to stop the errors by using setup removing httpd and zm from service to start at boot, then power off and reboot, then starting httpd and zm using service httpd start and service zm start.
Since this worked reliably I left httpd and zm out of the services to start for run level 3, then added service httpd start and service zm start to my startup scripts in /etc/rc.d/rc.local instead, so they start after everything else has started.
(I'll mess with the sequence numbers in rc3.d at some point, meanwhile this works for me.)
I was able to solve another problem by moving 'options bbtv...' from modprobe.d to 'modprobe bttv...' in rc.local so I'm _guessing_ there's some issue with the sequence of when mods are probed and services are started?