WireGuard LXC installation does not work #185

Closed
opened 2026-02-04 17:01:14 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @milandzuris on GitHub (Dec 17, 2024).

Have you read and understood the above guidelines?

yes

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

WireGuard LXC

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

📝 Provide a clear and concise description of the issue.

installation does not work

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Paste the full error output (if available).

  ✔️  Installed WireGuard
 ⠹------------------------------------------------------------
[WGDashboard] Starting to install WGDashboard
[WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder
[WGDashboard] Creating ./log folder
[WGDashboard] OS: debian
[WGDashboard] ✔ Python is installed
[WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.9.2.
[WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now.
Terminated

[ERROR] in line 34: exit code 0: while executing command $STD ./wgd.sh install
root@dzurisserver:~# python3 --version
Python 3.11.2

image

[WGDashboard] Starting to install WGDashboard
[WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder
 ⠋[WGDashboard] Creating ./log folder
[WGDashboard] OS: ubuntu
[WGDashboard] ✔ Python is installed
[WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.8.10.
[WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now.
Terminated

[ERROR] in line 33: exit code 0: while executing command $STD ./wgd.sh install

🖼️ Additional context (optional).

No response

Originally created by @milandzuris on GitHub (Dec 17, 2024). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? WireGuard LXC ### 📂 What was the exact command used to execute the script? * ### 📝 Provide a clear and concise description of the issue. installation does not work ### ⚙️ What settings are you using? - [ ] Default Settings - [X] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. * ### ❌ Paste the full error output (if available). ``` ✔️ Installed WireGuard ⠹------------------------------------------------------------ [WGDashboard] Starting to install WGDashboard [WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder [WGDashboard] Creating ./log folder [WGDashboard] OS: debian [WGDashboard] ✔ Python is installed [WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.9.2. [WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now. Terminated [ERROR] in line 34: exit code 0: while executing command $STD ./wgd.sh install root@dzurisserver:~# python3 --version Python 3.11.2 ``` ![image](https://github.com/user-attachments/assets/9fda918f-df81-44e9-9086-9a0cd37d2fcd) ``` [WGDashboard] Starting to install WGDashboard [WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder ⠋[WGDashboard] Creating ./log folder [WGDashboard] OS: ubuntu [WGDashboard] ✔ Python is installed [WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.8.10. [WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now. Terminated [ERROR] in line 33: exit code 0: while executing command $STD ./wgd.sh install ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the question label 2026-02-04 17:01:14 +03:00
Author
Owner

@MickLesk commented on GitHub (Dec 17, 2024):

@daanselen @donaldzou
Is this an issue of your Software? We only start wgd.sh and this install python3.

We can Install python3 before, but i think its an issue in your dependencies?

@MickLesk commented on GitHub (Dec 17, 2024): @daanselen @donaldzou Is this an issue of your Software? We only start wgd.sh and this install python3. We can Install python3 before, but i think its an issue in your dependencies?
Author
Owner

@DaanSelen commented on GitHub (Dec 18, 2024):

I am going to try to reproduce.

@DaanSelen commented on GitHub (Dec 18, 2024): I am going to try to reproduce.
Author
Owner

@DaanSelen commented on GitHub (Dec 18, 2024):

I used:

 _       ___                                      __
| |     / (_)_______  ____ ___  ______ __________/ /
| | /| / / / ___/ _ \/ __ `/ / / / __ `/ ___/ __  / 
| |/ |/ / / /  /  __/ /_/ / /_/ / /_/ / /  / /_/ /  
|__/|__/_/_/   \___/\__, /\__,_/\__,_/_/   \__,_/   
                   /____/                           
  🧩  Using Advanced Settings
  🖥️  Operating System: debian
  🌟  Version: 12
  📦  Container Type: Unprivileged
  🔐  Root Password: ********
  🆔  Container ID: 101
  🏠  Hostname: wireguard
  💾  Disk Size: 4
  🧠  CPU Cores: 2
  🛠️  RAM Size: 1024
  🌉  Bridge: vmbr0
  📡  IP Address: dhcp
  🌐  Gateway IP Address: Default
  📡  APT-Cacher IP Address: Default
  🚫  Disable IPv6: yes
  ⚙️  Interface MTU Size: Default
  🔍  DNS Search Domain: Host
  📡  DNS Server IP Address: 192.168.178.30
  🏷️  Vlan: Default
  🔑  Root SSH Access: yes
  🔍  Verbose Mode: yes
  🚀  Creating a Wireguard LXC using the above advanced settings
  ✔️  Using Proxmox for Template Storage.
  ✔️  Using Proxmox for Container Storage.
  ✔️  Updated LXC Template List
  ✔️  LXC Container 101 was successfully created.
  ✔️  Started LXC Container
net.ipv6.conf.all.disable_ipv6 = 1
  ✔️  Set up Container OS
  ✔️  Network Connected: 192.168.178.156 
  ✔️  IPv4 Internet Connected
  ✖️  IPv6 Internet Not Connected
  ✔️  DNS Resolved github.com to 140.82.121.4

I tried running with both standard and advanced install with the details above... but it works...

 ⠙run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables start
 ⠹run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables start
  ✔️  Installed WireGuard
 ⠇------------------------------------------------------------
[WGDashboard] Starting to install WGDashboard
[WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder
[WGDashboard] Creating ./log folder
[WGDashboard] OS: debian
[WGDashboard] ✔ Python is installed
 ⠋[WGDashboard] ✔ Python Virtual Environment is installed
 ⠦[WGDashboard] ✔ Python Package Manager (PIP) is installed
[WGDashboard] WireGuard is already installed.
 ⠧[WGDashboard] Creating ./db folder
[WGDashboard] Creating Python Virtual Environment under ./venv
 ⠦[WGDashboard] Upgrading Python Package Manage (PIP)[WGDashboard] Installing latest Python dependencies
 ⠏[WGDashboard] WGDashboard installed successfully!
[WGDashboard] Enter ./wgd.sh start to start the dashboard
------------------------------------------------------------
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv4.ip_forward = 1
  ✔️  Installed WGDashboard
  ✔️  Created Example Config for WGDashboard
  ✔️  Created Service
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
 ⠸0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
  ✔️  Cleaned
  ✔️  Completed Successfully!

  🚀  Wireguard setup has been successfully initialized!
  💡   WGDashboard Access it using the following URL:
    🌐  http://192.168.178.156:10086
root@Osiris:~#

Can you share your initial values @milandzuris ?

@DaanSelen commented on GitHub (Dec 18, 2024): I used: ```shell _ ___ __ | | / (_)_______ ____ ___ ______ __________/ / | | /| / / / ___/ _ \/ __ `/ / / / __ `/ ___/ __ / | |/ |/ / / / / __/ /_/ / /_/ / /_/ / / / /_/ / |__/|__/_/_/ \___/\__, /\__,_/\__,_/_/ \__,_/ /____/ 🧩 Using Advanced Settings 🖥️ Operating System: debian 🌟 Version: 12 📦 Container Type: Unprivileged 🔐 Root Password: ******** 🆔 Container ID: 101 🏠 Hostname: wireguard 💾 Disk Size: 4 🧠 CPU Cores: 2 🛠️ RAM Size: 1024 🌉 Bridge: vmbr0 📡 IP Address: dhcp 🌐 Gateway IP Address: Default 📡 APT-Cacher IP Address: Default 🚫 Disable IPv6: yes ⚙️ Interface MTU Size: Default 🔍 DNS Search Domain: Host 📡 DNS Server IP Address: 192.168.178.30 🏷️ Vlan: Default 🔑 Root SSH Access: yes 🔍 Verbose Mode: yes 🚀 Creating a Wireguard LXC using the above advanced settings ✔️ Using Proxmox for Template Storage. ✔️ Using Proxmox for Container Storage. ✔️ Updated LXC Template List ✔️ LXC Container 101 was successfully created. ✔️ Started LXC Container net.ipv6.conf.all.disable_ipv6 = 1 ✔️ Set up Container OS ✔️ Network Connected: 192.168.178.156 ✔️ IPv4 Internet Connected ✖️ IPv6 Internet Not Connected ✔️ DNS Resolved github.com to 140.82.121.4 ``` I tried running with both standard and advanced install with the details above... but it works... ```shell ⠙run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables start ⠹run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables start ✔️ Installed WireGuard ⠇------------------------------------------------------------ [WGDashboard] Starting to install WGDashboard [WGDashboard] Creating /etc/wireguard/WGDashboard_Backup folder [WGDashboard] Creating ./log folder [WGDashboard] OS: debian [WGDashboard] ✔ Python is installed ⠋[WGDashboard] ✔ Python Virtual Environment is installed ⠦[WGDashboard] ✔ Python Package Manager (PIP) is installed [WGDashboard] WireGuard is already installed. ⠧[WGDashboard] Creating ./db folder [WGDashboard] Creating Python Virtual Environment under ./venv ⠦[WGDashboard] Upgrading Python Package Manage (PIP) ⠼[WGDashboard] Installing latest Python dependencies ⠏[WGDashboard] WGDashboard installed successfully! [WGDashboard] Enter ./wgd.sh start to start the dashboard ------------------------------------------------------------ net.ipv6.conf.all.disable_ipv6 = 1 net.ipv4.ip_forward = 1 ✔️ Installed WGDashboard ✔️ Created Example Config for WGDashboard ✔️ Created Service Reading package lists... Done Building dependency tree... Done Reading state information... Done ⠸0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done ✔️ Cleaned ✔️ Completed Successfully! 🚀 Wireguard setup has been successfully initialized! 💡 WGDashboard Access it using the following URL: 🌐 http://192.168.178.156:10086 root@Osiris:~# ``` Can you share your initial values @milandzuris ?
Author
Owner

@tjcomserv commented on GitHub (Dec 20, 2024):

@milandzuris Please can you confirm that the LXC has been created? If so, can you access it from the Proxmoxroot shell using:

pct enter <containerId>

Then get the python3 version from here:

python3 --version

Then can you try updating and upgrading the container:

apt update && apt upgrade -y

Then see if python3 was updated:

python3 --version

Once done, whilst in the container, can you try running the script again:

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/wireguard.sh)"

I think that maybe, the apt update (as run by wgd.sh) is pulling from an outdated repository. (Could be a DNS Issue IDK)

Also, what version of Proxmox are you running please? I have just tested with v8.2.4

@tjcomserv commented on GitHub (Dec 20, 2024): @milandzuris Please can you confirm that the LXC has been created? If so, can you access it from the Proxmoxroot shell using: `pct enter <containerId>` Then get the python3 version from here: `python3 --version` Then can you try updating and upgrading the container: `apt update && apt upgrade -y` Then see if python3 was updated: ``python3 --version`` Once done, whilst in the container, can you try running the script again: `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/wireguard.sh)"` I think that maybe, the apt update (as run by wgd.sh) is pulling from an outdated repository. (Could be a DNS Issue IDK) Also, what version of Proxmox are you running please? I have just tested with v8.2.4
Author
Owner

@maniac79 commented on GitHub (Dec 24, 2024):

Hi,
found this by googling, because I'm unable to update my LXC, I'm getting the same error message when I try to update via the script:

Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[WGDashboard] OS: debian
[WGDashboard] ✔ Python is installed
[WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.9.2.
[WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now.
Terminated

[ERROR] in line 39: exit code 0: while executing command ./wgd.sh update

EDIT: I set the LXC up a few months ago via the script and never tried to update it before today.

@maniac79 commented on GitHub (Dec 24, 2024): Hi, found this by googling, because I'm unable to update my LXC, I'm getting the same error message when I try to update via the script: Hit:1 http://security.debian.org bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [WGDashboard] OS: debian [WGDashboard] ✔ Python is installed [WGDashboard] ✗ Could not find a compatible version of Python. Current Python is Python 3.9.2. [WGDashboard] WGDashboard required Python 3.10, 3.11 or 3.12. Halting install now. Terminated [ERROR] in line 39: exit code 0: while executing command ./wgd.sh update EDIT: I set the LXC up a few months ago via the script and never tried to update it before today.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#185