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

Aberta Para iniciantes
#593 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@MickLesk já está trabalhando nisso.

Desde 29/11/2026.

  • #19180 de @MickLesk — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
85/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
bash, linux, shell

Direção de pesquisa

Comece com ct/authelia.sh, ui/defaults.func e ui/menu.func para rastrear quando NEXTID é definido em relação à chamada de base_settings no nível superior. Reproduza a falha usando o comando de instalação ou atualização do Authelia fornecido e, em seguida, verifique a correção confirmando que o script chega ao fluxo de menu ou atualização sem o erro de variável não definida.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Shell
Estrelas
19
Forks
1
Merge médio
3min
PRs com merge (30d)
249

Preparar o ambiente

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.