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

Add-on does not start correctly when configuring JSON file #3241

Closed
lufetico opened this issue Oct 3, 2023 · 1 comment
Closed

Add-on does not start correctly when configuring JSON file #3241

lufetico opened this issue Oct 3, 2023 · 1 comment

Comments

@lufetico
Copy link

lufetico commented Oct 3, 2023

Describe the issue you are experiencing

Google Assistant SDK add-on does not start correctly when configuring JSON file. It seems that it does not start correctly when the credentials have been generated with the type "Web Application". If there are generated with the type "Desktop Application" the add-on starts correctly but then it is not possible to authenticate.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Google Assistant SDK

What is the version of the add-on?

2.5.0

Steps to reproduce the issue

  1. Generate the JSON file with cliente secrets (Type: Web application).
  2. Upload the JSON file to "Share" directory.
  3. In Add-on Configuration tab set the fields "Project ID", "Cliente secrets" and Model ID and click on Save button.
  4. Start the Add-on and get the error.

System Health information

There are currently no repairs available

Anything in the Supervisor logs that might be useful for us?

await self._restart_after_problem(event.state)
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 255, in wrapper
    raise on_condition(
supervisor.exceptions.AddonsJobError: Rate limit exceeded, more then 10 calls in 0:30:00
23-10-03 12:53:35 ERROR (SyncWorker_0) [supervisor.docker.manager] Container addon_core_google_assistant is not running
23-10-03 12:53:38 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 12:57:06 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 12:57:13 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-25277' coro=<Addon.watchdog_container() done, defined at /usr/src/supervisor/supervisor/addons/addon.py:1069> exception=AddonsJobError('Rate limit exceeded, more then 10 calls in 0:30:00')>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/addons/addon.py", line 1083, in watchdog_container
    await self._restart_after_problem(event.state)
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 255, in wrapper
    raise on_condition(
supervisor.exceptions.AddonsJobError: Rate limit exceeded, more then 10 calls in 0:30:00
23-10-03 12:57:23 ERROR (SyncWorker_1) [supervisor.docker.manager] Container addon_core_google_assistant is not running
23-10-03 12:57:29 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 12:57:29 INFO (SyncWorker_1) [supervisor.docker.manager] Removing image homeassistant/armv7-addon-google_assistant with latest
23-10-03 12:57:29 INFO (SyncWorker_1) [supervisor.docker.manager] Removing image homeassistant/armv7-addon-google_assistant with 2.5.0
23-10-03 12:57:32 INFO (MainThread) [supervisor.addons.addon] Removing add-on data folder /data/addons/data/core_google_assistant
23-10-03 12:57:32 INFO (MainThread) [supervisor.addons] Add-on 'core_google_assistant' successfully removed
23-10-03 12:57:48 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/core_google_assistant
23-10-03 12:57:48 INFO (MainThread) [supervisor.docker.interface] Downloading docker image homeassistant/armv7-addon-google_assistant with tag 2.5.0.
23-10-03 12:58:34 INFO (MainThread) [supervisor.addons] Add-on 'core_google_assistant' successfully installed
23-10-03 12:59:59 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:00:09 ERROR (SyncWorker_5) [supervisor.docker.manager] Container addon_core_google_assistant is not running
23-10-03 13:00:11 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:00:35 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
23-10-03 13:01:47 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-10-03 13:03:21 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-10-03 13:03:39 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-10-03 13:04:03 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:04:04 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:15:07 INFO (SyncWorker_2) [supervisor.docker.manager] Stopping addon_core_google_assistant application
23-10-03 13:15:11 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:17:48 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:17:55 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:17:55 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:17:57 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:03 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:04 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:04 WARNING (SyncWorker_0) [supervisor.docker.manager] Can't grep logs from addon_core_google_assistant: 409 Client Error for http+docker:https://localhost/v1.42/containers/36311126b6886a5c9801208bfad17100fa5b561869ef93e14a552858f0076ab1/logs?stderr=1&stdout=1&timestamps=0&follow=0&tail=100: Conflict ("can not get logs from container which is dead or marked for removal")
23-10-03 13:18:05 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:12 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:12 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:13 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:20 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:20 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:21 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:28 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:28 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:29 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:36 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:36 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:37 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:44 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:44 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:46 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:18:52 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:18:52 INFO (SyncWorker_0) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:18:54 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:19:01 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:19:01 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:19:02 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:19:09 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Google Assistant SDK is stopped, restarting...
23-10-03 13:19:09 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_core_google_assistant application
23-10-03 13:19:10 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-google_assistant with version 2.5.0
23-10-03 13:19:17 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-26793' coro=<Addon.watchdog_container() done, defined at /usr/src/supervisor/supervisor/addons/addon.py:1069> exception=AddonsJobError('Rate limit exceeded, more then 10 calls in 0:30:00')>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/addons/addon.py", line 1083, in watchdog_container
    await self._restart_after_problem(event.state)
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 255, in wrapper
    raise on_condition(
supervisor.exceptions.AddonsJobError: Rate limit exceeded, more then 10 calls in 0:30:00
23-10-03 13:20:51 ERROR (SyncWorker_1) [supervisor.docker.manager] Container addon_core_google_assistant is not running

Anything in the add-on logs that might be useful for us?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:19:11] INFO: Installing/Updating service client_secrets file
[13:19:11] INFO: Starting WebUI for handling OAuth2...
Traceback (most recent call last):
  File "/usr/bin/hassio_oauth.py", line 119, in <module>
    user_data = json.load(data)['installed']
KeyError: 'installed'
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Additional information

N/A

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants