Skip to content
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

Error on build the package #13

Closed
tropicar opened this issue Mar 11, 2022 · 2 comments
Closed

Error on build the package #13

tropicar opened this issue Mar 11, 2022 · 2 comments

Comments

@tropicar
Copy link
Collaborator

tropicar commented Mar 11, 2022

Using the dappnodesdk, I try to build the package dappnodesdk build and I see these errors.

 ❯ Build architecture linux/amd64
    ✖ Build docker image
      → error: failed to solve: executor failed running [/bin/sh -c git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth]: ex
Error: Command failed: docker buildx bake --progress plain --load --file docker-compose.yml --set=*.platform=linux/amd64
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#5 [auth] library/alpine:pull token for registry-1.docker.io
#5 DONE 0.0s

#6 [auth] library/golang:pull token for registry-1.docker.io
#6 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15-alpine
#4 DONE 1.5s

#3 [internal] load metadata for docker.io/library/alpine:latest
#3 DONE 1.5s

#9 [builder 1/3] FROM docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264
#9 resolve docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 0.0s done
#9 DONE 0.0s

#10 [builder 2/3] RUN apk add --no-cache make gcc musl-dev linux-headers git bash
#10 CACHED

#7 [stage-1 1/3] FROM docker.io/library/alpine:latest@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
#7 resolve docker.io/library/alpine:latest@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300 0.0s done
#7 DONE 0.0s

#8 [stage-1 2/3] RUN apk add --no-cache ca-certificates
#8 CACHED

#11 [builder 3/3] RUN git clone -b v1.12.6 https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth
#11 0.098 Cloning into 'core-geth'...
#11 99.58 Note: switching to '20d20d72dcfd7299f474862c6deb3e7fb0819983'.
#11 99.58 
#11 99.58 You are in 'detached HEAD' state. You can look around, make experimental
#11 99.58 changes and commit them, and you can discard any commits you make in this
#11 99.58 state without impacting any branches by switching back to a branch.
#11 99.58 
#11 99.58 If you want to create a new branch to retain commits you create, you may
#11 99.58 do so (now or later) by using -c with the switch command. Example:
#11 99.58 
#11 99.58   git switch -c <new-branch-name>
#11 99.58 
#11 99.58 Or undo this operation with:
#11 99.58 
#11 99.58   git switch -
#11 99.58 
#11 99.58 Turn off this advice by setting config variable advice.detachedHead to false
#11 99.58 
#11 100.0 make: dirname: Operation not permitted
#11 100.0 env GO111MODULE=on go run build/ci.go install ./cmd/geth
#11 100.0 make: env: Operation not permitted
#11 100.0 make: *** [Makefile:13: geth] Error 127
#11 ERROR: executor failed running [/bin/sh -c git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth]: exit code: 2
------
 > [builder 3/3] RUN git clone -b v1.12.6 https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth:
#11 99.58 Or undo this operation with:
#11 99.58 
#11 99.58   git switch -
#11 99.58 
#11 99.58 Turn off this advice by setting config variable advice.detachedHead to false
#11 99.58 
#11 100.0 make: dirname: Operation not permitted
#11 100.0 env GO111MODULE=on go run build/ci.go install ./cmd/geth
#11 100.0 make: env: Operation not permitted
#11 100.0 make: *** [Makefile:13: geth] Error 127
------
Dockerfile:8
--------------------
   7 |     
   8 | >>> RUN git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git && \
   9 | >>>     cd core-geth && make geth
  10 |     
--------------------
error: failed to solve: executor failed running [/bin/sh -c git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth]: exit code: 2

stdout: 
stderr: #1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 32B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#5 [auth] library/alpine:pull token for registry-1.docker.io
#5 DONE 0.0s

#6 [auth] library/golang:pull token for registry-1.docker.io
#6 DONE 0.0s

#4 [internal] load metadata for docker.io/library/golang:1.15-alpine
#4 DONE 1.5s

#3 [internal] load metadata for docker.io/library/alpine:latest
#3 DONE 1.5s

#9 [builder 1/3] FROM docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264
#9 resolve docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 0.0s done
#9 DONE 0.0s

#10 [builder 2/3] RUN apk add --no-cache make gcc musl-dev linux-headers git bash
#10 CACHED

#7 [stage-1 1/3] FROM docker.io/library/alpine:latest@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
#7 resolve docker.io/library/alpine:latest@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300 0.0s done
#7 DONE 0.0s

#8 [stage-1 2/3] RUN apk add --no-cache ca-certificates
#8 CACHED

#11 [builder 3/3] RUN git clone -b v1.12.6 https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth
#11 0.098 Cloning into 'core-geth'...
#11 99.58 Note: switching to '20d20d72dcfd7299f474862c6deb3e7fb0819983'.
#11 99.58 
#11 99.58 You are in 'detached HEAD' state. You can look around, make experimental
#11 99.58 changes and commit them, and you can discard any commits you make in this
#11 99.58 state without impacting any branches by switching back to a branch.
#11 99.58 
#11 99.58 If you want to create a new branch to retain commits you create, you may
#11 99.58 do so (now or later) by using -c with the switch command. Example:
#11 99.58 
#11 99.58   git switch -c <new-branch-name>
#11 99.58 
#11 99.58 Or undo this operation with:
#11 99.58 
#11 99.58   git switch -
#11 99.58 
#11 99.58 Turn off this advice by setting config variable advice.detachedHead to false
#11 99.58 
#11 100.0 make: dirname: Operation not permitted
#11 100.0 env GO111MODULE=on go run build/ci.go install ./cmd/geth
#11 100.0 make: env: Operation not permitted
#11 100.0 make: *** [Makefile:13: geth] Error 127
#11 ERROR: executor failed running [/bin/sh -c git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth]: exit code: 2
------
 > [builder 3/3] RUN git clone -b v1.12.6 https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth:
#11 99.58 Or undo this operation with:
#11 99.58 
#11 99.58   git switch -
#11 99.58 
#11 99.58 Turn off this advice by setting config variable advice.detachedHead to false
#11 99.58 
#11 100.0 make: dirname: Operation not permitted
#11 100.0 env GO111MODULE=on go run build/ci.go install ./cmd/geth
#11 100.0 make: env: Operation not permitted
#11 100.0 make: *** [Makefile:13: geth] Error 127
------
Dockerfile:8
--------------------
   7 |     
   8 | >>> RUN git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git && \
   9 | >>>     cd core-geth && make geth
  10 |     
--------------------
error: failed to solve: executor failed running [/bin/sh -c git clone -b ${UPSTREAM_VERSION} https://github.com/etclabscore/core-geth.git &&     cd core-geth && make geth]: exit code: 2

    at /home/tropicar/.nvm/versions/node/v15.7.0/lib/node_modules/@dappnode/dappnodesdk/src/utils/shell.ts:42:16
    at ChildProcess.exithandler (node:child_process:340:5)
    at ChildProcess.emit (node:events:379:20)
    at maybeClose (node:internal/child_process:1069:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:300:5)

Maybe the package requires a refactor as we need for nethermind or only some changes,

@tropicar
Copy link
Collaborator Author

Even after adding the variables required for the github actions(#12), the error persists.
I found this thread where they talk about a very similar error https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396, but my docker version is OK and I tested with the golang:1.16-alpine3.15 instead and it does not work. (I tested with this alpine version because the threat says that using an alpine version >= 3.14 the error would be solved)

@tropicar
Copy link
Collaborator Author

It's required a refactor of the dockerfile, in the geth ethereum classic repo there is no branch with the name of the current version.

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

No branches or pull requests

2 participants