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 during setup of component (core-2021.12.0) #156

Closed
r3mcos3 opened this issue Nov 10, 2021 · 35 comments
Closed

Error during setup of component (core-2021.12.0) #156

r3mcos3 opened this issue Nov 10, 2021 · 35 comments
Labels
bug Something isn't working

Comments

@r3mcos3
Copy link

r3mcos3 commented Nov 10, 2021

System Health

version core-2021.12.0.dev20211110
installation_type Home Assistant OS
dev true
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.70
arch x86_64
timezone Europe/Amsterdam
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4952
Installed Version 1.16.0
Stage running
Available Repositories 965
Installed Repositories 8
AccuWeather
can_reach_server ok
remaining_requests 28
Home Assistant Cloud
logged_in true
subscription_expiration November 22, 2021, 01:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-0.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.0.dev20211104
update_channel dev
supervisor_version supervisor-2021.11.dev0901
docker_version 20.10.8
disk_total 30.8 GB
disk_used 6.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (9.5.1), SSH & Web Terminal (9.0.1), Home Assistant Google Drive Backup (0.105.2), MariaDB (2.4.0), ESPHome (dev) (dev)
Lovelace
dashboards 1
resources 7
views 4
mode storage
This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: webrtc (documentation, issues)
First occurred: 08:37:12 (1 occurrences)
Last logged: 08:37:12

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 254, in _async_setup_component
    result = await task
  File "/config/custom_components/webrtc/__init__.py", line 75, in async_setup
    utils.register_static_path(hass.http.app, url_path, path)
  File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
    app['allow_cors'](route)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in __getitem__
    return self._state[key]
KeyError: 'allow_cors'

@Ballyhoot
Copy link

I have this same exact issue. Mine is on a RPi4. I just moved HA to Docker. WebRTC worked fine when using the HA OS.

@sean-m-sullivan
Copy link

sean-m-sullivan commented Nov 30, 2021

Same issue and I'm using This

Version core-2021.12.0.dev20211129
Installation Type Home Assistant OS
Development true
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.7
Operating System Family Linux
Operating System Version 5.10.78
CPU Architecture x86_64
Timezone America/New_York

@AlexxIT AlexxIT added the bug Something isn't working label Nov 30, 2021
@jscherry
Copy link

jscherry commented Dec 4, 2021

Same issue after updating to 2021.12 beta. Worked with all other previous versions of HA. Running HA OS supervised on Blue (Odroid). Logs below:
This error originated from a custom integration.

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: webrtc (documentation, issues)
First occurred: 7:51:20 PM (1 occurrences)
Last logged: 7:51:20 PM

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

I Tried unisntalling and re-installing the integration, rebooted core and server?

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 6, 2021

Fixed in latest master version

@sean-m-sullivan
Copy link

Have installed master version and encountered the same issue.

@Delta1977
Copy link

same here:

System Health

version core-2021.12.0b2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.83
arch x86_64
timezone Europe/Berlin
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4712
Installed Version 1.18.0
Stage running
Available Repositories 913
Installed Repositories 6
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.0
update_channel beta
supervisor_version supervisor-2021.12.0
docker_version 20.10.9
disk_total 63.0 GB
disk_used 18.6 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), InfluxDB (4.3.0), Nginx Proxy Manager (0.11.0), SSH & Web Terminal (9.1.1), Node-RED (10.2.0), AirSonos (3.2.0), Grafana (7.3.2), WireGuard (0.6.0), Glances (0.14.0), MariaDB (2.4.0), Studio Code Server (3.7.0), Mosquitto broker (6.0.1), ESPHome (2021.11.4), Duck DNS (1.14.0), Zigbee2mqtt (1.22.1-1), ADS-B Multi-Portal Feeder (0.1.32), motionEye (0.16.0)
Lovelace
dashboards 2
resources 1
views 3
mode storage

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 7, 2021

@sean-m-sullivan show error log from master version

@jine
Copy link

jine commented Dec 10, 2021

Same issue here.

`Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: webrtc (documentation, issues)
First occurred: December 9, 2021, 21:03:40 (1 occurrences)
Last logged: December 9, 2021, 21:03:40

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'`

@AlexxIT AlexxIT changed the title Error during setup of component webrtc Error during setup of component (core-2021.12.0) Dec 11, 2021
@LordNex
Copy link

LordNex commented Dec 12, 2021

Ok, I can confirm that if you select the "master" branch, not the version numbers. it does resolve the issue. Im running ESXi 7.0 HA OVA on an i5 laptop.

@AlexxIT AlexxIT pinned this issue Dec 12, 2021
@rudizl
Copy link

rudizl commented Dec 12, 2021

Same problem with core-2021.12
Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 20:34:41 (1 occurrences)
Last logged: 20:34:41

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 229, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

@r3mcos3
Copy link
Author

r3mcos3 commented Dec 12, 2021

in hacs re-download but then choose master version

@shlomosv1
Copy link

error for webrtc with core-2021.12.0 problem solved and works fine when :
do hacs re-download , then choose master version.
thanks.

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 13, 2021

I wonder when people will stop creating duplicates

@htmltiger
Copy link

htmltiger commented Dec 13, 2021

I wonder when people will stop creating duplicates

until the new release is pushed, the last release is from June 2021.
I have switched to 'master' build in hacs but after restart hacs wants me to update from master to 2.1.1

@r3mcos3
Copy link
Author

r3mcos3 commented Dec 13, 2021

then don't update,
the creator off this component has to do this in his free time I guess, you can't decide over his free time.

maybe you can fix it yourself, it's open source.

@htmltiger
Copy link

htmltiger commented Dec 13, 2021

then don't update, the creator off this component has to do this in his free time I guess, you can't decide over his free time.

maybe you can fix it yourself, it's open source.

I am fine with the master branch.
But in this case the creator spent more time replying to (above 15) issues that can be avoided in future by a new release.

@sermayoral
Copy link

I wonder when people will stop creating duplicates

I would release a new version with the fix. In that way I'm sure people would stop creating duplicates :-)

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 13, 2021

@htmltiger how much time does it take the user to skip the request to "search for an existing issue and not create duplicates"?

@Sholofly
Copy link

Isn't there a way to recommend similar issues automatically, before submitting an issue?

@htmltiger
Copy link

Hmm, I searched for 'allow_cors' in all issues and found the answer but not everyone is good at searching or looking in the pinned issue.

For you it would takes less keystrokes to push the release then closing new issues that pop every hour.
Releases > Draft a new release > enter version / tag > Publish release

@htmltiger how much time does it take the user to skip the request to "search for an existing issue and not create duplicates"?

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 14, 2021

If it teaches someone to respect other people's work, I am ready to spend my time on closing such tasks.

Fixed in v2.2.0.

@AlexxIT AlexxIT closed this as completed Dec 14, 2021
@chatainsim
Copy link

Thank you @AlexxIT for your time and this great component.

@htmltiger
Copy link

If it teaches someone to respect other people's work, I am ready to spend my time on closing such tasks.

Fixed in v2.2.0.

Thank you @AlexxIT
Its loud and clear, don't change the keys without deprecation.


Originally posted by @balloob in home-assistant/core#59360 (comment)
Can we make these keys a bit more descriptive

  • allow_cors -> allow_all_cors
  • add_cors -> allow_configured_cors

@BabaBoch1
Copy link

I am having the same issue and have already followed the steps of redownloading master version. This is all in an attempt to stream my eufy cameras.

@ONBET
Copy link

ONBET commented Mar 9, 2022

Me too have the same error and there is no 2.2.0 in hacs store , master branch not working too.

@AlexxIT Could you release it in hacs store ? Thank you and very appreciate

@lone-cloud
Copy link

I re-downloaded master and the error went away. You should ensure that your error matches the trace stack from #156 (comment) otherwise you could be seeing a different error.

Kind of frustrating that the project owner is not putting out new releases in github, but instead tagging commits in git which is useless to us who pull this repo from ha.

@DaveDee
Copy link

DaveDee commented Mar 16, 2022

fresh install core-2022.3.4, trying to set up some tuya camera

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera ([documentation](https://github.com/AlexxIT/WebRTC), [issues](https://github.com/AlexxIT/WebRTC/issues))
First occurred: 19:07:15 (1 occurrences)
Last logged: 19:07:15

Error during setup of component webrtc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/webrtc/__init__.py", line 75, in async_setup
    utils.register_static_path(hass.http.app, url_path, path)
  File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
    app['allow_cors'](route)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in __getitem__
    return self._state[key]
KeyError: 'allow_cors'

@wifispray
Copy link

Is this not working still? I get an error in after the HACS install.

Success!
Created configuration for WebRTC Camera.

The integration could not be loaded, try to restart Home Assistant.

@howelljiang
Copy link

System Health

version core-2022.3.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.92-v8
arch aarch64
timezone Asia/Shanghai
Home Assistant Community Store
GitHub API ok
GitHub Content failed to load: unreachable
GitHub Web ok
GitHub API Calls Remaining 4390
Installed Version 1.23.0
Stage running
Available Repositories 1080
Downloaded Repositories 11
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.5
update_channel stable
supervisor_version supervisor-2022.03.5
docker_version 20.10.9
disk_total 118.3 GB
disk_used 6.3 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons File editor (5.3.3), Samba share (9.5.1), Node-RED (11.1.0), Mosquitto broker (6.0.1), Terminal & SSH (9.3.0), Zigbee2mqtt (1.23.0-1)
Lovelace
dashboards 1
resources 6
views 2
mode storage
Xiaomi MIoT
logged_in true
can_reach_micloud_server ok
accounts_count 1
account_devices_count 12
added_devices 6

Logger: homeassistant.setup
Source: custom_components/webrtc/utils.py:74
Integration: WebRTC Camera (documentation, issues)
First occurred: 19:56:56 (1 occurrences)
Last logged: 19:56:56

Error during setup of component webrtc
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/webrtc/init.py", line 75, in async_setup
utils.register_static_path(hass.http.app, url_path, path)
File "/config/custom_components/webrtc/utils.py", line 74, in register_static_path
app'allow_cors'
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 186, in getitem
return self._state[key]
KeyError: 'allow_cors'

@homeoneautomacao
Copy link

I don't know if it's related to this problem but I had to return my HA version to 2022.2.9, because the 2022.3.1 version together with any version of webrtc, using android, the internal url doesn't work, it keeps giving a message that the webrtc is not installed.

@maxromanovsky
Copy link

@AlexxIT it would be awesome if you could push a new release (v2.2.0) to GitHub

@homeoneautomacao
Copy link

who use lovelace: yaml, change to storage..... for me solve the problem "element doesn´t exist:custom:webrtc" on the app android or iphone

@manj9501
Copy link

Hey @AlexxIT, can you please release v2.2.0 in the HACS store? Thanks in advance!

@maxromanovsky
Copy link

@manj9501 there's v2.3.0 already, and it's properly published: https://github.com/AlexxIT/WebRTC/releases/tag/v2.3.0

@manj9501
Copy link

My bad!
Should have used the 'Update Information' option after downloading the HACS integration.

Thanks much!

@AlexxIT AlexxIT unpinned this issue Jul 30, 2022
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