简体   繁体   English

警告:忽略 http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory

[英]WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory

I configured deis workflow in aws eks cluster.我在 aws eks 集群中配置了 deis 工作流程。 after that created deis apps and deployed in deis local repository by,之后创建 deis 应用程序并部署在 deis 本地存储库中,

git push test test:master

when deploying, docker file is executed.部署时,执行 docker 文件。 here is my docker file这是我的 docker 文件

FROM mhart/alpine-node:12
#FROM ubuntu:18.04

ARG SOURCE_VERSION=na
ENV SOURCE_VERSION=$SOURCE_VERSION

RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/v3.9  --update bash && rm -rf /var/cache/apk/*
#apt-get update &&\
#apt-get install -y make gcc wget
WORKDIR /app
ADD . .

RUN npm install
EXPOSE 3200

CMD ["node", "app.js"]

this results error like,这会导致错误,例如,

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: temporary error (try again later)

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main: No such file or directory

ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/community: temporary error (try again later)

WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community: No such file or directory
ERROR: unable to select packages:
  bash (no such package):
    required by: world[bash]

The command '/bin/sh -c apk add --update bash && rm -rf /var/cache/apk/*' returned a non-zero code: 1

remote: 2021-11-15 13:30:22.569253 I | Error running git receive hook [Build pod exited with code 1, stopping build]

To ssh://deis-builder.app-test.paceup.io:2222/pu-api-gateway.git
 ! [remote rejected] test -> master (pre-receive hook declined)

error: failed to push some refs to 'ssh://git@deis-builder.app-test.paceup.io:2222/pu-api-gateway.git' 

I am totally new to docker, deis and eks.我对 docker、deis 和 eks 完全陌生。 if anyone can help it would be grateful如果有人可以提供帮助,将不胜感激

Finally found the answer is that we have configured nodegroup setup in amazon linux which didn't support this deployment.最后找到答案是我们在amazon linux中配置了nodegroup setup,不支持这种部署。 we changed the nodegroup for eks optimized ubuntu and deployed the app using docker and working fine.我们为 eks 优化的 ubuntu 更改了节点组,并使用 docker 部署了应用程序并且工作正常。

I had this problem when my machine had many symptoms of a.network configuration problem:当我的机器有很多网络配置问题的症状时,我遇到了这个问题:

  • A Dockerfile that had to download zip files from the.net could not do this anymore and threw the warning in question which stopped the build.必须从 .net 下载 zip 文件的 Dockerfile 无法再执行此操作并抛出停止构建的相关警告。 I could download the zip files when entering the URL:s in the browser instead, it was a problem of the container.我在浏览器输入URL:s却能下载到zip文件,是容器的问题。 I checked the same Dockerfile on another healthy machine and the build ran through.我在另一台运行良好的机器上检查了相同的 Dockerfile 并且构建运行通过。
  • I had lost the connection to the internal dns server.我失去了与内部 dns 服务器的连接。 I could not ping another machine by its name anymore, but had to use its internal IP, although the day before, the ping had worked.我无法再通过其名称 ping 另一台机器,但不得不使用其内部 IP,尽管前一天 ping 成功了。
  • I could see any GCP project items only in Firefox incognito mode.我只能在 Firefox 隐身模式下看到任何 GCP 项目项。

Answer insofar is: change the machine and test whether it does not work only on your machine.答案是:换机测试是否只在你的机器上不行。 If that is true, the workaround is already done.如果是这样,则解决方法已经完成。 As the next step, try to fix any other.network problems, and it is likely that this will get rid of the warning.下一步,尝试修复任何其他网络问题,这很可能会消除警告。

UPDATE: The problem was a running container that gave my machine its own.network.更新:问题是一个正在运行的容器,它为我的机器提供了自己的网络。 When I ran docker-compose down , the.network worked again.当我运行docker-compose down ,.network 再次工作。 When I removed the.network from the docker-compose file, the download from inside the container worked again, the warning in question was gone.当我从 docker-compose 文件中删除 .network 时,容器内部的下载再次运行,相关警告消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM