1
General Discussion / pkg very slow, libfetch takes ages to resolve addresses
« on: April 08, 2024, 06:40:46 pm »
For at least a month i had issues with updates, a normal "check updates" would take up to 10 minutes.
I got to a roadblock, the issue is within the libfetch step. It seems that resolving the server is taking multiple minutes.
I tried changing dns servers, currently I have 4x set, both of cloud-flare's and google addresses. Everything on the machine works, curling the same url works normally. Whats weird is that fetching other sites also works fine, only the opnsense mirrors are hanging. Changing them gives no effect, neither http nor https (a while ago http would work normally)
I got to a roadblock, the issue is within the libfetch step. It seems that resolving the server is taking multiple minutes.
Code: [Select]
root@idun:~ # fetch http://mirror.terrahost.no/opnsense/FreeBSD:13:amd64/24.1/latest/meta.conf -v
resolving server address: mirror.terrahost.no:80
# hangs here... #
I tried changing dns servers, currently I have 4x set, both of cloud-flare's and google addresses. Everything on the machine works, curling the same url works normally. Whats weird is that fetching other sites also works fine, only the opnsense mirrors are hanging. Changing them gives no effect, neither http nor https (a while ago http would work normally)
Code: [Select]
root@idun:~ # time fetch https://wp.pl -v
resolving server address: wp.pl:443
SSL options: 82004854
Peer verification enabled
Using CA cert file: /usr/local/etc/ssl/cert.pem
Verify hostname
TLSv1.3 connection established using TLS_AES_128_GCM_SHA256
Certificate subject: /CN=*.wp.pl
Certificate issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=RapidSSL TLS RSA CA G1
requesting https://wp.pl/
301 redirect to https://www.wp.pl/
resolving server address: www.wp.pl:443
SSL options: 82004854
Peer verification enabled
Using CA cert file: /usr/local/etc/ssl/cert.pem
Verify hostname
TLSv1.3 connection established using TLS_AES_128_GCM_SHA256
Certificate subject: /CN=*.wp.pl
Certificate issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=RapidSSL TLS RSA CA G1
requesting https://www.wp.pl/
fetch: https://wp.pl: size of remote file is not known
local size / mtime: 581171 / 1712592780
wp.pl 567 kB 5933 kBps 00s
0.36 real 0.11 user 0.01 sys
Code: [Select]
root@idun:~ # time fetch -v http://mirror.terrahost.no/opnsense/FreeBSD:13:amd64/24.1/latest/meta.conf
resolving server address: mirror.terrahost.no:80
requesting http://mirror.terrahost.no/opnsense/FreeBSD:13:amd64/24.1/latest/meta.conf
remote size / mtime: 163 / 1712346052
meta.conf 163 B 1435 kBps 00s
75.20 real 0.00 user 0.00 sys