[GH-ISSUE #5505] Error in build.func when Customizing LXC Container (Timezone) #1173

Closed
opened 2026-02-26 12:47:58 +03:00 by kerem · 1 comment
Owner

Originally created by @DoloresHA on GitHub (Jun 27, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/5505

Have you read and understood the above guidelines?

yes

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

misc/build.func via nginxproxymanager.sh

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.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.

When attempting to run the nginxproxymanager.sh script with standard settings, verbose output, it errored out with

[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"

I was able to resolve this by changing the relevant line to
pct exec "$CTID" -- bash -c 'echo '"'"'${tz}'"'"' >/etc/timezone && ln -sf /usr/share/zoneinfo/'"'"'${tz}'"'"' /etc/localtime'
however, I had some help in modifying that line and don't have enough understanding of scripting to propose a "permanent" solution nor test it thoroughly (hence me not simply submitting a PR).

🔄 Steps to reproduce the issue.

Run bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" from the promox web gui shell.

Paste the full error output (if available).

Sorry, that's long gone, here is the best that I have:

[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"

🖼️ Additional context (optional).

I love this project- thank you!

Originally created by @DoloresHA on GitHub (Jun 27, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/5505 ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? misc/build.func via nginxproxymanager.sh ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. When attempting to run the nginxproxymanager.sh script with standard settings, verbose output, it errored out with `[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"` I was able to resolve this by changing the relevant line to `pct exec "$CTID" -- bash -c 'echo '"'"'${tz}'"'"' >/etc/timezone && ln -sf /usr/share/zoneinfo/'"'"'${tz}'"'"' /etc/localtime' ` however, I had some help in modifying that line and don't have enough understanding of scripting to propose a "permanent" solution nor test it thoroughly (hence me not simply submitting a PR). ### 🔄 Steps to reproduce the issue. Run `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)"` from the promox web gui shell. ### ❌ Paste the full error output (if available). Sorry, that's long gone, here is the best that I have: `[ERROR] in line 1079: exit code 0: while executing command pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"` ### 🖼️ Additional context (optional). I love this project- thank you!
kerem 2026-02-26 12:47:58 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

There is an Fallback in this Script, If this failed the Container need an recreate. Thats an Proxmox Thing with current kernel

<!-- gh-comment-id:3011790027 --> @MickLesk commented on GitHub (Jun 27, 2025): There is an Fallback in this Script, If this failed the Container need an recreate. Thats an Proxmox Thing with current kernel
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#1173
No description provided.