arthurdent75 / SimpleScheduler

An Home Assistant AddOn to schedule entities on/off on weekly base
183 stars 36 forks source link

V2.0 Upgrade Fails #94

Closed rwieber closed 1 year ago

rwieber commented 1 year ago

Trying to upgrade from 0.64 and getting the following error:

Logger: homeassistant.components.websocket_api.http.connection Source: components/hassio/update.py:169 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 10:04:28 PM (1 occurrences) Last logged: 10:04:28 PM

[547157385344] Error updating Simple Scheduler: Unknown error, see supervisor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 167, in async_install await async_update_addon(self.hass, slug=self._addon_slug, backup=backup) File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 45, in _wrapper raise HassioAPIError(data["message"]) homeassistant.components.hassio.handler.HassioAPIError: Unknown error, see supervisor

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1744, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 154, in async_install await entity.async_install_with_progress(version, backup) File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 413, in async_install_with_progress await self.async_install(version, backup) File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 169, in async_install raise HomeAssistantError(f"Error updating {self.title}: {err}") from err homeassistant.exceptions.HomeAssistantError: Error updating Simple Scheduler: Unknown error, see supervisor

arthurdent75 commented 1 year ago

Sorry guys, I just found out that there are different permission when the add-on is installed from the online repository vs local installation. Just be patient, I'm trying to figure it out.

rwieber commented 1 year ago

Looks like it's fixed for me, successfully auto-upgraded to 2.0.4 in the middle of the night. Running into #95 now, but I'm sure you're all over it.

Appreciate your work here @arthurdent75!