Skip to content

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

@nielsmaerten

Description

@nielsmaerten

βœ… 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions