Skip to content

Wastebin install/update fails to download latest releaseΒ #4931

@dbeg

Description

@dbeg

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

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