When run I get the following error in docker compose logs wireguard:
wireguard | [migrations] started
wireguard | [migrations] no migrations found
wireguard | ───────────────────────────────────────
wireguard |
wireguard | ██╗ ███████╗██╗ ██████╗
wireguard | ██║ ██╔════╝██║██╔═══██╗
wireguard | ██║ ███████╗██║██║ ██║
wireguard | ██║ ╚════██║██║██║ ██║
wireguard | ███████╗███████║██║╚██████╔╝
wireguard | ╚══════╝╚══════╝╚═╝ ╚═════╝
wireguard |
wireguard | Brought to you by linuxserver.io
wireguard | ───────────────────────────────────────
wireguard |
wireguard | To support the app dev(s) visit:
wireguard | WireGuard: https://www.wireguard.com/donations/
wireguard |
wireguard | To support LSIO projects visit:
wireguard | https://www.linuxserver.io/donate/
wireguard |
wireguard | ───────────────────────────────────────
wireguard | GID/UID
wireguard | ───────────────────────────────────────
wireguard |
wireguard | User UID: 1000
wireguard | User GID: 1000
wireguard | ───────────────────────────────────────
wireguard |
wireguard | Uname info: Linux 955d60f0ddc4 5.15.102-1-pve #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z) x86_64 x86_64 x86_64 GNU/Linux
wireguard | **** It seems the wireguard module is already active. Skipping kernel header install and module compilation. ****
wireguard | **** As the wireguard module is already active you can remove the SYS_MODULE capability from your container run/compose. ****
wireguard | mkdir: cannot create directory ‘/etc/wireguard’: Invalid argument
wireguard | ln: failed to create symbolic link '/etc/wireguard/wg0.conf': No such file or directory
wireguard | **** Server mode is selected ****
wireguard | **** External server address is set to example.com ****
wireguard | **** External server port is set to 51820. Make sure that port is properly forwarded to port 51820 inside this container ****
wireguard | **** Internal subnet is set to 10.13.13.0 ****
wireguard | **** AllowedIPs for peers 0.0.0.0/0 ****
wireguard | **** PEERDNS var is either not set or is set to "auto", setting peer DNS to 10.13.13.1 to use wireguard docker host's DNS. ****
wireguard | **** Server mode is selected ****
wireguard | **** No changes to parameters. Existing configs are used. ****
wireguard | [custom-init] No custom files found, skipping...
wireguard | .:53
wireguard | CoreDNS-1.10.1
wireguard | linux/amd64, go1.20, 055b2c3
wireguard | wg-quick: `/etc/wireguard/wg0.conf' does not exist
wireguard | s6-rc: warning: unable to start service svc-wireguard: command exited 1
Why is it trying to create /etc/wireguard/wg0.conf when it successfully creates /home/paul/appdata/wireguard/wg0.conf?
I have tried the same config on an a laptop running ubuntu 22.04 and I don’t get this error.
We do not test or support proxmox, but something related to it is preventing folder creation which causes the failure. You could start by verifying ls -asnl /home/paul/appdata/wireguard is owned by 1000:1000 . Beyond that, I’ve never touched proxmox and can’t venture a guess.
The issue is your container cannot create a folder inside of the container, as root (and thus can’t create a symlink in that folder). Which suggests your docker install has unexpected limitations. Maybe lxc issues if you’re using that?
I’m not too familiar with proxmox, but I’m pretty sure they recommend installing docker in a VM (other option is in LXC, but they recommend against it).
I am having the same problem, but as people have mentioned earlier, i think it is because i use lxc containers instead of virtual machine. I will be trying to do it on a virtual machine and hopefully it will work