Unmaintained add-on s6-overlay error. HELP

Hello.
I have a custom add-on that is no longer maintained by the author.
Because of base image changes, it now logs s6-overlay-suexec: fatal: can only run as pid 1 whenever I try to start it.
I think if I want it to work again I think I have to edit it myself… It would be gold if anyone could help me.

I found this:

This is the config.json of the addon:


{
  "name": "Bentel Absoluta",
  "version": "1.1",
  "slug": "absoluta",
  "description": "Add-On for interfacing with Bentel Absoluta Alarm Panels",
  "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
  "startup": "application",
  "boot": "auto",
   "options": {
    "mqtt_broker_ip": "",
    "mqtt_username": "",
    "mqtt_password": "",
    "panel_id": "",
    "pin": ""
  },
  "schema": {
    "mqtt_broker_ip": "str",
    "mqtt_username": "str",
    "mqtt_password": "password",
    "panel_id": "str",
    "pin": "password"
  },
  "ports": {}
}

I added
"init": "false",

after the arch line, I think it is correctly formatted. I even rebuilt the container, but no luck

I don’t know how is the addon written or structured, so it’s quite challenging understanding how to manage all the permissions

Thank you!

1 Like

post 71

Is that what you trying to link to?
That’s a mega download link…

Link to the github repo.

The init command is the right idea for an addon, if that is the problem.

Your above example is json. So you might need a comma ,

The example addon has a lint feature that can help you troubleshoot code or paste the file into a json parser or similar…

Yeah, the mega link contains the add-on zipped folder (I don’t know why the author didn’t use a simple ghub repo, but so it is. By the way, I used it for months without any issue on my older installation)

If needed I can upload it on a gHub repo so you can look at it without downloading from Mega

Yes, I added the comma, I think the json is correctly formatted.

So you are using it as a local addon?

{
  "name": "Bentel Absoluta",
  "version": "1.1",
  "slug": "absoluta",
  "description": "Add-On for interfacing with Bentel Absoluta Alarm Panels",
  "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
  "init": false,
  "options": {
    "mqtt_broker_ip": "",
    "mqtt_username": "",
    "mqtt_password": "",
    "panel_id": "",
    "pin": ""
  },
  "schema": {
    "mqtt_broker_ip": "str",
    "mqtt_username": "str",
    "mqtt_password": "password",
    "panel_id": "str",
    "pin": "password"
  },
  "ports": {}
}

needed the quotes on false removed.

boot and startup are not needed because they are default values.

you may have a translation file that fixes that error.

Error: 'ports' is defined without 'ports_description'.

https://developers.home-assistant.io/docs/add-ons/configuration

You can fork this repo to play around with it.

1 Like

Yes.

I think I tried it also without the quotes, but I’ll try it again. Thank you.

Ok thanks

I don’t understand… When does that error occur?

I have a forked version of the example addon. I copied the config file in that. It runs a Frenck github action called Lint that tests the code.

You can follow the addon tutorial docs to setup the addon example for your self to use. you basically just to change a few links/names around.

1 Like

Simply using this config made the add-on start and work correctly. THANK YOU!

2 Likes