home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.72k stars 627 forks source link

ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set #3592

Closed jach0012 closed 2 years ago

jach0012 commented 2 years ago

Describe the issue you are experiencing

When I try to update the add-on store repositories, the following git problem appears. "ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set. You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/:refs/heads/"'."

What is the used version of the Supervisor?

supervisor-2022.04.0

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

What is the version of your installed operating system?

8.0.rc1

What version of Home Assistant Core is installed?

core-2022.4.6

Steps to reproduce the issue

  1. Settings
  2. Add-Ons...
  3. Add-On-Store
  4. Check for updates ...

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

22-04-24 15:17:30 ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull
    await self.sys_run_in_executor(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch
    self._assert_refspec()
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec
    raise AssertionError(msg % (self.name, self.name))
AssertionError: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
22-04-24 15:17:31 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-2275' coro=<Repository.update() done, defined at /usr/src/supervisor/supervisor/store/repository.py:106> exception=JobException()>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull
    await self.sys_run_in_executor(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch
    self._assert_refspec()
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec
    raise AssertionError(msg % (self.name, self.name))
AssertionError: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/store/repository.py", line 110, in update
    await self.git.pull()
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 112, in wrapper
    raise JobException() from err
supervisor.exceptions.JobException
22-04-24 15:17:32 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 121, in sentry_app_handle
    reraise(*_capture_exception(hub))
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 54, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 111, in sentry_app_handle
    response = await old_handle(self, request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 139, in system_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 205, in token_validation
    return await handler(request)
  File "/usr/src/supervisor/supervisor/api/utils.py", line 65, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/src/supervisor/supervisor/api/addons.py", line 162, in list
    data_addons = [
  File "/usr/src/supervisor/supervisor/api/addons.py", line 164, in <listcomp>
    ATTR_NAME: addon.name,
  File "/usr/src/supervisor/supervisor/addons/model.py", line 135, in name
    return self.data[ATTR_NAME]
  File "/usr/src/supervisor/supervisor/store/addon.py", line 19, in data
    return self.sys_store.data.addons[self.slug]
KeyError: 'a0d7b954_logviewer'
22-04-24 15:17:32 INFO (MainThread) [supervisor.store] Loading add-ons from store: 41 all - 0 new - 0 remove
22-04-24 15:17:32 INFO (MainThread) [supervisor.store] Loading add-ons from store: 41 all - 0 new - 0 remove

Additional information

No response

zuldero commented 2 years ago

i got the same bug. i added manualy the community addon repository. i still missing the offical addons, and the once that was already installed are green puzzel pices now (but they work, for now).


File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch
    self._assert_refspec()
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec
    raise AssertionError(msg % (self.name, self.name))
AssertionError: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/store/repository.py", line 110, in update
    await self.git.pull()
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 112, in wrapper
    raise JobException() from err
supervisor.exceptions.JobException
22-04-25 15:58:32 INFO (MainThread) [supervisor.store] Loading add-ons from store: 39 all - 0 new - 0 remove
22-04-25 15:58:32 INFO (MainThread) [supervisor.store] Loading add-ons from store: 39 all - 0 new - 0 remove
22-04-25 16:00:29 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-04-25 16:30:30 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-04-25 16:32:15 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'MQTT'
22-04-25 16:32:16 INFO (MainThread) [supervisor.auth] Successful login for 'MQTT'
22-04-25 16:34:34 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 791af198
22-04-25 16:34:34 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
22-04-25 16:36:48 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
22-04-25 16:37:11 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug 791af198 completed
22-04-25 16:37:11 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2022.4.7
22-04-25 16:37:11 INFO (SyncWorker_6) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.6 to ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.7
22-04-25 16:37:11 INFO (SyncWorker_6) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/raspberrypi3-64-homeassistant with tag 2022.4.7.
22-04-25 16:42:58 WARNING (MainThread) [supervisor.misc.tasks] Watchdog/Application found a problem with observer plugin!
22-04-25 16:43:00 INFO (SyncWorker_0) [supervisor.docker.interface] Stopping hassio_observer application
22-04-25 16:43:14 INFO (SyncWorker_6) [supervisor.docker.interface] Stopping homeassistant application
22-04-25 16:43:14 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning hassio_observer application
22-04-25 16:43:16 INFO (MainThread) [supervisor.plugins.observer] Starting observer plugin
22-04-25 16:43:20 INFO (SyncWorker_7) [supervisor.docker.observer] Starting Observer ghcr.io/home-assistant/aarch64-hassio-observer with version 2021.10.0 - 172.30.32.6
22-04-25 16:43:32 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning homeassistant application
22-04-25 16:43:32 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
22-04-25 16:43:34 INFO (SyncWorker_7) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/raspberrypi3-64-homeassistant with version 2022.4.7
22-04-25 16:43:34 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-04-25 16:43:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-04-25 16:43:59 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-04-25 16:44:00 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-04-25 16:44:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-04-25 16:44:00 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-04-25 16:44:00 ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull
    await self.sys_run_in_executor(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch
    self._assert_refspec()
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec
    raise AssertionError(msg % (self.name, self.name))
AssertionError: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
22-04-25 16:44:02 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-178518' coro=<Repository.update() done, defined at /usr/src/supervisor/supervisor/store/repository.py:106> exception=JobException()>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull
    await self.sys_run_in_executor(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch
    self._assert_refspec()
  File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec
    raise AssertionError(msg % (self.name, self.name))
AssertionError: Remote 'origin' has no refspec set.
You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/*:refs/heads/*"'.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/store/repository.py", line 110, in update
    await self.git.pull()
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 112, in wrapper
    raise JobException() from err
supervisor.exceptions.JobException
22-04-25 16:44:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 39 all - 0 new - 0 remove
22-04-25 16:44:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 39 all - 0 new - 0 remove
22-04-25 16:45:03 INFO (MainThread) [supervisor.auth] Auth request from 'core_mosquitto' for 'MQTT'
22-04-25 16:45:03 INFO (MainThread) [supervisor.auth] Home Assistant not running, checking cache
22-04-25 16:46:51 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-04-25 16:46:51 INFO (MainThread) [supervisor.homeassistant.core] Successfully started Home Assistant 2022.4.7
22-04-25 16:46:51 INFO (SyncWorker_6) [supervisor.docker.interface] Cleanup images: ['ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.4.6']```
zuldero commented 2 years ago

if i try to execute this command it dont work as far as i can tell. image

mdegat01 commented 2 years ago

That log isn't actually telling you to run that command. Supervisor uses the git cli under the hood to pull and clone add-on repositories. When something is wrong the git cli gives errors like that trying to tell the human that it assumes is running the command to do something. But you running it from some random other location won't do anything except maybe mess something else up.

From the cli if you run ha addons reload what happens? Do you still see those errors? If so then next lets try ha supervisor repair. It seems like the git repos in supervisor's filesystem has become corrupted so between those two it should fix it. If not let me know and we'll have to see what else we can try.

jach0012 commented 2 years ago

Hi mdegat01. I run both commands and restartet the supervisor and tried to update the add-on repositories. The problem is still there.

| | | | /\ () | | | | | || | / \ __| | | |_ | |/ | ' \ \ / \ / /\ \ / / | / | / \ | ' | | | | | | (_) | | | | | | / / \ _ \ _ \ || (| | | | | | || ||_/|| || |_|_| // _\//|/\_,|| |_|\|

Welcome to the Home Assistant command line.

System information IPv4 addresses for eth0: 192.168.178.107/24 IPv6 addresses for eth0: 2a02:6d40:3084:6301:7287:c0d:947e:8c3a/64, fe80::9669:837b:2e39:f1ea/64

OS Version: Home Assistant OS 8.0.rc1 Home Assistant Core: 2022.4.7

Home Assistant URL: http://homeassistant.local:8123 Observer URL: http://homeassistant.local:4357 ➜ ~ ha addons reload Processing... Done.

Command completed successfully. ➜ ~ ha addons repair addons:

LOG: 22-04-30 10:42:51 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/jens-maus/RaspberryMatic repository 22-04-30 10:42:51 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository 22-04-30 10:42:51 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository 22-04-30 10:42:51 ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set. You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/:refs/heads/"'.

zuldero commented 2 years ago

for me pretty simular. i just get a "Processing... Done." and nothing happens, on both commands.

mdegat01 commented 2 years ago

@jach0012 the second command I suggested was ha supervisor repair. It looks like you did ha addons repair which isn't a command (that's why it just listed all your addons as output).

@zuldero did you also do ha addons repair or did you do ha supervisor repair?

zuldero commented 2 years ago

i run all the commands and saddly nothing changed.

jach0012 commented 2 years ago

sorry for the misunderstanding. Like zuldero I only get "Processing... Done." with "ha supervisor repair" Logs: 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.check] System checks complete 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING 22-05-01 20:42:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete 22-05-01 20:44:41 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token 22-05-01 21:14:42 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.check] System checks complete 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING 22-05-01 21:42:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete 22-05-01 21:44:42 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token 22-05-01 21:45:45 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh 22-05-01 21:45:45 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh 22-05-01 21:45:45 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from a0d7b954_ssh 22-05-01 21:45:45 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh 22-05-01 21:46:12 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/repair access from a0d7b954_ssh 22-05-01 21:46:12 INFO (MainThread) [supervisor.core] Starting repair of Supervisor Environment 22-05-01 21:46:12 INFO (SyncWorker_0) [supervisor.docker] Prune stale containers 22-05-01 21:46:17 INFO (SyncWorker_0) [supervisor.docker] Prune stale images 22-05-01 21:46:19 INFO (SyncWorker_0) [supervisor.docker] Prune stale builds 22-05-01 21:46:19 INFO (SyncWorker_0) [supervisor.docker] Prune stale volumes 22-05-01 21:46:19 INFO (SyncWorker_0) [supervisor.docker] Prune stale networks 22-05-01 21:46:19 INFO (SyncWorker_0) [supervisor.docker] Fix stale container on hassio network 22-05-01 21:46:19 INFO (SyncWorker_0) [supervisor.docker] Fix stale container on host network 22-05-01 21:46:19 INFO (MainThread) [supervisor.addons] Found 1 add-ons to repair 22-05-01 21:46:19 INFO (MainThread) [supervisor.addons] Repairing for add-on: a0d7b954_nodered 22-05-01 21:46:19 INFO (SyncWorker_2) [supervisor.docker.interface] Downloading docker image ghcr.io/hassio-addons/node-red/aarch64 with tag 11.1.1. 22-05-01 21:47:04 INFO (MainThread) [supervisor.supervisor] Repairing Supervisor 2022.04.0 22-05-01 21:47:04 INFO (MainThread) [supervisor.core] Finished repair of Supervisor Environment 22-05-01 21:47:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/jens-maus/RaspberryMatic repository 22-05-01 21:47:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository 22-05-01 21:47:11 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository 22-05-01 21:47:11 ERROR (MainThread) [supervisor.jobs] Unhandled exception: Remote 'origin' has no refspec set. You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/:refs/heads/"'. Traceback (most recent call last): File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper return await self._method(*args, kwargs) File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull await self.sys_run_in_executor( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch self._assert_refspec() File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec raise AssertionError(msg % (self.name, self.name)) AssertionError: Remote 'origin' has no refspec set. You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/:refs/heads/"'. 22-05-01 21:47:12 ERROR (MainThread) [asyncio] Task exception was never retrieved future: <Task finished name='Task-63014' coro=<Repository.update() done, defined at /usr/src/supervisor/supervisor/store/repository.py:106> exception=JobException()> Traceback (most recent call last): File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper return await self._method(args, kwargs) File "/usr/src/supervisor/supervisor/store/git.py", line 155, in pull await self.sys_run_in_executor( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 876, in fetch self._assert_refspec() File "/usr/local/lib/python3.9/site-packages/git/remote.py", line 835, in _assert_refspec raise AssertionError(msg % (self.name, self.name)) AssertionError: Remote 'origin' has no refspec set. You can set it as follows: 'git config --add "remote.origin.fetch +refs/heads/:refs/heads/*"'. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/supervisor/supervisor/store/repository.py", line 110, in update await self.git.pull() File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 112, in wrapper raise JobException() from err supervisor.exceptions.JobException 22-05-01 21:47:13 INFO (MainThread) [supervisor.store] Loading add-ons from store: 41 all - 0 new - 0 remove 22-05-01 21:47:13 INFO (MainThread) [supervisor.store] Loading add-ons from store: 41 all - 0 new - 0 remove

zuldero commented 2 years ago

ou true a log i forgot.... secont time i run ha supervisor repair i got this log

22-05-01 21:55:04 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/repair access from core_ssh
22-05-01 21:55:04 INFO (MainThread) [supervisor.core] Starting repair of Supervisor Environment
22-05-01 21:55:04 INFO (SyncWorker_3) [supervisor.docker] Prune stale containers
22-05-01 21:55:04 INFO (SyncWorker_3) [supervisor.docker] Prune stale images
22-05-01 21:55:04 INFO (SyncWorker_3) [supervisor.docker] Prune stale builds
22-05-01 21:55:04 INFO (SyncWorker_3) [supervisor.docker] Prune stale volumes
22-05-01 21:55:04 INFO (SyncWorker_3) [supervisor.docker] Prune stale networks
22-05-01 21:55:05 INFO (SyncWorker_3) [supervisor.docker] Fix stale container on hassio network
22-05-01 21:55:05 INFO (SyncWorker_3) [supervisor.docker] Fix stale container on host network
22-05-01 21:55:05 INFO (MainThread) [supervisor.addons] Found 0 add-ons to repair
22-05-01 21:55:05 INFO (MainThread) [supervisor.supervisor] Repairing Supervisor 2022.04.2
22-05-01 21:55:05 INFO (MainThread) [supervisor.core] Finished repair of Supervisor Environment

but still nothing changed

zuldero commented 2 years ago

i loaded the backup on a new installation. and it was fixed. mayby the sd card was damaged

djecot commented 2 years ago

Im get this error

File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 205, in token_validation return await handler(request) File "/usr/src/supervisor/supervisor/api/utils.py", line 65, in wrap_api answer = await method(api, *args, kwargs) File "/usr/src/supervisor/supervisor/api/addons.py", line 162, in list data_addons = [ File "/usr/src/supervisor/supervisor/api/addons.py", line 164, in ATTR_NAME: addon.name, File "/usr/src/supervisor/supervisor/addons/model.py", line 135, in name return self.data[ATTR_NAME] File "/usr/src/supervisor/supervisor/store/addon.py", line 19, in data return self.sys_store.data.addons[self.slug] KeyError: 'db21ed7f_webtrees' 22-06-25 01:25:42 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 121, in sentry_app_handle reraise(_capture_exception(hub)) File "/usr/local/lib/python3.9/site-packages/sentry_sdk/_compat.py", line 54, in reraise raise value File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/aiohttp.py", line 111, in sentry_app_handle response = await old_handle(self, request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 139, in system_validation return await handler(request) File "/usr/src/supervisor/supervisor/api/middleware/security.py", line 205, in token_validation return await handler(request) File "/usr/src/supervisor/supervisor/api/utils.py", line 65, in wrap_api answer = await method(api, args, kwargs) File "/usr/src/supervisor/supervisor/api/store.py", line 120, in store_info ATTR_ADDONS: [ File "/usr/src/supervisor/supervisor/api/store.py", line 121, in self._generate_addon_information(self.sys_addons.store[addon]) File "/usr/src/supervisor/supervisor/api/store.py", line 81, in _generate_addon_information ATTR_ADVANCED: addon.advanced, File "/usr/src/supervisor/supervisor/addons/model.py", line 222, in advanced return self.data[ATTR_ADVANCED] File "/usr/src/supervisor/supervisor/store/addon.py", line 19, in data return self.sys_store.data.addons[self.slug] KeyError: 'a0d7b954_glances'

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.