ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Forum for questions and support relating to the 1.29.x releases only.
Locked
boomerling
Posts: 5
Joined: Tue Feb 09, 2016 5:25 pm

ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by boomerling »

1. Live streaming works from intranet.
2. Live streaming works via VPN.
3. Live streaming is not working when using a pound reverse proxy on an edgerouter appliance.

Note: this feature was working in 1.28 with the modification to use relative URLs instead of absolute URLs. I see that this earlier recommendation is now included in the 1.29 build. What else can I be missing?


4. I have disabled the SSL requirement in the zoneminder.conf (@ /etc/httpd/conf.d) since SSL certs has been applied with the pound proxy configuration.

I honestly do not know where else to check configuration-wise to determine why live streaming is not working via reverse proxy. I am just getting web.php socket errors when I look at the log file.

2016-02-09 10:55:25.494564 web_php 12709 ERR socket_sendto( /var/lib/zoneminder/sock/zms-394981s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2371

Any assistance would be greatly appreciated.

Again, this was working seamlessly prior to the 1.29 upgrade.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by knight-of-ni »

You need to look in the Apache logs on both the ZoneMinder server and the server doing the reverse proxy-ing and see what they are saying.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
boomerling
Posts: 5
Joined: Tue Feb 09, 2016 5:25 pm

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by boomerling »

I am a novice, so my troubleshooting skills are lackluster:

IP: 146.23.66.6 is my external IP
IP: 192.168.1.1 is the EdgeRouter running pound proxy.
{deleted}: my domain scrubbed from output.

The proxy server is indicating that the service is not available (e503 no service); the sockets are not being created in the location being referenced in the apache log.

Proxy Log
----------
Feb 9 19:56:45 EdgeRouterPOE5 pound: (771e14b0) connect_nb: error after getsockopt: No route to host
Feb 9 19:56:54 EdgeRouterPOE5 pound: (75d214b0) e503 no service "GET /cgi-bin-zm/nph-zms?mode=jpeg&scale=100&maxfps=5&buffer=1000&monitor=1&auth=bdde0f076da47ceb6057194295ab556f&connkey=674054&rand=1455047814 HTTP/1.1" from 146.23.66.6 my.{deleted}.us
Feb 9 19:57:15 EdgeRouterPOE5 pound: (771e14b0) connect_nb: error after getsockopt: No route to host

Apache Log
----------
[Tue Feb 09 12:11:36.065910 2016] [:error] [pid 28658] [client 192.168.1.1:52455] ERR [socket_sendto( /var/lib/zoneminder/sock/zms-250140s.sock ) failed: No such file or directory], referer: https://my.{deleted}.us/zm/index.php?view=watch&mid=1
[Tue Feb 09 13:56:59.238220 2016] [:error] [pid 28669] [client 192.168.1.1:52873] ERR [socket_sendto( /var/lib/zoneminder/sock/zms-674054s.sock ) failed: No such file or directory], referer: https://my.{deleted}.us/zm/?view=watch&mid=1
[Tue Feb 09 13:57:11.326207 2016] [:error] [pid 30662] [client 192.168.1.1:52874] ERR [socket_sendto( /var/lib/zoneminder/sock/zms-674054s.sock ) failed: No such file or directory], referer: https://my.{deleted}.us/zm/?view=watch&mid=1
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by knight-of-ni »

Feb 9 19:57:15 EdgeRouterPOE5 pound: (771e14b0) connect_nb: error after getsockopt: No route to host
This means there is no TCPIP route to the host machine. That is either a network error or the firewall on the zoneminder server is blocking the request.
Also double check your Proxy directive. Make sure you've got the right hostname or ip address entered.

The socket won't be created because the http GET request to zms, which triggers creation of the socket, is not getting through.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
boomerling
Posts: 5
Joined: Tue Feb 09, 2016 5:25 pm

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by boomerling »

Resolved.

1. Firewall was not the issue. Turned off firewall and issue still remained.
2. HTTPS on or off not the issue. Reverted zoneminder.conf to force HTTPS usage.
3. The issue was with the pound reverse proxy configuration. While the configuration worked for 1.28, it would not work for 1.29. Modified the configuration as follows:

Old
----
.
.
.

ListenHTTPS
Address 0.0.0.0
Port 443
xHTTP 2
Cert "/etc/pound/certs/my.sephfesplace.us.pem"
CAlist "/etc/pound/certs/bundle.crt"

Service
URL "/zm*"
BackEnd
Address 192.168.1.4
Port 443
End
Session
Type IP
TTL 43200
End
End
End

New
-----
.
.
.
// Force HTTPS schema on back-end routing since HTTPS forced at apache level now.
// Added URL rule to handle new cgi path to ensure that live view will work. To your point earlier...create the route to the host.

ListenHTTPS
Address 0.0.0.0
Port 443
xHTTP 2
Cert "/etc/pound/certs/my.sephfesplace.us.pem"
CAlist "/etc/pound/certs/bundle.crt"
Service
URL "/zm*"
BackEnd
Address 192.168.1.4
Port 443
HTTPS
End
Session
Type IP
TTL 43200
End
End
Service
URL "/cgi-bin-zm*"
BackEnd
Address 192.168.1.4
Port 443
HTTPS
End
Session
Type IP
TTL 43200
End
End

End


Thanks again for your assistance...really like the updates that come with 1.29. Memory utilization down 40% on my server.
boomerling
Posts: 5
Joined: Tue Feb 09, 2016 5:25 pm

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by boomerling »

Update. Live view is somewhat working. I have 10 cameras. 1-2 shows; 3-4 no display; 5-6 shows; 7-8 no display; 9-10 shows.

Every other couple of cameras do not display their live feed. Will look into this further.
andrey66
Posts: 2
Joined: Thu Feb 11, 2016 2:20 am

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by andrey66 »

Hi, I found one solution for issue of sockets --ERR [socket_sendto( /var/lib/zoneminder/sock/zms-250140s.sock ) failed: No such file or directory]--- my blog is in spanish but instructions is easy.. the reference is viewtopic.php?f=34&t=24265&p=92469#p92469
my blog is http://wandrey-cht.blogspot.ca/2015/03/ ... ion-y.html
boomerling
Posts: 5
Joined: Tue Feb 09, 2016 5:25 pm

Re: ZoneMinder 1.29 / Fedora 23 Server - Live Streaming not working via proxy server.

Post by boomerling »

Resolved - believe it or not it, I deleted my Safari browser cache and the issue disappeared. The fix or resolution is the the update to the pound proxy configurations.
Locked