-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File "<frozen runpy>", line 198, in _run_module_as_main #113127
Comments
Did try the command: jq -r '.data.entries[] | select(.unique_id | type == "array") | {unique_id, domain}' /config/.storage/core.config_entries But didnt get any output. |
that means an entry has a non serializable unique_id. This can either be caused by the unique_id type to be dict or array. maybe change your jq to check dict as well. (I am not jq expect, but what does the |
See that friend of mine got the same error today.. Suspect that https://github.com/Danielhiversen/home_assistant_min_renovasjon/issues/new is the cause of the problem, how do I do a rollback from console ? The UI do not work.. |
Latest version doesn't look wrong. You should find out what entities have this unserializable unique_id and remove it, other wise you keep this |
Am not sure what am excepting to get for this, found it on another tread that got similar error, so just trying, am not very |
How do I find it and how do a remove it when I don't have UI ? |
Ooooh, wait. You need to check another file. jq -r '.data.entities[] | select(.unique_id | type == "array") | {unique_id, platform}' /config/.storage/core.entity_registry |
jq -r '.data.entities[] | select(.unique_id | type == "array") | {unique_id, platform}' /config/.storage/core.entity_registry Result: |
something is strange with that file. Mind mailing it to me? |
If you send it on the mail to me I can take a better look. The only personal information contained in that file would be any unique_id (but that's probably what we are looking after so no point in removing them) or entity names. |
Email sendt. :-) Hope you find the problem. |
Yep, it's min_renovasjon. The error came because you probably didn't completely copy paste the command. You should edit that file, remove everything in from line 559725 until 559798. (This is important, the lines I mentioned don't completely follow the Then remove the custom component and start your HA again |
Hi
Thx a lot.. The UI is up and running.
Looks like something happened to the entity names, so looks like i'm going
to have a job fishing the frontend and node red scripts.. Or do you think I
can restore from a bacup ?
Robin.
tir. 12. mars 2024 kl. 13:11 skrev Joost Lekkerkerker <
***@***.***>:
… Yep, it's min_renovasjon. The error came because you probably didn't
completely copy paste the command. You should edit that file, remove
everything in from line 559725 until 559798. (This is important, the lines
I mentioned don't completely follow the { }, but this list should end
with a } and not a },)
Then remove the custom component and start your HA again
—
Reply to this email directly, view it on GitHub
<#113127 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUZU66C3SPM4WRDUTB4HUK3YX3WHZAVCNFSM6AAAAABERL56MSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGUYDSMZVGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Mvh
Robin Ådahl
99329474
***@***.***
|
When you check the error logs, do you see anything that sounds like "stuff didn't work, corrupt something" because I think something went wrong with that file and remade the file, causing it to reset everything |
Yes... Seems like you got that right... Can I stop Core and copy the file back and do this one more time ? Think I missed a character error : unexpected character: line 559727 column 7 The old file is ... core.entity_registry.corrupt.2024-03-12T12:37:33.659361+00:00 |
I think so yes. again, please make sure you remove the right lines. Maybe verify it by running the jq query again (please copy paste right one) |
Yes.. Now it is up and running... Thx a lot for the help.. But I think "min Renovasjon" got an error in the last update.As a friend of min got the same error.. The update did came out yesterday .. |
The code you sent me looked correct, so I am not sure what is up with that. But please report it at their repository. I have notified others of this issue and they might look into making sure this doesn't happen anymore. I'll close this now. |
Hello, |
All the entries from that file with that as the platform. It should still be a valid json file. |
Thank you :) |
Thank you Joostlek, Im up and running. Seems like everything is working ok! thank you so much:) |
The problem
UI won't start...
2024-03-12 02:47:34.728 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/main.py", line 221, in
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 188, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in setup_and_run_hass
hass = await bootstrap.async_setup_hass(runtime_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 230, in async_setup_hass
await async_from_config_dict(config_dict, hass) is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 349, in async_from_config_dict
await async_load_base_functionality(hass)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 324, in async_load_base_functionality
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1290, in async_load
await hass.data[DATA_REGISTRY].async_load()
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1124, in async_load
entities[entity["entity_id"]] = RegistryEntry(
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 473, in setitem
self._index[(entry.domain, entry.platform, entry.unique_id)] = entry.entity_id
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'list'
What version of Home Assistant Core has the issue?
Core 2024.3.0
What was the last working version of Home Assistant Core?
Unsure - Tried downgrade still same problem
What type of installation are you running?
Home Assistant OS
Integration causing the issue
don't now
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
The text was updated successfully, but these errors were encountered: