(Immich) Script: /dev/fd/63: line 231: DISABLEIP6: unbound variable #1391

Closed
opened 2025-11-20 05:09:22 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @nielsmaerten on GitHub (Jun 30, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Immich

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/immich.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

The script crashes during write_config() because the variable DISABLEIP6 is referenced but never initialized.
The unbound variable throws on line 231:

/dev/fd/63: line 231: DISABLEIP6: unbound variable

🔄 Steps to reproduce the issue.

  1. Run the script using the command above
  2. Use default or advanced settings (both have the bug)
  3. Accept all defaults until LXC creation starts
  4. The error should now pop up

Paste the full error output (if available).

🖥️ Operating System: debian
🌟 Version: 12
📦 Container Type: Unprivileged
🔐 Root Password: Automatic Login
🆔 Container ID: 113
🏠 Hostname: immich
💾 Disk Size: 20 GB
🧠 CPU Cores: 4
🛠️ RAM Size: 4096 MiB
🌉 Bridge: vmbr0
📡 IPv4: DHCP
📡 IPv6: Disabled
📡 APT-Cacher IP Address: Default
⚙️ Interface MTU Size: Default
🔍 DNS Search Domain: Host
📡 DNS Server IP Address: Host
🏷️ Vlan: Default
📡 Tags: community-script
🔑 Root SSH Access: yes
🗂️ Enable FUSE Support: yes
🔍 Verbose Mode: yes
🚀 Creating a immich LXC using the above advanced settings
/dev/fd/63: line 231: DISABLEIP6: unbound variable

[ERROR] in line 231: exit code 0: while executing command cat < "$FILEPATH"

${NSAPP} Configuration File

Generated on $(date)

CT_TYPE="${CT_TYPE}"
DISK_SIZE="${DISK_SIZE}"
CORE_COUNT="${CORE_COUNT}"
RAM_SIZE="${RAM_SIZE}"
HN="${HN}"
BRG="${BRG}"
APT_CACHER_IP="${APT_CACHER_IP:-none}"
DISABLEIP6="${DISABLEIP6}"
PW='${PW:-none}'
SSH="${SSH}"
SSH_AUTHORIZED_KEY="${SSH_AUTHORIZED_KEY}"
VERBOSE="${VERBOSE}"
TAGS="${TAGS:-none}"
VLAN="${VLAN:-none}"
MTU="${MTU:-1500}"
GATE="${GATE:-none}"
SD="${SD:-none}"
MAC="${MAC:-none}"
NS="${NS:-none}"
NET="${NET}"
FUSE="${ENABLE_FUSE}"

EOF

🖼️ Additional context (optional).

DISABLEIP6 was recently commented out in base_settings() but is still referenced in both heredocs of write_config().

So if you add DISABLEIP6=no as an env var before running the script, it works normally

# workaround
DISABLEIP6=no bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/immich.sh)"

I've tried the script with default settings, advanced settings, setting IPV6 as disabled, and setting IPV6 to the recommended SLAAC. The bug appeared in all cases. Only explicitly defining the env var like I did in the snippet above will bypass it.
Originally created by @nielsmaerten on GitHub (Jun 30, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Immich ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/immich.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. The script crashes during write_config() because the variable DISABLEIP6 is referenced but never initialized. The unbound variable throws on line 231: `/dev/fd/63: line 231: DISABLEIP6: unbound variable` ### 🔄 Steps to reproduce the issue. 1. Run the script using the command above 2. Use default or advanced settings (both have the bug) 3. Accept all defaults until LXC creation starts 4. The error should now pop up ### ❌ Paste the full error output (if available). 🖥️ Operating System: debian 🌟 Version: 12 📦 Container Type: Unprivileged 🔐 Root Password: Automatic Login 🆔 Container ID: 113 🏠 Hostname: immich 💾 Disk Size: 20 GB 🧠 CPU Cores: 4 🛠️ RAM Size: 4096 MiB 🌉 Bridge: vmbr0 📡 IPv4: DHCP 📡 IPv6: Disabled 📡 APT-Cacher IP Address: Default ⚙️ Interface MTU Size: Default 🔍 DNS Search Domain: Host 📡 DNS Server IP Address: Host 🏷️ Vlan: Default 📡 Tags: community-script 🔑 Root SSH Access: yes 🗂️ Enable FUSE Support: yes 🔍 Verbose Mode: yes 🚀 Creating a immich LXC using the above advanced settings /dev/fd/63: line 231: DISABLEIP6: unbound variable [ERROR] in line 231: exit code 0: while executing command cat <<EOF > "$FILEPATH" # ${NSAPP} Configuration File # Generated on $(date) CT_TYPE="${CT_TYPE}" DISK_SIZE="${DISK_SIZE}" CORE_COUNT="${CORE_COUNT}" RAM_SIZE="${RAM_SIZE}" HN="${HN}" BRG="${BRG}" APT_CACHER_IP="${APT_CACHER_IP:-none}" DISABLEIP6="${DISABLEIP6}" PW='${PW:-none}' SSH="${SSH}" SSH_AUTHORIZED_KEY="${SSH_AUTHORIZED_KEY}" VERBOSE="${VERBOSE}" TAGS="${TAGS:-none}" VLAN="${VLAN:-none}" MTU="${MTU:-1500}" GATE="${GATE:-none}" SD="${SD:-none}" MAC="${MAC:-none}" NS="${NS:-none}" NET="${NET}" FUSE="${ENABLE_FUSE}" EOF ### 🖼️ Additional context (optional). DISABLEIP6 was recently commented out in base_settings() but is still referenced in both heredocs of write_config(). So if you add DISABLEIP6=no as an env var before running the script, it works normally ```bash # workaround DISABLEIP6=no bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/immich.sh)" I've tried the script with default settings, advanced settings, setting IPV6 as disabled, and setting IPV6 to the recommended SLAAC. The bug appeared in all cases. Only explicitly defining the env var like I did in the snippet above will bypass it.
saavagebueno added the bug label 2025-11-20 05:09:22 -05:00
Author
Owner

@MickLesk commented on GitHub (Jun 30, 2025):

already fixed

@MickLesk commented on GitHub (Jun 30, 2025): already fixed
Author
Owner

@nielsmaerten commented on GitHub (Jun 30, 2025):

Damn you guys are fast 🚀🚀😅

Thanks!

@nielsmaerten commented on GitHub (Jun 30, 2025): Damn you guys are fast 🚀🚀😅 Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1391