Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

New Release setup failed due to file does not exist #1

Open
darren-teoh opened this issue Oct 13, 2021 · 3 comments
Open

New Release setup failed due to file does not exist #1

darren-teoh opened this issue Oct 13, 2021 · 3 comments

Comments

@darren-teoh
Copy link

Kindly refer to builder.log attached,
builder.log

Step 5/12 : COPY files/conf/ /opt/core/conf/
COPY failed: file not found in build context or excluded by .dockerignore: stat files/conf/: file does not exist

Steps:

  1. Follow installation steps from Smart Edge Open (v21.09) Developer Experience Kits
  2. Build and Run the Provisioning Services will failed due to error above.
    Screenshot from 2021-10-11 15-15-38
@kapil23105
Copy link

kapil23105 commented Oct 29, 2021

We have looked into the log file and it seems to be an issue with the proxy. We would suggest you to confirm if you had set the proxy correctly and proceed and let us know if you continue to face the issue.

Also we would suggest you to set the proxy for docker and also set gitproxy .

for setting up gitproxy -

git config –global http.proxy http://10.224.224.80:911

For setting up docker proxy - you can take reference from below mentioned link-

https://www.serverlab.ca/tutorials/containers/docker/how-to-set-the-proxy-for-docker-on-ubuntu/
https://docs.docker.com/network/proxy/

@darren-teoh
Copy link
Author

Thanks for your help. I suppose this is "git config –global http.proxy ". But I have set the proxy from "inventory/default/group_vars/all/10-default.yml", proxy_env[http_proxy]. Could we improve the setup script to cover this part? or state in user guide for docker proxy if this is a necessary step.

@inteltiger
Copy link

@darren-teoh your log shows:

fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: network error (check Internet connection and firewall)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: network error (check Internet connection and firewall)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: No such file or directory

the root cause is alpine 3.13 and above uses https://dl-cdn.alpinelinux.org as default repo url. but the apk command cannot work behind "our" company proxy. (it leads to fetch ERROR shown above)

meanwhile alpine 3.12 uses http://dl-cdn.alpinelinux.org (NOT https) as default repo url, it works well with the company proxy.

gliderlabs/docker-alpine#184 described this alpine change issue.

So

workaround idea 1: use alpine 3.12 instead of 3.14
https://github.com/intel/Edge-Software-Provisioner/blob/master/build.sh#L280 # try change alpine to alpine:3.12
but you may have to change the following line too
https://github.com/intel/Edge-Software-Provisioner/blob/master/build.sh#L296

workaround idea 2: modify the alpine docker image /etc/apk/repositories file, change https to http, and save the image as alpine:latest, and retry. i didn't really fully verified it.

workaround idea 3: use an alpine mirror download site that seems more friendly to apk + company proxy. i found such a china mirror site, i made a patch here, and verified:
inteltiger/Edge-Software-Provisioner@e536ebd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants