You are not logged in.

#1 2024-09-27 10:22:22

aneeshdg16
Member
Registered: 2023-12-06
Posts: 37

[SOLVED] yay rebuild timeout

I recently ran into this error
https://github.com/Jguer/yay/issues/2508
when trying to use yay, so I attempted to remove and rebuild yay like the commenters in the link say to. But I'm running into a different error below when building yay. Here is the full output below.

➜ yay (master) ✔ makepkg -si
==> Making package: yay 12.4.2-1 (Fri 27 Sep 2024 06:09:38 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading yay-12.4.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  444k  100  444k    0     0   847k      0 --:--:-- --:--:-- --:--:--  847k
==> Validating source files with sha256sums...
    yay-12.4.2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-12.4.2.tar.gz with bsdtar
==> Starting build()...
go build -trimpath -mod=readonly -modcacherw -ldflags '-X "main.yayVersion=12.4.2" -X "main.localePath=/usr/share/locale/" -linkmode=external -compressdwarf=false' -buildmode=pie -o yay
go: downloading github.com/Jguer/aur v1.2.3
go: downloading github.com/Jguer/go-alpm/v2 v2.2.2
go: downloading github.com/Jguer/votar v1.0.0
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/deckarep/golang-set/v2 v2.6.0
go: downloading github.com/leonelquinteros/gotext v1.5.2
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading golang.org/x/term v0.18.0
go: downloading github.com/adrg/strutil v0.3.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
clean.go:8:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
cmd.go:11:2: github.com/Jguer/go-alpm/v2@v2.2.2: Get "https://proxy.golang.org/github.com/%21jguer/go-alpm/v2/@v/v2.2.2.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
vote.go:8:2: github.com/Jguer/votar@v1.0.0: Get "https://proxy.golang.org/github.com/%21jguer/votar/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/text/errors.go:3:8: github.com/leonelquinteros/gotext@v1.5.2: Get "https://proxy.golang.org/github.com/leonelquinteros/gotext/@v/v1.5.2.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/db/ialpm/alpm.go:11:2: github.com/Morganamilo/go-pacmanconf@v0.0.0-20210502114700-cff030e927a5: Get "https://proxy.golang.org/github.com/%21morganamilo/go-pacmanconf/@v/v0.0.0-20210502114700-cff030e927a5.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/intrange/intrange.go:8:2: github.com/deckarep/golang-set/v2@v2.6.0: Get "https://proxy.golang.org/github.com/deckarep/golang-set/v2/@v/v2.6.0.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/query/metric.go:7:2: github.com/adrg/strutil@v0.3.1: Get "https://proxy.golang.org/github.com/adrg/strutil/@v/v0.3.1.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/query/query_builder.go:13:2: github.com/adrg/strutil@v0.3.1: Get "https://proxy.golang.org/github.com/adrg/strutil/@v/v0.3.1.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/query/source.go:7:2: github.com/hashicorp/go-multierror@v1.1.1: Get "https://proxy.golang.org/github.com/hashicorp/go-multierror/@v/v1.1.1.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:43780->209.18.47.61:53: i/o timeout
pkg/dep/dep_graph.go:10:2: github.com/Morganamilo/go-srcinfo@v1.0.0: Get "https://proxy.golang.org/github.com/%21morganamilo/go-srcinfo/@v/v1.0.0.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/runtime/runtime.go:20:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/runtime/runtime.go:21:2: github.com/Jguer/aur@v1.2.3: Get "https://proxy.golang.org/github.com/%21jguer/aur/@v/v1.2.3.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
pkg/runtime/pacman.go:10:2: golang.org/x/term@v0.18.0: Get "https://proxy.golang.org/golang.org/x/term/@v/v0.18.0.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
print.go:16:2: golang.org/x/sys@v0.18.0: Get "https://proxy.golang.org/golang.org/x/sys/@v/v0.18.0.zip": dial tcp: lookup proxy.golang.org on 209.18.47.61:53: read udp 10.249.49.124:46915->209.18.47.61:53: i/o timeout
make: *** [Makefile:114: yay] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Here is my machine info:
Laptop: Lenovo Thinkpad X1 Carbon Gen 7 laptop
Kernel Version: 6.6.51-1-lts
Display Server: Xorg
Window Manager: i3

Last edited by aneeshdg16 (2024-10-10 03:57:09)

Offline

#2 2024-09-27 10:27:26

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 657
Website

Re: [SOLVED] yay rebuild timeout

Did you try setting "GOPROXY=direct" already?

Offline

#3 2024-09-27 10:45:41

aneeshdg16
Member
Registered: 2023-12-06
Posts: 37

Re: [SOLVED] yay rebuild timeout

gromit wrote:

Did you try setting "GOPROXY=direct" already?

Looks like I get further but still an error is ran into.

➜ yay (master) ✔ makepkg -si GOPROXY=direct
==> Making package: yay 12.4.2-1 (Fri 27 Sep 2024 06:38:32 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-12.4.2.tar.gz
==> Validating source files with sha256sums...
    yay-12.4.2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-12.4.2.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -trimpath -mod=readonly -modcacherw -ldflags '-X "main.yayVersion=12.4.2" -X "main.localePath=/usr/share/locale/" -linkmode=external -compressdwarf=false' -buildmode=pie -o yay
go: downloading github.com/Jguer/aur v1.2.3
go: downloading github.com/Jguer/go-alpm/v2 v2.2.2
go: downloading github.com/Jguer/votar v1.0.0
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/deckarep/golang-set/v2 v2.6.0
go: downloading github.com/leonelquinteros/gotext v1.5.2
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/adrg/strutil v0.3.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading golang.org/x/term v0.18.0
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/itchyny/gojq v0.12.14
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/ohler55/ojg v1.21.4
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/itchyny/timefmt-go v0.1.5
../gopath/pkg/mod/github.com/leonelquinteros/gotext@v1.5.2/domain.go:12:2: unrecognized import path "golang.org/x/text": https fetch: Get "https://golang.org/x/text?go-get=1": dial tcp: lookup golang.org on 209.18.47.61:53: read udp 10.249.49.124:54422->209.18.47.61:53: i/o timeout
pkg/runtime/pacman.go:10:2: unrecognized import path "golang.org/x/term": https fetch: Get "https://golang.org/x/term?go-get=1": dial tcp: lookup golang.org on 209.18.47.61:53: read udp 10.249.49.124:54422->209.18.47.61:53: i/o timeout
print.go:16:2: unrecognized import path "golang.org/x/sys": https fetch: Get "https://golang.org/x/sys?go-get=1": dial tcp: lookup golang.org on 209.18.47.61:53: read udp 10.249.49.124:54422->209.18.47.61:53: i/o timeout
make: *** [Makefile:114: yay] Error 1
==> ERROR: A failure occurred in build().

Offline

#4 2024-09-27 10:53:29

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 657
Website

Re: [SOLVED] yay rebuild timeout

Is your network connection generally working? It seems like your DNS times out

Offline

#5 2024-09-27 11:45:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,399
Website

Re: [SOLVED] yay rebuild timeout

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2024-09-28 03:23:04

aneeshdg16
Member
Registered: 2023-12-06
Posts: 37

Re: [SOLVED] yay rebuild timeout

gromit wrote:

Is your network connection generally working? It seems like your DNS times out

Yes I'm getting upwards of 150 Mbps

Offline

#7 2024-09-28 07:40:00

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] yay rebuild timeout

You can have a bazillion Mbps througput.
If your DNS is slow (you're using a DNS server from Charter Communications Inc, 209.18.47.61) is slow or filters you (it's not public and I don't get a response from it, so it times out) you can't resolve golang.org to an IP.

Try to configure a different DNS and/or consider a local stub resolver like dnsmasq, stubby, system-resolved, …

Offline

#8 2024-09-28 08:17:44

aneeshdg16
Member
Registered: 2023-12-06
Posts: 37

Re: [SOLVED] yay rebuild timeout

Wow before my /etc/resolv.conf was

nameserver 209.18.47.62
nameserver 209.18.47.61

and now after changing it to

nameserver 8.8.8.8
nameserver 1.1.1.1

everything works smoothly! Thank you!

Offline

#9 2024-09-28 12:34:07

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: [SOLVED] yay rebuild timeout

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Ftr, I had the geo IP of your ISP DNS (lake in kansas) in my browser history so unless that's some shell company, the IP likely has flared up in the past.

Offline

Board footer

Powered by FluxBB