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

オープン 初心者向け
#593 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@MickLesk がすでに取り組んでいます。

2026年11月29日 から。

  • #19180 @MickLesk による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, linux, shell

調査の方向性

ct/authelia.sh、ui/defaults.func、ui/menu.func から始め、NEXTID がトップレベルの base_settings 呼び出しに対していつ設定されるかを追跡します。提供されている Authelia のインストールまたは更新コマンドを使用して障害を再現し、修正を検証するために、スクリプトが未定義変数エラーなしでメニューまたは更新処理に到達することを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Shell
スター
19
フォーク
1
平均マージ
3分
マージ済み PR(30日)
249

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。