Skip to content

Commit c236fdb

Browse files
committed
troubleshooting/upgrade: describe first-boot service never completing
Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
1 parent ece634a commit c236fdb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/troubleshooting/installation-upgrade.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,33 @@ On the host, run `efibootmgr`.
6464
- If you see `EFI variables are not supported on this system.` you're running on legacy BIOS.
6565
- If you see some EFI boot entries, you’re running on UEFI.
6666

67+
### First-boot service never completed
68+
69+
A few tasks are normally done during first boot, as part of finalizing the installation. Each of them leaves a "done" stamp when they finish, and as a sanity check the installer requires a few of them to have indeed succeeded, or will not consider the installation as upgradable.
70+
71+
One possibility is that the host was never fully booted after it was last installed or upgraded, but there can be conditions preventing one single first-boot service to complete.
72+
73+
Diagnosing this currently requires looking into the installation log. See [above](#during-installation-or-upgrade) to access the log file.
74+
75+
In this case you would see one either or two log lines like the following. If the system never booted, typically both lines are present:
76+
77+
```
78+
Cannot upgrade nvme0n1, expected file missing: var/lib/misc/ran-storage-init (installation never booted?)
79+
Cannot upgrade nvme0n1, expected file missing: var/lib/misc/ran-network-init (installation never booted?)
80+
```
81+
82+
If only the "storage-init" line is present, get more information from `storage-init.service` from the host (after rebooting into the original XCP-ng you want to upgrade).
83+
84+
If upgrading from an older release, you may instead get logs showing:
85+
86+
```
87+
Upgradeability test failed:
88+
Firstboot: ...
89+
Missing state: ...
90+
```
91+
92+
The "Missing state" line will similarly tell which required first-boot service never completed.
93+
6794
## Installation logs
6895

6996
The installer writes in `/var/log/installer/`.

0 commit comments

Comments
 (0)