what does this log entry mean?

Forum for questions and support relating to the 1.29.x releases only.
Post Reply
alabamatoy
Posts: 195
Joined: Sun Jun 05, 2016 2:53 pm

what does this log entry mean?

Post by alabamatoy » Sun Jul 10, 2016 1:55 pm

Every so often, I will get a whole bunch of these in the ZM log:

Code: Select all

Unable to send stream frame: Broken pipe
Also, perhaps related, I will see the following in syslog:

Code: Select all

Jul  9 21:39:19 myhostname web_php[552]: ERR [socket_sendto( /var/run/zm/zms-253920s.sock ) failed: No such file or directory]
and a few

Code: Select all

Jul  9 21:39:34 myhostname web_js[31366]: ERR [getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-251058s.sock ) failed: No such file or directory - checkStreamForErrors()]
Any suggestions on how to fix, or thoughts if this something I can ignore, or....

The ZM *seems* to work pretty well regardless of these errors.

mattionline
Posts: 53
Joined: Thu Jun 18, 2015 7:27 pm
Contact:

Re: what does this log entry mean?

Post by mattionline » Sun Jul 10, 2016 3:22 pm

check if you have a double configured scriptalias. there is a standard one configure in the apache2 and overlaps with the zoneminder config.

socket_sendto( /var/run/zm/zms-152934s.sock ) failed: No such file or directory

That happens when your Apache ScriptAlias directive is configured incorrectly or overlaps with another ScriptAlias

nano /etc/apache2/conf-enabled/serve-cgi-bin.conf

# <IfDefine ENABLE_USR_LIB_CGI_BIN>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# <Directory “/usr/lib/cgi-bin”>
# AllowOverride None
# Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Require all granted
# </Directory>
# </IfDefine>


(https://blog.mattionline.de/zoneminder-error-meanings/)
Last edited by mattionline on Sun Jul 10, 2016 8:41 pm, edited 1 time in total.
My Personal Blog: https://mattionline.de

alabamatoy
Posts: 195
Joined: Sun Jun 05, 2016 2:53 pm

Re: what does this log entry mean?

Post by alabamatoy » Sun Jul 10, 2016 6:29 pm

Hmmm... well, mine looks *sorta* like what you posted:
===
<IfModule mod_alias.c>
<IfModule mod_cgi.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>

<IfModule mod_cgid.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>

<IfDefine ENABLE_USR_LIB_CGI_BIN>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
</IfDefine>
</IfModule>
===

mattionline
Posts: 53
Joined: Thu Jun 18, 2015 7:27 pm
Contact:

Re: what does this log entry mean?

Post by mattionline » Sun Jul 10, 2016 8:42 pm

Comment out the Last Paragraph and the socket sendto error should disappear
My Personal Blog: https://mattionline.de

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests