authelia: install and update both fail with "NEXTID: unbound variable"
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash, linux, shell
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
Bắt đầu với ct/authelia.sh, ui/defaults.func và ui/menu.func để xác định khi nào NEXTID được đặt so với lệnh gọi base_settings ở cấp cao nhất. Tái hiện lỗi bằng lệnh cài đặt hoặc cập nhật Authelia được cung cấp, sau đó xác minh bản sửa bằng cách xác nhận rằng tập lệnh đi đến luồng menu hoặc cập nhật mà không gặp lỗi biến chưa được gán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
✅ 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.
- Ngôn ngữ chính
- Shell
- Star
- 19
- Fork
- 1
- Merge trung bình
- 3 phút
- Pull request đã merge (30 ngày)
- 249
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[推荐公众号]: 美柏医健Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ttttmr/Wechat2RSS#741 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AppImage/appimage.github.io#12804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
ChurchCRM/docs.churchcrm.io#295 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày