Error while parsing config panel: Extra inputs are not permitted

What does this mean?

I get no more information via:

root@test-ynh:~# yunohost app config get pyinventory --full 
Error: Error while parsing config panel: Extra inputs are not permitted 

It’s a WIP PR here: master <- testing by jedie · Pull Request #167 · YunoHost-Apps/pyinventory_ynh · GitHub

This is the current file part from pyinventory_ynh/manifest.toml at c999fabc3b3039668056cc3eb9ca45b9bf454f67 · YunoHost-Apps/pyinventory_ynh · GitHub


[install]
# https://yunohost.org/en/packaging_manifest#install-questions

    [install.domain]
    # this is a generic question - ask strings are automatically handled by Yunohost's core
    type = "domain"

    [install.path]
    # this is a generic question - ask strings are automatically handled by Yunohost's core
    # setting $path and template variable __PATH__
    type = "path"
    default = "/pyinventory_ynh"

    [install.admin]
    # this is a generic question - ask strings are automatically handled by Yunohost's core
    type = "user"

    [install.init_main_permission]
    type = "group"
    default = "admins"

    [install.default_from_email] # __DEFAULT_FROM_EMAIL__
    ask.en = "Default email address to use for various automated emails."
    type = "email"
    example = "admin@example.com"

    [install.admin_email] # __ADMIN_EMAIL__
    ask.en = "EMail address for error emails."
    type = "email"
    example = "admin@example.com"

    [install.debug_enabled] # __DEBUG_ENABLED__ will be set to "0" or "1" string
    ask.en = "Should be never enabled in production!"
    type = "boolean"

    [install.log_level] # __LOG_LEVEL__
    ask.en = "Logging level"
    type = "select"
    choices.debug = "DEBUG"
    choices.info = "INFO"
    choices.warning = "WARNING"
    choices.error = "ERROR"
    choices.critical = "CRITICAL"
    default = "warning"

Afaiu, this message is related to config_panel.toml

Ups. This file is currently not changed in my PR.

It’s currently this:

# https://yunohost.org/en/packaging_config_panels
# https://github.com/YunoHost/example_ynh/blob/master/config_panel.toml.example

version = "1.0"

[main]
name.en = "Main configuration"
name.fr = "Configuration principale"
services = ["__APP__"]

    [main.config]
    name = "Configuration Options"

        [main.config.default_from_email]
        ask = "from email"
        type = "email"
        help = "Default email address to use for various automated emails."
        #
        # We can't use "__DATA_DIR__" in bind value, because of this bug:
        # https://github.com/YunoHost/issues/issues/2283
        bind = "default_from_email:/home/yunohost.app/__APP__/settings.py"

        [main.config.admin_email]
        ask = "ADMIN email"
        type = "email"
        help = "EMail address for error emails."
        bind = "admin_email:/home/yunohost.app/__APP__/settings.py"

        [main.config.debug_enabled]
        ask = "DEBUG mode"
        type = "boolean"
        yes = "1"
        no = "0"
        help = "Enable DEBUG mode? (Should be never enabled in production!)"
        bind = "debug_enabled:/home/yunohost.app/__APP__/settings.py"

        [main.config.log_level]
        type = "string"
        ask = "Log Level"
        choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
        default = "WARNING"
        bind = "log_level:/home/yunohost.app/__APP__/settings.py"

Not sure that string type is compatible with choices (should be select type) but I may be wrong…

It’s now working:

fix was: master <- testing by jedie · Pull Request #167 · YunoHost-Apps/pyinventory_ynh · GitHub