authelia: install and update both fail with "NEXTID: unbound variable"

Abierto Apto para principiantes
#593 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@MickLesk ya está trabajando en esto.

Desde el 29/11/2026.

  • #19180 de @MickLesk — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, linux, shell

Línea de trabajo

Comienza con ct/authelia.sh, ui/defaults.func y ui/menu.func para determinar cuándo se establece NEXTID en relación con la llamada de base_settings de nivel superior. Reproduce el fallo usando el comando de instalación o actualización de Authelia proporcionado y verifica la corrección confirmando que el script llega a su flujo de menú o actualización sin el error de variable no definida.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
✅ Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

No (this issue will likely be closed automatically)

📜 What is the name of the script you are using?

Authelia

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/Incus/main/ct/authelia.sh)"

🕒 When does the issue occur?

Initial creation / installation

🖱️ Where did you run the command?

Proxmox web UI → node → Shell

⚙️ What settings are you using?
  • Default Settings
  • Advanced Settings
🖥️ Which Linux distribution is the container running?

Ubuntu

🔢 Which version of that distribution?

26.04.1

🧱 Is this Proxmox host running arm64?

No

📈 Which Proxmox VE release are you on?

Proxmox VE 9

🔢 Exact Proxmox version and kernel
📝 Provide a clear and concise description of the issue.

ct/authelia.sh exits with code 1 right after the banner, both for a new installation on the host and for update inside an existing container:

/dev/shm/cs-engine.vWrM7z/incus/build.func: line 346: NEXTID: unbound variable

The script calls base_settings at the top level, right after header_info "$APP" (line 20 in ProxmoxVE, the same line in the Incus mirror):

header_info "$APP"
base_settings

variables
color
catch_errors

base_settings (ui/defaults.func) reads local requested_id="${var_ctid:-$NEXTID}". NEXTID is only set later, in install_script() (ui/menu.func), which runs from start() at the end of the script. So at this point NEXTID is unset in both cases:

  • New install on the host: base_settings runs before start()/install_script().
  • Update inside the container: install_script() never runs.

With set -u the script stops there. Other ct scripts, such as spoolman, jellyfin and headscale, do not call base_settings at the top level, and they install and update fine in the same environment.

🔄 Steps to reproduce the issue.

New install (on the host):

  1. Run: bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/Incus/main/ct/authelia.sh)"
  2. The script stops after the banner with the error above, before any menu. No container is created.

Update (inside an existing Authelia container):

  1. Run: update
  2. Same error, exit code 1, before update_script runs.
❌ Paste the full error output (if available).

/dev/shm/cs-engine.9cCBnV/incus/build.func: line 346: NEXTID: unbound variable

🖼️ Additional context (optional).

Platform where found the issue: Incus 7.x (Zabbly) with Ubuntu 26.04.1 host
Proxmox VE not tested, I'm using Incus, but the ct/authelia.sh line is identical for both, and NEXTID is set in the same install_script() there, so I expect the same failure.
Cannot run with verbose mode, since the script not even starts.

Lenguaje dominante
Shell
Estrellas
19
Forks
1
Merge medio
3 min
PR fusionados (30 d)
249

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.