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

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
3 tasks done
w-66 opened this issue Feb 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@w-66
Copy link

w-66 commented Feb 8, 2024

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

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

@w-66 w-66 added the bug Something isn't working label Feb 8, 2024
@mighty-sponge
Copy link
Contributor

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
Copy link
Author

w-66 commented Feb 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants