this post was submitted on 22 Oct 2023
15 points (89.5% liked)

Selfhosted

40183 readers
1201 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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:

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>&1':  homeassistant Pulling
 homeassistant Error
Error response from daemon: Get "https://lscr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

OMV\ExecException: 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>&1':  homeassistant Pulling
 homeassistant Error
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
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMVRpcServiceCompose->{closure}('/tmp/bgstatus6Z...', '/tmp/bgoutputy2...')
#1 /usr/share/openmediavault/engined/rpc/compose.inc(679): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceCompose->doCommand(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doCommand', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doCommand', Array, Array, 1)
#6 {main}

Here's the "stack":

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

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

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