Skip to content
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

Error unloading entry xxx.xxx.xxx.xxx for camera #105

Open
emufan opened this issue Jan 10, 2024 · 11 comments
Open

Error unloading entry xxx.xxx.xxx.xxx for camera #105

emufan opened this issue Jan 10, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@emufan
Copy link

emufan commented Jan 10, 2024

I still get this every HA restart

Logger: homeassistant.config_entries
Source: config_entries.py:561
First occurred: 14:10:01 (1 occurrences)
Last logged: 14:10:01

Error unloading entry xxx.xxx.xxx.xxx for camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 561, in async_unload
    result = await component.async_unload_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 466, in async_unload_entry
    return await component.async_unload_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 203, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!

Anything I can fix or can change on my side?

@emufan emufan added the bug Something isn't working label Jan 10, 2024
@jterrace
Copy link
Contributor

I get this on startup too, immediately followed by a bunch of log lines like this:

2024-02-10 09:20:58.180 WARNING (SyncWorker_9) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.0000021a7d2b3b13.jpg
2024-02-10 09:20:58.181 WARNING (SyncWorker_5) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.0000021dc9a63411.jpg
2024-02-10 09:20:58.182 WARNING (SyncWorker_3) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.0000021ec3b73418.jpg
2024-02-10 09:20:58.183 WARNING (SyncWorker_7) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.0000021b50733b10.jpg
2024-02-10 09:20:58.185 WARNING (SyncWorker_18) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00000218ce8d3b15.jpg

I'm guessing the error for unload is coming from here:

https://github.com/jonasniesner/open_epaper_link_homeassistant/blob/b1dffb12c990f644bf30a4d0109e16b291e67d2e/custom_components/open_epaper_link/hub.py#L221

I think on restart, maybe the config was never loaded which triggers the error?

@jpenschuck
Copy link

I have the same error. Also the tags get only updated one time. Then never again until HA restart. The images are updated every ten minutes and reflecting the sensor values i wanna display.
openepaperlink AP reports: new image is the same as current or already pending image. not updating tag.

@jonasniesner
Copy link
Member

@jterrace your second error should be unrelated.

@emufan can you try to remove and add the integration and check if the error persists, because I did not manage to reproduce it.

@emufan
Copy link
Author

emufan commented Apr 3, 2024

I have now deleted the integration and re-added it. Still the same error. Beside some more.

2024-04-03 08:19:40.785 WARNING (Thread-8 (connection_thread)) [websocket] websocket connected
2024-04-03 08:19:49.071 WARNING (MainThread) [py.warnings] /usr/src/homeassistant/homeassistant/config_entries.py:1610: RuntimeWarning: coroutine 'ConfigEntries.async_forward_entry_unload' was never awaited
name=f"config entry forward unload {entry.title} {entry.domain} {entry.entry_id} {platform}",
2024-04-03 08:19:49.072 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry 192.168.178.145 for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 605, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 466, in async_unload_entry
return await component.async_unload_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 198, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2024-04-03 08:20:45.378 WARNING (SyncWorker_25) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:21:30.964 WARNING (MainThread) [py.warnings] /usr/src/homeassistant/homeassistant/config_entries.py:1610: RuntimeWarning: coroutine 'ConfigEntries.async_forward_entry_unload' was never awaited
name=f"config entry forward unload {entry.title} {entry.domain} {entry.entry_id} {platform}",
2024-04-03 08:23:29.739 WARNING (SyncWorker_14) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:32.782 WARNING (SyncWorker_20) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:32.927 WARNING (SyncWorker_35) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:33.210 WARNING (SyncWorker_26) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:50.375 WARNING (SyncWorker_23) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:55.915 WARNING (SyncWorker_28) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:23:56.154 WARNING (SyncWorker_29) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:24:11.968 WARNING (SyncWorker_21) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg
2024-04-03 08:24:12.156 WARNING (SyncWorker_8) [custom_components.open_epaper_link.camera] Could not read image from file: /config/www/open_epaper_link/open_epaper_link.open_epaper_link.00004479913bdaec.jpg

So there is now

  • the unloading camera error
  • some other async_forward_entry_unload warnings
  • some other awaiting warings

and (saw it recently befoire re-adding as well:

  • open_epaper_link/open_epaper_link.open_epaper_link. problems. Seem some double-generation in text here.

@Fridleif
Copy link

I've got the same issue - hat anyone get an idea what went wrong?

@emufan
Copy link
Author

emufan commented Sep 30, 2024

I've got the same issue - hat anyone get an idea what went wrong?

No ida, no solution. Still here as well. Re-installed the integration a lot of times. No change.

@g4bri3lDev
Copy link
Member

Can you install the latest version and see if the error is still there?

@Fridleif
Copy link

Fridleif commented Oct 2, 2024

Can you install the latest version and see if the error is still there?

Thanks for giving it a shot - sadly it's still not working. An update was not possible I've got to remove and reinstall it to get the newest version.

2024-10-02 17:21:08.086 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry 192.168.178.8 for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 819, in async_unload
    result = await component.async_unload_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 136, in async_unload_entry
    return await component.async_unload_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 201, in async_unload_entry
    raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2024-10-02 17:21:08.353 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:21:08.353 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.178.8 for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 130, in async_setup_entry
    return await component.async_setup_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry
    raise ValueError(
ValueError: Config entry 192.168.178.8 (01J8ZSWRCCPX2YQA5312K3MVMR) for open_epaper_link.sensor has already been setup!
2024-10-02 17:21:08.356 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.178.8 for camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 459, in async_setup_entry
    return await component.async_setup_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry
    raise ValueError(
ValueError: Config entry 192.168.178.8 (01J8ZSWRCCPX2YQA5312K3MVMR) for open_epaper_link.camera has already been setup!
2024-10-02 17:21:08.357 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.178.8 for button
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 67, in async_setup_entry
    return await component.async_setup_entry(entry)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry
    raise ValueError(
ValueError: Config entry 192.168.178.8 (01J8ZSWRCCPX2YQA5312K3MVMR) for open_epaper_link.button has already been setup!
2024-10-02 17:21:11.633 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:21:11.633 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 00000282E0F43B14
2024-10-02 17:21:49.790 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:21:49.790 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 00000282E0F43B14
2024-10-02 17:21:49.790 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:22:48.852 WARNING (MainThread) [py.warnings] /usr/src/homeassistant/homeassistant/config_entries.py:2228: RuntimeWarning: coroutine 'ConfigEntries.async_forward_entry_unload' was never awaited
  f"{entry.domain} {entry.entry_id} {platform}"
2024-10-02 17:22:48.870 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:22:54.774 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:22:54.775 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 0000026D28393B10
2024-10-02 17:23:07.944 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:23:07.944 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 0000026D28393B10
2024-10-02 17:23:07.944 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:30:58.722 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:30:58.723 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 0000026D28393B10
2024-10-02 17:30:58.723 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:30:58.723 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 00000283A3DD3B19
2024-10-02 17:31:46.546 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000002388D253B12
2024-10-02 17:31:46.546 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 0000026D28393B10
2024-10-02 17:31:46.547 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 000010FB903BDAEC
2024-10-02 17:31:46.547 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 00000283A3DD3B19
2024-10-02 17:31:46.547 WARNING (MainThread) [custom_components.open_epaper_link.camera] Could not find image for ESL 0000021EF458341D```

@Fridleif
Copy link

Fridleif commented Oct 2, 2024

I've played around with the "days until christmas" script - and now I get this image in my dashboard.
I don't know why ... the image from a test with the 5 lines actions isn't available. But it's displayed on the esl tag itself perfectly fine.
Sorry - I guess this is not very helpfull at all. But at least one is working
I don't know if it's just coincidence - I updated the to 2024.10 bevor testing the day until christmas script

@g4bri3lDev
Copy link
Member

I've played around with the "days until christmas" script - and now I get this image in my dashboard.

I don't know why ... the image from a test with the 5 lines actions isn't available. But it's displayed on the esl tag itself perfectly fine.

Sorry - I guess this is not very helpfull at all. But at least one is working

I don't know if it's just coincidence - I updated the to 2024.10 bevor testing the day until christmas script

Which image? Did you attach one?

@Fridleif
Copy link

Fridleif commented Oct 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants