Skip to content
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

Search failing with "the file condensed couldn't be opened" #159

Open
NorseGaud opened this issue Jan 26, 2024 · 4 comments
Open

Search failing with "the file condensed couldn't be opened" #159

NorseGaud opened this issue Jan 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@NorseGaud
Copy link

2.0 / arm64

❯ sw_vers
ProductName:		macOS
ProductVersion:		14.3
BuildVersion:		23D56
❯ mist list firmware Sonoma --compatible --latest -o json
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ List search string will be 'Sonoma'...
  ├─ Search only for latest (first) result will be 'true'...
  ├─ Include betas in search results will be 'false'...
  ├─ Only include compatible firmwares will be 'true'...
  ├─ macOS Firmware metadata cache path will be '/Users/Shared/Mist/firmwares.json'...
  ├─ Output type will be 'json'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS Firmware versions...
  ├─ The file “condensed” couldn’t be opened.
  └─ Found 0 macOS Firmware(s) available for download
@NorseGaud NorseGaud added the bug Something isn't working label Jan 26, 2024
@NorseGaud
Copy link
Author

Seems inconsistent. If I run it another 5 times, I get 1 or 2 times it actually works.

@NorseGaud
Copy link
Author

Interestingly, when it does work, it actually doesn't work:

++ sudo mist download firmware 23D56 --firmware-name macos-%VERSION%.ipsw --compatible --output-directory /Applications
 . . .
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 1 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 2 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 3 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 4 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 5 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 6 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 7 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 8 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 9 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ The request timed out.
  ├─ Retrying attempt [ 10 / 10 ] in 30 seconds...
  ├─ UniversalMac_14.3_23D56_Restore.ipsw...... [ 03.28 GB / 14.51 GB (22.64%) ]
  ├─ Saving resume data to '/private/tmp/com.ninxsoft.mist/com.ninxsoft.mist.14.3-23D56/UniversalMac_14.3_23D56_Restore.ipsw.resumeData'...
  └─ Maximum number of retries reached.

@ninxsoft
Copy link
Owner

@NorseGaud the The file “condensed” couldn’t be opened. error you are seeing refers to the macOS firmware JSON metadata file that mist is attempting to download:

static let firmwaresURL: String = "https://api.ipsw.me/v3/firmwares.json/condensed"

In my testing, this error can occur at certain times when the file is not accessible via the web, i.e. when it is being updated by the maintainer of ipsw.me.

To combat this, the condensed file is cached locally via the --metadata-cache option (default: /Users/Shared/Mist/firmwares.json), so that downloads can still occur if a slightly older version of the condensed file was previously cached.

Is this the behaviour you are experiencing?

@NorseGaud
Copy link
Author

NorseGaud commented Feb 12, 2024

Thanks @ninxsoft , I feel like I had this issue last year but the experience differs...

Couldn't it just fall back to --metadata-cache?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants