Comments (6)
Well, that's different than this issue at hand, and not a bug. You can drop by discord to discuss that
from docker-wireguard.
can you docker exec -it wireguard cat /var/lib/dkms/wireguard/1.0.20200413/build/make.log
on the non-working machine which you show logs for above
and paste the results in here? thanks
from docker-wireguard.
Thanks for your input, here we go :
Mon Apr 27 22:56:18 CEST 2020
make: Entering directory '/usr/src/linux-headers-4.19.0-8-amd64'
/bin/sh: 1: bc: not found
/var/lib/dkms/wireguard/1.0.20200413/build/compat/Kbuild.include:58: *** bc(1) is required for building. Stop.
/usr/src/linux-headers-4.19.0-8-common/Makefile:1537: recipe for target '_module_/var/lib/dkms/wireguard/1.0.20200413/build' failed
make[2]: *** [_module_/var/lib/dkms/wireguard/1.0.20200413/build] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.19.0-8-amd64'
from docker-wireguard.
I can also confirm this.
docker-compose.yaml
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- SERVERURL=<REDACTED IP>
- SERVERPORT=51820
- PEERS=2
- PEERDNS=1.1.1.1
- INTERNAL_SUBNET=10.13.13.0 # optional
volumes:
- ~/stacks/wireguard/wireguard/mnt/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
/var/lib/dkms/wireguard/1.0.20200413/build/make.log
DKMS make.log for wireguard-1.0.20200413 for kernel 4.19.0-8-cloud-amd64 (x86_64)
Tue Apr 28 08:21:08 BST 2020
make: Entering directory '/usr/src/linux-headers-4.19.0-8-cloud-amd64'
/bin/sh: 1: bc: not found
/var/lib/dkms/wireguard/1.0.20200413/build/compat/Kbuild.include:58: *** bc(1) is required for building. Stop.
/usr/src/linux-headers-4.19.0-8-common/Makefile:1537: recipe for target '_module_/var/lib/dkms/wireguard/1.0.20200413/build' failed
make[2]: *** [_module_/var/lib/dkms/wireguard/1.0.20200413/build] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.19.0-8-cloud-amd64'
docker-compose logs --tail="all"
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
WireGuard: https://www.wireguard.com/donations/
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
Get:1 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic InRelease [15.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:5 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main Sources [1,212 B]
Get:6 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main amd64 Packages [924 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic/multiverse Sources [216 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main Sources [1,063 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe Sources [11.5 MB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/restricted Sources [5,823 B]
Get:11 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [369 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [8,069 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [404 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [6,192 B]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [59.0 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,372 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [12.6 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,184 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-security/universe Sources [214 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-security/restricted Sources [5,440 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-security/main Sources [187 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-security/multiverse Sources [3,228 B]
Get:27 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [44.6 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8,213 B]
Get:29 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [839 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [889 kB]
Fetched 31.7 MB in 3s (9,946 kB/s)
Reading package lists...
Debian host detected, attempting to install kernel headers from Debian Buster repo
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Hit:2 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Get:6 http://deb.debian.org/debian buster/non-free Sources [103 kB]
Get:7 http://deb.debian.org/debian buster/main Sources [10.3 MB]
Get:8 http://deb.debian.org/debian buster/contrib Sources [50.5 kB]
Get:9 http://deb.debian.org/debian buster/contrib amd64 Packages [60.8 kB]
Get:10 http://deb.debian.org/debian buster/non-free amd64 Packages [105 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 Packages [10.6 MB]
Fetched 21.3 MB in 2s (8,772 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
cpp-8 gcc-8 libasan5 libgcc-8-dev libubsan1 linux-compiler-gcc-8-x86
linux-headers-4.19.0-8-common linux-kbuild-4.19 wireguard-dkms
wireguard-tools
Suggested packages:
gcc-8-locales gcc-8-multilib gcc-8-doc libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg
libmpx2-dbg libquadmath0-dbg
The following NEW packages will be installed:
cpp-8 gcc-8 libasan5 libgcc-8-dev libubsan1 linux-compiler-gcc-8-x86
linux-headers-4.19.0-8-cloud-amd64 linux-headers-4.19.0-8-common
linux-kbuild-4.19 wireguard wireguard-dkms wireguard-tools
0 upgraded, 12 newly installed, 0 to remove and 196 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 127 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main amd64 wireguard-dkms all 1.0.20200413-0ubuntu2~18.04 [254 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 linux-compiler-gcc-8-x86 amd64 4.19.98-1 [396 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 cpp-8 amd64 8.4.0-1ubuntu1~18.04 [7,225 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 linux-headers-4.19.0-8-common all 4.19.98-1 [8,329 kB]
Get:5 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main amd64 wireguard-tools amd64 1.0.20200319-0ppa1~18.04 [88.2 kB]
Get:6 http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic/main amd64 wireguard all 1.0.20200319-0ppa1~18.04 [7,980 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasan5 amd64 8.4.0-1ubuntu1~18.04 [366 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libubsan1 amd64 8.4.0-1ubuntu1~18.04 [122 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgcc-8-dev amd64 8.4.0-1ubuntu1~18.04 [2,305 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 linux-kbuild-4.19 amd64 4.19.98-1 [629 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 linux-headers-4.19.0-8-cloud-amd64 amd64 4.19.98-1 [639 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 gcc-8 amd64 8.4.0-1ubuntu1~18.04 [8,044 kB]
Fetched 28.4 MB in 0s (80.9 MB/s)
Selecting previously unselected package cpp-8.
(Reading database ... 45886 files and directories currently installed.)
Preparing to unpack .../00-cpp-8_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking cpp-8 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libasan5:amd64.
Preparing to unpack .../01-libasan5_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libasan5:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../02-libubsan1_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libubsan1:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libgcc-8-dev:amd64.
Preparing to unpack .../03-libgcc-8-dev_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking libgcc-8-dev:amd64 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package gcc-8.
Preparing to unpack .../04-gcc-8_8.4.0-1ubuntu1~18.04_amd64.deb ...
Unpacking gcc-8 (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package linux-compiler-gcc-8-x86.
Preparing to unpack .../05-linux-compiler-gcc-8-x86_4.19.98-1_amd64.deb ...
Unpacking linux-compiler-gcc-8-x86 (4.19.98-1) ...
Selecting previously unselected package linux-headers-4.19.0-8-common.
Preparing to unpack .../06-linux-headers-4.19.0-8-common_4.19.98-1_all.deb ...
Unpacking linux-headers-4.19.0-8-common (4.19.98-1) ...
Selecting previously unselected package linux-kbuild-4.19.
Preparing to unpack .../07-linux-kbuild-4.19_4.19.98-1_amd64.deb ...
Unpacking linux-kbuild-4.19 (4.19.98-1) ...
Selecting previously unselected package linux-headers-4.19.0-8-cloud-amd64.
Preparing to unpack .../08-linux-headers-4.19.0-8-cloud-amd64_4.19.98-1_amd64.deb ...
Unpacking linux-headers-4.19.0-8-cloud-amd64 (4.19.98-1) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../09-wireguard-dkms_1.0.20200413-0ubuntu2~18.04_all.deb ...
Unpacking wireguard-dkms (1.0.20200413-0ubuntu2~18.04) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../10-wireguard-tools_1.0.20200319-0ppa1~18.04_amd64.deb ...
Unpacking wireguard-tools (1.0.20200319-0ppa1~18.04) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../11-wireguard_1.0.20200319-0ppa1~18.04_all.deb ...
Unpacking wireguard (1.0.20200319-0ppa1~18.04) ...
Setting up cpp-8 (8.4.0-1ubuntu1~18.04) ...
Setting up wireguard-dkms (1.0.20200413-0ubuntu2~18.04) ...
Loading new wireguard-1.0.20200413 DKMS files...
It is likely that 4.19.0-8-cloud-amd64 belongs to a chroot's host
Building for 4.19.0-6-cloud-amd64, 4.19.0-8-amd64 and 4.19.0-8-cloud-amd64
Module build for kernel 4.19.0-6-cloud-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 4.19.0-8-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.19.0-8-cloud-amd64
Error! Bad return status for module build on kernel: 4.19.0-8-cloud-amd64 (x86_64)
Consult /var/lib/dkms/wireguard/1.0.20200413/build/make.log for more information.
Setting up wireguard-tools (1.0.20200319-0ppa1~18.04) ...
Setting up linux-kbuild-4.19 (4.19.98-1) ...
Setting up wireguard (1.0.20200319-0ppa1~18.04) ...
Setting up linux-headers-4.19.0-8-common (4.19.98-1) ...
Setting up libasan5:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libubsan1:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up libgcc-8-dev:amd64 (8.4.0-1ubuntu1~18.04) ...
Setting up gcc-8 (8.4.0-1ubuntu1~18.04) ...
Setting up linux-compiler-gcc-8-x86 (4.19.98-1) ...
Setting up linux-headers-4.19.0-8-cloud-amd64 (4.19.98-1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 4.19.0-8-cloud-amd64
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j1 KERNELRELEASE=4.19.0-8-cloud-amd64 -C /lib/modules/4.19.0-8-cloud-amd64/build M=/var/lib/dkms/wireguard/1.0.20200413/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-8-cloud-amd64 (x86_64)
Consult /var/lib/dkms/wireguard/1.0.20200413/build/make.log for more information.
...done.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Server mode is selected
External server address is set to <REDACTED>
External server port is set to 51820. Make sure that port is properly forwarded to port 51820 inside this container
Internal subnet is set to 10.13.13.0
Peer DNS servers will be set to 1.1.1.1
No found wg0.conf found (maybe an initial install), generating 1 server and 2 peer/client confs
PEER 1 QR code:
<REDACTED>
PEER 2 QR code:
<REDACTED>
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"
.:53
CoreDNS-1.6.9
linux/amd64, go1.14.1, 1766568
Caught SIGTERM signal!
[INFO] SIGTERM: Shutting down servers then terminating
wg-quick: `wg0' is not a WireGuard interface
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
System Information
$ uname -a
Linux <REDACTED> 4.19.0-8-cloud-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
from docker-wireguard.
Alright we have a test build with bc in it. Can you try it from the lsiodev/wireguard
endpoint and let us know?
from docker-wireguard.
I'm getting connected now, but only if I go through docker host networking.
Setting bridge mode, I can't ping server (10.13.13.1) but public domains are resolved (like google.com)
Probably something related to ip routes, but I don't know much about this, should I check something ?
from docker-wireguard.
Related Issues (20)
- [FEAT / BUG] <Modifiable 'ListenPort' used by host/wireguard incoming connections through docker configuration> HOT 8
- [BUG] Custom Server Port not taken into account in server.conf template HOT 3
- [BUG] starting with ~v1.0.20210914-ls116 cannot connect to wireguard HOT 3
- [BUG] Error generating QRCode - qrencode: command not found HOT 2
- [BUG] -ls23 and onwards has issue with adding iptables rules HOT 6
- [BUG] iptables v1.8.10 (legacy): can't initialize iptables table `filter' HOT 4
- [BUG] Conneted to the Wiregurad server, but no network connection on client side. HOT 3
- [BUG] Client IPs are all the container's host HOT 15
- [BUG] missing /32 in interface address HOT 14
- [FEAT] Enable SERVER_ALLOWEDIPS_PEER_ declaration by comma HOT 9
- Old tags are wrong HOT 4
- [BUG] ListenPort = 51820 in default peer.conf disallows >1 peer through NAT loopback HOT 11
- [FEAT] [Peer] definition within generated wg0.conf should be templated HOT 10
- Setting SERVERPORT has no effect HOT 5
- [BUG] Setting SERVER_ALLOWEDIPS_PEER_ does not recreate configs HOT 2
- [BUG] busybox's modprobe fails to load kernel module HOT 1
- [FEAT] IPv6 subnet support HOT 3
- [BUG] Dual-stack IPv6 traffic is not dropped and therefore spoiling the true origin of packets HOT 1
- [FEAT] Enable logging in CoreDNS HOT 3
- [BUG] dosent work in ubuntu server HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-wireguard.