Skip to content

Observed regression with cargo after updating from 1.27.0 to 1.28.0 #737

Closed

Description

@zazaho

I observe persistent download failures with cargo build after upgrading c-ares. Downgrading resolves the issue.

My cargo is built to use system libcurl version 8.7.1

The message I see is:

Updating crates.io index
warning: spurious network error (3 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)

Activity

  1. changed the title [-]Observered regression with cargo after updating from 1.27.0 to 1.28.0[/-] [+]Observed regression with cargo after updating from 1.27.0 to 1.28.0[/+] on Mar 30, 2024
  2. bradh352 commented on Mar 30, 2024

    @bradh352
    Member

    I'd need more information probably, such as if this is observed on just one system or multiple systems. Also, what OS is this on? My best guess is if you're on Linux, that maybe there's something up with the new /etc/resolv.conf and /etc/nsswitch.conf parsers so data out of those files might prove useful.

  3. zazaho commented on Mar 30, 2024

    @zazaho
    Author

    I am sorry for leaving out such detais. I manage only my personal machine which is a fedora based machine but I try to keep it up to date by managing a number of rpm packages myself. As vanilla as possible.

    I attach the files you mentioned.
    nsswitch.conf.txt
    resolv.conf.txt

  4. zazaho commented on Mar 30, 2024

    @zazaho
    Author

    Are there (easy) steps that I can take to help identify the origin of issue ?

  5. bradh352 commented on Mar 30, 2024

    @bradh352
    Member

    Nothing looks unusual there. I'm not familiar with how fedora packages c-ares, do they package the 'ahost' and 'adig' utilities that typically get built with c-ares? It would be useful to see the output of using those utilities to resolve the same domain name.

  6. zazaho commented on Mar 30, 2024

    @zazaho
    Author

    adig_v1.27.0.txt
    adig_v1.28.0.txt
    ahost_v1.27.0.txt

    ahost of 1.28.0 produces no output but say crates.io: Domain name not found

  7. bradh352 commented on Mar 30, 2024

    @bradh352
    Member

    very strange, i've been able to reproduce, its something with searching and the fact that no search domains are configured.
    if you add a line like:

    search doesnotexist.local
    

    to your /etc/resolv.conf, it will magically start working.

  8. bradh352 commented on Mar 30, 2024

    @bradh352
    Member

    This should be fixed in b00b0ac as it works on my test linux system with the patch and did not without.

  9. bradh352 commented on Mar 30, 2024

    @bradh352
    Member

    and released as part of c-ares 1.28.1 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions