Install script on archlinux fails because Google GOPROXY is not reachable. #1628

Open
opened 2025-11-20 06:03:46 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @schichtnudelauflauf on GitHub (Feb 15, 2025).

Describe the problem

Installer fails on archlinux while trying to use the default Goproxy from Google, because that is not reachable.

To Reproduce

Steps to reproduce the behavior:

  1. Run install script on arch
  2. see it fail because proxy.golang.org connection refused.

Expected behavior

Not depending on default goproxy or prebuilts in such a way.
Other hosts are fine.

Additional context

Random VM without egress restrictions.

Originally created by @schichtnudelauflauf on GitHub (Feb 15, 2025). **Describe the problem** Installer fails on archlinux while trying to use the default Goproxy from Google, because that is not reachable. **To Reproduce** Steps to reproduce the behavior: 1. Run install script on arch 2. see it fail because proxy.golang.org connection refused. **Expected behavior** Not depending on default goproxy or prebuilts in such a way. Other hosts are fine. **Additional context** Random VM without egress restrictions.
saavagebueno added the triage-needed label 2025-11-20 06:03:46 -05:00
Author
Owner

@mttwong commented on GitHub (Mar 23, 2025):

You need to update your resolv.conf. This issue is not with netbird, but rather the fact that Go resolves DNS by reading /etc/resolv.conf directly, which is not set up by default on Arch.

ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Will point your resolv.conf to use the internal DNS server provided by systemd-resolved.

I just had this issue and found the fix here.

@mttwong commented on GitHub (Mar 23, 2025): You need to update your resolv.conf. This issue is not with netbird, but rather the fact that Go resolves DNS by reading /etc/resolv.conf directly, which is not set up by default on Arch. ``` ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf ``` Will point your resolv.conf to use the internal DNS server provided by systemd-resolved. I just had this issue and found the fix [here](https://stackoverflow.com/questions/77219745/go-get-proxy-golang-org-connection-refused).
Author
Owner

@schichtnudelauflauf commented on GitHub (Mar 23, 2025):

Nope. systemd-resolved was set up and resolv.conf symlinked.
You are misunderstanding.
If I set a different GOPROXY it works btw. Apparently Google does not like my ISP.
The reasonable default would be to not use a GOPROXY.

Von: Matthew Wong @.>
An: netbirdio/netbird @.
>
Kopie: Lasagne @.>; Author @.>
Datum: 23.03.2025 17:48:14
Betreff: Re: [netbirdio/netbird] Install script on archlinux fails because Google GOPROXY is not reachable. (Issue #3330)

 [Bild][mttwong][https://avatars.githubusercontent.com/u/1971331?s=20&v=4]*mttwong* left a comment (netbirdio/netbird#3330)[https://github.com/netbirdio/netbird/issues/3330#issuecomment-2746307757]

You need to update your resolv.conf. This issue is not with netbird, but rather the fact that Go resolves DNS by reading /etc/resolv.conf directly, which is not set up by default on Arch.

*ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
*
Will point your resolv.conf to use the internal DNS server provided by systemd-resolved.

I just had this issue and found the fix here[https://stackoverflow.com/questions/77219745/go-get-proxy-golang-org-connection-refused].


Reply to this email directly, view it on GitHub[https://github.com/netbirdio/netbird/issues/3330#issuecomment-2746307757], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ANXMMI6F3DMQC7PGEO45FWD2V3QUFAVCNFSM6AAAAABXG2JG7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGMYDONZVG4].
You are receiving this because you authored the thread.

@schichtnudelauflauf commented on GitHub (Mar 23, 2025): Nope. systemd-resolved was set up and resolv.conf symlinked. You are misunderstanding. If I set a different GOPROXY it works btw. Apparently Google does not like my ISP. The reasonable default would be to not use a GOPROXY. Von: Matthew Wong ***@***.***> An: netbirdio/netbird ***@***.***> Kopie: Lasagne ***@***.***>; Author ***@***.***> Datum: 23.03.2025 17:48:14 Betreff: Re: [netbirdio/netbird] Install script on archlinux fails because Google GOPROXY is not reachable. (Issue #3330) > > [Bild][mttwong][https://avatars.githubusercontent.com/u/1971331?s=20&v=4]*mttwong* left a comment (netbirdio/netbird#3330)[https://github.com/netbirdio/netbird/issues/3330#issuecomment-2746307757] > > > You need to update your resolv.conf. This issue is not with netbird, but rather the fact that Go resolves DNS by reading /etc/resolv.conf directly, which is not set up by default on Arch. > > *ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf > * > Will point your resolv.conf to use the internal DNS server provided by systemd-resolved. > > I just had this issue and found the fix here[https://stackoverflow.com/questions/77219745/go-get-proxy-golang-org-connection-refused]. > > — > Reply to this email directly, view it on GitHub[https://github.com/netbirdio/netbird/issues/3330#issuecomment-2746307757], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ANXMMI6F3DMQC7PGEO45FWD2V3QUFAVCNFSM6AAAAABXG2JG7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBWGMYDONZVG4]. > You are receiving this because you authored the thread. >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1628