[PR #3167] fix: detect failed self-hosted AWG startup #3113

Open
opened 2026-10-15 04:07:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3167
Author: @HeisLuka
Created: 9/14/2026
Status: 🔄 Open

Base: dev ← Head: fix/awg-startup-health-check


📝 Commits (2)

  • 4749376 fix: persist AWG startup failures
  • 42a2925 fix: validate self-hosted AWG readiness

📊 Changes

2 files changed (+57 additions, -1 deletions)

View changed files

📝 client/core/configurators/awgConfigurator.cpp (+46 -0)
📝 client/server_scripts/awg/start.sh (+11 -1)

📄 Description

Summary

  • persist AmneziaWG startup output to /opt/amnezia/awg/startup.log
  • detect when the awg0 interface fails to start
  • wait up to 10 seconds for AWG readiness after container startup
  • verify that the generated client peer was actually applied to awg0
  • return an installation error instead of reporting success when the AWG service is not ready

This addresses the false-success installation scenario where the Docker container remains running but awg0 is missing, for example when an outdated host amneziawg kernel module accepts interface creation but rejects AWG 3.1 configuration parameters.

The startup log also preserves the underlying awg-quick error even though the container currently uses --log-driver none.

Scope

This change does not attempt to upgrade or replace an incompatible host kernel module. It makes the installer detect the resulting startup failure and surface it instead of treating the deployment as successful.

Fixes #3117


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3167 **Author:** [@HeisLuka](https://github.com/HeisLuka) **Created:** 9/14/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/awg-startup-health-check` --- ### 📝 Commits (2) - [`4749376`](https://github.com/amnezia-vpn/amnezia-client/commit/4749376107a01a98258ff80e3716ac65fb97e56c) fix: persist AWG startup failures - [`42a2925`](https://github.com/amnezia-vpn/amnezia-client/commit/42a2925cb47def6b6e705286ccdb47e9682f22bd) fix: validate self-hosted AWG readiness ### 📊 Changes **2 files changed** (+57 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/core/configurators/awgConfigurator.cpp` (+46 -0) 📝 `client/server_scripts/awg/start.sh` (+11 -1) </details> ### 📄 Description ## Summary - persist AmneziaWG startup output to `/opt/amnezia/awg/startup.log` - detect when the `awg0` interface fails to start - wait up to 10 seconds for AWG readiness after container startup - verify that the generated client peer was actually applied to `awg0` - return an installation error instead of reporting success when the AWG service is not ready This addresses the false-success installation scenario where the Docker container remains running but `awg0` is missing, for example when an outdated host `amneziawg` kernel module accepts interface creation but rejects AWG 3.1 configuration parameters. The startup log also preserves the underlying `awg-quick` error even though the container currently uses `--log-driver none`. ## Scope This change does not attempt to upgrade or replace an incompatible host kernel module. It makes the installer detect the resulting startup failure and surface it instead of treating the deployment as successful. Fixes #3117 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
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
amnezia-vpn/amnezia-client#3113
No description provided.