SSH & Web Terminal add-on update failed

I noticed today the the add-on “SSH & Web Terminal” had an update to version 5.0 available.
I was using version 4.1.0
I clicked the button, waited awhile for the update to complete. The add-on failed to run.
I rebooted: failed. I uninstalled/reinstalled: failed. I uninstalled/restored snapshot of 4.1.0: that then failed. uninstalled 4.1.0 and installed 5 again. same thing.
Here is the error I’m getting from my system log:

19-04-16 00:18:21 INFO (SyncWorker_4) [hassio.docker.interface] Clean addon_a0d7b954_ssh application
19-04-16 00:18:27 INFO (SyncWorker_4) [hassio.docker.interface] Remove image hassioaddons/ssh-armv7 with latest and v4.1.0
19-04-16 00:18:33 INFO (MainThread) [hassio.addons.addon] Remove Home Assistant add-on data folder /data/addons/data/a0d7b954_ssh
19-04-16 00:27:04 INFO (MainThread) [hassio.addons.addon] Create Home Assistant add-on data folder /data/addons/data/a0d7b954_ssh
19-04-16 00:27:04 INFO (SyncWorker_19) [hassio.docker.interface] Pull image hassioaddons/ssh-armv7 tag 5.0.0.
19-04-16 00:37:24 INFO (SyncWorker_19) [hassio.docker.interface] Tag image hassioaddons/ssh-armv7 with version 5.0.0 as latest
19-04-16 00:53:12 ERROR (SyncWorker_12) [hassio.docker] Can't start addon_a0d7b954_ssh: 403 Client Error: Forbidden ("endpoint with name addon_a0d7b954_ssh already exists in network host")

Any suggestions?

Looks like you already have a container for ssh… Maybe use Portainer to get rid of that container (force remove) and try again.

I have the same issues with Node-Red right now. Sadly you can remove it with Portainer but it still holds it where ever the network host entries are held, blocking it from running.

Finally fixed my similar issue but for Node-RED. Try this replacing the below with your add-on name.

  1. Uninstall Node-RED
  2. Open the portainer add-on and delete the container referencing Node-RED
  3. Go to Hass.io>System and reload Supervisor
  4. Reboot the whole system from Hass.io>System
  5. Install Node-RED
  6. Cross fingers