Addon can't be removed

Hi,

I’m trying to remove an addon that I am working on, however the UI doesn’t let me. When I click “Uninstall” I get the following Supervisor log:

18-02-20 20:06:14 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 416, in start
    resp = yield from self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web.py", line 325, in _handle
    resp = yield from handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 93, in impl
    return (yield from handler(request))
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 41, in security_layer
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/utils.py", line 33, in wrap_api
    answer = await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/addons/utils.py", line 33, in wrap_check
    return await method(addon, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/addons/addon.py", line 563, in uninstall
    if not await self.instance.remove():
  File "/usr/lib/python3.6/site-packages/hassio/docker/utils.py", line 18, in wrap_api
    return await method(api, *args, **kwargs)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/hassio/docker/interface.py", line 204, in _remove
    "Remove docker %s with latest and %s", self.image, self.version)
  File "/usr/lib/python3.6/site-packages/hassio/docker/addon.py", line 47, in version
    return super().version
  File "/usr/lib/python3.6/site-packages/hassio/docker/interface.py", line 45, in version
    if self._meta and LABEL_VERSION in self._meta['Config']['Labels']:
TypeError: argument of type 'NoneType' is not iterable

I installed it by adding GitHub repo and it’s version doesn’t follow anything close to SemVer versioning. Is there any way for me to access the installed files over SSH and remove them by hand?

Thanks!

1 Like

I am having a similar experience with a local add-on. Something went wrong during some experiments and now I have an add-on with a green jigsaw icon and only a start button, no stop or uninstall.

The log file mentions on one hand that the add-on is already installed and also refers to an older config.json entry that is no longer present.

Does somebody know if there is some cache to clear?

I would login on SSH and remove the docker container manually

Thanks for the tip. That is exactly what I’ve done using the following commands using the hassio cli

hassio ad list
hassio ad -name <name_of_addon_to_remove> stop
hassio ad -name <name_of_addon_to_remove> uninstall

Hopefully this will help somebody else in the future. I’ll get back at trying to recreate the custom addons in the mean time.

3 Likes

The command changed but still in my case it can’t find the slug, while the UI still shows it and marks it as used.