amnezia-vpn / amnezia-client

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

Server port already used #276

Closed Abayganov closed 1 year ago

Abayganov commented 1 year ago

Hello. Tried to install Amnezia server by Amnezia-client for ios. After choosing protocols (openvpn + vpn, port tcp/443) progress failed with message “server port already used” Quote of log: `2023-08-07 22:55:02 debug ServerController::Run script 2023-08-07 22:55:02 debug sudo docker ps --format '{{.Names}} {{.Ports}}' 2023-08-07 22:55:02 debug SSH chanel opened 2023-08-07 22:55:02 debug ServerController::runScript finished

2023-08-07 22:55:02 debug ServerController::setupContainer amnezia-openvpn-cloak 2023-08-07 22:55:02 debug ServerController::Run script 2023-08-07 22:55:02 debug CUR_USER=$(whoami);\ groups $CUR_USER 2023-08-07 22:55:02 debug SSH chanel opened 2023-08-07 22:55:03 debug ServerController::runScript finished

2023-08-07 22:55:03 debug ServerController::Run script 2023-08-07 22:55:03 debug sudo lsof -i -P -n | grep -E ':443 ' | grep -i tcp | grep LISTEN 2023-08-07 22:55:03 debug SSH chanel opened 2023-08-07 22:55:03 debug ServerController::runScript finished

2023-08-07 22:55:03 debug doInstallAction finished with code ErrorCode::5("Server port already used. Check for another software") `

Due manual checking of sudo lsof -i -P -n | grep -E ':443 ' on server return empty result. So can’t to continue install Amnezia VPN. Is exist workaround to install server part of it?

sameamnezia commented 1 year ago

I've got EXACTLY same problem on linux-installer. Tried debian11\10 as client and Ubuntu\Debian\Fedora as a server. Nothing helps. Looks like buggy in Amnezia Software.

mariakottur commented 1 year ago

Same problem with 3.0.8.1. Port 443 on the server is not busy. Version 2.1.2 works great.

OS: Ubuntu 20.04

MrFree commented 1 year ago

I have encountered similar symptoms (ubuntu 22.04 minimal). I didn't have lsof installed.

Abayganov commented 1 year ago

When tried to install by builtin root account, installation continued. Suppose installing by sudo delegated account is not enough. And problem was with permission but not with 443 port.

AriesAlex commented 1 year ago

for me helped installing lsof sudo apt install -y lsof

BaakhOfficial commented 1 year ago

for me helped installing lsof sudo apt install -y lsof

Same thing, thank you, I am using Centos and didn't want to install apt so sudo yum install -y lsof