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

Home Assistant Green wipe (reset to factory settings) failed after using external SSD as data disk #3660

Open
schellevis opened this issue Nov 5, 2024 · 0 comments
Labels

Comments

@schellevis
Copy link

schellevis commented Nov 5, 2024

Describe the issue you are experiencing

The external SSD my Home Assistant Green used as data disk got corrupted because the cable got a little bit loose. When trying the new factory reset introduced in HAOS 13.1, the device seemed to still initiate the usual booting sequence. The device was pingable, but observer and HA Core were down. When connected a screen, it kept showing the "Waiting for the Home Assistant CLI to be ready" line.

One log file survived the wipe I eventually did using the SD card procedure, and although the date and time don't match, the attached USB keyboard and the errors reflect the situation yesterday. On screen, there was a warning saying date and time were not reliable. The log shows the reset was not initiated:

mei 27 23:48:37 homeassistant systemd[1]: Home Assistant OS Device Wipe Service was skipped because of an unmet condition check (ConditionKernelCommandLine=haos.wipe=1).

I had HAOS 13.2 installed and followed the reset to factory settings guide. During the reset procedure, the orange led turned on solid as shown in the GIF. After that, there seemed to be no difference in behaviour between booting the HA Green with or without the reset procedure.

When booting the device without the external SSD, it went into the emergency console. This happened both with and without the reset button pressed at power on.

What operating system image do you use?

green (Home Assistant Green)

What version of Home Assistant Operating System is installed?

13.2

Did the problem occur after upgrading the Operating System?

No

Hardware details

Home Assistant Green with 250GB external SSD attached.

The Fan-X usb dongle (for controlling ventilation) was also attached during use: https://github.com/Marcelh1/fanx/wiki

Steps to reproduce the issue

  1. move HA data to external data disk
  2. corrupt data disk
  3. try to initiate firmware reset / wipe

Anything in the Supervisor logs that might be useful for us?

n/a

Anything in the Host logs that might be useful for us?

mmc errors:

mei 27 23:48:36 homeassistant kernel: mmc0: new HS200 MMC card at address 0001
mei 27 23:48:36 homeassistant kernel: mmcblk0: mmc0:0001 032G01 29.1 GiB
mei 27 23:48:36 homeassistant kernel: GPT:Primary header thinks Alt. header is not at the end of the disk.
mei 27 23:48:36 homeassistant kernel: GPT:4194303 != 61071359
mei 27 23:48:36 homeassistant kernel: GPT:Alternate GPT header not at the end of the disk.
mei 27 23:48:36 homeassistant kernel: GPT:4194303 != 61071359
mei 27 23:48:36 homeassistant kernel: GPT: Use GNU Parted to correct GPT errors.
mei 27 23:48:36 homeassistant kernel:  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
mei 27 23:48:36 homeassistant kernel: mmcblk0boot0: mmc0:0001 032G01 8.00 MiB
mei 27 23:48:36 homeassistant kernel: mmcblk0boot1: mmc0:0001 032G01 8.00 MiB
mei 27 23:48:36 homeassistant kernel: mmcblk0rpmb: mmc0:0001 032G01 4.00 MiB, chardev (237:0)
mei 27 23:48:36 homeassistant kernel: printk: console [netcon0] enabled
mei 27 23:48:36 homeassistant kernel: netconsole: network logging started
mei 27 23:48:36 homeassistant kernel: clk: Disabling unused clocks
mei 27 23:48:36 homeassistant kernel: md: Waiting for all devices to be available before autodetect
mei 27 23:48:36 homeassistant kernel: md: If you don't use raid, use raid=noautodetect
mei 27 23:48:36 homeassistant kernel: md: Autodetecting RAID arrays.
mei 27 23:48:36 homeassistant kernel: md: autorun ...
mei 27 23:48:36 homeassistant kernel: md: ... autorun DONE.
mei 27 23:48:36 homeassistant kernel: F2FS-fs (mmcblk0p3): Magic Mismatch, valid(0xf2f52010) - read(0xe0f5e1e2)
mei 27 23:48:36 homeassistant kernel: F2FS-fs (mmcblk0p3): Can't find valid F2FS filesystem in 1th superblock
mei 27 23:48:36 homeassistant kernel: F2FS-fs (mmcblk0p3): Magic Mismatch, valid(0xf2f52010) - read(0xc0d100a8)
mei 27 23:48:36 homeassistant kernel: F2FS-fs (mmcblk0p3): Can't find valid F2FS filesystem in 2th superblock
mei 27 23:48:36 homeassistant kernel: erofs: (device mmcblk0p3): mounted with root inode @ nid 37.
mei 27 23:48:36 homeassistant kernel: VFS: Mounted root (erofs filesystem) readonly on device 179:3.
mei 27 23:48:36 homeassistant kernel: devtmpfs: mounted

---

fsck errors:

mei 27 23:48:37 homeassistant systemd-fsck[213]: Cannot initialize conversion from codepage 850 to ANSI_X3.4-1968: Invalid argument
mei 27 23:48:37 homeassistant systemd-fsck[213]: Cannot initialize conversion from ANSI_X3.4-1968 to codepage 850: Invalid argument
mei 27 23:48:37 homeassistant systemd-fsck[213]: Using internal CP850 conversion table
mei 27 23:48:37 homeassistant systemd-fsck[213]: fsck.fat 4.2 (2021-01-31)
mei 27 23:48:37 homeassistant systemd-fsck[213]: /dev/mmcblk0p1: 5 files, 59/8167 clusters
mei 27 23:48:37 homeassistant systemd[1]: Finished File System Check on /dev/disk/by-label/hassos-boot.
mei 27 23:48:37 homeassistant systemd-fsck[214]: e2fsck 1.47.0 (5-Feb-2023)
mei 27 23:48:37 homeassistant systemd-fsck[215]: e2fsck 1.47.0 (5-Feb-2023)
mei 27 23:48:37 homeassistant systemd-fsck[214]: hassos-overlay: clean, 12/24576 files, 11859/98304 blocks
mei 27 23:48:37 homeassistant systemd-fsck[215]: hassos-data: clean, 24233/81920 files, 177474/327680 blocks

---

mounting / wipe error:

mei 27 23:48:37 homeassistant systemd[1]: Mounted HassOS boot partition.
mei 27 23:48:37 homeassistant systemd[1]: Starting Home Assistant OS Agent...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 main.go:34: Start OS-Agent 1.6.0
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 main.go:124: Exposing object /io/hass/os with interface io.hass.os ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 main.go:67: Listening on service io.hass.os ...
mei 27 23:48:37 homeassistant os-agent[227]: WARNING: 2024/05/27 21:48:37 datadisk.go:106: Can't find a data mount!
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 datadisk.go:154: Exposing object /io/hass/os/DataDisk with interface io.hass.os.DataDisk ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 system.go:161: Exposing object /io/hass/os/System with interface io.hass.os.System ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 apparmor.go:116: Exposing object /io/hass/os/AppArmor with interface io.hass.os.AppArmor ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 cgroup.go:115: Detected CGroups Version 2
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 cgroup.go:143: Exposing object /io/hass/os/CGroup with interface io.hass.os.CGroup ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 boards.go:69: Exposing object /io/hass/os/Boards with interface io.hass.os.Boards ...
mei 27 23:48:37 homeassistant os-agent[227]: INFO: 2024/05/27 21:48:37 green.go:119: Exposing object /io/hass/os/Boards/Green with interface io.hass.os.Boards.Green ...
mei 27 23:48:37 homeassistant systemd[1]: Started Home Assistant OS Agent.
mei 27 23:48:37 homeassistant systemd[1]: Home Assistant OS Device Wipe Service was skipped because of an unmet condition check (ConditionKernelCommandLine=haos.wipe=1).
mei 27 23:48:37 homeassistant kernel: rockchip-rga fdeb0000.rga: HW Version: 0x03.02
mei 27 23:48:37 homeassistant kernel: rockchip-rga fdeb0000.rga: Registered rockchip-rga as /dev/video0
mei 27 23:48:37 homeassistant kernel: hantro-vpu fdea0000.video-codec: Adding to iommu group 0
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: clock rate = 594000000
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: bus_clock rate = 500000000
mei 27 23:48:37 homeassistant kernel: spi-nor spi4.0: w25q128fw (16384 Kbytes)
mei 27 23:48:37 homeassistant kernel: hantro-vpu fdea0000.video-codec: registered rockchip,rk3568-vpu-dec as /dev/video1
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: mali-g52 id 0x7402 major 0x1 minor 0x0 status 0x0
mei 27 23:48:37 homeassistant kernel: rockchip-vop2 fe040000.vop: Adding to iommu group 2
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: features: 00000000,00000cf7, issues: 00000000,00000400
mei 27 23:48:37 homeassistant kernel: hantro-vpu fdee0000.video-codec: Adding to iommu group 1
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: Features: L2:0x07110206 Shader:0x00000002 Tiler:0x00000209 Mem:0x1 MMU:0x00002823 AS:0xff JS:0x7
mei 27 23:48:37 homeassistant kernel: panfrost fde60000.gpu: shader_present=0x1 l2_present=0x1
mei 27 23:48:37 homeassistant kernel: hantro-vpu fdee0000.video-codec: registered rockchip,rk3568-vepu-enc as /dev/video2
mei 27 23:48:37 homeassistant kernel: [drm] Initialized panfrost 1.2.0 20180908 for fde60000.gpu on minor 0
mei 27 23:48:37 homeassistant systemd[1]: Mounting HassOS overlay partition...
mei 27 23:48:37 homeassistant kernel: rockchip-drm display-subsystem: bound fe040000.vop (ops vop2_component_ops [rockchipdrm])
mei 27 23:48:37 homeassistant kernel: EXT4-fs (mmcblk0p7): mounted filesystem da75077a-dcfa-4c55-bcdc-8128f3e546d3 r/w with ordered data mode. Quota mode: none.
mei 27 23:48:37 homeassistant systemd[1]: Mounted HassOS overlay partition.
mei 27 23:48:37 homeassistant systemd[1]: Mounting Dropbear persistent keys...
mei 27 23:48:37 homeassistant systemd[1]: etc-modprobe.d.mount: Directory /etc/modprobe.d to mount over is not empty, mounting anyway.
mei 27 23:48:37 homeassistant systemd[1]: Mounting Kernel persistent modprobe.d...
mei 27 23:48:37 homeassistant systemd[1]: Mounting Kernel persistent modules-load.d...
mei 27 23:48:37 homeassistant systemd[1]: Mounting Udev persistent rules.d...
mei 27 23:48:37 homeassistant systemd[1]: Mounting Docker persistent user...
mei 27 23:48:37 homeassistant kernel: dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
mei 27 23:48:37 homeassistant kernel: dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
mei 27 23:48:37 homeassistant kernel: rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
mei 27 23:48:37 homeassistant systemd[1]: Mounting Dropbear persistent user...
mei 27 23:48:37 homeassistant systemd[1]: Home Assistant OS data partition migration was skipped because of an unmet condition check (ConditionPathExists=/mnt/overlay/move-data).
mei 27 23:48:37 homeassistant systemd[1]: Starting HassOS data resizing...
mei 27 23:48:37 homeassistant systemd[1]: Starting HassOS overlay setup...
<end of file>

System information

No response

Additional information

No response

@schellevis schellevis added the bug label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant