telekom-security/tpotce

install error

Closed this issue · 2 comments

debian@debian:~/tpotce$ ./install.sh 
 _____     ____       _      ___           _        _ _
|_   _|   |  _ \ ___ | |_   |_ _|_ __  ___| |_ __ _| | | ___ _ __
  | |_____| |_) / _ \| __|   | || '_ \/ __| __/ _` | | |/ _ \ '__|
  | |_____|  __/ (_) | |_    | || | | \__ \ || (_| | | |  __/ |
  |_|     |_|   \___/ \__|  |___|_| |_|___/\__\__,_|_|_|\___|_|


### This script will now install T-Pot and all of its dependencies.

### Install? (y/n) y


### Now installing required packages ...

Hit:1 http://deb.debian.org/debian bookworm InRelease                                                                 
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease                                          
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
83 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ansible is already the newest version (7.3.0+dfsg-1).
apache2-utils is already the newest version (2.4.59-1~deb12u1).
cracklib-runtime is already the newest version (2.9.6-5+b1).
wget is already the newest version (1.21.3-1+b2).
The following packages were automatically installed and are no longer required:
  cgroupfs-mount criu iptables libintl-perl libintl-xs-perl libip6tc2 libmodule-find-perl libmodule-scandeps-perl libnet1 libnetfilter-conntrack3 libnfnetlink0 libproc-processtable-perl libprotobuf32 libsort-naturally-perl libterm-readkey-perl
  needrestart python3-protobuf sgml-base tini wmdocker
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 83 not upgraded.

### Using local T-Pot Ansible Installation Playbook ... 
### ‘sudo‘ acquired, setting ansible become option to --become.

### Now running T-Pot Ansible Installation Playbook ...


PLAY [T-Pot - Bootstrapping Python] ************************************************************************************************************************************************************************************************************************

TASK [Get distribution name (All)] *************************************************************************************************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Check if python3 is installed (All)] *****************************************************************************************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Add python package (Debian, Raspbian, Ubuntu)] *******************************************************************************************************************************************************************************************************
skipping: [127.0.0.1]

PLAY [T-Pot - Abort if run as tpot, root or on unsupported distribution] ***********************************************************************************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Check if running as root (All)] **********************************************************************************************************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "Running as user: debian."
}

TASK [Check if running as tpot (All)] **********************************************************************************************************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "Running as user: debian."
}

TASK [Check if supported distribution (All)] ***************************************************************************************************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "T-Pot will now install on Debian."
}

PLAY [T-Pot - Install recommended, remove conflicting packages] ********************************************************************************************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Syncing clocks (All)] ********************************************************************************************************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Install recommended packages (Debian, Raspbian, Ubuntu)] *********************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Install exa (Debian, Raspbian, Ubuntu)] **************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Install eza (if exa failed)] *************************************************************************************************************************************************************************************************************************
skipping: [127.0.0.1]

PLAY [T-Pot - Prepare for and install Docker Engine] *******************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Remove distribution based Docker packages (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)] ******************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Add folder for Docker Engine GPG key (Debian, Raspbian, Ubuntu)] *************************************************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Download Docker Engine GPG key (Debian, Raspbian, Ubuntu)] *******************************************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "dest": "/etc/apt/keyrings/docker", "elapsed": 0, "msg": "Request failed: <urlopen error [Errno 104] Connection reset by peer>", "url": "https://download.docker.com/linux/debian/gpg"}

PLAY RECAP *************************************************************************************************************************************************************************************************************************************************
127.0.0.1                  : ok=13   changed=3    unreachable=0    failed=1    skipped=2    rescued=0    ignored=0   

### Something went wrong with the Playbook, please review the output and / or install_tpot.log for clues.
### Aborting.

Without the proper context, as kindly requested when opening an issue, providing help is simply impossible.
Based on the info, the GPG key is not available which might be caused by numerous things. Testing the URL reveals the GPG key is available.

Works perfectly fine here.

       _,met$$$$$gg.          debian@debian
    ,g$$$$$$$$$$$$$$$P.       ----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) aarch64
 ,$$P'              `$$$.     Host: VM
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-21-arm64
`d$$'     ,$P"'   .    $$$    Uptime: 11 mins
 $$P      d$'     ,    $$P    Packages: 540 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      Resolution: 1024x768
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/0
 `$$b      "-.__              CPU: (4)
  `Y$$                        GPU: 00:0a.0 Red Hat, Inc. Virtio 1.0 GPU
   `Y$$.                      Memory: 184MiB / 9939MiB
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""
 _____     ____       _      ___           _        _ _
|_   _|   |  _ \ ___ | |_   |_ _|_ __  ___| |_ __ _| | | ___ _ __
  | |_____| |_) / _ \| __|   | || '_ \/ __| __/ _` | | |/ _ \ '__|
  | |_____|  __/ (_) | |_    | || | | \__ \ || (_| | | |  __/ |
  |_|     |_|   \___/ \__|  |___|_| |_|___/\__\__,_|_|_|\___|_|


### This script will now install T-Pot and all of its dependencies.

### Install? (y/n) y


### Now installing required packages ...

Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:2 http://deb.debian.org/debian bookworm InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [97.9 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [156 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [95.2 kB]
Fetched 452 kB in 5s (86.2 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ansible is already the newest version (7.3.0+dfsg-1).
apache2-utils is already the newest version (2.4.59-1~deb12u1).
cracklib-runtime is already the newest version (2.9.6-5+b1).
wget is already the newest version (1.21.3-1+b1).
The following packages were automatically installed and are no longer required:
  docker-ce-rootless-extras iptables libglib2.0-0 libglib2.0-data libip6tc2 libltdl7 libnetfilter-conntrack3 libnfnetlink0 libslirp0 pigz shared-mime-info
  slirp4netns xdg-user-dirs
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

### Now downloading T-Pot Ansible Installation Playbook ...

### ‘sudo‘ acquired, setting ansible become option to --become.

### Now running T-Pot Ansible Installation Playbook ...


PLAY [T-Pot - Bootstrapping Python] *********************************************************************************************************************************

TASK [Get distribution name (All)] **********************************************************************************************************************************
changed: [127.0.0.1]

TASK [Check if python3 is installed (All)] **************************************************************************************************************************
changed: [127.0.0.1]

TASK [Add python package (Debian, Raspbian, Ubuntu)] ****************************************************************************************************************
skipping: [127.0.0.1]

PLAY [T-Pot - Abort if run as tpot, root or on unsupported distribution] ********************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Check if running as root (All)] *******************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "Running as user: marco."
}

TASK [Check if running as tpot (All)] *******************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "Running as user: marco."
}

TASK [Check if supported distribution (All)] ************************************************************************************************************************
ok: [127.0.0.1] => {
    "changed": false,
    "msg": "T-Pot will now install on Debian."
}

PLAY [T-Pot - Install recommended, remove conflicting packages] *****************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Syncing clocks (All)] *****************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Install recommended packages (Debian, Raspbian, Ubuntu)] ******************************************************************************************************
ok: [127.0.0.1]

TASK [Install exa (Debian, Raspbian, Ubuntu)] ***********************************************************************************************************************
ok: [127.0.0.1]

TASK [Install eza (if exa failed)] **********************************************************************************************************************************
skipping: [127.0.0.1]

PLAY [T-Pot - Prepare for and install Docker Engine] ****************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Remove distribution based Docker packages (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)] ***************************************************************
ok: [127.0.0.1]

TASK [Add folder for Docker Engine GPG key (Debian, Raspbian, Ubuntu)] **********************************************************************************************
ok: [127.0.0.1]

TASK [Download Docker Engine GPG key (Debian, Raspbian, Ubuntu)] ****************************************************************************************************
ok: [127.0.0.1]

TASK [Decrypt Docker Engine GPG key (Debian, Raspbian, Ubuntu)] *****************************************************************************************************
ok: [127.0.0.1]

TASK [Add Docker Engine repository (Debian, Raspbian, Ubuntu)] ******************************************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Install Docker Engine] ********************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Install Docker Engine packages (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)] **************************************************************************
changed: [127.0.0.1]

TASK [Stop Docker (All)] ********************************************************************************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Adjust configs, add users and groups, etc.] ***********************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Create T-Pot group (All)] *************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Create T-Pot user (All)] **************************************************************************************************************************************
changed: [127.0.0.1]

TASK [Change SSH Port to 64295 (AlmaLinux, Debian, Fedora, Raspbian, Rocky, Ubuntu)] ********************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Restart services] *************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Enable Docker Engine upon boot (All)] *************************************************************************************************************************
changed: [127.0.0.1]

TASK [Restart SSH (All)] ********************************************************************************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Adjust group users, bashrc, clone / update T-Pot repository] ******************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Check for non-root user id (All)] *****************************************************************************************************************************
ok: [127.0.0.1] => {
    "msg": "Detected user: 'marco'"
}

TASK [Add aliases with exa (All)] ***********************************************************************************************************************************
changed: [127.0.0.1]

TASK [Add aliases with eza (Debian, Raspbian, Ubuntu)] **************************************************************************************************************
skipping: [127.0.0.1]

TASK [Clone / Update T-Pot repository (All)] ************************************************************************************************************************
changed: [127.0.0.1]

TASK [Add current user to Docker, T-Pot group (All)] ****************************************************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Install service] **************************************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Install systemd service (All)] ********************************************************************************************************************************
changed: [127.0.0.1]

RUNNING HANDLER [Reload systemd and enable service] *****************************************************************************************************************
changed: [127.0.0.1]

PLAY [T-Pot - Setup a randomized daily reboot] **********************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************************************
ok: [127.0.0.1]

TASK [Setup a randomized daily reboot (All)] ************************************************************************************************************************
changed: [127.0.0.1]

PLAY RECAP **********************************************************************************************************************************************************
127.0.0.1                  : ok=36   changed=17   unreachable=0    failed=0    skipped=3    rescued=0    ignored=0

### Playbook was successful.