angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.48k stars 1.26k forks source link

The script seems to not create `/etc/wireguard/wg0.conf` #463

Closed MajliTech closed 11 months ago

MajliTech commented 1 year ago

OS: Fedora

$ uname -a
Linux serwerintranet 6.3.8-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 15 02:15:40 UTC 2023 x86_64 GNU/Linux

The script seems to not create /etc/wireguard/wg0.conf

$ journalctl -xu wg-quick@wg0.service
Jul 06 11:10:52 serwerintranet systemd[1]: Starting wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0...
░░ Subject: A start job for unit wg-quick@wg0.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit wg-quick@wg0.service has begun execution.
░░ 
░░ The job identifier is 23031.
Jul 06 11:10:52 serwerintranet wg-quick[7715]: wg-quick: `/etc/wireguard/wg0.conf' does not exist
Jul 06 11:10:52 serwerintranet systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit wg-quick@wg0.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 06 11:10:52 serwerintranet systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit wg-quick@wg0.service has entered the 'failed' state with result 'exit-code'.
Jul 06 11:10:52 serwerintranet systemd[1]: Failed to start wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0.
░░ Subject: A start job for unit wg-quick@wg0.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit wg-quick@wg0.service has finished with a failure.
░░ 
░░ The job identifier is 23031 and the job result is failed.
-- Boot 85ba8aaf3c8d4ef3a3c30f35686c0df4 --
Jul 06 11:14:02 serwerintranet systemd[1]: Starting wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0...
░░ Subject: A start job for unit wg-quick@wg0.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit wg-quick@wg0.service has begun execution.
░░ 
░░ The job identifier is 279.
Jul 06 11:14:02 serwerintranet wg-quick[786]: wg-quick: `/etc/wireguard/wg0.conf' does not exist
Jul 06 11:14:02 serwerintranet systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit wg-quick@wg0.service has exited.
░░ 
MajliTech commented 11 months ago

I fixed this using another fork.

Retch commented 7 months ago

I have the same problem