Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote process on server crashed #9

Closed
ghost opened this issue Mar 12, 2021 · 8 comments
Closed

Remote process on server crashed #9

ghost opened this issue Mar 12, 2021 · 8 comments

Comments

@ghost
Copy link

ghost commented Mar 12, 2021

Hi, i try to install on clean ubuntu server 18.04, after first login on this server i receive this error
image
maybe somewhere i can find log about what process crashed?
p.s, i connecting to this server over Zerotier, i think, i need direct (white IP), because after enabling VPN, Amnezia vpn lost connection to my server over Zerotier

@timofeika
Copy link

i have same trouble, with same error

@pokamest
Copy link
Member

you can open folder with log files by pressing L button on Amnezia client window, or open folder in C:\Users%USERNAME%\AppData\Roaming\AmneziaVPN.ORG\AmneziaVPN\log

Amnezia service log is in C:\ProgramData\AmneziaVPN\log

@ghost
Copy link
Author

ghost commented Mar 25, 2021

image

@pokamest
Copy link
Member

Please provide full logs for this issue -
C:\Users%USERNAME%\AppData\Roaming\AmneziaVPN.ORG\AmneziaVPN\log
and
C:\ProgramData\AmneziaVPN\log

@Cassadan
Copy link

Cassadan commented Apr 14, 2021

Same trouble

2021-04-14 17:38:20 info Started AmneziaVPN version 1.0.0.0
2021-04-14 17:38:20 info Windows 10 Version 2004 (x86_64)
2021-04-14 17:38:20 debug MainWindow::onConnectionStateChanged "Disconnected"
2021-04-14 17:38:20 debug Default config: C:/Users/Nexes/AppData/Roaming/AmneziaVPN.ORG/AmneziaVPN/config/AmneziaVPN.ovpn
2021-04-14 17:38:21 debug connectToVpn, CustomRouting is false
2021-04-14 17:38:21 debug Connect to VPN
2021-04-14 17:38:21 debug MainWindow::onConnectionStateChanged "Connecting..."
2021-04-14 17:38:21 debug EasyRsa sh path "C:\Program Files (x86)\AmneziaVPN\easyrsa\easyrsa"
2021-04-14 17:38:21 debug EasyRsa tmp path C:/Users/Nexes/AppData/Local/Temp/AmneziaVPN-agOTcf
2021-04-14 17:38:21 debug EasyRsa args /C "ash.exe "C:\Program Files (x86)\AmneziaVPN\easyrsa\easyrsa" init-pki"
2021-04-14 17:38:22 debug Init PKI
Note: using Easy-RSA configuration from: C:/Program Files (x86)/AmneziaVPN/easyrsa/vars

2021-04-14 17:38:22 debug Init PKI
init-pki complete; you may now create a CA or requests.
Your newly created PKI dir is: /cygdrive/c/Users/Nexes/AppData/Local/Temp/AmneziaVPN-agOTcf/pki

2021-04-14 17:38:22 debug EasyRsa sh path "C:\Program Files (x86)\AmneziaVPN\easyrsa\easyrsa"
2021-04-14 17:38:22 debug EasyRsa args /C "ash.exe "C:\Program Files (x86)\AmneziaVPN\easyrsa\easyrsa" gen-req Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd nopass"
2021-04-14 17:38:22 debug
Note: using Easy-RSA configuration from: C:/Program Files (x86)/AmneziaVPN/easyrsa/vars

2021-04-14 17:38:22 debug Using SSL: openssl OpenSSL 1.1.1f 31 Mar 2020

Common Name (eg: your user, host, or server name) [Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd]:
2021-04-14 17:38:23 debug
Keypair and certificate request completed. Your files are:
req: /cygdrive/c/Users/Nexes/AppData/Local/Temp/AmneziaVPN-agOTcf/pki/reqs/Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd.req
key: /cygdrive/c/Users/Nexes/AppData/Local/Temp/AmneziaVPN-agOTcf/pki/private/Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd.key

2021-04-14 17:38:23 debug Server connected by ssh
2021-04-14 17:38:24 debug sudo: no tty present and no askpass program specified

2021-04-14 17:38:24 debug 2
2021-04-14 17:38:24 debug Run script
2021-04-14 17:38:24 debug EXEC sudo docker exec -i amnezia-shadowsocks bash -c "cd /opt/amneziavpn_data && easyrsa import-req /opt/amneziavpn_data/clients/Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd.req Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd"
2021-04-14 17:38:24 debug stderr sudo: no tty present and no askpass program specified

2021-04-14 17:38:24 debug EXEC sudo docker exec -i amnezia-shadowsocks bash -c "export EASYRSA_BATCH=1; cd /opt/amneziavpn_data && easyrsa sign-req client Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd"
2021-04-14 17:38:25 debug stderr sudo: no tty present and no askpass program specified

2021-04-14 17:38:25 debug ServerController::runScript finished

2021-04-14 17:38:25 debug Copy file from container
sudo docker exec -i amnezia-shadowsocks sh -c "cat '/opt/amneziavpn_data/pki/ca.crt'"
2021-04-14 17:38:25 debug ServerController::getTextFileFromContainer proc started
2021-04-14 17:38:25 debug Copy file from container
sudo docker exec -i amnezia-shadowsocks sh -c "cat '/opt/amneziavpn_data/pki/issued/Sb0PBnALnBWvL3XdHvPLMnhpN1NvAYnd.crt'"
2021-04-14 17:38:25 debug ServerController::getTextFileFromContainer proc started
2021-04-14 17:38:25 debug Copy file from container
sudo docker exec -i amnezia-shadowsocks sh -c "cat '/opt/amneziavpn_data/ta.key'"
2021-04-14 17:38:25 debug ServerController::getTextFileFromContainer proc started
2021-04-14 17:38:25 debug Run script
2021-04-14 17:38:25 debug EXEC sudo sysctl -w net.ipv4.ip_forward=1
2021-04-14 17:38:25 debug stderr sudo:
2021-04-14 17:38:25 debug stderr no tty present and no askpass program specified

2021-04-14 17:38:25 debug EXEC sudo iptables -P FORWARD ACCEPT
2021-04-14 17:38:25 debug stderr sudo:
2021-04-14 17:38:25 debug stderr no tty present and no askpass program specified

2021-04-14 17:38:25 debug EXEC sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
2021-04-14 17:38:25 debug stderr sudo:
2021-04-14 17:38:25 debug stderr no tty present and no askpass program specified

2021-04-14 17:38:25 debug ServerController::runScript finished

2021-04-14 17:38:25 debug MainWindow::onConnectionStateChanged "Error"

@pokamest
Copy link
Member

What is server OS, VPS hosting?
I found error "no tty present and no askpass program specified" - something wrong with sudo.

@Cassadan
Copy link

What is server OS, VPS hosting?
I found error "no tty present and no askpass program specified" - something wrong with sudo.

Self-hosted server, Ubuntu 18.04, created on proxmox, public IP.
For test in file etc/sudoers we used "user ALL=(ALL) NOPASSWD:ALL" when "user" is login for Amnesia client but same trouble

@pokamest
Copy link
Member

Amnezia can't perform such changes on the server. Please ask https://t.me/amnezia_vpn (ru) or https://t.me/amnezia_vpn_en for support if you need help with setting your server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants