Wireguard Alpine Update Fail #868

Closed
opened 2026-02-04 21:58:04 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @di5cord20 on GitHub (Apr 28, 2025).

Have you read and understood the above guidelines?

yes

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

Wireguard

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

update

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Alpine

📝 Provide a clear and concise description of the issue.

Update command failed.

Image

🔄 Steps to reproduce the issue.

Run update command

Paste the full error output (if available).

  ✔️   Updated Alpine Packages
  ✔️   wireguard-tools updated
⠋ update WGDashboard=================================================================================
+          <WGDashboard> by Donald Zou - https://github.com/donaldzou           +
=================================================================================
[WGDashboard] OS: alpine
[WGDashboard] ✅ Python is installed
[WGDashboard] ✅ Found compatible version of Python. Will be using Python 3.12.10 to install WGDashboard.
[WGDashboard] 💿 Installing Python Virtual Environment
⠋ update WGDashboard[WGDashboard] ✅ Python Virtual Environment is installed
⠧ update WGDashboard[WGDashboard] ✅ Python Package Manager (PIP) is installed
⠋ update WGDashboard[WGDashboard] Are you sure you want to update to the v4.2.2? (Y/N): [WGDashboard] Update Canceled.
---------------------------------------------------------------------------------
  ✔️   WGDashboard updated

🖼️ Additional context (optional).

Per the update script (https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/wireguard.sh), I manually ran the following which works:

cd /etc/wgdashboard/src
    ./wgd.sh update
    ./wgd.sh start

I'm guessing the update script needs to be updated to answer the update prompts automatically.

Originally created by @di5cord20 on GitHub (Apr 28, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Wireguard ### 📂 What was the exact command used to execute the script? update ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 📝 Provide a clear and concise description of the issue. `Update` command failed. ![Image](https://github.com/user-attachments/assets/402c074c-75a5-4f93-8892-ab064c96d137) ### 🔄 Steps to reproduce the issue. Run `update` command ### ❌ Paste the full error output (if available). ``` ✔️ Updated Alpine Packages ✔️ wireguard-tools updated ⠋ update WGDashboard================================================================================= + <WGDashboard> by Donald Zou - https://github.com/donaldzou + ================================================================================= [WGDashboard] OS: alpine [WGDashboard] ✅ Python is installed [WGDashboard] ✅ Found compatible version of Python. Will be using Python 3.12.10 to install WGDashboard. [WGDashboard] 💿 Installing Python Virtual Environment ⠋ update WGDashboard[WGDashboard] ✅ Python Virtual Environment is installed ⠧ update WGDashboard[WGDashboard] ✅ Python Package Manager (PIP) is installed ⠋ update WGDashboard[WGDashboard] Are you sure you want to update to the v4.2.2? (Y/N): [WGDashboard] Update Canceled. --------------------------------------------------------------------------------- ✔️ WGDashboard updated ``` ### 🖼️ Additional context (optional). Per the `update` script (https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/wireguard.sh), I manually ran the following which works: ``` cd /etc/wgdashboard/src ./wgd.sh update ./wgd.sh start ``` I'm guessing the `update` script needs to be updated to answer the update prompts automatically.
OVERLORD added the bug label 2026-02-04 21:58:04 +03:00
Author
Owner

@MickLesk commented on GitHub (Apr 28, 2025):

i dont see an issue? ... v4.2.2? (Y/N): just type y ?

@MickLesk commented on GitHub (Apr 28, 2025): i dont see an issue? ... v4.2.2? (Y/N): just type y ?
Author
Owner

@di5cord20 commented on GitHub (Apr 28, 2025):

I'm not given an option to type Y. The script just ends/exits. I believe the fix would be to force the Y rather than asking the user to manually select. Again, this is when running the update command. When I run wgd.sh script manually, I can select Y and it updates correctly.

@di5cord20 commented on GitHub (Apr 28, 2025): I'm not given an option to type Y. The script just ends/exits. I believe the fix would be to force the Y rather than asking the user to manually select. Again, this is when running the update command. When I run wgd.sh script manually, I can select Y and it updates correctly.
Author
Owner

@MickLesk commented on GitHub (Apr 28, 2025):

But your output say you can enter y?

@MickLesk commented on GitHub (Apr 28, 2025): But your output say you can enter y?
Author
Owner

@di5cord20 commented on GitHub (Apr 28, 2025):

See the image i attached. After the prompt for Y, it shows Update Cancelled

@di5cord20 commented on GitHub (Apr 28, 2025): See the image i attached. After the prompt for Y, it shows Update Cancelled
Author
Owner

@tremor021 commented on GitHub (Apr 28, 2025):

@MickLesk is $STD messing with echo "y" ?

@tremor021 commented on GitHub (Apr 28, 2025): @MickLesk is $STD messing with echo "y" ?
Author
Owner

@di5cord20 commented on GitHub (Jun 2, 2025):

Just retested today and still have the same experience. Was anything updated previously and validated to make this issue completed?

Below is the current updated script:

function update_script() {
    header_info
    check_container_storage
    check_container_resources
    if [[ ! -d /etc/wireguard ]]; then
        msg_error "No ${APP} Installation Found!"
        exit
    fi
    apt-get update
    apt-get -y upgrade
    sleep 2
    cd /etc/wgdashboard/src
    ./wgd.sh update
    ./wgd.sh start
    exit
}

My guess is a "y" has to be passed on the ./wgd.sh update line. I'm not a developer so this is just an educated guess... I could be wrong. ChatGPT gave me the following: echo "y" | ./wgd.sh update which could potentially be used.

@di5cord20 commented on GitHub (Jun 2, 2025): Just retested today and still have the same experience. Was anything updated previously and validated to make this issue completed? Below is the current updated script: ``` function update_script() { header_info check_container_storage check_container_resources if [[ ! -d /etc/wireguard ]]; then msg_error "No ${APP} Installation Found!" exit fi apt-get update apt-get -y upgrade sleep 2 cd /etc/wgdashboard/src ./wgd.sh update ./wgd.sh start exit } ``` My guess is a "y" has to be passed on the `./wgd.sh update` line. I'm not a developer so this is just an educated guess... I could be wrong. ChatGPT gave me the following: `echo "y" | ./wgd.sh update` which could potentially be used.
Author
Owner

@di5cord20 commented on GitHub (Jun 2, 2025):

@MickLesk is $STD messing with echo "y" ?

Just as @tremor021 said, the echo "y" is missing.

@di5cord20 commented on GitHub (Jun 2, 2025): > [@MickLesk](https://github.com/MickLesk) is $STD messing with echo "y" ? Just as @tremor021 said, the `echo "y"` is missing.
Author
Owner

@sorinello commented on GitHub (Oct 7, 2025):

Why was this issue closed ? it is not fixed on the silent update.

@sorinello commented on GitHub (Oct 7, 2025): Why was this issue closed ? it is not fixed on the silent update.
Author
Owner

@tremor021 commented on GitHub (Oct 7, 2025):

@sorinello try after #8160 merges

@tremor021 commented on GitHub (Oct 7, 2025): @sorinello try after #8160 merges
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#868