go: proxy.golang.org: Failed to connect to github.com port 443: Connection refused
proxy unable to connect to github.com and fetch new version
curl https://proxy.golang.org/github.com/akash-network/cosmos-sdk/@v/v0.45.16-akash.3.mod
not found: github.com/akash-network/cosmos-sdk@v0.45.16-akash.3: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/9d41348d922b05808134557d6daaee7f11b2589dedd134c83a0317e5a8c68ec7: exit status 128:
fatal: unable to access 'https://github.com/akash-network/cosmos-sdk/': Failed to connect to github.com port 443: Connection refused
looks like this issue was happening earlier today #72118
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 11
- Comments: 26 (10 by maintainers)
Hi all, while we always have some flakiness in fetching from origin servers, the responses here indicate more connectivity issues than normal. I’ve investigated a bit, and have a few leads as to what could be causing this. I’m currently attempting one mitigation, but if it doesn’t work, further intervention will have to wait until Monday.
I see that many of the failing versions are eventually being fetched (for example, both https://proxy.golang.org/fortio.org/progressbar/@latest and https://sum.golang.org/lookup/github.com/vault-thirteen/auxie@v0.28.4 are now there).
As others have pointed out, fetching directly from the origin server is always an available workaround, though it is generally faster and safer to fetch from the proxy. Setting
GOPROXY=directandGOSUMDB=offin your environment means that all modules, even those that are already hosted in the proxy, will be fetched from the origin server, and sumdb verification is disabled. This can significantly slow down builds, and bypasses the repeatability guarantees provided by the sumdb.From logs, it looks like these errors are much less frequent after a deployment today, and all of the versions mentioned above have been fetched.
If people are still experiencing this with github.com modules, please let me know the failing module name and version and I’ll take a look. Otherwise, I will close this tomorrow. Thanks.
This worked for me:
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
@ldemailly we still don’t fully understand the root cause. However, our automated deployments of the service responsible for ingesting new module versions were stalled, due to an infrastructure issue. The timing was suspicious: it’s possible that the longer-than-usual uptime of the previous deployment could have led to some form of resource exhaustion.
…except that it seems like certain modules were more affected than others, indicating some sort of throttling by Github.
In any case, I unblocked our deployments, and the problem seems to have subsided. We will have to keep an eye out for more reports, and I’ll discuss with other team members when they are back from vacation.
Closing as this seems to be resolved.
Should the
go getfallback to a a direct retrieval in case if proxy.goland.org failed?@vault-thirteen understood. Unfortunately, our next step in investigating this will require a rollout, and due to the timing this will likely have to wait until Monday.
Versions are still flowing from GitHub, at a similar rate to a few days ago, so it’s not yet clear to me why some seem to be significantly more flaky.
I am also experiencing this issue
@findleyr
The problem is not fixed. I started updating the chain of dependencies and see that something is broken again.
https://sum.golang.org/lookup/github.com/vault-thirteen/!simple-!file-!server@v0.16.3
Still an issue, 3 tags done and none working/all having that cached connection error
I don’t think connection error should be cached for 1/2h or not retried
Still happening here, 15 hours later. I can push and pull and use GitHub just fine, and GitHubStatus.com reports no issues.