core: Failed upgrade from 2024.10.4

The problem

When I try to upgrade to 2024.11.1 and 2024.11.2 (I didn’t try 2024.11.0) the upgrade fails, the error I get in home-assistant-rollback.log is below. Note:

  1. I do use HACS but I tried disabling HACS and all the custom integrations
  2. I also tried sanitizing my configuration.yaml though I am not 100% what is safe to remove there.
  3. I tried enabling debug and doing the upgrade, but that did not change the error message.

Message is as follows note the email address is correct but I have x’ed it out:

2024-11-16 17:29:24.892 ERROR (MainThread) [root] Uncaught exception
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 223, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/runner.py", line 157, in setup_and_run_hass
    hass = await bootstrap.async_setup_hass(runtime_config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 326, in async_setup_hass
    await async_from_config_dict(config_dict, hass) is not None
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 458, in async_from_config_dict
    await async_load_base_functionality(hass)
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 427, in async_load_base_functionality
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1977, in async_initialize
    entries[entry_id] = config_entry
    ~~~~~~~^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1618, in __setitem__
    self.check_unique_id(entry)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1659, in check_unique_id
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The entry unique id ['xxx@xxx.com'] is not a string.

What version of Home Assistant Core has the issue?

core-2024.11.2

What was the last working version of Home Assistant Core?

core-2024.10.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 27

Most upvoted comments

@bluk10 your post was a HUGE help, I got my upgrade to proceed. If anyone else is curious here’s what I found: in /.storage/core.config_entries I had the following entry:

      {
        "created_at": "1970-01-01T00:00:00+00:00",
        "data": {
          "username": "xxx@xxx.com",
          "password": "xxxxx"
        },
        "discovery_keys": {},
        "disabled_by": null,
        "domain": "schlage",
        "entry_id": "f7079b98a0334ddcfc7c987a1b205a6a",
        "minor_version": 1,
        "modified_at": "1970-01-01T00:00:00+00:00",
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "title": "Schlage Locks",
        "unique_id": [
          "xxx@xxx.com"
        ],
        "version": 1
      },

it was for my door lock, I removed that whole entry and the upgrade went perfectly. Which is now not working, but this isn’t a huge concern from me, it is odd though given it is core integration.

I’ve posted to the discord, will update if something comes of it. Had a request for rollback log so am hopeful there’s something in there that points to a root. https://discord.com/channels/330944238910963714/1306362501922947112

Also for me:( Two big features I want in 2024.11 and all I can do is see everyone else remark on their greatness. Tis a sad life.

On Fri, Nov 22, 2024 at 3:26 PM dumaresq @.***> wrote:

Problem persists to 2024.11.3

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/130812#issuecomment-2494739566, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7RMLA2NJFVVUQLVKP3K53D2B6HQNAVCNFSM6AAAAABR562ZZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJUG4ZTSNJWGY . You are receiving this because you commented.Message ID: @.***>

Problem persists to 2024.11.3

Having the same exact issue, your rollback log is identical to mine. I tired to run the upgrade in safe mode and same result.