2
votes

I followed this tutorial step by step : https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-c-module

But at the step "Build and Push your solution" (https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-c-module#build-and-push-your-solution) I have the following error in the terminal :

standard_init_linux.go:207: exec user process caused "no such file or directory"

I check the 3 points listed on the tutorials ("If you receive an error trying to build and push your module") but I still have the error.

I don't even know what file it is about..

Do someone have an idea of the problem ?

Thanks

EDIT

I add all the terminal output :

Sending build context to Docker daemon    106kB
Step 1/14 : FROM arm32v7/ubuntu:xenial AS base
 ---> 8593318db04f
Step 2/14 : RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common && add-apt-repository -y ppa:aziotsdklinux/ppa-azureiot && apt-get update && apt-get install -y azure-iot-sdk-c-dev && rm -rf /var/lib/apt/lists/*
 ---> Running in 8bed4f396527
standard_init_linux.go:207: exec user process caused "no such file or directory"
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends software-properties-common && add-apt-repository -y ppa:aziotsdklinux/ppa-azureiot && apt-get update && apt-get install -y azure-iot-sdk-c-dev && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1
2
When you use the command docker login in your code, are you sure the parameters that you put are all right?Charles Xu
Yes I'm sure, the result is Login SucceedediAmoric

2 Answers

2
votes

Looks like one of the paths in your command cannot be found in the intermediate docker image. Try running a shell directly on the intermediate image using:

docker run -it --entrypoint sh 8593318db04f

to check /var/lib/apt/lists/ and /bin/sh are actually present on the image. You should be able to manually run the command specified in your docker file.

I have found that quite helpful in debugging failing docker builds.

0
votes

It seems you are building arm32v7 image, so what os is your host machine? Can you try to build the amd64 image instead of arm32v7?