AWS VPN 客户端无法工作

AWS VPN 客户端无法工作

AWS Client VPN 至今仍在使用。但出现以下情况时,它会停止工作 -需要 AWS VPN 客户端帮助工具来建立连接。- 我尝试重新安装客户端这里但它仍然没有解决问题。我尝试卸载,但仍然出现同样的错误。

我已经多次重启 mac(M1),重新安装 Monterray OS(没有删除所有应用程序**不知道为什么)。

我尝试检查日志并发现以下内容。

❯ tail -f /Users/saviourgidi/.config/AWSVPNClient/logs/aws_vpn_client_20221018.log
2022-10-18 15:36:27.254 +02:00 [DBG] Helper app --init output: Helper failed to install.
2022-10-18 15:36:27.254 +02:00 [DBG] Helper failed to install or was canceled.
2022-10-18 15:36:27.254 +02:00 [DBG] Stopping DNS monitoring thread
2022-10-18 15:36:27.254 +02:00 [DBG] Releasing DNS monitoring lock
2022-10-18 15:36:27.255 +02:00 [DBG] Metric agent started
2022-10-18 15:36:27.255 +02:00 [DBG] Received exception for connection state Disconnected. Show error message to user
2022-10-18 15:36:27.255 +02:00 [ERR] Exception recieved by connection view controller
ACVC.Core.OpenVpn.HelperToolInstallationFailedException: AWS VPN Client Helper Tool is required to establish the connection.
  at ACVC.Core.OpenVpn.OvpnOsxProcessManager.Start (System.String openVpnConfigPath, System.String managementPortPasswordFile, System.Int32 timeoutMilliseconds) [0x001f6] in <122123b2b3914e32b2c06bd2a2d00f27>:0
  at ACVC.Core.OpenVpn.OvpnConnectionManager.Connect (ACVC.Core.Metadata.OvpnConnectionProfile configProfile, ACVC.Core.GetCredentialsCallback getCredentialsCallback, System.Int32 timeout) [0x0020f] in <122123b2b3914e32b2c06bd2a2d00f27>:0
2022-10-18 15:40:00.882 +02:00 [DBG] Clean up connections. Connection state: Connecting
2022-10-18 15:40:00.884 +02:00 [INF] Validating schema for OpenVPN config: /Users/saviourgidi/.config/AWSVPNClient/OpenVpnConfigs/test-eu
2022-10-18 15:40:01.889 +02:00 [DBG] Caught exception when getting connection status. Exception information: System.TimeoutException: The message did not respond within the expected timeframe or was cancelled
  at ACVC.Core.OpenVpn.OvpnConnectionManager.SendMessage (System.String message, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x001ca] in <122123b2b3914e32b2c06bd2a2d00f27>:0
  at ACVC.Core.OpenVpn.OvpnConnectionManager.GetConnectionStatus () [0x0007c] in <122123b2b3914e32b2c06bd2a2d00f27>:0
  at ACVC.Core.Metrics.MetricsClient.RecordBytesMetricsAndAnalytics (ACVC.Core.IConnectionManager connectionManager) [0x00077] in <122123b2b3914e32b2c06bd2a2d00f27>:0
2022-10-18 15:40:01.890 +02:00 [DBG] Stopping DNS monitoring thread
2022-10-18 15:40:01.890 +02:00 [DBG] Releasing DNS monitoring lock
2022-10-18 15:40:01.892 +02:00 [INF] Terminating connection
2022-10-18 15:40:01.892 +02:00 [WRN] Acs did not stop correctly!
2022-10-18 15:40:01.892 +02:00 [DBG] 

答案1

我花了大约 25 个小时尝试调试这个问题,基本上是哭了。最后终于把它拼凑起来了,所以我在这里发布了解决方案

你必须跑

sudo launchctl enable system/com.amazonaws.acvc.helper

允许安装助手。运行此命令时,请确保您位于 PrivilegedHelperTools 文件夹中

相关内容