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

Error 202, when installing self-host #1289

Open
xdgrlnw opened this issue Dec 7, 2024 · 0 comments
Open

Error 202, when installing self-host #1289

xdgrlnw opened this issue Dec 7, 2024 · 0 comments

Comments

@xdgrlnw
Copy link

xdgrlnw commented Dec 7, 2024

2024-12-07 03:56:36 debug IpcClient::init succeed
2024-12-07 03:56:36 info Logging has enabled on AmneziaVPN version 4.7.0.0
2024-12-07 03:56:36 info Windows 11 Version 24H2 (x86_64)
2024-12-07 03:56:42 debug ServerController::Run script
2024-12-07 03:56:42 debug sudo docker ps --format '{{.Names}} {{.Ports}}'
2024-12-07 03:56:42 debug SSH chanel opened
2024-12-07 03:56:42 debug ServerController::runScript finished

2024-12-07 03:56:42 debug ServerController::setupContainer amnezia-awg
2024-12-07 03:56:42 debug ServerController::Run script
2024-12-07 03:56:42 debug if which apt-get > /dev/null 2>&1; then LOCK_FILE="/var/lib/dpkg/lock-frontend";
elif which dnf > /dev/null 2>&1; then LOCK_FILE="/var/run/dnf.pid";
elif which yum > /dev/null 2>&1; then LOCK_FILE="/var/run/yum.pid";
elif which pacman > /dev/null 2>&1; then LOCK_FILE="/var/lib/pacman/db.lck";
else echo "Packet manager not found"; echo "Internal error"; exit 1; fi;
if command -v fuser > /dev/null 2>&1; then sudo fuser $LOCK_FILE 2>/dev/null; else echo "fuser not installed"; fi
2024-12-07 03:56:42 debug SSH chanel opened
2024-12-07 03:56:42 debug ServerController::runScript finished

2024-12-07 03:56:42 debug ServerController::Run script
2024-12-07 03:56:42 debug if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); silent_inst="-yq install"; check_pkgs="-yq update"; docker_pkg="docker.io"; dist="debian";
elif which dnf > /dev/null 2>&1; then pm=$(which dnf); silent_inst="-yq install"; check_pkgs="-yq check-update"; docker_pkg="docker"; dist="fedora";
elif which yum > /dev/null 2>&1; then pm=$(which yum); silent_inst="-y -q install"; check_pkgs="-y -q check-update"; docker_pkg="docker"; dist="centos";
elif which pacman > /dev/null 2>&1; then pm=$(which pacman); silent_inst="-S --noconfirm --noprogressbar --quiet"; check_pkgs="> /dev/null 2>&1"; docker_pkg="docker"; dist="archlinux";
else echo "Packet manager not found"; exit 1; fi;
echo "Dist: $dist, Packet manager: $pm, Install command: $silent_inst, Check pkgs command: $check_pkgs, Docker pkg: $docker_pkg";
if [ "$dist" = "debian" ]; then export DEBIAN_FRONTEND=noninteractive; fi;
if ! command -v sudo > /dev/null 2>&1; then $pm $check_pkgs; $pm $silent_inst sudo; fi;
if ! command -v fuser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst psmisc; fi;
if ! command -v lsof > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst lsof; fi;
if ! command -v docker > /dev/null 2>&1; then
sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;
sleep 5; sudo systemctl enable --now docker; sleep 5;
fi;
if [ "$(systemctl is-active docker)" != "active" ]; then
sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;
sleep 5; sudo systemctl start docker; sleep 5;
fi;
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install sudo, command not found"; exit 1; fi;
docker --version
2024-12-07 03:56:42 debug SSH chanel opened
2024-12-07 03:56:42 debug ServerController::runScript finished

2024-12-07 03:56:42 debug ServerController::installDockerWorker Dist: debian, Packet manager: /usr/bin/apt-get, Install command: -yq install, Check pkgs command: -yq update, Docker pkg: docker.io

Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1

2024-12-07 03:56:42 debug ServerController::setupContainer installDockerWorker finished
2024-12-07 03:56:42 debug ServerController::Run script
2024-12-07 03:56:42 debug which lsof &>/dev/null || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':31687 ' | grep -i udp
2024-12-07 03:56:42 debug SSH chanel opened
2024-12-07 03:56:42 debug ServerController::runScript finished

2024-12-07 03:56:42 debug ServerController::Run script
2024-12-07 03:56:42 debug which lsof &>/dev/null || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':31687 ' | grep -i udp
2024-12-07 03:56:42 debug SSH chanel opened
2024-12-07 03:56:43 debug ServerController::runScript finished

2024-12-07 03:56:43 debug ServerController::Run script
2024-12-07 03:56:43 debug CUR_USER=$(whoami);
sudo mkdir -p /opt/amnezia/amnezia-awg;
sudo chown $CUR_USER /opt/amnezia/amnezia-awg;
if ! sudo docker network ls | grep -q amnezia-dns-net; then sudo docker network create
--driver bridge
--subnet=172.29.172.0/24
--opt com.docker.network.bridge.name=amn0
amnezia-dns-net;
fi
2024-12-07 03:56:43 debug SSH chanel opened
2024-12-07 03:56:43 debug ServerController::runScript finished

2024-12-07 03:56:43 debug ServerController::setupContainer prepareHostWorker finished
2024-12-07 03:56:43 debug ServerController::Run script
2024-12-07 03:56:43 debug sudo docker stop amnezia-awg;
sudo docker rm -fv amnezia-awg;
sudo docker rmi amnezia-awg
2024-12-07 03:56:43 debug SSH chanel opened
2024-12-07 03:56:43 debug ServerController::runScript finished

2024-12-07 03:56:43 debug ServerController::setupContainer removeContainer finished
2024-12-07 03:56:43 debug buildContainerWorker start
2024-12-07 03:56:43 debug ServerController::Run script
2024-12-07 03:56:43 debug sudo rm /opt/amnezia/amnezia-awg/Dockerfile
2024-12-07 03:56:43 debug SSH chanel opened
2024-12-07 03:56:43 debug ServerController::runScript finished

2024-12-07 03:56:43 debug ServerController::Run script
2024-12-07 03:56:43 debug sudo docker build --no-cache --pull -t amnezia-awg /opt/amnezia/amnezia-awg
2024-12-07 03:56:43 debug SSH chanel opened
2024-12-07 03:56:45 debug ServerController::runScript finished

2024-12-07 03:56:45 debug ServerController::setupContainer buildContainerWorker finished
2024-12-07 03:56:45 debug ServerController::Run script
2024-12-07 03:56:45 debug sudo docker run -d
--log-driver none
--restart always
--privileged
--cap-add=NET_ADMIN
--cap-add=SYS_MODULE
-p 31687:31687/udp
-v /lib/modules:/lib/modules
--sysctl="net.ipv4.conf.all.src_valid_mark=1"
--name amnezia-awg
amnezia-awg
2024-12-07 03:56:45 debug SSH chanel opened
2024-12-07 03:56:47 debug sudo docker network connect amnezia-dns-net amnezia-awg
2024-12-07 03:56:47 debug SSH chanel opened
2024-12-07 03:56:47 debug ServerController::runScript finished

2024-12-07 03:56:47 debug ServerController::setupContainer runContainerWorker finished
2024-12-07 03:56:48 debug ServerController::Run script
2024-12-07 03:56:48 debug sudo docker exec -i amnezia-awg mkdir -p "$(dirname /opt/amnezia/j78EkZqauDikNTTt.sh)"
2024-12-07 03:56:48 debug SSH chanel opened
2024-12-07 03:56:48 debug ServerController::runScript finished

2024-12-07 03:56:48 debug ServerController::Run script
2024-12-07 03:56:48 debug sudo docker cp /tmp/CMBCC0zLCOpuyJ7p.tmp amnezia-awg://opt/amnezia/j78EkZqauDikNTTt.sh
2024-12-07 03:56:48 debug SSH chanel opened
2024-12-07 03:56:48 debug ServerController::runScript finished

2024-12-07 04:00:51 warning qrc:/ui/qml/Controls2/ListViewWithRadioButtonType.qml:78: TypeError: Cannot read property 'children' of null
2024-12-07 04:00:58 debug ServerController::Run script
2024-12-07 04:00:58 debug sudo docker ps --format '{{.Names}} {{.Ports}}'
2024-12-07 04:00:58 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::setupContainer amnezia-awg
2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug if which apt-get > /dev/null 2>&1; then LOCK_FILE="/var/lib/dpkg/lock-frontend";
elif which dnf > /dev/null 2>&1; then LOCK_FILE="/var/run/dnf.pid";
elif which yum > /dev/null 2>&1; then LOCK_FILE="/var/run/yum.pid";
elif which pacman > /dev/null 2>&1; then LOCK_FILE="/var/lib/pacman/db.lck";
else echo "Packet manager not found"; echo "Internal error"; exit 1; fi;
if command -v fuser > /dev/null 2>&1; then sudo fuser $LOCK_FILE 2>/dev/null; else echo "fuser not installed"; fi
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); silent_inst="-yq install"; check_pkgs="-yq update"; docker_pkg="docker.io"; dist="debian";
elif which dnf > /dev/null 2>&1; then pm=$(which dnf); silent_inst="-yq install"; check_pkgs="-yq check-update"; docker_pkg="docker"; dist="fedora";
elif which yum > /dev/null 2>&1; then pm=$(which yum); silent_inst="-y -q install"; check_pkgs="-y -q check-update"; docker_pkg="docker"; dist="centos";
elif which pacman > /dev/null 2>&1; then pm=$(which pacman); silent_inst="-S --noconfirm --noprogressbar --quiet"; check_pkgs="> /dev/null 2>&1"; docker_pkg="docker"; dist="archlinux";
else echo "Packet manager not found"; exit 1; fi;
echo "Dist: $dist, Packet manager: $pm, Install command: $silent_inst, Check pkgs command: $check_pkgs, Docker pkg: $docker_pkg";
if [ "$dist" = "debian" ]; then export DEBIAN_FRONTEND=noninteractive; fi;
if ! command -v sudo > /dev/null 2>&1; then $pm $check_pkgs; $pm $silent_inst sudo; fi;
if ! command -v fuser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst psmisc; fi;
if ! command -v lsof > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst lsof; fi;
if ! command -v docker > /dev/null 2>&1; then
sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;
sleep 5; sudo systemctl enable --now docker; sleep 5;
fi;
if [ "$(systemctl is-active docker)" != "active" ]; then
sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;
sleep 5; sudo systemctl start docker; sleep 5;
fi;
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install sudo, command not found"; exit 1; fi;
docker --version
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::installDockerWorker Dist: debian, Packet manager: /usr/bin/apt-get, Install command: -yq install, Check pkgs command: -yq update, Docker pkg: docker.io

Docker version
24.0.7, build 24.0.7-0ubuntu2~22.04.1

2024-12-07 04:00:59 debug ServerController::setupContainer installDockerWorker finished
2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug which lsof &>/dev/null || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':32338 ' | grep -i udp
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug which lsof &>/dev/null || true && sudo lsof -i -P -n 2>/dev/null | grep -E ':32338 ' | grep -i udp
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug CUR_USER=$(whoami);
sudo mkdir -p /opt/amnezia/amnezia-awg;
sudo chown $CUR_USER /opt/amnezia/amnezia-awg;
if ! sudo docker network ls | grep -q amnezia-dns-net; then sudo docker network create
--driver bridge
--subnet=172.29.172.0/24
--opt com.docker.network.bridge.name=amn0
amnezia-dns-net;
fi
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::setupContainer prepareHostWorker finished
2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug sudo docker stop amnezia-awg;
sudo docker rm -fv amnezia-awg;
sudo docker rmi amnezia-awg
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:00:59 debug ServerController::setupContainer removeContainer finished
2024-12-07 04:00:59 debug buildContainerWorker start
2024-12-07 04:00:59 debug ServerController::Run script
2024-12-07 04:00:59 debug sudo rm /opt/amnezia/amnezia-awg/Dockerfile
2024-12-07 04:00:59 debug SSH chanel opened
2024-12-07 04:00:59 debug ServerController::runScript finished

2024-12-07 04:01:00 debug ServerController::Run script
2024-12-07 04:01:00 debug sudo docker build --no-cache --pull -t amnezia-awg /opt/amnezia/amnezia-awg
2024-12-07 04:01:00 debug SSH chanel opened
2024-12-07 04:01:02 debug ServerController::runScript finished

2024-12-07 04:01:02 debug ServerController::setupContainer buildContainerWorker finished
2024-12-07 04:01:02 debug ServerController::Run script
2024-12-07 04:01:02 debug sudo docker run -d
--log-driver none
--restart always
--privileged
--cap-add=NET_ADMIN
--cap-add=SYS_MODULE
-p 32338:32338/udp
-v /lib/modules:/lib/modules
--sysctl="net.ipv4.conf.all.src_valid_mark=1"
--name amnezia-awg
amnezia-awg
2024-12-07 04:01:02 debug SSH chanel opened
2024-12-07 04:01:04 debug sudo docker network connect amnezia-dns-net amnezia-awg
2024-12-07 04:01:04 debug SSH chanel opened
2024-12-07 04:01:04 debug ServerController::runScript finished

2024-12-07 04:01:04 debug ServerController::setupContainer runContainerWorker finished
2024-12-07 04:01:04 debug ServerController::Run script
2024-12-07 04:01:04 debug sudo docker exec -i amnezia-awg mkdir -p "$(dirname /opt/amnezia/RUFHpDL6WkM6OAUj.sh)"
2024-12-07 04:01:04 debug SSH chanel opened
2024-12-07 04:01:04 debug ServerController::runScript finished

2024-12-07 04:01:04 debug ServerController::Run script
2024-12-07 04:01:04 debug sudo docker cp /tmp/tBM7xOOK0JbmdqRd.tmp amnezia-awg://opt/amnezia/RUFHpDL6WkM6OAUj.sh
2024-12-07 04:01:04 debug SSH chanel opened
2024-12-07 04:01:04 debug ServerController::runScript finished

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

1 participant