Home Assistant Docker Container Crashing

Hi, I am currently running the latest home assistant Docker Container on my server but it is constantly crashing with the following error log:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 226, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 181, in main
    args = get_arguments()
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 92, in get_arguments
    default=config_util.get_default_config_dir(),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.config' has no attribute 'get_default_config_dir'
[14:07:14] INFO: Home Assistant Core finish process exit code 1
[14:07:14] INFO: Home Assistant Core service shutdown
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Does anyone know how to fix this this? Thank you in advance.

1 Like

Which is latest? 7.1?

Also, where did you pull the image from?

Is this a new problem?
It looks like something is up with your default configuration.

homeassistant.config

Are able to share your docker command, and maybe even your default config.yaml?

1 Like

https://hub.docker.com/r/homeassistant/home-assistant/tags

pulled the image with the latest tag. Seems like it has been getting updates over the past few days, wonder is that broke it.

The docker command used:

sudo docker run -d --restart=always --name="home-assistant" -e "TZ=America/Toronto" -v /usr/share/hassio/:/config --net=host homeassistant/home-assistant:latest -ports

Try

ghcr.io/home-assistant/home-assistant:stable
1 Like

The correct commandline is in the docs.

What is -ports?

Tried it. Same error.

Reverted back to a previous version (2023.6), fixed it. Seems like the latest version has some bugs.

1 Like

So, back to my original question; what does ‘latest’ mean to you?
I’m using 2023.7.1 with no issues.

2023.7.1. I also tried 2023.7. Both are giving the same error, so I went with 2023.6. I’ll try again for 2023.8 whenever it comes out.

2023.8 is first Wednesday of August.