[GH-ISSUE #146] Connection error #53

Closed
opened 2026-10-13 20:11:44 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @naughtyfox on GitHub (Jan 8, 2023).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/146

Hi!

I have VPS server on Hetzner and want to try Amnezia out. I installed the client software (version 2.1.2 from github) on my linux laptop (Ubuntu 20.04), run the client and installed OpenVPN over Shadowsocks. When I hit "Connect" button, it ends up with an error. I could not find any additional info.

What should I do?
Thanks.

UPD. I found Open logs folder button in Application settings. But when I press this button nothing happens.
UPD2. It managed to connect only to OpenVPN without any extra transport plugins.

Originally created by @naughtyfox on GitHub (Jan 8, 2023). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/146 Hi! I have VPS server on Hetzner and want to try Amnezia out. I installed the client software (version 2.1.2 from github) on my linux laptop (Ubuntu 20.04), run the client and installed OpenVPN over Shadowsocks. When I hit "Connect" button, it ends up with an error. I could not find any additional info. What should I do? Thanks. **UPD**. I found `Open logs folder` button in Application settings. But when I press this button nothing happens. **UPD2**. It managed to connect only to OpenVPN without any extra transport plugins.
Author
Owner

@naughtyfox commented on GitHub (Jan 8, 2023):

I launched the app in console, hit connect (wireguard this time) and got the logs:

# AmneziaVPN 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
VpnLogic::onConnectionStateChanged "Disconnected"
libpng warning: iCCP: known incorrect sRGB profile
2023-01-08 17:04:28 warning libpng warning: iCCP: known incorrect sRGB profile
2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined
2023-01-08 17:04:28 debug Warning: Pages components are not ready
2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined
2023-01-08 17:04:29 warning QSystemTrayIcon::setVisible: No Icon set
2023-01-08 17:04:29 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:04:29 info Started AmneziaVPN version 2.1.2.0
2023-01-08 17:04:29 info Ubuntu 20.04.5 LTS (x86_64)
2023-01-08 17:04:31 debug "СonnectToVpn, Server index is 0, container is amnezia-wireguard, route mode is" Settings::VpnAllSites
2023-01-08 17:04:31 debug IpcClient::init succeed
2023-01-08 17:04:31 debug VpnLogic::onConnectionStateChanged "Connecting..."
2023-01-08 17:04:31 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:04:31 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:04:31 critical Failed to save wireguard config to "/tmp/AmneziaVPN.WireGuard0.conf"
2023-01-08 17:04:31 debug VpnProtocol::setConnectionState "Error"
2023-01-08 17:04:31 debug Connection state: 'Error'
2023-01-08 17:04:31 critical VpnProtocol error, code ErrorCode::23(Internal error) Internal error
2023-01-08 17:04:31 debug VpnLogic::onConnectionStateChanged "Error"
<!-- gh-comment-id:1374844982 --> @naughtyfox commented on GitHub (Jan 8, 2023): I launched the app in console, hit connect (wireguard this time) and got the logs: ``` # AmneziaVPN QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' VpnLogic::onConnectionStateChanged "Disconnected" libpng warning: iCCP: known incorrect sRGB profile 2023-01-08 17:04:28 warning libpng warning: iCCP: known incorrect sRGB profile 2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined 2023-01-08 17:04:28 debug Warning: Pages components are not ready 2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-08 17:04:28 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined 2023-01-08 17:04:29 warning QSystemTrayIcon::setVisible: No Icon set 2023-01-08 17:04:29 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:04:29 info Started AmneziaVPN version 2.1.2.0 2023-01-08 17:04:29 info Ubuntu 20.04.5 LTS (x86_64) 2023-01-08 17:04:31 debug "СonnectToVpn, Server index is 0, container is amnezia-wireguard, route mode is" Settings::VpnAllSites 2023-01-08 17:04:31 debug IpcClient::init succeed 2023-01-08 17:04:31 debug VpnLogic::onConnectionStateChanged "Connecting..." 2023-01-08 17:04:31 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:04:31 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:04:31 critical Failed to save wireguard config to "/tmp/AmneziaVPN.WireGuard0.conf" 2023-01-08 17:04:31 debug VpnProtocol::setConnectionState "Error" 2023-01-08 17:04:31 debug Connection state: 'Error' 2023-01-08 17:04:31 critical VpnProtocol error, code ErrorCode::23(Internal error) Internal error 2023-01-08 17:04:31 debug VpnLogic::onConnectionStateChanged "Error" ```
Author
Owner

@naughtyfox commented on GitHub (Jan 8, 2023):

I moved file /tmp/AmneziaVPN.WireGuard0.conf and launched again:

# AmneziaVPN 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
VpnLogic::onConnectionStateChanged "Disconnected"
libpng warning: iCCP: known incorrect sRGB profile
2023-01-08 17:07:48 warning libpng warning: iCCP: known incorrect sRGB profile
2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined
2023-01-08 17:07:48 debug Warning: Pages components are not ready
2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined
2023-01-08 17:07:48 warning QSystemTrayIcon::setVisible: No Icon set
2023-01-08 17:07:48 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:07:48 info Started AmneziaVPN version 2.1.2.0
2023-01-08 17:07:48 info Ubuntu 20.04.5 LTS (x86_64)
2023-01-08 17:07:51 debug "СonnectToVpn, Server index is 0, container is amnezia-wireguard, route mode is" Settings::VpnAllSites
2023-01-08 17:07:51 debug IpcClient::init succeed
2023-01-08 17:07:51 debug VpnLogic::onConnectionStateChanged "Connecting..."
2023-01-08 17:07:51 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:07:51 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-08 17:07:51 debug Set config data /tmp/AmneziaVPN.WireGuard0.conf
2023-01-08 17:07:51 debug Set config data 
2023-01-08 17:07:51 critical Wireguard executable missing!
2023-01-08 17:07:51 debug VpnProtocol::setConnectionState "Error"
2023-01-08 17:07:51 debug Connection state: 'Error'
2023-01-08 17:07:51 critical VpnProtocol error, code ErrorCode::28(Internal error) Internal error
2023-01-08 17:07:51 debug VpnLogic::onConnectionStateChanged "Error"
2023-01-08 17:07:51 debug VpnProtocol::setConnectionState "Error"
2023-01-08 17:07:51 critical VpnProtocol error, code ErrorCode::28(Internal error) Internal error```
<!-- gh-comment-id:1374845667 --> @naughtyfox commented on GitHub (Jan 8, 2023): I moved file `/tmp/AmneziaVPN.WireGuard0.conf` and launched again: ``` # AmneziaVPN QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' VpnLogic::onConnectionStateChanged "Disconnected" libpng warning: iCCP: known incorrect sRGB profile 2023-01-08 17:07:48 warning libpng warning: iCCP: known incorrect sRGB profile 2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined 2023-01-08 17:07:48 debug Warning: Pages components are not ready 2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-08 17:07:48 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined 2023-01-08 17:07:48 warning QSystemTrayIcon::setVisible: No Icon set 2023-01-08 17:07:48 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:07:48 info Started AmneziaVPN version 2.1.2.0 2023-01-08 17:07:48 info Ubuntu 20.04.5 LTS (x86_64) 2023-01-08 17:07:51 debug "СonnectToVpn, Server index is 0, container is amnezia-wireguard, route mode is" Settings::VpnAllSites 2023-01-08 17:07:51 debug IpcClient::init succeed 2023-01-08 17:07:51 debug VpnLogic::onConnectionStateChanged "Connecting..." 2023-01-08 17:07:51 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:07:51 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-08 17:07:51 debug Set config data /tmp/AmneziaVPN.WireGuard0.conf 2023-01-08 17:07:51 debug Set config data 2023-01-08 17:07:51 critical Wireguard executable missing! 2023-01-08 17:07:51 debug VpnProtocol::setConnectionState "Error" 2023-01-08 17:07:51 debug Connection state: 'Error' 2023-01-08 17:07:51 critical VpnProtocol error, code ErrorCode::28(Internal error) Internal error 2023-01-08 17:07:51 debug VpnLogic::onConnectionStateChanged "Error" 2023-01-08 17:07:51 debug VpnProtocol::setConnectionState "Error" 2023-01-08 17:07:51 critical VpnProtocol error, code ErrorCode::28(Internal error) Internal error```
Author
Owner

@naughtyfox commented on GitHub (Jan 8, 2023):

Okay, I installed wiregurad on my linux. It connected! Trying to figure out what to do with other protocols

<!-- gh-comment-id:1374846503 --> @naughtyfox commented on GitHub (Jan 8, 2023): Okay, I installed wiregurad on my linux. It connected! Trying to figure out what to do with other protocols
Author
Owner

@naughtyfox commented on GitHub (Jan 9, 2023):

The same issue is for ShadowSocks transport:

$ AmneziaVPN 
VpnLogic::onConnectionStateChanged "Disconnected"
libpng warning: iCCP: known incorrect sRGB profile
2023-01-09 12:41:01 warning libpng warning: iCCP: known incorrect sRGB profile
2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined
2023-01-09 12:41:01 debug Warning: Pages components are not ready
2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined
2023-01-09 12:41:01 warning QSystemTrayIcon::setVisible: No Icon set
2023-01-09 12:41:01 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:01 info Started AmneziaVPN version 2.1.2.0
2023-01-09 12:41:01 info Ubuntu 20.04.5 LTS (x86_64)
2023-01-09 12:41:06 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:06 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:10 debug "СonnectToVpn, Server index is 0, container is amnezia-shadowsocks, route mode is" Settings::VpnAllSites
2023-01-09 12:41:10 debug IpcClient::init succeed
2023-01-09 12:41:10 debug VpnLogic::onConnectionStateChanged "Connecting..."
2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
2023-01-09 12:41:10 debug Set config data /tmp/AmneziaVPN.yiUCzB
2023-01-09 12:41:10 debug VpnProtocol::setConnectionState "Error"
2023-01-09 12:41:10 debug Connection state: 'Error'
2023-01-09 12:41:10 debug VpnLogic::onConnectionStateChanged "Error"
2023-01-09 12:41:10 critical VpnProtocol error, code ErrorCode::25(ShadowSocks (ss-local) executable missing) ShadowSocks (ss-local) executable missing

I made:

sudo apt install shadowsocks-libev

The VPN connected successfully, but it couldn't connect to forbidden sites. But this is another isuue.

<!-- gh-comment-id:1375345037 --> @naughtyfox commented on GitHub (Jan 9, 2023): The same issue is for ShadowSocks transport: ``` $ AmneziaVPN VpnLogic::onConnectionStateChanged "Disconnected" libpng warning: iCCP: known incorrect sRGB profile 2023-01-09 12:41:01 warning libpng warning: iCCP: known incorrect sRGB profile 2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined 2023-01-09 12:41:01 debug Warning: Pages components are not ready 2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStartDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:27:5: QML Connections: Detected function "onStopDecode" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name. 2023-01-09 12:41:01 warning qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined 2023-01-09 12:41:01 warning QSystemTrayIcon::setVisible: No Icon set 2023-01-09 12:41:01 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:01 info Started AmneziaVPN version 2.1.2.0 2023-01-09 12:41:01 info Ubuntu 20.04.5 LTS (x86_64) 2023-01-09 12:41:06 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:06 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:10 debug "СonnectToVpn, Server index is 0, container is amnezia-shadowsocks, route mode is" Settings::VpnAllSites 2023-01-09 12:41:10 debug IpcClient::init succeed 2023-01-09 12:41:10 debug VpnLogic::onConnectionStateChanged "Connecting..." 2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:10 debug VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" 2023-01-09 12:41:10 debug Set config data /tmp/AmneziaVPN.yiUCzB 2023-01-09 12:41:10 debug VpnProtocol::setConnectionState "Error" 2023-01-09 12:41:10 debug Connection state: 'Error' 2023-01-09 12:41:10 debug VpnLogic::onConnectionStateChanged "Error" 2023-01-09 12:41:10 critical VpnProtocol error, code ErrorCode::25(ShadowSocks (ss-local) executable missing) ShadowSocks (ss-local) executable missing ``` I made: ``` sudo apt install shadowsocks-libev ``` The VPN connected successfully, but it couldn't connect to forbidden sites. But this is another isuue.
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#53
No description provided.