-
-
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?
Wastebin
π What was the exact command used to execute the script?
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/wastebin.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.
Originally when trying to perform an update on an existing community-script installation of Wastebin, I noted errors when the script was attempting to download the latest release of the wastebin project from GitHub. I then tested out a fresh install using the installer (bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/wastebin.sh)") which produced the same error.
π Steps to reproduce the issue.
Step 1: Perform a fresh install of wastebin using the community-scripts installer.
β Paste the full error output (if available).
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/wastebin.sh)"
_ __ __ __ _
| | / /___ ______/ /____ / /_ (_)___
| | /| / / __ `/ ___/ __/ _ \/ __ \/ / __ \
| |/ |/ / /_/ (__ ) /_/ __/ /_/ / / / / /
|__/|__/\__,_/____/\__/\___/_.___/_/_/ /_/
βοΈ Using Default Settings on node <REDACTED_PVE_NODE>
π₯οΈ Operating System: debian
π Version: 12
π¦ Container Type: Unprivileged
πΎ Disk Size: 4 GB
π§ CPU Cores: 1
π οΈ RAM Size: 1024 MiB
π Container ID: 102
π Creating a Wastebin LXC using the above default settings
βοΈ Using local for Template Storage.
βοΈ Using local-zfs for Container Storage.
βοΈ Updated LXC Template List
βοΈ LXC Template is ready to use.
βοΈ LXC Container 102 was successfully created.
βοΈ Started LXC Container
βοΈ Set up Container OS
βοΈ Network Connected: <REDACTED_IPV4> <REDACTED_IPV6>
βοΈ IPv4 Internet Connected
βοΈ IPv6 Internet Not Connected
βοΈ DNS Resolved github.com to 140.82.114.4
βοΈ Updated Container OS
βοΈ Core dependencies installed
β Όcurl: (22) The requested URL returned error: 404
β ΄
[ERROR] in line 19: exit code 0: while executing command curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file"
curl: (22) The requested URL returned error: 400
/dev/fd/63: line 74: SPINNER_PID: unbound variable
πΌοΈ Additional context (optional).
When manually executing the relevant portion of the script, I see some partially valid output:
root@wastebin:~# curl -fsSL https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }'
3.1.0
Here we can see that we successfully extracted the latest tag_name from the repository in question and the output was 3.1.0, which at the time of opening this issue is indeed the latest release.
The next step of the installer script tries to download a zip file like so:
curl -fsSL "https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.zip" -o "$temp_file"
I suspect this might be the problem, as the interpolated URL of https://github.com/matze/wastebin/releases/download/3.1.0/wastebin_3.1.0_x86_64-unknown-linux-musl.zip produces an HTTP 404 response.
Hopping over to the actual release page within GitHub (https://github.com/matze/wastebin/releases/tag/3.1.0) I don't actually see any .zip binaries, but instead a .tar.zst (https://github.com/matze/wastebin/releases/download/3.1.0/wastebin_3.1.0_x86_64-unknown-linux-musl.tar.zst).