atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
687 stars 200 forks source link

nginx rtmp download issue #38

Closed ulises-jimenez closed 4 years ago

ulises-jimenez commented 4 years ago

Hi there, just thought you might want to know about this.

When I run make build everything goes fine until nginx-rtmp is downloaded from ftp.csx.cam.ac.uk. For some reason this ftp server is down and stops the build process

The stack trace is below. Maybe you can implement a fallback system with different ftp servers for this. I can also do it if you don't mind having me contribute some code.

Removing intermediate container f44876e2d9c4

---> 054890fa49ec
Step 15/33 : RUN ZLIB="zlib-1.2.11" && vNGRTMP="v1.1.11" && PCRE="8.41" && nginx_build=/root/nginx && mkdir $nginx_build &&     cd $nginx_build &&     wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE.tar.gz &&     tar -zxf pcre-$PCRE.tar.gz &&     cd pcre-$PCRE &&     ./configure && make && make install &&     cd $nginx_build &&     wget http://zlib.net/$ZLIB.tar.gz &&     tar -zxf $ZLIB.tar.gz &&     cd $ZLIB &&     ./configure && make &&  make install &&     cd $nginx_build &&     wget https://github.com/arut/nginx-rtmp-module/archive/$vNGRTMP.tar.gz &&     tar zxf $vNGRTMP.tar.gz && mv nginx-rtmp-module-* nginx-rtmp-module
 ---> Running in 3716f661a76e
converted 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz' (ANSI_X3.4-1968) -> 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz' (UTF-8)
--2019-08-28 09:52:23--  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
           => 'pcre-8.41.tar.gz'
Resolving ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)... 131.111.8.115
Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... failed: Connection timed out.
Retrying.

--2019-08-28 09:54:34--  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
  (try: 2) => 'pcre-8.41.tar.gz'
Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... failed: Connection timed out.
Retrying.

--2019-08-28 09:56:46--  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
  (try: 3) => 'pcre-8.41.tar.gz'
Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... failed: Connection timed out.
Retrying.

--2019-08-28 09:59:01--  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
  (try: 4) => 'pcre-8.41.tar.gz'
Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... failed: Connection timed out.
Retrying.

--2019-08-28 10:01:15--  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
  (try: 5) => 'pcre-8.41.tar.gz'
Connecting to ftp.csx.cam.ac.uk (ftp.csx.cam.ac.uk)|131.111.8.115|:21... `
webfischi commented 4 years ago

Just exchange the ftp server with this address: https://ftp.pcre.org/pub/pcre/pcre-$PCRE.tar.gz

ulises-jimenez commented 4 years ago

ah nice, i didn't look into the docker file

must be this section

nginx-rtmp with openresty

thanks!

For anyone else who runs into this issue just replace the address in the wget command in the docker file section labelled

nginx-rtmp with openresty