Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change in Wireguard image #111

Open
BeansIsFat opened this issue Nov 10, 2023 · 3 comments · May be fixed by #116
Open

Breaking change in Wireguard image #111

BeansIsFat opened this issue Nov 10, 2023 · 3 comments · May be fixed by #116

Comments

@BeansIsFat
Copy link

See https://github.com/linuxserver/docker-wireguard#versions for the following notification about breaking changes in the current version of the Wireguard image.

03.10.23: - Potentially Breaking Change: Support for multiple interfaces added. Wireguard confs moved to /config/wg_confs/. Any file with a .conf extension in that folder will be treated as a live tunnel config and will be attempted to start. If any of the tunnels fail, all tunnels will be stopped. Tunnels are started in alphabetical order. Managed server conf will continue to be hardcoded to wg0.conf.

This breaks wireguard-ui, as noted in ngoduykhanh/wireguard-ui#479

@Nezteb
Copy link

Nezteb commented Nov 14, 2023

Can confirm, the Docker compose logs also report a few errors.

wireguard-ui  | jq: error: Could not open file db/server/global_settings.json: No such file or directory
wireguard-ui  | wg-quick: `/etc/wireguard/wg0.conf' does not exist
wireguard-ui  | Wireguard UI
wireguard-ui  | App Version	: dev
wireguard-ui  | Git Commit	: b55543f
wireguard-ui  | Git Ref		: N/A
wireguard-ui  | Build Time	: 11-14-2023 16:37:32
wireguard-ui  | Git Repo	: https://github.com/ngoduykhanh/wireguard-ui
wireguard-ui  | Authentication	: true
wireguard-ui  | Bind address	: 0.0.0.0:5000
wireguard-ui  | Email from	: 
wireguard-ui  | Email from name	: WireGuard UI
wireguard-ui  | Custom wg.conf	: 
wireguard-ui  | Base path	: /
wireguard-ui  | ⇨ http server started on [::]:5000
unbound       | cp: cannot create special file '/opt/unbound/etc/unbound/dev/random': Operation not permitted
unbound       | cp: cannot create special file '/opt/unbound/etc/unbound/dev/urandom': Operation not permitted
unbound       | cp: cannot create special file '/opt/unbound/etc/unbound/dev/null': Operation not permitted
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 6472663df5d8 6.5.7-orbstack-00109-gd8500ae6683d #1 SMP Fri Oct 13 01:28:33 UTC 2023 aarch64 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     | **** Client mode selected. ****
wireguard     | [custom-init] No custom files found, skipping...
wireguard     | crontab: can't open 'abc': No such file or directory
wireguard     | **** Disabling CoreDNS ****
wireguard     | ls: cannot access '/config/wg_confs/*.conf': No such file or directory
wireguard     | **** No valid tunnel config found. Please create a valid config and restart the container ****
wireguard     | [ls.io-init] done.

Screenshot:
screenshot_2023-11-14_at_16 41 11@2x

This might be fixable via some custom entrypoint script and/or Docker Compose config. I'll experiment and report back.

@Nezteb
Copy link

Nezteb commented Nov 16, 2023

I did some digging:

@tig77777
Copy link

tig77777 commented Dec 2, 2023

I did some digging:
Thank you. I had the same issue. So, I simply changed WIREGUARD_PEERS to PEERS. Problem solved)

@pawl pawl linked a pull request Dec 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants