[GH-ISSUE #4095] Wireguard Alpine Update Fail #865

Closed
opened 2026-02-26 12:46:56 +03:00 by kerem · 9 comments
Owner

Originally created by @di5cord20 on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/4095

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). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/4095 ### ✅ 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.
kerem 2026-02-26 12:46:56 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

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

<!-- gh-comment-id:2835081586 --> @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.

<!-- gh-comment-id:2835823852 --> @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?

<!-- gh-comment-id:2835889339 --> @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

<!-- gh-comment-id:2835899674 --> @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" ?

<!-- gh-comment-id:2835927294 --> @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.

<!-- gh-comment-id:2928184745 --> @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.

<!-- gh-comment-id:2928186309 --> @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.

<!-- gh-comment-id:3376043321 --> @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

<!-- gh-comment-id:3376145099 --> @tremor021 commented on GitHub (Oct 7, 2025): @sorinello try after #8160 merges
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#865
No description provided.