[GH-ISSUE #120] Linux client can't connect - Cloak (ck-client) executable missing #47

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

Originally created by @miladmeidanshahi on GitHub (Oct 19, 2022).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/120

Protocol openvpn over cloak doesn't work

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
VpnLogic::onConnectionStateChanged "Disconnected"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined
qml: Warning: Pages components are not ready
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.
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.
qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined
QSystemTrayIcon::setVisible: No Icon set
Started AmneziaVPN version 2.1.2.0
Ubuntu 22.04.1 LTS (x86_64)
VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
qrc:/ui/qml/main.qml:125: TypeError: Cannot read property 'page' of null
"СonnectToVpn, Server index is 0, container is amnezia-openvpn-cloak, route mode is" Settings::VpnAllSites
IpcClient::init succeed
VpnLogic::onConnectionStateChanged "Connecting..."
Server connected by ssh
Sftp finished with status ""
Run script
EXEC sudo docker exec -i amnezia-openvpn-cloak mkdir -p  "$(dirname /opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req)"
stderr sudo
stderr : a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
stderr 

ServerController::runScript finished

Run script
EXEC sudo docker cp /tmp/zyHYkCHJvbbLNfJd.tmp amnezia-openvpn-cloak://opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req
stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

ServerController::runScript finished

Run script
EXEC sudo shred /tmp/zyHYkCHJvbbLNfJd.tmp
stderr sudo: 
stderr a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

ServerController::runScript finished

Run script
EXEC sudo rm /tmp/zyHYkCHJvbbLNfJd.tmp
stderr sudo
stderr : a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

ServerController::runScript finished

Run script
EXEC sudo docker exec -i amnezia-openvpn-cloak bash -c "cd /opt/amnezia/openvpn && easyrsa import-req /opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0"
stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

EXEC sudo docker exec -i amnezia-openvpn-cloak bash -c "export EASYRSA_BATCH=1; cd /opt/amnezia/openvpn && easyrsa sign-req client SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0"
stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

ServerController::runScript finished

Copy file from container
 sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/pki/ca.crt'"
ServerController::getTextFileFromContainer proc started
Copy file from container
 sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/pki/issued/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.crt'"
ServerController::getTextFileFromContainer proc started
Copy file from container
 sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/ta.key'"
ServerController::getTextFileFromContainer proc started
VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1"
VpnProtocol::setConnectionState "Error"
Connection state: 'Error'
VpnProtocol error, code ErrorCode::26(Cloak (ck-client) executable missing) Cloak (ck-client) executable missing
VpnLogic::onConnectionStateChanged "Error"

Originally created by @miladmeidanshahi on GitHub (Oct 19, 2022). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/120 Protocol openvpn over cloak doesn't work ``` QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' VpnLogic::onConnectionStateChanged "Disconnected" libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile qrc:/ui/qml/Pages/Protocols/PageProtoTorWebSite.qml:30: ReferenceError: pb_save is not defined qml: Warning: Pages components are not ready 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. 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. qrc:/ui/qml/Pages/PageQrDecoderIos.qml:28: ReferenceError: nil is not defined QSystemTrayIcon::setVisible: No Icon set Started AmneziaVPN version 2.1.2.0 Ubuntu 22.04.1 LTS (x86_64) VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" qrc:/ui/qml/main.qml:125: TypeError: Cannot read property 'page' of null "СonnectToVpn, Server index is 0, container is amnezia-openvpn-cloak, route mode is" Settings::VpnAllSites IpcClient::init succeed VpnLogic::onConnectionStateChanged "Connecting..." Server connected by ssh Sftp finished with status "" Run script EXEC sudo docker exec -i amnezia-openvpn-cloak mkdir -p "$(dirname /opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req)" stderr sudo stderr : a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper stderr ServerController::runScript finished Run script EXEC sudo docker cp /tmp/zyHYkCHJvbbLNfJd.tmp amnezia-openvpn-cloak://opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper ServerController::runScript finished Run script EXEC sudo shred /tmp/zyHYkCHJvbbLNfJd.tmp stderr sudo: stderr a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper ServerController::runScript finished Run script EXEC sudo rm /tmp/zyHYkCHJvbbLNfJd.tmp stderr sudo stderr : a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper ServerController::runScript finished Run script EXEC sudo docker exec -i amnezia-openvpn-cloak bash -c "cd /opt/amnezia/openvpn && easyrsa import-req /opt/amnezia/openvpn/clients/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.req SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0" stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper EXEC sudo docker exec -i amnezia-openvpn-cloak bash -c "export EASYRSA_BATCH=1; cd /opt/amnezia/openvpn && easyrsa sign-req client SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0" stderr sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper ServerController::runScript finished Copy file from container sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/pki/ca.crt'" ServerController::getTextFileFromContainer proc started Copy file from container sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/pki/issued/SkdPhgZ3tTGCu9DdxHlIMuKrHg3G1tT0.crt'" ServerController::getTextFileFromContainer proc started Copy file from container sudo docker exec -i amnezia-openvpn-cloak sh -c "xxd -p '/opt/amnezia/openvpn/ta.key'" ServerController::getTextFileFromContainer proc started VpnConfigurator::getDnsForConfig "1.1.1.1" "1.0.0.1" VpnProtocol::setConnectionState "Error" Connection state: 'Error' VpnProtocol error, code ErrorCode::26(Cloak (ck-client) executable missing) Cloak (ck-client) executable missing VpnLogic::onConnectionStateChanged "Error" ```
Author
Owner

@miladmeidanshahi commented on GitHub (Oct 20, 2022):

SOLVED!

  1. download cloak client.
  2. mv ck-client-linux-amd64-* to /usr/bin/ck-client.
  3. reconnect.
<!-- gh-comment-id:1285108770 --> @miladmeidanshahi commented on GitHub (Oct 20, 2022): SOLVED! 1. download cloak [client](https://github.com/cbeuw/Cloak/releases). 2. mv `ck-client-linux-amd64-*` to `/usr/bin/ck-client`. 3. reconnect.
Author
Owner

@zlocate commented on GitHub (Oct 25, 2022):

Have same trouble at Manjaro XFCE. Fixed by install cloak-obfuscation-bin from AUR (https://aur.archlinux.org/packages/cloak-obfuscation-bin)

<!-- gh-comment-id:1291076995 --> @zlocate commented on GitHub (Oct 25, 2022): Have same trouble at Manjaro XFCE. Fixed by install `cloak-obfuscation-bin` from AUR (https://aur.archlinux.org/packages/cloak-obfuscation-bin)
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#47
No description provided.