There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

"Client.Timeout exceeded while awaiting headers" when pulling Docker image via OpenMediaVault UI.

My household has recently bought some smarthome equipment that I’m now obligated to set up and teach my housemates to use, so I’ve been trying to modify my existing OpenMediaVault server to simultaneously run HomeAssistant in a Docker container.

I’ve successfully installed omv-extras and openmediavault-compose, and followed this guide up to the end of Step 8. However, whenever I select the HomeAssistant and click “pull” or “up” in order to actually download the HomeAssistant program the standard OMV terminal window thing appears saying “homeassistant Pulling” before seemingly doing nothing for several minutes. Eventually, “** CONNECTION LOST**” appears and I get an error message in the OMV notifications menu.

Here is the error message given:


<span style="color:#323232;">Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/Docker/HomeAssistant Core/HomeAssistant Core.yml' --env-file '/Docker/HomeAssistant Core/HomeAssistant Core.env' --env-file '/Docker/global.env' pull 2>&amp;1':  homeassistant Pulling
</span><span style="color:#323232;"> homeassistant Error
</span><span style="color:#323232;">Error response from daemon: Get "https://lscr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
</span><span style="color:#323232;">
</span><span style="color:#323232;">OMVExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/Docker/HomeAssistant Core/HomeAssistant Core.yml' --env-file '/Docker/HomeAssistant Core/HomeAssistant Core.env' --env-file '/Docker/global.env' pull 2>&amp;1':  homeassistant Pulling
</span><span style="color:#323232;"> homeassistant Error
</span><span style="color:#323232;">Error response from daemon: Get "https://lscr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) in /usr/share/openmediavault/engined/rpc/compose.inc:676
</span><span style="color:#323232;">Stack trace:
</span><span style="color:#323232;">#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMVRpcServiceCompose->{closure}('/tmp/bgstatus6Z...', '/tmp/bgoutputy2...')
</span><span style="color:#323232;">#1 /usr/share/openmediavault/engined/rpc/compose.inc(679): OMVRpcServiceAbstract->execBgProc(Object(Closure))
</span><span style="color:#323232;">#2 [internal function]: OMVRpcServiceCompose->doCommand(Array, Array)
</span><span style="color:#323232;">#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
</span><span style="color:#323232;">#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMVRpcServiceAbstract->callMethod('doCommand', Array, Array)
</span><span style="color:#323232;">#5 /usr/sbin/omv-engined(537): OMVRpcRpc::call('Compose', 'doCommand', Array, Array, 1)
</span><span style="color:#323232;">#6 {main}
</span>

Here’s the “stack”:


<span style="color:#323232;">---
</span><span style="color:#323232;"># https://hub.docker.com/r/linuxserver/homeassistant
</span><span style="color:#323232;">version: "2.1"
</span><span style="color:#323232;">services:
</span><span style="color:#323232;">  homeassistant:
</span><span style="color:#323232;">    image: lscr.io/linuxserver/homeassistant:latest
</span><span style="color:#323232;">    container_name: homeassistant
</span><span style="color:#323232;">    network_mode: host
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PUID=1002
</span><span style="color:#323232;">      - PGID=100
</span><span style="color:#323232;">      - TZ=Etc/UTC
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - ./config:/config
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - 8123:8123 #optional
</span><span style="color:#323232;">    devices:
</span><span style="color:#323232;">      - /path/to/device:/path/to/device #optional
</span><span style="color:#323232;">    restart: unless-stopped
</span><span style="color:#323232;">
</span>

While my main goal here is HomeAssistant, I’ve also tried installing other programs from the ‘add from example…’ menu (Jellyfin, Beets, and Syncthing) all of which have had similar results. It’s probably noteworthy that all of these, from what I can tell, appear to be trying to download from lscr.io, meaning there’s a chance the issue is with that website specifically.

Sorry if I haven’t provided enough information, I’ve never seriously attempted to set up Docker before. Feel free to ask for any more information that might be useful. EDIT: Also, sorry if this isn’t the right community to ask technical support questions in, if that’s the case please let me know somewhere else I should post this instead.

Decronym Bot ,

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
HA Home Assistant automation software
~ High Availability
IP Internet Protocol
SSD Solid State Drive mass storage

[Thread for this sub, first seen 23rd Oct 2023, 20:45] [FAQ] [Full list] [Contact] [Source code]

westyvw ,

What are you DNS settings? Is the gateway configured? Can openmediavault check for updates itself?

Cyberpro123 OP ,

The current DNS server is just set to the IP address of my Gateway, which I don’t think has had any significant changes to its settings since the ISP delivered it. OMV is currently able to check for updates and all internet-related operations on the machine so far have been working perfectly as expected - except, of course, for the pulling issue described above.

My current plan, after seeing the other comment about the limitations of the Docker version of HomeAssistant, is to essentially wipe the drive I’m currently running OMV on, install HomeAssistant OS overtop it, and then try to make HAOS to the jobs I used OMV for. In case that doesn’t work I’m going to be making a disc image backup of how the OS drive currently is (Drive is 250GB, I have a spare 1TB external SSD) and disconnecting the other drives until I’m confident in the HAOS solution. That way I should at least be able to revert things to how they are now and use HAOS on another machine if I need to.

Thank you (and the others) for trying to help.

Pete90 ,

Two or three things come to mind that to me so I’ll just put them here:

Did you setup a DNS server? Port already taken? Permission error?

scrubbles ,
@scrubbles@poptalk.scrubbles.tech avatar

DNS is the first thing that came to mind on something being broken. When I doubt, see if docker’s hello world works first

MaggiWuerze ,

On a side note, I would advise against installing HA in docker, since that keeps you from adding plugins, which can only be installed in HAOS and are needed for a lot of functionality.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines