openimsdk/openkf

[Other]: deploy error: "ERROR [server builder 4/4] RUN go env -w GO111MODULE=on ......"

Closed this issue · 6 comments

What would you like to share?

base on the following docker deploy:
#212 (comment)

use "docker compose up" to deploy, occur an error:

[+] Building 47.5s (28/41)                                                                                                                                              docker:default
 => [bot internal] load build definition from Dockerfile.bot                                                                                                                      0.0s
 => => transferring dockerfile: 367B                                                                                                                                              0.0s
 => [server internal] load build definition from Dockerfile.server                                                                                                                0.0s
 => => transferring dockerfile: 1.40kB                                                                                                                                            0.0s
 => [bot internal] load .dockerignore                                                                                                                                             0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [web internal] load build definition from Dockerfile.web                                                                                                                      0.1s
 => => transferring dockerfile: 1.08kB                                                                                                                                            0.0s
 => [server internal] load .dockerignore                                                                                                                                          0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [web internal] load .dockerignore                                                                                                                                             0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [bot internal] load metadata for docker.io/library/python:3.9                                                                                                                 0.7s
 => [bot internal] load metadata for docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04                                                                                             2.5s
 => [server internal] load metadata for docker.io/library/alpine:latest                                                                                                           0.6s
 => [server internal] load metadata for docker.io/library/golang:1.20                                                                                                             0.8s
 => [web internal] load metadata for docker.io/library/nginx:stable-alpine                                                                                                        1.0s
 => [web internal] load metadata for docker.io/library/node:18                                                                                                                    0.6s
 => [server builder 1/4] FROM docker.io/library/golang:1.20@sha256:4e4a34f7940eddba81c1f6df88057411bb2d822df087c317f8532cc169f2725a                                              10.2s
 => => resolve docker.io/library/golang:1.20@sha256:4e4a34f7940eddba81c1f6df88057411bb2d822df087c317f8532cc169f2725a                                                              0.0s
 => => sha256:bdd178660145acd8edcc076bec4c92888988a6556de7b3363a30cdea87b7086b 1.58kB / 1.58kB                                                                                    0.0s
 => => sha256:f0a2018ec55c82e1734258f77fe3afcd430f1ccfe351a1caa7d61bf5de595247 6.86kB / 6.86kB                                                                                    0.0s
 => => sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0 24.05MB / 24.05MB                                                                                  0.6s
 => => sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762 64.13MB / 64.13MB                                                                                  2.8s
 => => sha256:4e4a34f7940eddba81c1f6df88057411bb2d822df087c317f8532cc169f2725a 2.36kB / 2.36kB                                                                                    0.0s
 => => sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47 49.58MB / 49.58MB                                                                                  0.9s
 => => sha256:863cc4143efa80b93b0667c8315f58718c7bcf46d150db44c6569b20c3519924 92.33MB / 92.33MB                                                                                  2.1s
 => => extracting sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47                                                                                         1.4s
 => => sha256:8c93529a29aea2b33efa0cdc5bcdb36cb2793ce1dbebdd58437c3a924dd943b4 100.43MB / 100.43MB                                                                                3.2s
 => => sha256:9826b733837b3e8fa17557f7c9e6d7731a8083b76b394d348991eb231b7d04be 156B / 156B                                                                                        2.3s
 => => extracting sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0                                                                                         0.5s
 => => extracting sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762                                                                                         1.6s
 => => extracting sha256:863cc4143efa80b93b0667c8315f58718c7bcf46d150db44c6569b20c3519924                                                                                         1.9s
 => => extracting sha256:8c93529a29aea2b33efa0cdc5bcdb36cb2793ce1dbebdd58437c3a924dd943b4                                                                                         2.5s
 => => extracting sha256:9826b733837b3e8fa17557f7c9e6d7731a8083b76b394d348991eb231b7d04be                                                                                         0.0s
 => [server internal] load build context                                                                                                                                          0.1s
 => => transferring context: 612.62kB                                                                                                                                             0.0s
 => CACHED [server stage-1 1/7] FROM docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                                      0.0s
 => [server stage-1 2/7] WORKDIR /openkf-server                                                                                                                                   0.1s
 => [web stage-1 1/2] FROM docker.io/library/nginx:stable-alpine@sha256:62cabd934cbeae6195e986831e4f745ee1646c1738dbd609b1368d38c10c5519                                          6.4s
 => => resolve docker.io/library/nginx:stable-alpine@sha256:62cabd934cbeae6195e986831e4f745ee1646c1738dbd609b1368d38c10c5519                                                      0.0s
 => => sha256:e06ffa63074d69b12c7f7712d7aebc4cc72d25217e55788d54160a2bd77182f4 1.78kB / 1.78kB                                                                                    0.0s
 => => sha256:e6295d4bbc4559ee7ed2e93830f4228a08af4114d7914db140a026f84e69adbb 16.32kB / 16.32kB                                                                                  0.0s
 => => sha256:62cabd934cbeae6195e986831e4f745ee1646c1738dbd609b1368d38c10c5519 1.65kB / 1.65kB                                                                                    0.0s
 => => sha256:9398808236ffac29e60c04ec906d8d409af7fa19dc57d8c65ad167e9c4967006 3.38MB / 3.38MB                                                                                    4.1s
 => => extracting sha256:9398808236ffac29e60c04ec906d8d409af7fa19dc57d8c65ad167e9c4967006                                                                                         0.1s
 => => sha256:a4896b78e8db1b60c583e7bf115527dea0f1cc0207047cc318e6bab726a44765 3.85MB / 3.85MB                                                                                    4.3s
 => => sha256:a352ab20253014461883d177aacee4ee6a2f82b3976d65015665bf4e0c05478a 625B / 625B                                                                                        4.2s
 => => extracting sha256:a4896b78e8db1b60c583e7bf115527dea0f1cc0207047cc318e6bab726a44765                                                                                         0.2s
 => => sha256:b9258afd06398fe15821fa84d20d293de602601e8f3c3f607eb0fb82077933a1 956B / 956B                                                                                        4.4s
 => => sha256:8799ab366479fb72b00d08daefe94af71814b80c946ba8a3a3262129f4ab6688 773B / 773B                                                                                        4.4s
 => => sha256:07bc104f8702005e2c6acc3f3932ce08d11442367a62fd133a67157e7e5a8e6e 1.40kB / 1.40kB                                                                                    4.6s
 => => sha256:8afc9a751a90c1bc306e89a586c8e7b759a620814cb85a3584bd8c7833b4e9e4 11.67MB / 11.67MB                                                                                  4.7s
 => => extracting sha256:a352ab20253014461883d177aacee4ee6a2f82b3976d65015665bf4e0c05478a                                                                                         0.0s
 => => extracting sha256:b9258afd06398fe15821fa84d20d293de602601e8f3c3f607eb0fb82077933a1                                                                                         0.0s
 => => extracting sha256:8799ab366479fb72b00d08daefe94af71814b80c946ba8a3a3262129f4ab6688                                                                                         0.0s
 => => extracting sha256:07bc104f8702005e2c6acc3f3932ce08d11442367a62fd133a67157e7e5a8e6e                                                                                         0.0s
 => => extracting sha256:8afc9a751a90c1bc306e89a586c8e7b759a620814cb85a3584bd8c7833b4e9e4                                                                                         0.3s
 => [web builder 1/4] FROM docker.io/library/node:18@sha256:a17842484dd30af97540e5416c9a62943c709583977ba41481d601ecffb7f31b                                                     31.6s
 => => resolve docker.io/library/node:18@sha256:a17842484dd30af97540e5416c9a62943c709583977ba41481d601ecffb7f31b                                                                  0.0s
 => => sha256:a17842484dd30af97540e5416c9a62943c709583977ba41481d601ecffb7f31b 1.21kB / 1.21kB                                                                                    0.0s
 => => sha256:219cd50149ac6d8c205c86927e0252bf16490f89461847b7d9120a1f5a477594 7.53kB / 7.53kB                                                                                    0.0s
 => => sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47 49.58MB / 49.58MB                                                                                  0.8s
 => => sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762 64.13MB / 64.13MB                                                                                  2.7s
 => => sha256:e62671b4e91dcaf9f2cdb7b901aef948946b53ea642dbcba22779f1c602d2f2b 2.00kB / 2.00kB                                                                                    0.0s
 => => sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0 24.05MB / 24.05MB                                                                                  0.4s
 => => extracting sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47                                                                                         1.4s
 => => sha256:711be5dc50448ab08ccab0b44d65962f36574d341749ab30651b78ec0d4bfd1c 211.07MB / 211.07MB                                                                                5.9s
 => => extracting sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0                                                                                         0.5s
 => => extracting sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762                                                                                         1.6s
 => => sha256:22956530cc64ef2361591684e23e3b8e5bb5910da23197635a2b5b96a34b488d 3.37kB / 3.37kB                                                                                    3.3s
 => => sha256:d38ebdae17cda1f8ba10ea57ccee2f4a1c483224fbc9048e81fd93e78acd5bd8 45.89MB / 45.89MB                                                                                  4.0s
 => => sha256:bfacda23df76b92a2cb237825d66985ef4dfb53579bac39df67d310ea291cb3f 2.21MB / 2.21MB                                                                                    3.6s
 => => sha256:4b9302a8baa0f3a1305644dbdf41e307a6297a04ac7e65c9b5a763b909f4a457 453B / 453B                                                                                        3.7s
 => => extracting sha256:711be5dc50448ab08ccab0b44d65962f36574d341749ab30651b78ec0d4bfd1c                                                                                         5.1s
 => => extracting sha256:22956530cc64ef2361591684e23e3b8e5bb5910da23197635a2b5b96a34b488d                                                                                         0.0s
 => => extracting sha256:d38ebdae17cda1f8ba10ea57ccee2f4a1c483224fbc9048e81fd93e78acd5bd8                                                                                         2.9s
 => => extracting sha256:bfacda23df76b92a2cb237825d66985ef4dfb53579bac39df67d310ea291cb3f                                                                                         0.1s
 => => extracting sha256:4b9302a8baa0f3a1305644dbdf41e307a6297a04ac7e65c9b5a763b909f4a457                                                                                         0.0s
 => [web internal] load build context                                                                                                                                             0.0s
 => => transferring context: 972.75kB                                                                                                                                             0.0s
 => [bot builder 1/6] FROM docker.io/library/python:3.9@sha256:f2f14d6dabcbc113512050906474d44cdb2a1139fa26d9b05bef0eedb36ac94a                                                  23.4s
 => => resolve docker.io/library/python:3.9@sha256:f2f14d6dabcbc113512050906474d44cdb2a1139fa26d9b05bef0eedb36ac94a                                                               0.0s
 => => extracting sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47                                                                                         0.7s
 => => sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762 64.13MB / 64.13MB                                                                                  1.2s
 => => sha256:753586e289a94965eb389ae5397233d32c3cff0f40f81c633dcc00d277012634 2.01kB / 2.01kB                                                                                    0.0s
 => => sha256:e9047a20be92a0e05246709abf540fd2daa10683fc688ff548a1640cb5b55ffe 7.51kB / 7.51kB                                                                                    0.0s
 => => sha256:90e5e7d8b87a34877f61c2b86d053db1c4f440b9054cf49573e3be5d6a674a47 49.58MB / 49.58MB                                                                                  0.0s
 => => sha256:f2f14d6dabcbc113512050906474d44cdb2a1139fa26d9b05bef0eedb36ac94a 1.86kB / 1.86kB                                                                                    0.0s
 => => sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0 24.05MB / 24.05MB                                                                                  0.0s
 => => sha256:711be5dc50448ab08ccab0b44d65962f36574d341749ab30651b78ec0d4bfd1c 211.07MB / 211.07MB                                                                                4.5s
 => => extracting sha256:27e1a8ca91d35598fbae8dee7f1c211f0f93cec529f6804a60e9301c53a604d0                                                                                         0.5s
 => => extracting sha256:d3a767d1d12e57724b9f254794e359f3b04d4d5ad966006e5b5cda78cc382762                                                                                         1.6s
 => => sha256:7ad48fee40035670dcaf937f0ac03b16dc5ac98f001dc04c2c84cf56af728d04 6.39MB / 6.39MB                                                                                    3.4s
 => => sha256:00ba6b570755d99f1ed3920bdf99545be955b172cd1a2e23119401eab644023d 15.82MB / 15.82MB                                                                                  4.6s
 => => sha256:b7551a8d91b5a7a40d62c1aa45f6cdc643d806b3e9f507e9818426efee6b555b 244B / 244B                                                                                        3.5s
 => => sha256:f36f46aa93f32c233211c602111cce42272612499c51e1c2365fdd79e02abcee 2.85MB / 2.85MB                                                                                    4.6s
 => => extracting sha256:711be5dc50448ab08ccab0b44d65962f36574d341749ab30651b78ec0d4bfd1c                                                                                         5.1s
 => => extracting sha256:7ad48fee40035670dcaf937f0ac03b16dc5ac98f001dc04c2c84cf56af728d04                                                                                         0.4s
 => => extracting sha256:00ba6b570755d99f1ed3920bdf99545be955b172cd1a2e23119401eab644023d                                                                                         0.4s
 => => extracting sha256:b7551a8d91b5a7a40d62c1aa45f6cdc643d806b3e9f507e9818426efee6b555b                                                                                         0.0s
 => => extracting sha256:f36f46aa93f32c233211c602111cce42272612499c51e1c2365fdd79e02abcee                                                                                         0.2s
 => [bot internal] load build context                                                                                                                                             0.9s
 => => transferring context: 117.82MB                                                                                                                                             0.9s
 => CANCELED [bot base 1/3] FROM docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04@sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000                        41.8s
 => => resolve docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04@sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000                                           0.0s
 => => sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000 743B / 743B                                                                                        0.0s
 => => sha256:b12fafc35981193fae68a639ffcce21c453ff1b47837d643b0094582afe25cd3 2.21kB / 2.21kB                                                                                    0.0s
 => => sha256:0972aeef40aac29e7c512c2a81cfeacb70446d9c1978da3d1b63e99ba723ca99 12.80kB / 12.80kB                                                                                  0.0s
 => => sha256:8c66a4da03d6f9e08b3e5c0fe058c8f12207e85c02325b4f0fdfc9cd8d6b2b7c 56.08MB / 56.08MB                                                                                  6.0s
 => => sha256:0a05696cb0bcc6979d6c19231178c8d0907fab3c014f1fb70e230621b9c62bc0 184B / 184B                                                                                        4.8s
 => => sha256:eb68083c7fb9d528128ca021e18542cd4ef6adf084a12d0d882933d3dd67ca52 0B / 4.62MB                                                                                       44.8s
 => => sha256:84a7aba840811cda09b6b0d6a38b76e50d1759e02fb2729a587cad46c01c8a15 6.89kB / 6.89kB                                                                                    5.0s
 => => extracting sha256:eb68083c7fb9d528128ca021e18542cd4ef6adf084a12d0d882933d3dd67ca52                                                                                         0.2s
 => => sha256:f73ff9d3e11f777b3b371c3be4315857e10ce1525884761c4aa17c2d0f9eb002 1.27GB / 1.27GB                                                                                   29.9s
 => => sha256:21f78659429e9b11b13429fe0c35805ba23388394d472234f5301661771a64f0 63.83kB / 63.83kB                                                                                  5.1s
 => => sha256:545c22d07ad09f37aba66cdbb7ec9fad9494973ec3356115461b476873f65407 1.69kB / 1.69kB                                                                                    5.3s
 => => sha256:8a5d5207a26568af9a26418c9e209596ea8a12db21bfc607c002e03ed30dc804 1.52kB / 1.52kB                                                                                    5.5s
 => => extracting sha256:8c66a4da03d6f9e08b3e5c0fe058c8f12207e85c02325b4f0fdfc9cd8d6b2b7c                                                                                         1.0s
 => => extracting sha256:0a05696cb0bcc6979d6c19231178c8d0907fab3c014f1fb70e230621b9c62bc0                                                                                         0.0s
 => => extracting sha256:84a7aba840811cda09b6b0d6a38b76e50d1759e02fb2729a587cad46c01c8a15                                                                                         0.0s
 => => extracting sha256:f73ff9d3e11f777b3b371c3be4315857e10ce1525884761c4aa17c2d0f9eb002                                                                                        14.8s
 => [server builder 2/4] WORKDIR /openkf-server                                                                                                                                  14.3s
 => [server builder 3/4] COPY /server .                                                                                                                                           7.1s
 => [bot builder 2/6] WORKDIR /bot                                                                                                                                                6.6s
 => ERROR [server builder 4/4] RUN go env -w GO111MODULE=on     && go env -w CGO_ENABLED=0     && go env     && go env -w GOPROXY=https://goproxy.cn,direct     && go mod tidy   11.7s
 => [web builder 2/4] WORKDIR /openkf-web                                                                                                                                         0.1s
 => [web builder 3/4] COPY /web .                                                                                                                                                 0.1s
 => [web builder 4/4] RUN npm set registry http://registry.npm.taobao.org/     && npm install --registry=http://registry.npm.taobao.org     && chmod +x scripts/setup.sh && ./s  14.5s
 => => # npm WARN deprecated squel@5.13.0: No longer maintained                                                                                                                       
------
 > [server builder 4/4] RUN go env -w GO111MODULE=on     && go env -w CGO_ENABLED=0     && go env     && go env -w GOPROXY=https://goproxy.cn,direct     && go mod tidy     && go build -o server .     && go build -o cmd/dbmigration/dbmigration cmd/dbmigration/main.go:
0.528 GO111MODULE="on"
0.528 GOARCH="amd64"
0.528 GOBIN=""
0.528 GOCACHE="/root/.cache/go-build"
0.528 GOENV="/root/.config/go/env"
0.528 GOEXE=""
0.528 GOEXPERIMENT=""
0.528 GOFLAGS=""
0.528 GOHOSTARCH="amd64"
0.528 GOHOSTOS="linux"
0.528 GOINSECURE=""
0.528 GOMODCACHE="/go/pkg/mod"
0.528 GONOPROXY=""
0.528 GONOSUMDB=""
0.528 GOOS="linux"
0.528 GOPATH="/go"
0.528 GOPRIVATE=""
0.528 GOPROXY="https://proxy.golang.org,direct"
0.528 GOROOT="/usr/local/go"
0.528 GOSUMDB="sum.golang.org"
0.528 GOTMPDIR=""
0.528 GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
0.528 GOVCS=""
0.528 GOVERSION="go1.20.11"
0.528 GCCGO="gccgo"
0.528 GOAMD64="v1"
0.528 AR="ar"
0.528 CC="gcc"
0.528 CXX="g++"
0.528 CGO_ENABLED="0"
0.528 GOMOD="/openkf-server/go.mod"
0.528 GOWORK=""
0.528 CGO_CFLAGS="-O2 -g"
0.528 CGO_CPPFLAGS=""
0.528 CGO_CXXFLAGS="-O2 -g"
0.528 CGO_FFLAGS="-O2 -g"
0.528 CGO_LDFLAGS="-O2 -g"
0.528 PKG_CONFIG="pkg-config"
0.528 GOGCCFLAGS="-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2081432237=/tmp/go-build -gno-record-gcc-switches"
0.555 go: downloading github.com/go-redis/redis/v8 v8.11.5
0.555 go: downloading github.com/pkg/errors v0.9.1
0.555 go: downloading github.com/influxdata/influxdb-client-go/v2 v2.12.3
0.556 go: downloading gorm.io/gorm v1.25.1
0.557 go: downloading gorm.io/plugin/dbresolver v1.3.0
0.558 go: downloading gorm.io/gen v0.3.22
0.558 go: downloading github.com/gin-gonic/gin v1.9.1
0.560 go: downloading github.com/swaggo/swag v1.16.1
0.561 go: downloading github.com/spf13/viper v1.16.0
0.562 go: downloading github.com/shomali11/slacker v1.4.1
0.562 go: downloading github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible
0.572 go: downloading github.com/swaggo/files v1.0.1
0.855 go: downloading github.com/minio/minio-go/v7 v7.0.57
0.865 go: downloading github.com/go-resty/resty/v2 v2.7.0
0.890 go: downloading gorm.io/driver/mysql v1.5.1
0.906 go: downloading github.com/swaggo/gin-swagger v1.6.0
0.911 go: downloading github.com/Delta456/box-cli-maker/v2 v2.3.0
0.925 go: downloading github.com/antonfisher/nested-logrus-formatter v1.3.1
0.926 go: downloading github.com/golang-jwt/jwt/v4 v4.5.0
0.926 go: downloading github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
0.929 go: downloading github.com/slack-go/slack v0.12.1
0.938 go: downloading github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
0.941 go: downloading github.com/sirupsen/logrus v1.9.3
1.057 go: downloading github.com/cespare/xxhash/v2 v2.1.2
1.058 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
1.059 go: downloading github.com/onsi/gomega v1.27.6
1.060 go: downloading github.com/robfig/cron v1.2.0
1.061 go: downloading github.com/shomali11/commander v0.0.0-20220716022157-b5248c76541a
1.064 go: downloading github.com/shomali11/proper v0.0.0-20180607004733-233a9a872c30
1.072 go: downloading github.com/fsnotify/fsnotify v1.6.0
1.080 go: downloading github.com/mitchellh/mapstructure v1.5.0
1.113 go: downloading github.com/spf13/afero v1.9.5
1.116 go: downloading github.com/spf13/cast v1.5.1
1.169 go: downloading github.com/spf13/jwalterweatherman v1.1.0
1.190 go: downloading github.com/spf13/pflag v1.0.5
1.240 go: downloading github.com/stretchr/testify v1.8.4
1.240 go: downloading golang.org/x/tools v0.11.0
1.242 go: downloading gorm.io/datatypes v1.1.1-0.20230130040222-c43177d3cf8c
1.245 go: downloading gorm.io/hints v1.1.0
1.247 go: downloading github.com/jinzhu/inflection v1.0.0
1.247 go: downloading github.com/jinzhu/now v1.1.5
1.252 go: downloading github.com/gofrs/uuid v4.4.0+incompatible
1.255 go: downloading golang.org/x/net v0.15.0
1.283 go: downloading github.com/gin-contrib/sse v0.1.0
1.284 go: downloading github.com/mattn/go-isatty v0.0.19
1.322 go: downloading google.golang.org/protobuf v1.30.0
1.347 go: downloading github.com/KyleBanks/depth v1.2.1
1.347 go: downloading github.com/go-openapi/spec v0.20.9
1.351 go: downloading github.com/go-sql-driver/mysql v1.7.0
1.357 go: downloading github.com/lestrrat-go/strftime v1.0.6
1.358 go: downloading github.com/jonboulle/clockwork v0.4.0
1.375 go: downloading golang.org/x/sys v0.12.0
1.492 go: downloading golang.org/x/text v0.13.0
1.604 go: downloading github.com/subosito/gotenv v1.4.2
1.605 go: downloading github.com/hashicorp/hcl v1.0.0
1.656 go: downloading gopkg.in/ini.v1 v1.67.0
1.672 go: downloading github.com/magiconair/properties v1.8.7
1.696 go: downloading github.com/pelletier/go-toml/v2 v2.0.8
1.696 go: downloading gopkg.in/yaml.v3 v3.0.1
1.701 go: downloading github.com/dustin/go-humanize v1.0.1
1.702 go: downloading github.com/google/uuid v1.3.0
1.794 go: downloading github.com/json-iterator/go v1.1.12
1.800 go: downloading github.com/klauspost/compress v1.16.5
1.803 go: downloading github.com/minio/md5-simd v1.1.2
1.812 go: downloading github.com/minio/sha256-simd v1.0.1
1.923 go: downloading github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839
1.963 go: downloading github.com/deepmap/oapi-codegen v1.8.2
1.985 go: downloading github.com/gorilla/websocket v1.4.2
2.009 go: downloading github.com/go-playground/validator/v10 v10.14.0
2.013 go: downloading github.com/ugorji/go/codec v1.2.11
2.013 go: downloading github.com/bytedance/sonic v1.9.1
2.013 go: downloading github.com/goccy/go-json v0.10.2
2.114 go: downloading github.com/gookit/color v1.5.3
2.121 go: downloading github.com/huandu/xstrings v1.4.0
2.152 go: downloading github.com/mattn/go-runewidth v0.0.14
2.167 go: downloading github.com/muesli/reflow v0.3.0
2.171 go: downloading github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e
2.211 go: downloading golang.org/x/term v0.12.0
2.299 go: downloading github.com/go-openapi/jsonpointer v0.19.6
2.319 go: downloading github.com/go-openapi/jsonreference v0.20.2
2.343 go: downloading github.com/go-openapi/swag v0.22.4
2.706 go: downloading golang.org/x/crypto v0.13.0
2.706 go: downloading github.com/rs/xid v1.5.0
2.731 go: downloading github.com/klauspost/cpuid/v2 v2.2.4
2.844 go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
2.920 go: downloading github.com/modern-go/reflect2 v1.0.2
2.958 go: downloading github.com/gabriel-vasile/mimetype v1.4.2
3.005 go: downloading github.com/go-playground/universal-translator v0.18.1
3.090 go: downloading github.com/leodido/go-urn v1.2.4
3.202 go: downloading github.com/go-playground/locales v0.14.1
3.501 go: downloading github.com/rivo/uniseg v0.2.0
3.501 go: downloading golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea
3.502 go: downloading github.com/mailru/easyjson v0.7.7
3.506 go: downloading golang.org/x/mod v0.12.0
3.506 go: downloading github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311
3.506 go: downloading golang.org/x/arch v0.3.0
3.527 go: downloading github.com/twitchyliquid64/golang-asm v0.15.1
3.566 go: downloading github.com/josharian/intern v1.0.0
4.314 go: github.com/minio/minio-go/v7@v7.0.57: Get "https://goproxy.cn/github.com/minio/minio-go/v7/@v/v7.0.57.mod": http2: server sent GOAWAY and closed the connection; LastStreamID=199, ErrCode=NO_ERROR, debug=""
------
failed to solve: executor failed running [/bin/sh -c go env -w GO111MODULE=on     && go env -w CGO_ENABLED=0     && go env     && go env -w GOPROXY=https://goproxy.cn,direct     && go mod tidy     && go build -o server .     && go build -o cmd/dbmigration/dbmigration cmd/dbmigration/main.go]: exit code: 1

Additional information

No response

@jamky, I recommend trying a rebuild to see if the issue persists. Network-related issues can sometimes be transient and may resolve upon a subsequent attempt. If the problem continues, you might want to consider using the pre-built server image available on GitHub. You can find the openkf-server image at the following link: OpenKF Server Image on GitHub. This could be a more straightforward solution if the image suits your needs and configuration. Let me know if you encounter any further issues or need additional assistance!

@jamky, I recommend trying a rebuild to see if the issue persists. Network-related issues can sometimes be transient and may resolve upon a subsequent attempt. If the problem continues, you might want to consider using the pre-built server image available on GitHub. You can find the openkf-server image at the following link: OpenKF Server Image on GitHub. This could be a more straightforward solution if the image suits your needs and configuration. Let me know if you encounter any further issues or need additional assistance!

use "docker compose up" again, occur another error:

[+] Building 53.3s (40/42)                                                                                                                                              docker:default
 => [web internal] load build definition from Dockerfile.web                                                                                                                      0.0s
 => => transferring dockerfile: 36B                                                                                                                                               0.0s
 => [server internal] load build definition from Dockerfile.server                                                                                                                0.0s
 => => transferring dockerfile: 39B                                                                                                                                               0.0s
 => [web internal] load .dockerignore                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [bot internal] load build definition from Dockerfile.bot                                                                                                                      0.1s
 => => transferring dockerfile: 36B                                                                                                                                               0.0s
 => [server internal] load .dockerignore                                                                                                                                          0.1s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [bot internal] load .dockerignore                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                   0.0s
 => [web internal] load metadata for docker.io/library/nginx:stable-alpine                                                                                                        1.1s
 => [web internal] load metadata for docker.io/library/node:18                                                                                                                    0.7s
 => [server internal] load metadata for docker.io/library/alpine:latest                                                                                                           1.2s
 => [server internal] load metadata for docker.io/library/golang:1.20                                                                                                             1.0s
 => [bot internal] load metadata for docker.io/library/python:3.9                                                                                                                 0.7s
 => [bot internal] load metadata for docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04                                                                                             0.6s
 => [bot internal] load build context                                                                                                                                             0.8s
 => => transferring context: 116.86MB                                                                                                                                             0.8s
 => [bot builder 1/6] FROM docker.io/library/python:3.9@sha256:f2f14d6dabcbc113512050906474d44cdb2a1139fa26d9b05bef0eedb36ac94a                                                   0.0s
 => [bot base 1/3] FROM docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04@sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000                                 46.5s
 => => resolve docker.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04@sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000                                           0.0s
 => => sha256:0972aeef40aac29e7c512c2a81cfeacb70446d9c1978da3d1b63e99ba723ca99 12.80kB / 12.80kB                                                                                  0.0s
 => => sha256:eb68083c7fb9d528128ca021e18542cd4ef6adf084a12d0d882933d3dd67ca52 4.62MB / 4.62MB                                                                                    0.4s
 => => sha256:94c1577b2cd9dd6c0312dc04dff9cb2fdce2b268018abc3d7c2dbcacf1155000 743B / 743B                                                                                        0.0s
 => => sha256:b12fafc35981193fae68a639ffcce21c453ff1b47837d643b0094582afe25cd3 2.21kB / 2.21kB                                                                                    0.0s
 => => sha256:8c66a4da03d6f9e08b3e5c0fe058c8f12207e85c02325b4f0fdfc9cd8d6b2b7c 56.08MB / 56.08MB                                                                                  1.3s
 => => sha256:0a05696cb0bcc6979d6c19231178c8d0907fab3c014f1fb70e230621b9c62bc0 184B / 184B                                                                                        0.1s
 => => sha256:84a7aba840811cda09b6b0d6a38b76e50d1759e02fb2729a587cad46c01c8a15 6.89kB / 6.89kB                                                                                    0.3s
 => => extracting sha256:eb68083c7fb9d528128ca021e18542cd4ef6adf084a12d0d882933d3dd67ca52                                                                                         0.2s
 => => sha256:f73ff9d3e11f777b3b371c3be4315857e10ce1525884761c4aa17c2d0f9eb002 1.27GB / 1.27GB                                                                                   29.2s
 => => sha256:21f78659429e9b11b13429fe0c35805ba23388394d472234f5301661771a64f0 63.83kB / 63.83kB                                                                                  0.6s
 => => sha256:545c22d07ad09f37aba66cdbb7ec9fad9494973ec3356115461b476873f65407 1.69kB / 1.69kB                                                                                    0.7s
 => => sha256:8a5d5207a26568af9a26418c9e209596ea8a12db21bfc607c002e03ed30dc804 1.52kB / 1.52kB                                                                                    0.9s
 => => extracting sha256:8c66a4da03d6f9e08b3e5c0fe058c8f12207e85c02325b4f0fdfc9cd8d6b2b7c                                                                                         1.2s
 => => extracting sha256:0a05696cb0bcc6979d6c19231178c8d0907fab3c014f1fb70e230621b9c62bc0                                                                                         0.0s
 => => extracting sha256:84a7aba840811cda09b6b0d6a38b76e50d1759e02fb2729a587cad46c01c8a15                                                                                         0.0s
 => => extracting sha256:f73ff9d3e11f777b3b371c3be4315857e10ce1525884761c4aa17c2d0f9eb002                                                                                        16.1s
 => => extracting sha256:21f78659429e9b11b13429fe0c35805ba23388394d472234f5301661771a64f0                                                                                         0.0s
 => => extracting sha256:545c22d07ad09f37aba66cdbb7ec9fad9494973ec3356115461b476873f65407                                                                                         0.0s
 => => extracting sha256:8a5d5207a26568af9a26418c9e209596ea8a12db21bfc607c002e03ed30dc804                                                                                         0.0s
 => CACHED [bot builder 2/6] WORKDIR /bot                                                                                                                                         0.0s
 => CACHED [web stage-1 1/2] FROM docker.io/library/nginx:stable-alpine@sha256:62cabd934cbeae6195e986831e4f745ee1646c1738dbd609b1368d38c10c5519                                   0.0s
 => [web internal] load build context                                                                                                                                             0.1s
 => => transferring context: 7.15kB                                                                                                                                               0.0s
 => [web builder 1/4] FROM docker.io/library/node:18@sha256:a17842484dd30af97540e5416c9a62943c709583977ba41481d601ecffb7f31b                                                      0.0s
 => [server builder 1/4] FROM docker.io/library/golang:1.20@sha256:4e4a34f7940eddba81c1f6df88057411bb2d822df087c317f8532cc169f2725a                                               0.0s
 => [server internal] load build context                                                                                                                                          0.1s
 => => transferring context: 10.19kB                                                                                                                                              0.0s
 => [server stage-1 1/7] FROM docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                                             0.0s
 => CACHED [server stage-1 2/7] WORKDIR /openkf-server                                                                                                                            0.0s
 => CACHED [web builder 2/4] WORKDIR /openkf-web                                                                                                                                  0.0s
 => CACHED [web builder 3/4] COPY /web .                                                                                                                                          0.0s
 => CANCELED [web builder 4/4] RUN npm set registry http://registry.npm.taobao.org/     && npm install --registry=http://registry.npm.taobao.org     && chmod +x scripts/setup.  52.0s
 => CACHED [server builder 2/4] WORKDIR /openkf-server                                                                                                                            0.0s
 => CACHED [server builder 3/4] COPY /server .                                                                                                                                    0.0s
 => [server builder 4/4] RUN go env -w GO111MODULE=on     && go env -w CGO_ENABLED=0     && go env     && go env -w GOPROXY=https://goproxy.cn,direct     && go mod tidy     &&  33.3s
 => [server stage-1 3/7] COPY --from=builder /openkf-server/server .                                                                                                              6.5s
 => [server stage-1 4/7] COPY --from=builder /openkf-server/cmd/dbmigration/dbmigration .                                                                                         1.8s
 => [server stage-1 5/7] COPY --from=builder /openkf-server/config.docker.yaml .                                                                                                  0.7s
 => [server stage-1 6/7] COPY --from=builder /openkf-server/docker_init_server.sh .                                                                                               0.1s
 => [server stage-1 7/7] RUN chmod +x /openkf-server/docker_init_server.sh .                                                                                                      0.3s
 => [server] exporting to image                                                                                                                                                   0.3s
 => => exporting layers                                                                                                                                                           0.3s
 => => writing image sha256:4e6378dc30cee5568be91f298441a8d27d7d7b1ef0e7d8bdeb8f48e8722ef9a1                                                                                      0.0s
 => => naming to docker.io/library/openkf-server                                                                                                                                  0.0s
 => [bot base 2/3] WORKDIR /bot                                                                                                                                                   0.0s
 => [bot base 3/3] ADD . .                                                                                                                                                        0.6s
 => [bot builder 3/6] COPY --from=base /bot .                                                                                                                                     0.6s
 => [bot builder 4/6] RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple                                                                               1.7s
 => ERROR [bot builder 5/6] RUN pip3  install -r requirements.txt                                                                                                                 1.6s
------
 > [bot builder 5/6] RUN pip3  install -r requirements.txt:
0.944 ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
1.484 
1.484 [notice] A new release of pip is available: 23.0.1 -> 23.3.1
1.484 [notice] To update, run: pip install --upgrade pip
------
failed to solve: executor failed running [/bin/sh -c pip3  install -r requirements.txt]: exit code: 1

It seems that the bot image is built in wrong path.

ref: #210

I will check it later.

This issue is stale because it has been open 60 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.