-
Notifications
You must be signed in to change notification settings - Fork 249
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
pkgin update reports "No Address Found" if started within a few seconds of rebooting a zone #1114
Comments
Still probably not the best place for it, but I'll give it a quick look now... The error message and situationlooks similar to this now-closed issue on pksrc First thing, check your /etc/resolv.conf in the zone you're running pkgsrc in. It's weird that you can curl but you cannot use pkgsrc. Seconde, you may wish to re-open that bug? |
I really don't think it's the resolv.conf (which is nameserver 8.8.4.4) I'm happy to reopen the pkgsrc bug, however it seems worth waiting to see what you find first. It occurred to me to mention that I found the bug in a zone with postfix etc, which I thought could be affecting the timing, however, I just tested on a minimal zone, and it still fails with a sleep 3, and works with a sleep 5 after the reboot. |
I'm assuming this is a native zone? If it isn't, ignore the following... What does |
libfetch isn't doing anything unusual here: https://github.com/TritonDataCenter/pkgsrc/blob/trunk/net/libfetch/files/common.c#L285-L294 If |
svcs -xv name-service-cache I also tried it immediately after rebooting: Successfully completed reboot for VM 20283614-1e7c-4b08-b773-d4b40ae499e2 But I don't think it's the smoking gun because I also tested with a sleep 3 after the reboot: Successfully completed reboot for VM 20283614-1e7c-4b08-b773-d4b40ae499e2 pkgin: Could not fetch https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All/pkg_summary.gz: No address record |
While writing scripts to configure a zone, I ran into a strange behavior...
After rebooting a zone, and then running "pkgin update"...
I'll get: pkgin: Could not fetch https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All/pkg_summary.gz: No address record
if I don't wait at least 4 seconds or so...
During my testing, I found I could actually curl the file, download it completely, and still get the no address found error.
Reboot VM...
Successfully completed reboot for VM 20283614-1e7c-4b08-b773-d4b40ae499e2
curl "https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All/pkg_summary.gz" | wc c
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5202k 100 5202k 0 0 1515k 0 0:00:03 0:00:03 -:--:-- 1514k
11/25/2024 07:58 UTC:
pkgin: Could not fetch https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All/pkg_summary.gz: No address record
processing remote summary (https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All)...
Rejected at illumos: https://www.illumos.org/issues/16914
The text was updated successfully, but these errors were encountered: