When disabling both tcp and upd for OpenVPN the app is stuck in a restart loop
-
I wanted to give the new VPN app a try to see how easy it is to get Wireguard going with it. Since i am not planning on using OpenVPN i just disabled both the tcp and udp options for "vpn" (maybe this could be renamed to OpenVPN to make it clearer). In the settings this was not an issue, but when then starting the app it is stuck in "Starting.." and the following is logged repeatedly
2024-12-28T16:38:09Z 2024-12-28 16:38:09,577 INFO spawned: 'openvpn' with pid 201 2024-12-28T16:38:09Z 2024-12-28 16:38:09,593 INFO exited: openvpn (exit status 1; not expected) 2024-12-28T16:38:10.000Z => Healtheck error: Error: connect ECONNREFUSED 172.18.19.53:3000 2024-12-28T16:38:10Z 2024-12-28T16:38:10Z 2024-12-28T16:38:10Z 2024-12-28 16:38:10,633 INFO reaped unknown pid 188 (exit status 1) 2024-12-28T16:38:10Z 2024-12-28 16:38:10,642 INFO exited: admin (exit status 1; not expected) 2024-12-28T16:38:10Z Error: Could not restart OpenVPN: Command failed: sudo /app/code/src/restart.sh 2024-12-28T16:38:10Z Node.js v22.11.0 2024-12-28T16:38:10Z ^ 2024-12-28T16:38:10Z at async Object.init (file:///app/code/src/vpn.js:760:5) 2024-12-28T16:38:10Z at async main (file:///app/code/server.js:190:5) 2024-12-28T16:38:10Z at async ovInit (file:///app/code/src/vpn.js:660:5) 2024-12-28T16:38:10Z at ovSyncSettings (file:///app/code/src/vpn.js:193:27) 2024-12-28T16:38:10Z file:///app/code/src/vpn.js:193 2024-12-28T16:38:10Z if (safe.error) throw new Error(`Could not restart OpenVPN: ${safe.error.message}`); 2024-12-28T16:38:10Z openvpn: ERROR (not running) 2024-12-28T16:38:10Z openvpn: ERROR (spawn error) 2024-12-28T16:38:11Z 2024-12-28 16:38:11 --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers. 2024-12-28T16:38:11Z 2024-12-28 16:38:11 CRL: loaded 1 CRLs from file /app/data/pki/crl.pem 2024-12-28T16:38:11Z 2024-12-28 16:38:11 Diffie-Hellman initialized with 2048 bit key 2024-12-28T16:38:11Z 2024-12-28 16:38:11 Exiting due to fatal error
The solution is to go back into the location settings and enable at least one of the two.