authelia: install and update both fail with "NEXTID: unbound variable"
維護者通常 1 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 85/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- bash, linux, shell
- 領域
- devops, infrastructure
研究方向
從 ct/authelia.sh、ui/defaults.func 和 ui/menu.func 開始,追蹤 NEXTID 相對於頂層 base_settings 呼叫是在何時設定的。使用提供的 Authelia 安裝或更新命令重現故障,然後透過確認腳本能夠進入選單或更新流程且沒有出現未綁定變數錯誤來驗證修正。
由索引模型根據 Issue 內容生成。
描述
✅ 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):
- Run:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/Incus/main/ct/authelia.sh)" - The script stops after the banner with the error above, before any menu. No container is created.
Update (inside an existing Authelia container):
- Run:
update - Same error, exit code 1, before
update_scriptruns.
❌ 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 分鐘
- 30 天內合併 PR
- 249
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
維護者通常 1 天內回覆
-
[推荐公众号]: 美柏医健未關閉
難度 2/5 1-3 小時 新手友好度 82/100
ttttmr/Wechat2RSS#741 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
AppImage/appimage.github.io#12804 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 95/100
ChurchCRM/docs.churchcrm.io#295 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆