anyproto / any-sync-dockercompose

docker-compose for testing any-sync
MIT License
238 stars 30 forks source link

failed to solve: process "/bin/sh -c go install github.com/anyproto/any-sync-tools/anyconf@latest" did not complete successfully: exit code: 1 #19

Closed w-66 closed 4 months ago

w-66 commented 5 months ago

Have you read a contributing guide?

Current Behavior

root@server:/home/qusay/any-sync-dockercompose-main# make star
make: *** No rule to make target 'star'.  Stop.
root@server:/home/qusay/any-sync-dockercompose-main# make start
docker build -t generateconfig -f Dockerfile-generateconfig .
[+] Building 23.8s (14/18)                                                                                             docker:default
 => [internal] load build definition from Dockerfile-generateconfig                                                              0.0s
 => => transferring dockerfile: 640B                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                0.0s
 => => transferring context: 2B                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/alpine:3.18.4                                                                 2.0s
 => [internal] load metadata for docker.io/library/golang:1.21.6-alpine3.19                                                      2.0s
 => [generator 1/6] FROM docker.io/library/golang:1.21.6-alpine3.19@sha256:a6a7f1fcf12f5efa9e04b1e75020931a616cd707f14f62ab5262  0.0s
 => [internal] load build context                                                                                                0.0s
 => => transferring context: 689B                                                                                                0.0s
 => CACHED [stage-1 1/7] FROM docker.io/library/alpine:3.18.4@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc  0.0s
 => CACHED [generator 2/6] RUN apk add --no-cache bash yq                                                                        0.0s
 => ERROR [generator 3/6] RUN go install github.com/anyproto/any-sync-tools/anyconf@latest                                      21.8s
 => [stage-1 2/7] RUN apk add --no-cache bash yq perl python3 py3-yaml                                                           8.6s
 => [stage-1 3/7] WORKDIR /opt/processing                                                                                        0.0s
 => [stage-1 4/7] COPY docker-generateconfig/etc/ tmp-etc/                                                                       0.0s
 => [stage-1 5/7] COPY --chmod=777 docker-generateconfig/processing.sh .                                                         0.0s
 => [stage-1 6/7] COPY --chmod=777 docker-generateconfig/setListenIp.py .                                                        0.0s
------
 > [generator 3/6] RUN go install github.com/anyproto/any-sync-tools/anyconf@latest:
21.76 go: github.com/anyproto/any-sync-tools/anyconf@latest: module github.com/anyproto/any-sync-tools/anyconf: Get "https://proxy.golang.org/github.com/anyproto/any-sync-tools/anyconf/@v/list": dial tcp 142.251.46.241:443: connect: connection refused
------
Dockerfile-generateconfig:3
--------------------
   1 |     FROM golang:1.21.6-alpine3.19 as generator
   2 |     RUN apk add --no-cache bash yq
   3 | >>> RUN go install github.com/anyproto/any-sync-tools/anyconf@latest
   4 |     WORKDIR /opt/generateconfig
   5 |     COPY --chmod=777 docker-generateconfig/generate_config.sh .env .
--------------------
ERROR: failed to solve: process "/bin/sh -c go install github.com/anyproto/any-sync-tools/anyconf@latest" did not complete successfully: exit code: 1
make: *** [Makefile:5: generate_config] Error 1

Expected Behavior

Normal execution

Steps To Reproduce

  1. apt update
  2. install Docker
  3. make start

Environment

DISTRIB_RELEASE=23.04
DISTRIB_CODENAME=lunar
DISTRIB_DESCRIPTION="Ubuntu 23.04"
PRETTY_NAME="Ubuntu 23.04"
NAME="Ubuntu"
VERSION_ID="23.04"
VERSION="23.04 (Lunar Lobster)"
VERSION_CODENAME=lunar
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=lunar
LOGO=ubuntu-logo

Anything else?

No response

mighty-sponge commented 5 months ago

It looks like you have a network problem, causing you to be unable to get a response from "https://proxy.golang.org/github.com/anyproto/any-sync-tools/anyconf/@v/list"

  1. Try running the command on your Ubuntu: curl https://proxy.golang.org . You shouldn't get any errors
  2. Restart the Docker daemon, in some cases this helps: systemctl restart docker
w-66 commented 4 months ago

Determined, it is a network problem, our country does not allow access to this IP, may be...

] curl https://proxy.golang.org
curl: (7) Failed to connect to proxy.golang.org port 443 after 21549 ms: Couldn't connect to server