-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apk WARNING Ignoring APKINDEX No such file or directory #207
Comments
doing Request: Improve the error message. |
Please improve the message to be actionable, see http://blog.schlomo.schapiro.org/2015/04/warning-is-waste-of-my-time.html for rationale. |
This worked for me: In your DOCKERFILE (in this one order): First: Remove cache and tmp files
Second: Update
|
Error persists on alpine 3.7 -- JUST FOUND SOLUTION -- SEE BELOW / # apk update fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz Restarted docker (running on bare metal debian 9) -- no change. Tried apk --no-cache update -- gives this different error: on bare metal debian 9 host: /root # host dl-4.alpinelinux.org but inside alpine:3.7 container: Discovered problem is DJB-DNS running on bare metal host -- it needed to be told to respond to DNS queries coming from 172.x.y.z (the docker containers): |
I'm also having this issue with 3.7, but while building docker containers:
|
So? What solution for this problem? touch /service/dnscache/root/ip/172 <----> No such file or directory |
maybe your Docker DNS not work, try "docker run" with "--dns xxx.xxx.xxx.xxx ". |
I just had this issue, what fixed it for me is running the update as:
|
This is very-very annoying. I was able to ping/download from the repos through my browser, but could not install vim neither anything because of this error:
SOLUTION that worked for me:
|
Dont use:
Because it will just ignore --no-cache and create cache files in |
Re-opening this issue. It's obviously causing a lot of headaches still. |
Where can we follow this issue? I have a headache too. Not even with docker. Just in a kvm. Same problems. |
I got the same issue . But the strange thing is running with all proxy environment did not worked. For me it got resolved when I've not running behind proxy that is without using connecting to VPN, then it allowing in plain vanila network apk update works. |
Updating to alpine 3.8 introduced some warnings during building the docker image, e.g.: 'WARNING: Ignoring APKINDEX.cd3a9dc2.tar.gz: No such file or directory' This can be fixed by running 'apk update' instead of 'apk add --update', see: gliderlabs/docker-alpine#207
Update Alpine package cache once. see gliderlabs/docker-alpine#207
Seeing the same thing:
|
* HR Content (#1346) HR Content * GA content (#1358) GA content * Delete index.html * Ro content (#1347) Ro content * open beauty facts specific strings (#1335) * Replace { "key" => $key} by { key => $key }. * Fix HTML syntax error in translations. * Suomi (fi) (#1345) Suomi (fi) * Delete open-food-hunt-2015.html * Delete index.html * lv content (#1352) lv content * Expand Open Pet Food Facts specific strings * Portuguese translations refresh * Delete index.html * Delete index.html * Delete index.html * Japanese content (#1370) Japanese content * Turkish content (#1371) Turkish content * Hebrew updates (#1369) Hebrew updates * Indonesian (#1365) * chinese-update (#1366) chinese-update * Delete index.html * Russian translations updates (#1368) * Russian translations updates Russian translations updates * Delete index.html * off specific strings (#1336) * Rename common-web.pot to obsolete.pot * Update common.pot * Update common.pot * nova config * cleanup * new welcome email, footer links * partners page * Address review comments. * Update Dockerfile Update Alpine package cache once. see gliderlabs/docker-alpine#207 * Update Dockerfiles - Ignore more directories/files. - Update Alpine package index explicitly. - Use multi-stage build for a little bit leaner backend runtime builds. - Add multi-stage build frontend image.- * Ignore some *huge* images/presentations in the misc directory. * Remove yarn.lock from .dockerignore to ensure that the Docker image is build with the correct snapshot. * Further optimize frontend Dockerfile by only copying the html directory that's being served by nginx. * Reset yarn.lock to fix core dump related to gulp. see nodejs/node#20281 * Update openproductsfacts.pot * display risk of additivs overexposure, bug #1374 * Update en.po Fix merge error. Closes #1114 Co-authored-by: Mohit Sharma <[email protected]> Signed-off-by: hangy <[email protected]> * display risk of over-exposure for additives, bug #1374 * display risk of over-exposure for additives, bug #1374 * small updates and https support for howmuchsugar.in combiendesucres.fr * update paths * Open Beauty Facts taxonomies * small fix * merge static pages for small languages * arabic static pages * add French translations in addition to current translations * add obf static pages * vietnamese (#1387) * common-many (#1389) * common files for many languages (#1388) * states taxonomy translations * Update ko.po * Update bn.po * Update eu.po * Add files via upload (#1390) * OPF fixes part 2 * Italy static refresh (#1391) * arabic static updates * Danish * Fix h2 tag * Hebrew translations * fixing CoC for ja * Add files via upload * fixes for OBF specific strings * fixes for OFF specific strings * fixes for OPFF * German common translations (#1386) * German common translations German common translations * Fix some incorrect translations and match _s/_p translations to use the same word. * Add files via upload * Add a simple Kubernetes config.s Squashed commit of the following: commit 7608cc1 Author: hangy <[email protected]> Date: Wed Sep 26 14:49:55 2018 +0200 Log the Log4Perl output to a sidecar container to make it available to Kubernetes.ton commit 3766824 Author: hangy <[email protected]> Date: Wed Sep 26 14:01:23 2018 +0200 Add init container. commit b83f6e5 Author: hangy <[email protected]> Date: Wed Sep 26 13:36:22 2018 +0200 Remove `scripts` from dockerignore. We actually need scripts like build_lang.pl to init the containers..r commit e9172e4 Author: hangy <[email protected]> Date: Wed Sep 26 12:31:34 2018 +0200 Update backend-dev to use the same copy mechanism as backend. commit 8e9aa06 Author: hangy <[email protected]> Date: Sat Sep 22 12:22:27 2018 +0200 Add Kubernetes configuration for the backend commit a771793 Author: hangy <[email protected]> Date: Fri Sep 21 16:35:41 2018 +0200 Add Kubernetes configuration for the frontend.Aadd Kubernetes configuration for the frontend. * update ingredients taxonomy, fix ingredients test * fix for allergens * Add Kubernetes config as a helm chart. Squashed commit of the following: commit b7f9f824d6d71331e25e9e188a3909a22a0c3e05 Author: hangy <[email protected]> Date: Thu Sep 27 00:03:03 2018 +0200 Set higher limit for backend liveness probes. commit 0c665519c0f830a32737b2737946f4c224d47d89 Author: hangy <[email protected]> Date: Wed Sep 26 23:46:31 2018 +0200 Fix named port in readyness/liveness check. commit 27bfc4ca8f8f0cfd69c6b3594881e0602cd0dbd5 Author: hangy <[email protected]> Date: Wed Sep 26 23:28:29 2018 +0200 Add stable/mongodb as a reference. commit 963de1279edfe5bfdefcad806da728ad8df33c67 Author: hangy <[email protected]> Date: Wed Sep 26 23:08:04 2018 +0200 Move kubernetes files to a simple Helm chart. This still needs to include MongoDB. * Add files via upload * small fixes for additives and ingredients (stopwords) * scripts to generate taxonomies, new additives_classes taxonomy with descriptions * added additives classes to additives taxonomy * update additives classes taxonomies * update obf ingredients * Squashed commit of the following: commit 002aa7cf965cd2929fb8e1a49b7f16c60975039d Author: hangy <[email protected]> Date: Sat Sep 29 10:42:15 2018 +0200 Avoid accidentally adding the charts directory to git. commit 7f474c751a5b2a9798addff4b76d6d9428b17497 Author: hangy <[email protected]> Date: Sat Sep 29 02:37:51 2018 +0200 Use full release name for PVCs. commit bbcccfbf7bbb278f5c1e8dedc24b771365c8b7dc Author: hangy <[email protected]> Date: Sat Sep 29 02:31:34 2018 +0200 Frontend does not need to write to the product images mount. * Use ESLint instead of JSHint. In comparison with JSHint, ESLint seems to be more configurable, and allows plugins to be used. * Update backend dockerfile * new structured data for overexposure risk + fix for e-numbers with a letter * Apply suggestions from 40524a5 to other Dockerfiles. * added Kosovo * Use full K8S/helm generated backend service name. * add wikipedia abstracts in additives taxonomy * new structured data for overexposure risk + fix for e-numbers with a letter * new structured data for overexposure risk + fix for e-numbers with a letter * Ignore `.vstags` * fixing unescaped url * generate 2 json files for taxonomies, with or without wikipedia abstracts * put back stopwords in additives taxonomy * add .editorconfig * allow to undeleted products * add automatic generation of table of contents for texts * guide for producers * make sure English is listed first * updates to labels and ingredients taxonomies * Update common.pot * Update az.po * Update bg.po * Update bn.po * Update ca.po * Update cs.po * Update ar.po * update tags * Update fr.po * update paths * Use a static file for nginx' live/ready check. * Fix MongoDB host for Helm. * Add files via upload (#1421) * Fixes #856: Remove s from aperçus (#1420) * Remove s from aperçus * Remove s from aperçus * fix typo * translation merging * obf merge * more translation merges * Not translate footer links * Fix travis vi lang test Not translate footer links. Just translate footer labels. * Fix travis by following Perl::Critic policy check Perl::Critic encoding policy requires ":encoding(UTF-8)" cf. https://metacpan.org/pod/release/ELLIOTJS/Perl-Critic-1.116/lib/Perl/Critic/Policy/InputOutput/RequireEncodingWithUTF8Layer.pm * Fix travis by following Perl::Critic policy check Perl::Critic encoding policy requires ":encoding(UTF-8)" cf. https://metacpan.org/pod/release/ELLIOTJS/Perl-Critic-1.116/lib/Perl/Critic/Policy/InputOutput/RequireEncodingWithUTF8Layer.pm * Fix contribute and discover links * update according to goot pratices * Update vi.po * Update vi.po * Update de.po * add missing files * refresh states * commit changes to faq * fix opf * opff fixes * fix obf * fix off * merge static files * add common for s languages will break links * more common files * add t files * fix perl warnings * Add files via upload * add producer page for translations * Delete .DS_Store * Add files via upload * fix stats headers in nutrition tables, add nutriscore * update the categories taxonomy * add producer pages * aucun changement * merge more langs * Update sl.po * Add files via upload * merge * Remove manual CSRF token checks. * Use SameSite=Lax for CSRF defense. * Use up-to-date DateTime module instead of DateTime::Format::CLDR for datetime formatting. * Remove apparently unused DateTime::Format::Mail module. * Generate 'months' and 'weekdays' translations using the DateTime::Locale module. * Update unit tests - Months tests needs to match the content-wise equivalent JSON:PP output, - Weekdays should probably be tested.A * Fix display_date_tag. * Make memcached server address configurable. * hebrew updates * New translations common.pot (Hebrew) * New translations open-food-hunt-2015.html (Hebrew) * New translations producers.html (Hebrew) * new admin * fix permissions back to 644 * Divide percentage by 100.0 to avoid display issues. * Include bower_components in the Docker context, so that it can be added to the HTML directory. * Until #666 is fixed, we need to pin MongoDB to <2.0. Deprecated methods like MongoDB::Cursor::count were removed in 2.0 and thus caused the following error if a more recent MongoDB was installed. Can't locate object method "count" via package "MongoDB::Cursor" at /opt/product-opener/lib/ProductOpener/Display.pm line 3159. * Fix locale existence check. * Copy @bower_components from the builder stage. * Remove livenessProbe and readinessProbe for the backend. * Update crowdin.yml * new tests for additives and ingredients * clean ingredients list and remove nutrition facts from them, bug #1433 * clean ingredients list and remove nutrition facts from them, bug #1433 * Update .editorconfig * more ingredients list cleaning, bug #1433 * Update Ingredients.pm * Update Ingredients.pm * Update Ingredients.pm * added 2 labels * overflow tag list #246 * new after ingredients strings * remove useless slash in HTML5 * remove extra % signs, call decimal formatter for all places in the nutrition table * fixes to the English producer page * Update producers.html * Delete obsolete.pot * Update Crowdin configuration file * allow multiple spaces * Italian logo * Italian logo * Vi and it * support for Italy * Add files via upload * NOVA * rename Vietnamese text * added a donation top banner * rename Vietnamese text * fix * fixes * New translations nova-groups-for-food-processing.html (Spanish) (#1447)
is there any other solutions? my alpine is 3.8 |
I don't htink this has anything to do with alpine or anything inside the container, it's simply a docker network problem. You can check it with |
For me it was an issue with Docker and DNS config, therefore "ping 8.8.8.8" worked fine while "ping dl-cdn.alpinelinux.org" did not. I solved it by copying a docker config specific to our company intranet, but something generic like this could work for others |
For anyone still struggling with this, I fixed this by having a VPN turned on whilst building the Docker image. No idea why it worked, apologies. |
so these are the ideas, that came up so far...
sadly this didn't do the trick for me :( |
This command is not work.
But, this command is work.
|
Insert in Dockerfile next string: RUN rm -rf /var/cache/apk/* && RUN apk update Next restart docker And next run build docker image. |
thing that work for me 'docker build --network=host .' |
|
This forces docker to use the host network to resolve DNS requests? |
@kotauchisunsun and @lexyan solution using TL; DRdocker build --network=host . TS; DRI noticed that the CDN itself isn't the issue because downloading directly from the host succeeds. $ # fail to fetch from CDN. Here it seems that CDN is down.
$ docker build -t sample .
...
Step 4/18 : RUN apk add --no-cache --update ca-certificates curl ffmpeg git make rtmpdump tzdata
---> Running in 97d093634b58
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armhf/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armhf/APKINDEX.tar.gz: IO ERROR
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armhf/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armhf/APKINDEX.tar.gz: IO ERROR
ERROR: unsatisfiable constraints:
curl (missing):
⋮
tzdata (missing):
required by: world[tzdata]
The command '/bin/sh -c apk add --no-cache --update ca-certificates curl ffmpeg git make rtmpdump tzdata' returned a non-zero code: 6 $ # but direct download from the host, CDN seems working
$ curl -O http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armhf/APKINDEX.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 731k 100 731k 0 0 1879k 0 --:--:-- --:--:-- --:--:-- 1879k $ # Re-try using host's network
$ docker build -t sample --network=host .
...
Step 4/18 : RUN apk add --no-cache --update ca-certificates curl ffmpeg git make rtmpdump tzdata
---> Running in 82abec1ef8e5
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armhf/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armhf/APKINDEX.tar.gz
(1/55) Installing nghttp2-libs (1.39.2-r0)
(2/55) Installing libcurl (7.66.0-r0)
(3/55) Installing curl (7.66.0-r0)
(4/55) Installing sdl2 (2.0.10-r0)
...
$ # 🎉 So, maybe somehow the MTU might differ between the host's network and Docker network, I assume.
|
As far i'm concerned, I even tried this one https://github.com/gliderlabs/docker-alpine/issues/509 and it did'nt work till I even restart my pc. Finally, I changed the network (wifi from library) i was logged to my personal smartphone and it fixed it |
good |
I finally solved it. I just turned on VPN. |
I used and then, if you have a docker-compose.yaml file. Regards! |
I got the same error when I run
when I build the image, I got this error:
I'm using windows 10 and I'm connecting on VPN made by the company. |
Maybe fix your DNS? |
I faced this issue today and it was caused by conflicting firewall rules added by firewalld.
And the error was gone. Environment: Fedora 33 Beta, Docker CE 19.03.13 |
I found this, and it's solves the issue without killing the firewalld
|
"--network=host" option worked for me |
|
For me it was because of EOF conversion from Windows (notepad++) to Unix (LF) Always edit file via Unix editor first |
This error happened to me because I had removed the docker's default bridge network in /etc/docker/daemon.json.
And choose a default subnet that is not used or resolved in your network. |
|
Another quick and dirty solution for avoid this 2-2 problem (chicken & egg) if you are using a corporate proxy, and building in local, it is change https to http in url repositories, so the fetch will work for ca-certificates and later you can update (note that this is more insecure since you are using http instead https, this is because a "dirty" workaround).
|
this |
If you are working in a closed environment using a Dockerfile, the following will make it stop trying to reach the internet which it can never reach: RUN mv /etc/apk/repositories /etc/apk/repositories.disabled Then your offline docker compose install will speed through all the "apk add" commands to install all of the Alpine packages 📦 into your Docker Container. |
I see a few issues related to this but they're all making it more complex to replicate.
Just running the following gets the WARNING.
Start from a "blank" host (no images loaded, no containers running)
output:
Tested on both VMware Fusion and Docker4mac.
I also get the same WARNING using alpine:3.3
The text was updated successfully, but these errors were encountered: