Skip to content

pkg(1) does not deal well with a mirror that is unavailable #486

@jclulow

Description

@jclulow

The us-west mirror is apparently down right now, and pkg commands appear to get stuck trying to contact it:

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
ooce/server/nginx                        0/2          0/27      0.0/0.7      --

It appears the system will wait rather a long time for a connection timeout, and may keep trying even after the first few tries fail. Because --disable works at the publisher level, rather than the mirror level, one must remove the mirror configuration altogether to bypass the issue.

The pkg command should probably:

  • reduce the connection timeout to something sensible like 10-20 seconds
  • remember that it failed at least once during this session and not continue to get stuck using it

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