HomeAssistant Docker does not start when mounting my HDD

Hi people,

I’m having problems at the time that I mount my HDD at boot with fstab.

If I mount it with fstab, homeassistant docker does not start. There is a problem in udev.

[cont-init.d] udev.sh: executing…
[21:50:42] INFO: Update udev information
[cont-init.d] udev.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

If it starts without my HDD mounted (I delete the line in fstab), HomeAssistant starts because udev.sh exits with 0.

¿What’s the problem here? I have a headeach with this… Any idea?

EDIT: It’s Home Assistant supervised in docker. I installed it 1 year ago, before the actual changename. In raspberry pi 4 4gb (Raspbian Buster).

I have tested it more, and homeassistant doesn’t work when I connect my HDD Dock that is Sharkoon Quickport Duo. If I power off the dock, home assistant starts correctly. Supervisor starts both with HDD dock connected and unconnected.

Thanks!

Little information.
You talk about Home Assistant docker, I presume you run Home Assistant Container ? On which OS ?

I updated first post.

It’s Home Assistant supervised in docker. I installed it 1 year ago, before the actual changename. In raspberry pi 4 4gb (Raspbian Buster),

I have tested it more, and homeassistant doesn’t work when I connect my HDD Dock that is Sharkoon Quickport Duo. If I power off the dock, home assistant starts correctly. Supervisor starts both with HDD dock connected and unconnected.

If you run supervised, ssh to the host and run

dmesg -l err,crit,alert,emerg

and see what it returns with and without the dock connected.

Dock connected and unconnected in some tests:

[ 6.322421] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 6.678149] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 6.700656] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
[ 7.758174] sd 0:0:0:0: [sda] No Caching mode page found
[ 7.758191] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9.676939] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 38.144584] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 134.258264] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 134.528206] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 164.606911] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 194.676122] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 194.756191] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 224.835774] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 224.838577] udevd[204]: ‘ata_id --export /dev/sda’ [218] terminated by signal 1 (Hangup)
[ 264.925447] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 265.025346] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 295.146407] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 295.166458] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 325.277033] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 325.317080] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 403.647694] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 403.867693] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 433.877750] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 463.917827] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 494.007770] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 514.648070] blk_update_request: I/O error, dev sda, sector 2048 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 514.648126] blk_update_request: I/O error, dev sda, sector 2048 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 514.648135] Buffer I/O error on dev sda1, logical block 0, async page read
[ 642.488062] sd 0:0:0:0: [sda] No Caching mode page found
[ 642.488081] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 667.677090] udevd[278]: inotify_add_watch(7, /dev/sda, 10) failed: No such file or directory
[ 669.327491] udevd[277]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory
[ 672.633408] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 675.723378] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 705.743977] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 755.684856] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 755.884717] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 785.905098] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 785.905609] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 816.035476] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 846.055766] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 876.096061] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 906.136210] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 936.166392] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 966.186695] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 968.013064] udevd[323]: worker [423] /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1 timeout; kill it
[ 968.013116] udevd[323]: seq 3467 ‘/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1’ killed
[ 996.206858] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 996.207368] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 996.210248] udevd[323]: worker [423] failed while handling ‘/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1’
[ 1026.237070] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1056.257696] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1056.307726] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1086.328830] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1116.349453] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1116.350876] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 1143.950623] blk_update_request: I/O error, dev sda, sector 1953523584 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 1143.957364] blk_update_request: I/O error, dev sda, sector 1953523584 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 1143.957375] Buffer I/O error on dev sda1, logical block 244190192, async page read

Dock connected:

[ 2371.875650] sd 0:0:0:0: [sda] No Caching mode page found
[ 2371.875670] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 2371.939475] udevd[303]: inotify_add_watch(7, /dev/sda, 10) failed: No such file or directory
[ 2375.496860] udevd[302]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory
[ 2401.992308] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 2402.052497] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s
[ 2432.003049] sd 0:0:0:0: [sda] tag#0 timing out command, waited 30s