e-m-b-a / embark

EMBArk - The firmware security scanning environment
https://www.securefirmware.de
MIT License
313 stars 46 forks source link

Installation failed #178

Closed torabi12 closed 9 months ago

torabi12 commented 9 months ago

Describe the bug I started a default installation but it dropped an error and after that exited.

To Reproduce Steps to reproduce the behavior:

  1. EMBArk installation (default mode)
  2. See error

Screenshots kép

kép

Desktop (please complete the following information):

m-1-k-3 commented 9 months ago

Do you have a very new docker version running? Could you please give us some version details:

pip3 list | grep docker
dpkg -l | grep docker

This error is also shown here https://github.com/docker/docker-py/issues/3194

torabi12 commented 9 months ago

Do you have a very new docker version running? Could you please give us some version details:

pip3 list | grep docker
dpkg -l | grep docker

This error is also shown here docker/docker-py#3194

Yes, it is an updated Ubuntu server: kép

m-1-k-3 commented 9 months ago

docker 7.0.0 breaks currently a lot ... please downgrade to <7.0.0

torabi12 commented 9 months ago

This way it is working: kép

Would it be possible to use the suitable package in the installer?

torabi12 commented 9 months ago

Sorry, but this fix fdid not solve the problem. The clean Ubuntu server does not have python and docker installed. The emba(rk) installation downloads the 7.0.0 package and the installer fails again:

kép

and a few seconds later:

kép

If I install manually the good version the installer works fine, but the installer alone does not work:

kép

torabi12 commented 9 months ago

I installed docker 6.1.3 manually on a clean Ubbuntu and after that the installer also failed.

BenediktMKuehne commented 9 months ago

There were some breaking changes to docker(-compose) Working on resolving this.

Docker version <7.0.0 set for root worked yesterday, i'll look into it

torabi12 commented 9 months ago

I took a new clean up to date Ubuntu Server 22.04.3 and I installed manually these:

$ sudo apt install python3-pip
$ sudo pip3 install docker==6.1.3

reboot, and EMBArk installer:

$ sudo ./installer.sh -d | tee install.txt

please check the output lines 547-553:

install.txt

m-1-k-3 commented 9 months ago

over night I did a fresh installation on Ubuntu Server 22.04.3 and got these installed:

image

torabi12 commented 9 months ago

over night I did a fresh installation on Ubuntu Server 22.04.3 and got these installed:

image

I am using hu.archive.ubuntu.com for apt. If I use clean OS emba(rk) will download docker 7.0.0

kép

but if I install manually 6.1.3 it is not OK after the last update. Yesterday when I tried it before the fix it was working with 6.1.3 for me.

m-1-k-3 commented 9 months ago

According to https://packages.ubuntu.com/jammy/allpackages version 5.0.3 gets installed. I do not understand how you got v7.0.0. Please give us more details on how we can reproduce this issue in detail. Currently we support Ubuntu 22.04 with the usually installed packages and I am wondering on how a LTS version can automatically go up to docker 7. Docker v7 will be supported in the future but not yet

torabi12 commented 9 months ago

Thank you, I deleted my VM and started again following this process with a band new VM from ubuntu.com:)

ubuntu-22.04.3-live-server-amd64.iso

At the beginning of the installation I upgraded to the new installer.

Used mirror: http://hu.archive.ubuntu.com/ubuntu/

Ubuntu Pro skipped

SSH installed. I add this line to GRUB to have better resolution: GRUB_GFXPAYLOAD_LINUX=1152x864

reboot

$ sudo timedatectl set-timezone Europe/Budapest
$ sudo apt update
$ sudo apt upgrade -y

reboot

$ git clone https://github.com/danielmiessler/SecLists.git

$ touch module_blacklist.txt S99_grepit S110_yara_check

I have this: Linux embark 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Shutdown & Snapshot

$ git clone https://github.com/e-m-b-a/embark.git
$ sudo ./installer.sh -d | tee new_install.txt

This is the error in the installer at the end:

kép

I don't know why, but I got 7.0.0. By default the OS did not contain any docker or python version before emba(rk) installation.

new_install.txt

Please check lines 1549-1559 and the last few lines.

I can go back to the snapshot any time to try again.

m-1-k-3 commented 9 months ago

@torabi12 could you please test an EMBA installation with the linked PR?

torabi12 commented 9 months ago

I did it on a Kali VM:

kép

There was no error during the installation! :)

m-1-k-3 commented 9 months ago

I did it on a Kali VM:

There was no error during the installation! :)

and on your special Ubuntu?

torabi12 commented 9 months ago

kép

on Ubuntu it asks for pass. :(

m-1-k-3 commented 9 months ago

you got the wrong URL .... should be m-1-k-3

torabi12 commented 9 months ago

It was also working on Ubuntu server:

kép

sorry for the typo. Ubuntu's terminal needs typing. :(

torabi12 commented 9 months ago

Installer works fine:

kép

EMBArk can be started:

kép

Thank you for your support!

m-1-k-3 commented 9 months ago

Thanks for pointing us to this issue. Keep on finding bugs ;)