Replies: 2 comments 1 reply
-
Part 1 - found an issue with quorum of Cluster Part 2 - found an issue with not rfc1123 hostnames | check recursive integer values (DISK_SIZE,CORE_COUNT,RAM_SIZE) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Does using something like shellcheck help? shellcheck -e SC1090 create_lxc.sh
In create_lxc.sh line 59:
local STORAGE=$(awk '{print $1}' <<<"$line")
^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
In create_lxc.sh line 120:
while read -r TAG TYPE _ TOTAL USED FREE _; do
^---^ SC2034 (warning): TOTAL appears unused. Verify use (or export if used externally).
In create_lxc.sh line 123:
local USED_FMT=$(numfmt --to=iec --from-unit=K --format %.1f <<<"$USED")
^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. IMHO, I learned a lot about bash scripting from shellcheck's complaints, including how to make some of my scripts portable across bash & zsh... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🧩 Problem Summary
We’re encountering a frequent issue during the automated LXC creation process in
create_lxc.sh
used by community-scripts/ProxmoxVE.The script exits with:
This error appears 100–200 times per day across community installations and remains difficult to reproduce consistently in a controlled environment.
🔍 What I’m Looking For
I need help understanding what exactly causes this exit code 1, especially since:
📋 What You Can Do to Help
Please share the full console output during the failing run:
💡 Additional Context
create_lxc.sh
build.func
→create_lxc.sh
✅ Known Causes Already Fixed
🤝 Let’s Fix This Together
Any logs, patterns, error messages, or even vague suspicions are highly appreciated.
The goal is to improve script robustness and eliminate this unknown exit path.
Thanks in advance!
— MickLesk @ community-scripts
Beta Was this translation helpful? Give feedback.
All reactions