Upgrade issue with Docker

Can anyone help with this error I’m getting when Home Assistant tries to start? This is occuring since trying to upgrade to the latest version with docker.

starting version 3.2.8
2020-03-10 15:57:17 ERROR (MainThread) [homeassistant.bootstrap] Unable to set up error log /config/home-assistant.log (access denied)
2020-03-10 15:57:17 INFO (MainThread) [homeassistant.bootstrap] Config directory: /config
2020-03-10 15:57:17 INFO (SyncWorker_0) [homeassistant.config] Upgrading configuration directory from 0.104.3 to 0.106.5
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 350, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 342, in main
    exit_code = asyncio.run(setup_and_run_hass(config_dir, args))
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 583, in run_until_complete
    return future.result()
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 249, in setup_and_run_hass
    safe_mode=args.safe_mode,
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 80, in async_setup_hass
    await hass.async_add_executor_job(conf_util.process_ha_config_upgrade, hass)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/config.py", line 387, in process_ha_config_upgrade
    with open(version_path, "wt") as outp:
OSError: [Errno 30] Read-only file system: '/config/.HA_VERSION'

What ID is it running under? I see two messages indicating it may not be running under an ID with access to the filesystem.

In docker, it looks like id# 43e711811d405e7f3f9cb46f54cbe372ca9afc99653acd559f2ab7f1bef99708

How you upgrade? Rebuild with latest docker image image?

Can you get 104.3 to run still?

Like @khouse75 say, look like folder permission error. You not accidentally make goes read only for container or copy/move folder during upgrade?

I didn’t. With that being said I ended up switching to a different folder and it installed. I copied all my config files over but have completely hosed my setup. What is the proper way to update home assistant with docker? I have a separate folder with my config files. What I did was delete the original container, pull the latest one, and pointed it to my config folder. However, I’ve lost all my lovelace settings and integrations so now doing that again…

.storage folder has the integrations and I think some of lovelace

Sounds like you did right. I generally don’t pull latest but pull the specific version.

Also, for upgrade I just
Stop Old container >> build and run new >> set old container to not “restart always” delete old container at next upgrade

Try Portainer makes this easy. Watchtower some people like also. I do not delete old just in case problems with new. Is it possible uid:gid change for container so permissions got hosed?