Juniper / open-nti

Open Network Telemetry Collector build with open source tools
Apache License 2.0
233 stars 93 forks source link

APKINDEX.tar.gz: operation timed out #153

Open gilbertorgit opened 7 years ago

gilbertorgit commented 7 years ago

I'm trying to install open-nti but I'm getting this error:

[root@voipapptrj001 open-nti]# make start Use docker compose file: docker-compose.yml IMAGE_TAG=latest docker-compose -f docker-compose.yml up -d Building input-internal Step 1 : FROM juniper/pyez:2.0.1 ---> e1f4933b9aed Step 2 : WORKDIR /source ---> Using cache ---> 357db3735157 Step 3 : USER root ---> Using cache ---> 197672a304e1 Step 4 : RUN apk add --no-cache ca-certificates && update-ca-certificates ---> Using cache ---> 33e4923f9808 Step 5 : RUN apk add --no-cache wget git ---> Running in ea4cbfd0265c fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: operation timed out fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: operation timed out ERROR: unsatisfiable constraints: git (missing): required by: world[git] wget (missing): required by: world[wget] ERROR: Service 'input-internal' failed to build: The command '/bin/sh -c apk add --no-cache wget git' returned a non-zero code: 2 make: *** [start] Error 1

mwiget commented 7 years ago

The network operation timed out trying to download the file [http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz](). You need Internet access while running make.

3fr61n commented 7 years ago

Exactly, In my case I don't know why those kind of error are so common each time I'm downloading alpine packages... eventually if you retry it should works :(

gilbertorgit commented 7 years ago

Hi guys, thanks for reply but I have network connection. Here are the output:

[root@voipapptrj001 ~]# wget http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz --2017-05-16 11:17:22-- http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz Connecting to 10.221.63.200:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 676192 (660K) [application/octet-stream] Saving to: ‘APKINDEX.tar.gz’

100%[============================================================================================>] 676,192 367KB/s in 1.8s

2017-05-16 11:17:39 (367 KB/s) - ‘APKINDEX.tar.gz’ saved [676192/676192]

[root@voipapptrj001 ~]# git clone https://github.com/Juniper/open-nti.git Cloning into 'open-nti'... remote: Counting objects: 2167, done. remote: Compressing objects: 100% (6/6), done. remote: Total 2167 (delta 0), reused 0 (delta 0), pack-reused 2161 Receiving objects: 100% (2167/2167), 5.77 MiB | 415.00 KiB/s, done. Resolving deltas: 100% (1248/1248), done.

[root@voipapptrj001 ~]# git clone https://github.com/Juniper/open-nti.git Cloning into 'open-nti'... remote: Counting objects: 2167, done. remote: Compressing objects: 100% (6/6), done. remote: Total 2167 (delta 0), reused 0 (delta 0), pack-reused 2161 Receiving objects: 100% (2167/2167), 5.77 MiB | 415.00 KiB/s, done. Resolving deltas: 100% (1248/1248), done. [root@voipapptrj001 ~]# cd open-nti/ [root@voipapptrj001 open-nti]# make start Use docker compose file: docker-compose.yml IMAGE_TAG=latest docker-compose -f docker-compose.yml up -d Pulling opennti (juniper/open-nti:latest)... failed latest: Pulling from juniper/open-nti 01a44504c48d: Pulling fs layer 97e9fc98a8bd: Pulling fs layer b54b867d7603: Pulling fs layer fe5a39fcbbb2: Pulling fs layer 2defc60f327f: Pulling fs layer b3114bb6ca08: Pulling fs layer 73f14f19f2d0: Pulling fs layer 02fe14aadc1c: Pulling fs layer ac273a2df03f: Pulling fs layer d6c5437452b4: Pulling fs layer 9cf6fde3eacf: Pulling fs layer 7027e2bb88c1: Pulling fs layer aa3346c7b320: Pulling fs layer faa2106bdc94: Pulling fs layer a7bd2bb75528: Pulling fs layer f873641e9168: Pulling fs layer cd713cb8eaf7: Pulling fs layer 1f4862388082: Pulling fs layer 70496b40cc6d: Pulling fs layer 99849ca7f840: Pulling fs layer 25e284995093: Pull complete c05f740bdecf: Pull complete da150b03de59: Pull complete be9f56632884: Pull complete 89a5690bd334: Pull complete 59a354330946: Pull complete 6df190a395dd: Pull complete 85c6edb36251: Pull complete be9d34770ed7: Pull complete f11fb9bc6648: Pull complete fe81089a5f25: Pull complete 8449c3520f31: Pull complete 3899c9168589: Pull complete 7f5cd28ccaba: Pull complete b6e5a9ef5523: Pull complete cb760e5c8c24: Pull complete 78a8c7288ac9: Pull complete d7be7865d059: Pull complete b5739f69ab85: Pull complete 7c9c011345a0: Pull complete 9c3ca83054f4: Pull complete 3c16880484b3: Pull complete 0e16f5538720: Pull complete ac644b00ec18: Pull complete 22a721d75f2a: Pull complete 1605d86d3f06: Pull complete b4f86ffeec32: Pull complete 626ab8bcda72: Pull complete 3ec2615bec01: Pull complete e07007cc8f7b: Pull complete a778b67639db: Pull complete 8b68340b06f9: Pull complete Digest: sha256:6b8f76493740a04ad6453ebd8a808fcbb943bde9b74d8f7694b413d32aa82dfc Status: Downloaded newer image for docker.io/juniper/open-nti:latest

Pulling input-syslog (juniper/open-nti-input-syslog:latest)... failed latest: Pulling from juniper/open-nti-input-syslog 7c563a369b34: Pulling fs layer e2e9ba496331: Pulling fs layer 3732e89602bb: Pulling fs layer 4b96c7ab0ac8: Pulling fs layer 54d8fcc45d58: Pulling fs layer a75a082bf509: Pull complete 6f0f3d81d927: Pull complete fc2622d9f796: Pull complete a0f3cfab95a2: Pull complete 29a0c9fb7e1a: Pull complete f06f36fb051c: Pull complete fdfb3205c02a: Pull complete e149b1f1b0e6: Pull complete 6714fc3eb243: Pull complete 2b2cb0f07032: Pull complete 65252c29dd0f: Pull complete f459b7541509: Pull complete 0b91ead81d3c: Pull complete 97805da2d8f1: Pull complete c0f6c7a56e07: Pull complete dc3ab4047f05: Pull complete 350296da3062: Pull complete 9889d1726299: Pull complete 937f345091c4: Pull complete dad6081fe216: Pull complete c0484520615d: Pull complete 71b5bc56a4d4: Pull complete 7df7aef6a5a2: Pull complete efa9beb212e8: Pull complete ef8793faeca0: Pull complete 5a247d87262c: Pull complete c3a4074f112c: Pull complete cb02d6074481: Pull complete 9f35f67214c4: Pull complete e3d204c95173: Pull complete 9ad37fcbf39d: Pull complete 8af9e77a3b2d: Pull complete Digest: sha256:0f5ff6e822441a500867790230fa94dd5661a622afc9781084113c04b8c6624c Status: Downloaded newer image for docker.io/juniper/open-nti-input-syslog:latest

Building input-internal Step 1 : FROM juniper/pyez:2.0.1 failed 2.0.1: Pulling from juniper/pyez d22793c2da7f: Pull complete 70e3b00c8d04: Pull complete 624a87a85158: Pull complete 1889e686a908: Pull complete c3aac21e324d: Pull complete 85d85e007b1e: Pull complete 88b34f8336fe: Pull complete 9965e0cfca16: Pull complete dbf6d1e1082f: Pull complete e1f4933b9aed: Pull complete Digest: sha256:bad17d8b62b0b2206e193775080cbf8ff7a788d2d5c335049a3e0df9d2e8d8f9 Status: Downloaded newer image for docker.io/juniper/pyez:2.0.1

---> e1f4933b9aed Step 2 : WORKDIR /source ---> Running in 4ec0900fbc48 ---> 3b707199a6f9 Removing intermediate container 4ec0900fbc48 Step 3 : USER root ---> Running in 9a9e7269ed7e ---> 74ba3b9e736f Removing intermediate container 9a9e7269ed7e Step 4 : RUN apk add --no-cache ca-certificates && update-ca-certificates ---> Running in baeffba2a29c fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: operation timed out fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: operation timed out OK: 80 MiB in 40 packages WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping ---> 75029587d413 Removing intermediate container baeffba2a29c Step 5 : RUN apk add --no-cache wget git ---> Running in f36d34b6bacf fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: operation timed out fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz: operation timed out ERROR: unsatisfiable constraints: git (missing): required by: world[git] wget (missing): required by: world[wget] ERROR: Service 'input-internal' failed to build: The command '/bin/sh -c apk add --no-cache wget git' returned a non-zero code: 2 make: *** [start] Error 1

mwiget commented 7 years ago

Well, not natively ;-). Your output indicates going thru a web proxy when using wget manually:

Proxy request sent, awaiting response... 200 OK

Any chance of granting your device direct access? I'm sure there is a way to work with a proxy too, but don't know anymore. It has been too long since I had to use a proxy.

gilbertorgit commented 7 years ago

Unfortunately not, it is an internal client server and uses proxy for web access.

i've already configured the Docker proxy but I really don't know why just for this packet isn't working:

[root@voipapptrj001 open-nti]# cat /etc/systemd/system/docker.service.d/https-proxy.conf [Service] Environment="HTTPS_PROXY=http://10.221.66.200:3128" [root@voipapptrj001 open-nti]# cat /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://10.221.66.200:3128"

mwiget commented 7 years ago

Well, this change needs to be done inside the Dockerfile. If you google this issue, you'll find some info like this one here: https://github.com/moby/moby/issues/24697

but it doesn't seem to be simple to resolve.

gilbertorgit commented 7 years ago

Strange behavior, because apparently docker is understand that there is a proxy, otherwise it would not be downloading other packages and I've already configure the proxy: systemctl show --property=Environment docker Environment=GOTRACEBACK=crash HTTP_PROXY=http://10.221.63.200:3128 HTTPS_PROXY=http://10.221.63.200:3128

brahmastra2016 commented 7 years ago

you will have to modify Dockerfile under plugin folder , just add the ENV http_proxy to this files too.

3fr61n commented 7 years ago

@gcastbr the suggestion from @brahmastra2016 works for you?

Regards

brahmastra2016 commented 7 years ago

yes it worked for me.

On Jun 13, 2017 1:02 AM, "Efrain" notifications@github.com wrote:

@gcastbr https://github.com/gcastbr the suggestion from @brahmastra2016 https://github.com/brahmastra2016 works for you?

Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Juniper/open-nti/issues/153#issuecomment-308038925, or mute the thread https://github.com/notifications/unsubscribe-auth/AQC4V2u2Hl2mAmCj5OoU1265TklA_5Fsks5sDkIWgaJpZM4Nch4Q .

mnanduri commented 7 years ago

I am running into the same issue and i did what was suggested in the earlier posts without success.

"fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: operation timed out"

These are the entries I added: 1) In /etc/systemd/system/docker.service.d/https-proxy.conf [Service] Environment="http_proxy=http://ip:80" Environment="https_proxy=http://ip:80" 2) Modified the Dockerfile file and added these ENV http_proxy=http://ip:80 ENV https_proxy=http://ip:80

What am I doing wrong?

brahmastra2016 commented 7 years ago

try to see if this help ,if you have already tried just double check.

https://blog.codeship.com/using-docker-behind-a-proxy/

On Aug 5, 2017 5:01 PM, "mnanduri" notifications@github.com wrote:

I am running into the same issue and i did what was suggested in the earlier posts without success.

"fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/ APKINDEX.tar.gz WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/ APKINDEX.tar.gz: operation timed out"

These are the entries I added:

  1. In /etc/systemd/system/docker.service.d/https-proxy.conf [Service] Environment="http_proxy=http://ip:80" Environment="https_proxy=http://ip:80"
  2. Modified the Dockerfile file and added these ENV http_proxy=http://ip:80 ENV https_proxy=http://ip:80

What am I doing wrong?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Juniper/open-nti/issues/153#issuecomment-320470206, or mute the thread https://github.com/notifications/unsubscribe-auth/AQC4V9MKJoyQChTID3DxUA017ClUgfDOks5sVNgygaJpZM4Nch4Q .

mnanduri commented 7 years ago

Forgot to reply back about this issue. I got it fixed once I added ENV proxy settings Dockerfile under each plug-in.