omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Installation Crash: PlanningError: inconsistent macOS resize metrics (Apple M1, 8GB RAM)

Open jishanws opened this issue 1 month ago • 5 comments

System details

Apple M1 MacBook (8GB RAM, 256GB SSD), Omarchy 4.5 Installer

What's wrong?

Description

The installer crashed during the disk preparation phase on my Apple M1 MacBook (256GB storage layout). Initially, the application detected 132 GB of free space and was configured to allocate 77 GB for Omarchy.

The setup progress bar became stuck on the "Preparing disk space..." phase for over 3+ hours before ultimately throwing an unclassified engine failure.

Clarification on the sequence of events: The installer threw the Python exception first while still running in the active session. The system did not crash or reboot on its own before displaying the error window. A manual system restart was performed only after seeing the failure message to see if the metrics would clear, but the missing 77 GB remains completely unaccounted for. macOS still reports only 50 GB of free space available.

Image

Error Logs & Traceback

The disk compatibility check failed. Installation is unavailable. Details: engineFailed(OmarchyAppleInstallerTrustCore.EngineFailureReport(notice: engineFailed(reason: unclassified, exit: 1, diskUnchanged: false, summary: "omarchy_planner.PlanningError: inconsistent macOS resize metrics"), redactedStandardErrorTail: "root : ERROR Exception caught\nTraceback (most recent call last):\n File "/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/main.py", line 1275, in \n InstallerMain(installer_version).main()\n File "/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/main.py", line 1046, in main\n while self.main_loop():\n File "/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/main.py", line 1176, in main_loop\n self.engine_runtime.run_layout(\n File "/private/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/omarchy_runtime.py", line 172, in run_layout\n collected = omarchy_planner.collect_inventory(\n File "/private/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/omarchy_planner.py", line 150, in collect_inventory\n minimum_install, minimum_container, recommended_container = _resize_offer(\n File "/private/var/folders/1v/w6t8lql54kj9dwr0gxqmf0_00000gn/T/org.omarchy.installer-engine/engine-execution-f5410190-1393-470d-9b24-79084430877f/bundle/omarchy_planner.py", line 91, in _resize_offer\n raise PlanningError("inconsistent macOS resize metrics")\nomarchy_planner.PlanningError: inconsistent macOS resize metrics"))

jishanws avatar Nov 05 '26 23:11 jishanws

Update: Failed Reclaim Attempt & Diagnostics

Attempted to reclaim the trapped 77 GB space via diskutil apfs resizeContainer disk0s2 0 under both live macOS and Recovery First Aid, but the operation is permanently blocked by a live partition boundary alignment error.

=== DIAGNOSTIC LOG === Command: diskutil apfs resizeContainer disk0s2 0 Output: Started APFS operation Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space

Root Cause Analysis:

  • Physical Store (disk0s2): 245,107,195,904 bytes (245.1 GB) (device block count: 59,840,624)
  • APFS Container (disk3): 168,108,163,072 bytes (168.1 GB) (nx_block_count: 41,042,032)
  • Trapped Space: 76,999,032,832 bytes (~77.0 GB)
  • Adjacent Partition: disk0s3 (Apple_APFS_Recovery, 5.4 GB) directly bounds disk0s2.
  • State: The installer successfully altered the internal container size ceiling (nx_block_count) but failed before creating a new GPT partition slice. Under live macOS, diskutil refuses to reconcile the container ceiling without offline recovery reconciliation.

Waiting for the next Omarchy installer release or removal framework update to safely clean this up.

jishanws avatar Nov 06 '26 10:11 jishanws

Update: Trapped Space Reclaimed Successfully via Workaround

I have successfully recovered the 77 GB of trapped space back into my primary macOS container directly from my active desktop without any reboots.

I applied the 1 GiB delta workaround discovered and documented in issue omacom/omarchy-mac-installer#196:

  1. diskutil apfs resizeContainer disk0s2 244G (This bypassed error -69519 by introducing a temporary layout gap)
  2. diskutil apfs resizeContainer disk0s2 0 (Successfully expanded the container ceiling back to the maximum physical limits)

My drive layout is completely restored, and diskutil apfs list now correctly shows Capacity Not Allocated: 0 B (None). While my storage space is recovered, the underlying installer crash condition (PlanningError: inconsistent macOS resize metrics) still remains present on initial deployment.

jishanws avatar Nov 07 '26 07:11 jishanws

I read the traceback and both follow-up comments, including your November 7 report that all 77 GB were recovered. The remaining report is the installer failure with PlanningError: inconsistent macOS resize metrics; the linked macOS installer issue #196 is still open.

GPT-6 in Codex reviewed this report; the session's reasoning effort was not exposed. I have not reproduced the APFS failure on Apple hardware. Classification remains unsettled because the configured classification model, deepseek-v4p1-flash, returned no decision, so verification and a fix have not proceeded. This is waiting for classification review.

omarchybot avatar Nov 19 '26 00:11 omarchybot

Thanks for the diagnostics, and for posting the steps that got your 77 GB back.

This is the same failure as omacom/omarchy-mac-installer#196: the resize stalls after the APFS shrink, so the container ends up smaller than disk0s2 and the planner then rejects the resize metrics. Let's track the fix there. The 1 GiB-delta workaround you used (resizeContainer disk0s2 <size − 1G>, then resizeContainer disk0s2 0) is written up in that issue for anyone else who hits this.

maralcbr avatar Nov 22 '26 04:11 maralcbr

The classification blocker in my earlier comment is resolved: this is recorded as a bug. I checked the updated reports and the current Omarchy tree; the failing planner belongs to the separate macOS installer. As @maralcbr directed, the fix is tracked in installer issue #196, which remains open.

GPT-6 in Codex (reasoning effort not exposed) reviewed this report. Opus 5.5 High and muse-wonder via pi, thinking high also reviewed it and agreed that the cause of the original resize stall remains unconfirmed; independence is not guaranteed. No Apple/APFS reproduction was run or fixed installer build verified. This is waiting on the installer maintainers through #196.

omarchybot avatar Nov 23 '26 06:11 omarchybot