How to remove metadata (slug?) from HASS from a self developed add-on in testing?

I am working oin making an add-on and everything seems to work. I am now somehow caught in a weird state, where reboots, editing .storage files and editing the home_assistant_v2.db doesnt clear the add-on ‘slug’. I’ve also trieds using the ha cli in the SSH add-on. I am now enabling the host SSH server on port 22222, but am unsure of how to solve this problem.

I’ll try and explain:

When I add the repository to the add-ons store, it imports and the add-on shows up. When I click on the add-on from the add-on store, it takes me to a url like: https://ha.example.com/hassio/addons/c4b494f4_cync-lan/info. When I click the install button, it throws an error saying:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:145
integration: Home Assistant Supervisor (documentation, issues)
First occurred: 7:23:39 PM (1 occurrence)
Last logged: 7:23:39 PM

Failed to to call /addons/c4b494f4_cync-lan/install - invalid reference format

I’ve tried everything I can think of:

  • bumping the add-on version to see if it would do a fresh install or something
  • use the ha CLI
  • edit /homeassistant/.storage/* files
  • browse the home_assistant_v2.db, but I cant see anything related to add-ons in there

How can I debug what the issue is?

After connecting to the host ssh port (22222) and running journalctl -f -u hassos-supervisor.service, I found the issue clear as day in the log output.