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

Ouverte Adaptée aux débutants
#593 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@MickLesk y travaille déjà.

Depuis le 29/11/2026.

  • #19180 par @MickLesk — ouverte

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
85/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
bash, linux, shell

Piste de recherche

Commencez par ct/authelia.sh, ui/defaults.func et ui/menu.func pour déterminer quand NEXTID est défini par rapport à l'appel de base_settings de premier niveau. Reproduisez l'échec à l'aide de la commande d'installation ou de mise à jour d'Authelia fournie, puis vérifiez la correction en confirmant que le script atteint son flux de menu ou de mise à jour sans l'erreur de variable non liée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Shell
Étoiles
19
Forks
1
Merge moyen
3 min
PR mergées (30 j)
249

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.