erigon
erigon copied to clipboard
make docker fails
Expected behaviour
it will compile and work as expected
Actual behaviour
Steps to reproduce the behaviour
- Download the latest release
- wget https://github.com/ledgerwatch/erigon/archive/refs/tags/v2022.07.04.tar.gz
- untar it
tar -xf erigon-2022.06.01.tar.gz
- get into the docker and make it
cd erigon-2022.06.01
make docker
error:
Not a git repository
make: *** [Makefile:148: git-submodules] Error 1
if I make it a git repo by initializing it:
git init
the error is a bit different:
make docker <aws:gemini>
Updating git submodules
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: No names found, cannot describe anything.
DOCKER_BUILDKIT=1 docker build -t thorax/erigon:latest \
--build-arg "BUILD_DATE=2022-08-02T18:05:05-04:00" \
--build-arg VCS_REF= \
--build-arg VERSION= \
--no-cache \
\
.
[+] Building 33.5s (14/19)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.34kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 116B 0.0s
=> resolve image config for docker.io/docker/dockerfile:1.2 0.2s
=> CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc 0.0s
=> [internal] load metadata for docker.io/library/alpine:3.15 0.5s
=> [internal] load metadata for docker.io/library/golang:1.18-alpine3.15 0.5s
=> [internal] load build context 0.7s
=> => transferring context: 164.53MB 0.7s
=> [stage-1 1/7] FROM docker.io/library/alpine:3.15@sha256:0483110c51a764abe175a8cefb941541ca0bc0f628ce418d3a660338abf4622a 0.4s
=> => resolve docker.io/library/alpine:3.15@sha256:0483110c51a764abe175a8cefb941541ca0bc0f628ce418d3a660338abf4622a 0.0s
=> => sha256:0483110c51a764abe175a8cefb941541ca0bc0f628ce418d3a660338abf4622a 1.64kB / 1.64kB 0.0s
=> => sha256:26284c09912acfc5497b462c5da8a2cd14e01b4f3ffa876596f5289dd8eab7f2 528B / 528B 0.0s
=> => sha256:2720e26172a023c7245fd2d59f06452cb3743e3c5a26dd102c6a2294e473cdcd 1.47kB / 1.47kB 0.0s
=> => sha256:ab6db1bc80d0a6df92d04c3fad44b9443642fbc85878023bc8c011763fe44524 2.81MB / 2.81MB 0.3s
=> => extracting sha256:ab6db1bc80d0a6df92d04c3fad44b9443642fbc85878023bc8c011763fe44524 32.3s
=> [builder 1/5] FROM docker.io/library/golang:1.18-alpine3.15@sha256:78b5a84920f206296efda741b40b4c8c751f7e5a1c6b94768b04d1f223c2d9f5 6.7s
=> => resolve docker.io/library/golang:1.18-alpine3.15@sha256:78b5a84920f206296efda741b40b4c8c751f7e5a1c6b94768b04d1f223c2d9f5 0.0s
=> => sha256:bb9e184f431efccd7373ffe5f2df3fc36ca89d37767c5b2394ccbc8249360d78 5.24kB / 5.24kB 0.0s
=> => sha256:ab6db1bc80d0a6df92d04c3fad44b9443642fbc85878023bc8c011763fe44524 2.81MB / 2.81MB 0.3s
=> => sha256:485d0e322d2fc55206c26a4ff5df418e63d6d9f864e0ad9330971ac561710139 0B / 271.96kB 32.6s
=> => sha256:1ba77e7931435dff272de53d0f62d270112ea23b63680d78fbe961ae8265e42f 0B / 154B 32.6s
=> => sha256:78b5a84920f206296efda741b40b4c8c751f7e5a1c6b94768b04d1f223c2d9f5 1.65kB / 1.65kB 0.0s
=> => sha256:03b5f7d5c9959f22ca3420d64b402e174b232d34932b71e1b2fd5ec1b9407f95 1.36kB / 1.36kB 0.0s
=> => extracting sha256:ab6db1bc80d0a6df92d04c3fad44b9443642fbc85878023bc8c011763fe44524 0.1s
=> => sha256:56fd1427c2f1f8671c7b9c7e7daf0bf3123d77125955038c55ba2f74f800ea2f 115.31MB / 115.31MB 4.7s
=> => extracting sha256:485d0e322d2fc55206c26a4ff5df418e63d6d9f864e0ad9330971ac561710139 0.0s
=> => extracting sha256:1ba77e7931435dff272de53d0f62d270112ea23b63680d78fbe961ae8265e42f 0.0s
=> => extracting sha256:56fd1427c2f1f8671c7b9c7e7daf0bf3123d77125955038c55ba2f74f800ea2f 1.8s
=> => extracting sha256:105763d390fdb42aba38d15458a5a2e3707194a63088803de35ac6c29dc3103a 0.0s
=> [stage-1 2/7] RUN apk add --no-cache ca-certificates libstdc++ tzdata 5.8s
=> [builder 2/5] RUN apk --no-cache add build-base linux-headers git bash ca-certificates libstdc++ 13.0s
=> [builder 3/5] WORKDIR /app 0.0s
=> [builder 4/5] ADD . . 0.3s
=> ERROR [builder 5/5] RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/tmp/go-build --mount=type=cache,target=/go/pkg/mod make all db-tools 12.7s
------
> [builder 5/5] RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/tmp/go-build --mount=type=cache,target=/go/pkg/mod make all db-tools:
#14 0.295 Updating git submodules
#14 0.313 fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
#14 0.313 Use '--' to separate paths from revisions, like this:
#14 0.313 'git <command> [<revision>...] -- [<file>...]'
#14 0.313 fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
#14 0.313 Use '--' to separate paths from revisions, like this:
#14 0.313 'git <command> [<revision>...] -- [<file>...]'
#14 0.314 fatal: No names found, cannot describe anything.
#14 0.314 Building erigon
#14 0.318 go: downloading github.com/ledgerwatch/erigon-lib v0.0.0-20220605213234-a77e6425eb24
#14 0.318 go: downloading github.com/urfave/cli v1.22.8
#14 0.318 go: downloading github.com/ledgerwatch/log/v3 v3.4.1
#14 0.318 go: downloading github.com/c2h5oh/datasize v0.0.0-20200825124411-48ed595a09d2
#14 0.319 go: downloading github.com/spf13/pflag v1.0.5
#14 0.456 go: downloading github.com/holiman/uint256 v1.2.0
#14 0.739 go: downloading github.com/anacrolix/log v0.13.1
#14 0.740 go: downloading github.com/spf13/cobra v1.4.0
#14 0.741 go: downloading github.com/gofrs/flock v0.8.1
#14 0.741 go: downloading github.com/rs/cors v1.8.2
#14 0.745 go: downloading google.golang.org/grpc v1.46.2
#14 0.745 go: downloading google.golang.org/protobuf v1.28.0
#14 0.748 go: downloading golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122
#14 0.768 go: downloading github.com/go-stack/stack v1.8.1
#14 0.768 go: downloading github.com/mattn/go-colorable v0.1.11
#14 0.774 go: downloading github.com/mattn/go-isatty v0.0.14
#14 1.008 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.1
#14 1.009 go: downloading github.com/torquem-ch/mdbx-go v0.24.2
#14 1.009 go: downloading go.uber.org/atomic v1.9.0
#14 1.009 go: downloading golang.org/x/exp v0.0.0-20220428152302-39d4317da171
#14 1.107 go: downloading github.com/VictoriaMetrics/metrics v1.18.1
#14 1.111 go: downloading github.com/google/btree v1.0.1
#14 1.135 go: downloading github.com/flanglet/kanzi-go v1.9.1-0.20211212184056-72dda96261ee
#14 1.143 go: downloading golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6
#14 1.153 go: downloading github.com/ledgerwatch/secp256k1 v1.0.0
#14 1.154 go: downloading github.com/ugorji/go/codec v1.1.13
#14 1.176 go: downloading github.com/valyala/fastjson v1.6.3
#14 1.190 go: downloading github.com/anacrolix/go-libutp v1.2.0
#14 1.203 go: downloading github.com/anacrolix/torrent v1.43.1
#14 1.211 go: downloading golang.org/x/time v0.0.0-20220411224347-583f2d630306
#14 1.212 go: downloading github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
#14 1.293 go: downloading github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
#14 1.304 go: downloading github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea
#14 1.329 go: downloading github.com/edsrzf/mmap-go v1.0.0
#14 1.329 go: downloading github.com/goccy/go-json v0.9.7
#14 1.348 go: downloading github.com/huin/goupnp v1.0.3
#14 1.377 go: downloading github.com/jackpal/go-nat-pmp v1.0.2
#14 1.379 go: downloading github.com/pion/stun v0.3.5
#14 1.395 go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
#14 1.396 go: downloading github.com/golang-jwt/jwt/v4 v4.3.0
#14 1.396 go: downloading github.com/gorilla/websocket v1.5.0
#14 1.399 go: downloading github.com/json-iterator/go v1.1.12
#14 1.425 go: downloading github.com/xsleonard/go-merkle v1.1.0
#14 1.425 go: downloading github.com/RoaringBitmap/roaring v1.1.0
#14 1.428 go: downloading github.com/davecgh/go-spew v1.1.1
#14 1.430 go: downloading github.com/stretchr/testify v1.7.1
#14 1.434 go: downloading github.com/emicklei/dot v0.16.0
#14 1.442 go: downloading github.com/russross/blackfriday/v2 v2.1.0
#14 1.450 go: downloading github.com/valyala/histogram v1.2.0
#14 1.457 go: downloading github.com/pelletier/go-toml/v2 v2.0.1
#14 1.462 go: downloading github.com/spaolacci/murmur3 v1.1.0
#14 1.464 go: downloading github.com/emirpasic/gods v1.18.1
#14 1.469 go: downloading github.com/VictoriaMetrics/fastcache v1.10.0
#14 1.473 go: downloading github.com/golang/protobuf v1.5.2
#14 1.477 go: downloading golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4
#14 1.555 go: downloading github.com/anacrolix/missinggo v1.3.0
#14 1.597 go: downloading github.com/pelletier/go-toml v1.9.5
#14 1.597 go: downloading github.com/anacrolix/mmsg v1.0.0
#14 1.600 go: downloading github.com/anacrolix/sync v0.4.0
#14 1.632 go: downloading github.com/golang/snappy v0.0.4
#14 1.636 go: downloading google.golang.org/genproto v0.0.0-20200825200019-8632dd797987
#14 1.644 go: downloading github.com/anacrolix/missinggo/v2 v2.7.0
#14 1.685 go: downloading github.com/anacrolix/chansync v0.3.0
#14 1.711 go: downloading github.com/anacrolix/dht/v2 v2.16.2-0.20220311024416-dd658f18fd51
#14 1.759 go: downloading github.com/anacrolix/generics v0.0.0-20220510042907-b50562b436ec
#14 1.904 go: downloading github.com/anacrolix/missinggo/perf v1.0.0
#14 1.914 go: downloading github.com/anacrolix/multiless v0.2.1-0.20211218050420-533661eef5dc
#14 1.914 go: downloading github.com/anacrolix/upnp v0.1.3-0.20220123035249-922794e51c96
#14 1.914 go: downloading github.com/bahlo/generic-list-go v0.2.0
#14 1.933 go: downloading github.com/dustin/go-humanize v1.0.0
#14 1.941 go: downloading github.com/lispad/go-generics-tools v1.0.0
#14 1.941 go: downloading github.com/pion/datachannel v1.5.2
#14 1.962 go: downloading github.com/pion/webrtc/v3 v3.1.24-0.20220208053747-94262c1b2b38
#14 1.979 go: downloading github.com/pkg/errors v0.9.1
#14 2.006 go: downloading github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48
#14 2.013 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
#14 2.035 go: downloading github.com/modern-go/reflect2 v1.0.2
#14 2.049 go: downloading github.com/tendermint/go-amino v0.14.1
#14 2.201 go: downloading github.com/tendermint/tendermint v0.31.11
#14 3.298 go: downloading github.com/pmezard/go-difflib v1.0.0
#14 3.298 go: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
#14 3.298 go: downloading github.com/valyala/fastrand v1.1.0
#14 3.299 go: downloading github.com/cespare/xxhash/v2 v2.1.2
#14 3.330 go: downloading github.com/huandu/xstrings v1.3.2
#14 3.380 go: downloading github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8
#14 3.383 go: downloading github.com/anacrolix/envpprof v1.2.1
#14 3.394 go: downloading github.com/rs/dnscache v0.0.0-20210201191234-295bba877686
#14 3.402 go: downloading github.com/ajwerner/btree v0.0.0-20211221152037-f427b3e689c0
#14 3.406 go: downloading github.com/tidwall/btree v0.7.2-0.20211211132910-4215444137fc
#14 3.411 go: downloading github.com/pion/logging v0.2.2
#14 3.414 go: downloading github.com/pion/sctp v1.8.2
#14 3.437 go: downloading github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91
#14 3.438 go: downloading golang.org/x/text v0.3.7
#14 4.395 go: downloading github.com/pion/dtls/v2 v2.1.2
#14 4.898 go: downloading github.com/pion/ice/v2 v2.1.20
#14 4.983 go: downloading github.com/pion/interceptor v0.1.7
#14 5.048 go: downloading github.com/pion/randutil v0.1.0
#14 5.076 go: downloading github.com/pion/rtcp v1.2.9
#14 5.113 go: downloading github.com/pion/rtp v1.7.4
#14 5.260 go: downloading github.com/pion/sdp/v3 v3.0.4
#14 5.293 go: downloading github.com/pion/srtp/v2 v2.0.5
#14 5.293 go: downloading github.com/pion/transport v0.13.0
#14 5.294 go: downloading github.com/gogo/protobuf v1.3.2
#14 5.391 go: downloading github.com/benbjohnson/immutable v0.3.0
#14 5.392 go: downloading github.com/go-sourcemap/sourcemap v2.1.3+incompatible
#14 5.426 go: downloading github.com/pion/udp v0.1.1
#14 5.688 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
#14 5.689 go: downloading github.com/google/uuid v1.3.0
#14 5.690 go: downloading github.com/pion/mdns v0.0.5
#14 5.723 go: downloading github.com/pion/turn/v2 v2.0.6
#14 5.727 go: downloading github.com/btcsuite/btcd v0.22.0-beta
#14 5.727 go: downloading github.com/go-kit/kit v0.10.0
#14 5.993 go: downloading github.com/go-logfmt/logfmt v0.5.0
#14 5.993 go: downloading github.com/anacrolix/stm v0.3.0
#14 12.25 ../downloader/trackers/embed.go:17:12: pattern trackerslist/trackers_all_http.txt: no matching files found
#14 12.25 /app/turbo/snapshotsync/snapshothashes/embed.go:34:12: pattern erigon-snapshots/bor-mainnet.toml: no matching files found
#14 12.25 make: *** [Makefile:56: erigon.cmd] Error 1
------
executor failed running [/bin/sh -c make all db-tools]: exit code: 2
make: *** [Makefile:33: docker] Error 1
V2022.07.04 - has same problem?
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.