amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
2k stars 200 forks source link

Failed to apply OpenVPN configuration when trying to connect OVPN over Cloak from iOS #783

Closed nikitagricanuk closed 3 weeks ago

nikitagricanuk commented 2 months ago

Describe the bug When I'm trying to connect OpenVPN-over-Cloak I'm facing the error:

2024-04-28 11:12:10 debug Disconnect error me.ss-abramchuk.openvpn-adapter.error-domain 1 Failed to apply OpenVPN configuration.

In the app it looks like VPN trying to connect and after a moment status resets to Connect

On an Android device it looks like just infinite connection

To Reproduce Steps to reproduce the behavior:

  1. Go to AmneziaVPN app on an iPhone
  2. Click on Connect
  3. See the error in logs

Expected behavior A clear and concise description of what you expected to happen.

Log files Log file on iPhone:

2024-04-28 11:12:10 debug VpnConfigurator::getDnsForConfig "172.29.x.x" "8.8.8.8"
2024-04-28 11:12:10 debug "ConnectToVpn, Server index is 0, container is amnezia-openvpn-cloak, route mode is" Settings::VpnAllSites
2024-04-28 11:12:10 debug IosController::connectVpn "🇫🇮Finland (185.174.x.x) cloak"
2024-04-28 11:12:10 debug IosController::connectVpn : We have received managers: 3
2024-04-28 11:12:10 debug IosController::connectVpn : Using existing tunnel
2024-04-28 11:12:10 debug IosController::startOpenVPN
2024-04-28 11:12:10 debug Vpn::Disconnected
2024-04-28 11:12:10 debug IosController::startOpenVPN : Starting the tunnel succeeded
2024-04-28 11:12:10 debug IosController::vpnStatusDidChange Vpn::Connecting <NETunnelProviderSession: 0x30151db80>
2024-04-28 11:12:10 debug IosController::vpnStatusDidChange Vpn::Disconnecting <NETunnelProviderSession: 0x30151db80>
2024-04-28 11:12:10 debug IosController::vpnStatusDidChange Vpn::Disconnected <NETunnelProviderSession: 0x30151db80>
2024-04-28 11:12:10 debug Disconnect error me.ss-abramchuk.openvpn-adapter.error-domain 1 Failed to apply OpenVPN configuration.
2024-04-28 11:12:10 info NE: Start tunnel
... config details ...
2024-04-28 11:12:10 info NE: OVPN: Setup and launch

Log file on an Android:


2024-04-28 11:42:48 debug "ConnectToVpn, Server index is 0, container is amnezia-openvpn-cloak, route mode is" Settings::VpnAllSites
2024-04-28 11:42:48 debug VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
2024-04-28 11:42:49 debug VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
2024-04-28 11:42:49 debug VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
2024-04-28 11:42:49 debug VpnConfigurator::getDnsForConfig "172.29.172.254" "1.0.0.1"
2024-04-28 11:42:49 debug Prompting for VPN permission
2024-04-28 11:43:09 debug AndroidController::stop
2024-04-28 11:43:09 debug Transact: disconnected
2024-04-28 11:43:10 debug AndroidController::stop
2024-04-28 11:43:10 debug Transact: disconnected

Smartphone:

Server:

pokamest commented 3 weeks ago

Duplicate https://github.com/amnezia-vpn/amnezia-client/issues/781