Page 1 of 1

what does this log entry mean?

Posted: Sun Jul 10, 2016 1:55 pm
by alabamatoy
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.

Re: what does this log entry mean?

Posted: Sun Jul 10, 2016 3:22 pm
by mattionline
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/)

Re: what does this log entry mean?

Posted: Sun Jul 10, 2016 6:29 pm
by alabamatoy
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>
===

Re: what does this log entry mean?

Posted: Sun Jul 10, 2016 8:42 pm
by mattionline
Comment out the Last Paragraph and the socket sendto error should disappear