-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
β 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.
- Run the script using the command above
- Use default or advanced settings (both have the bug)
- Accept all defaults until LXC creation starts
- 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.