Open gmarcz opened 9 years ago
I got some static cams in my config and after I reload the nginx server I start getting these errors:
[07/11/14 09:28:49] gabor.marcz: 2014/11/06 22:16:09 [notice] 32#0: signal process started 2014/11/06 22:16:10 [error] 29#0: connect() to unix:/tmp/nginx-rtmp.1 failed (111: Connection refused) 2014/11/06 22:16:10 [error] 29#0: *10877 auto_push: connect failed: slot=1 pid=30 name='Zmq8E4zsACg0zak', client: video2.earthcam.com/fecnetwork/, server: ngx-relay 2014/11/06 22:16:10 [error] 29#0: connect() to unix:/tmp/nginx-rtmp.1 failed (111: Connection refused) 2014/11/06 22:16:10 [error] 29#0: *10877 auto_push: connect failed: slot=1 pid=30 name='Zmq8E4zsACg0zak', client: video2.earthcam.com/fecnetwork/, server: ngx-relay 2014/11/06 22:16:10 [error] 29#0: connect() to unix:/tmp/nginx-rtmp.1 failed (111: Connection refused) 2014/11/07 08:29:46 [error] 29#0: connect() to unix:/tmp/nginx-rtmp.1 failed (111: Connection refused) 2014/11/07 08:29:46 [error] 29#0: *956923 auto_push: connect failed: slot=1 pid=30 name='pDeKa1yTDFMaMNB', client: video2.earthcam.com/fecnetwork/, server: ngx-relay
The sockets seems to be there: ls -al /tmp/ srwxr-xr-x 1 nobody nogroup 0 Nov 5 23:01 nginx-rtmp.0 srwxr-xr-x 1 nobody nogroup 0 Nov 5 23:01 nginx-rtmp.1 srwxr-xr-x 1 nobody nogroup 0 Nov 6 22:16 nginx-rtmp.2 srwxr-xr-x 1 nobody nogroup 0 Nov 6 22:16 nginx-rtmp.3
I use nginx/1.6.2 with nginx-rtmp-module from the static-relay-cleanup branch.
/usr/local/nginx/sbin/nginx -V nginx version: nginx/1.6.2 built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-debug --add-module=nginx-rtmp-module --with-http_ssl_module
Config file:
worker_processes 2; error_log logs/error.log; pid logs/nginx.pid; rtmp_auto_push on; events { worker_connections 1024; } rtmp { server { listen 1935; application cam { live on; drop_idle_publisher 120s; wait_video on; wait_key on; pull rtmp://149.3.141.18/mila/bardarbunga2.stream name=62D4R8ETyc9VLOy static; pull rtmp://video2.earthcam.com/fecnetwork/ name=EBrkDaOtQHeom09 swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=5299.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=YD9r2bOipF9Q53J swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=5023.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=YMqBRagFEtwZ2an playPath=4369.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=Zmq8E4zsACg0zak swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4516.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=a85eQWltrilxz2X swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4931.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=dq6w2LdsYcQ2EzY swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4831.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=eD1YbZ4u0idnqVv swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4369.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=nwAEVd3SaU3MakN swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4282.flv static; pull rtmp://media.terena.org/rtplive name=o3OWL6YC2sYG0VD swfUrl=http://www.terena.org/javascript/mediaplayer/player.swf playPath=mp4:stream2.mp4 static; pull rtmp://video2.earthcam.com/fecnetwork/ name=o9V1AzOSbINxrZn swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=lacitytours1.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=ogewqKbCdTG95j6 swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=3724trailnet2.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=pDeKa1yTDFMaMNB swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=eclasvegas.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=rPo8ZxGU4H5kjO4 swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4717.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=vGzAKnEULFNpeR9 swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=hotelvictoria2.flv static; pull rtmp://149.3.141.18/akureyri.stream name=vQrjy2gHauj5kem static; pull rtmp://video2.earthcam.com/fecnetwork/ name=vwVanbas1fblZ17 swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4135.flv static; pull rtmp://video2.earthcam.com/fecnetwork/ name=w1mRNp4tYcPNDVP swfUrl=http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a playPath=4054.flv static; pull rtmp://live.brilliantplatform.net:1935/liveedge/_definst_/ name=zAjaQldF4cyQ6XW playPath=39e1726c4038c70fbe82db2d41c4c4b6/siestakey_720p.stream static; } } } http { server_tokens off; include mime.types; default_type application/octet-stream; access_log logs/access.log; sendfile on; #tcp_nopush on; keepalive_timeout 65s; gzip on; server { listen 80; access_log logs/host.access.log; # rtmp statistics location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { # you can move stat.xsl to a different location. root /stat; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } } daemon off;
because of nginx epoll module use accept lock,so some process can't accept.
I got this problem too, how can I solve this problem?
some...
I got some static cams in my config and after I reload the nginx server I start getting these errors:
The sockets seems to be there: ls -al /tmp/ srwxr-xr-x 1 nobody nogroup 0 Nov 5 23:01 nginx-rtmp.0 srwxr-xr-x 1 nobody nogroup 0 Nov 5 23:01 nginx-rtmp.1 srwxr-xr-x 1 nobody nogroup 0 Nov 6 22:16 nginx-rtmp.2 srwxr-xr-x 1 nobody nogroup 0 Nov 6 22:16 nginx-rtmp.3
I use nginx/1.6.2 with nginx-rtmp-module from the static-relay-cleanup branch.
/usr/local/nginx/sbin/nginx -V nginx version: nginx/1.6.2 built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-debug --add-module=nginx-rtmp-module --with-http_ssl_module
Config file: