Repository navigation
[bug] mise breaks the environment when internet connection is offline #4598
Replies: 3 comments
|
Related issues/discussions: |
|
Still hitting this on mise 2026.7.5 and 2026.7.7 (Linux, systemd-resolved), so the offline fixes since this was filed don't fully cover one case. The trigger that still blocks: a tool pinned to Minimal repro — point the resolver at a black hole (or ~45s total; lookups seen: A concrete, installed pin avoids it completely — Two questions:
|
|
Thanks for the detailed repro — this is a real remaining gap. A shim already avoids the network when an installed version satisfies the fuzzy request. In this case no installed version matched I have put together fixes for the three delay multipliers:
The existing explicit controls remain One nuance in the repro: The changes include regression coverage for DNS classification, the process-local circuit breaker, and retry suppression under This comment was generated by an AI coding assistant. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
I was recently on a plane and tried to work on a project in my terminal, before flying I had the project open for a couple of days, but haven't touched the terminal since.
When I opened the terminal on the plane which had no internet (transatlantic flight) - mise caused the shell to hang, threw a bunch of warnings and made all the shims stop working.
I've since seen this happen in other instances when my mac is offline or is on a really bad network, if I haven't touched it for a few days.
Unfortunately, when this happens there is no recourse or workaround, because mise will keep trying to fetch the versions and fail when the shell starts, and if you have no internet connection you will not be able to use your shell tools.
My suspicion is that the cache mise uses expires, and it tries to check for new versions when the shell loads - but when the check times out, instead of failing gracefully, it blocks the shell until all tools are checked, and eventually errors out and skips loading the shims.
Replication:
mise cache clear(or wait a few days for expiration without touching your terminal at all)Expected:
Terminal opens immediately, with no delay, and all installed tools work - mise can try checking for new versions asynchronously and fail, then backoff until the next opportunity.
Actual:
Terminal hangs and prints a ton of warnings, none of the tools installed with mise work
Simulation of a really bad internet connection with Network Link Conditioner (by Apple)
CleanShot.2025-03-10.at.00.16.57.mp4
Offline repro:
CleanShot.2025-03-10.at.00.30.49.mp4
Errors / Warnings
Errors / Warnings
All reactions