fkie-cad / socbed

A Self-Contained Open-Source Cyberattack Experimentation Testbed
GNU General Public License v3.0
35 stars 9 forks source link

Unknown bugs #96

Open darshjain opened 3 days ago

darshjain commented 3 days ago

Describe the bug While running $ ./tools/build_vms

I recieve two errors image

and

image

Host system (please complete the following information):

Maspital commented 3 days ago

I am unable to reproduce this both on our runner and locally. The first image seems to suggest an older version of Python - is your host running at least Python3.9?

The version number shown could also be the Python version running on the log server, in which case this error might stem from an incorrect version of ansible-core on your system. What's the output if you run pip freeze | grep ansible (*inside your venv)?

darshjain commented 2 days ago

Python 3.12.3

Ouptut of venv (socbed) - ansible==10.5.0 ansible-core==2.17.5

I thinkt the logserver when deployed does not have these configurations as Ubuntu 16.06 (installed on logserver) might not have latest python, and there is no way to update it

darshjain commented 2 days ago

Just a follow up, I happened to notice while tinkering with post_install for log_server, that apt update doesn't work : it is not able to establish its Internet Connection. To confirm this, I increased the timeout to 10 mins and ssh'ed into the server. It is not able to ping to any online resource. This is a important issue to address as well.

Maspital commented 2 days ago

The problem, as indicated by your screenshots, is the version of ansible-core you are running. This is caused by your Ansible version (10.5.0) not matching the one listed in requirements.txt. Did you install them with pip install -r requirements.txt inside a clean virtual environment?