embark icon indicating copy to clipboard operation
embark copied to clipboard

Embark installation issues

Open kkxsam opened this issue 4 months ago • 9 comments

Describe the bug Regarding the screenshot issue, how can I resolve it?

I installed Embak using Docker. After installing Docker, I used git clone https://github.com/e-m-b-a/embark.git, then cd embark, and finally sudo ./installer.sh -d. It then ran automatically, resulting in the screenshot. Screenshots

Image Image

Desktop (please complete the following information):

  • OS: [Ubuntu 22.04]

Additional context

kkxsam avatar Nov 25 '25 08:11 kkxsam

Thank you for contributing an issue!

Welcome to the EMBA firmware analysis community!

We are glad you are here and appreciate your contribution. Please keep in mind our contributing guidelines here and here. Also, please check existing open issues and consider to open a discussion in the dedicated discussion area. Additionally, we have collected a lot of details around EMBArk, the installation and the usage of EMBArk in our Wiki.

If you like EMBA you have the chance to support us by becoming a Sponsor or buying some beer here.

This is an automatic message. Allow for time for the EMBA community to be able to read the issue and comment on it.

github-actions[bot] avatar Nov 25 '25 08:11 github-actions[bot]

Hey kkxsam, could you pipe the full stdout and stderr into a file and upload that here? sudo ./installer.sh -d 2>&1 > installer.log It seems to either not be creating the venv or not sourcing it, so I'm curious what errors would cause that, but the screenshot you sent doesn't quite capture it :)

(I'm not an EMBaRK team member but have done quite some troubleshooting with the installer before)

jurrejelle avatar Nov 27 '25 07:11 jurrejelle

Definitely a pipenv issue with the installation.

I would do the same as @jurrejelle

BenediktMKuehne avatar Nov 27 '25 07:11 BenediktMKuehne

嘿 kkxsam,你能把完整的 stdout 和 stderr 输出到一个文件里然后上传到这里吗?sudo ./installer.sh -d 2>&1 > installer.log 看起来要么是虚拟环境没有创建,要么是没有加载,所以我很好奇是什么错误导致了这个问题,不过你发的截图好像没能完全展现出来 :)

(我不是 EMBaRK 团队成员,但之前曾对安装程序进行过一些故障排除工作)

installer.log This is installer.log. What do I need to do to successfully install EMBArk? @jurrejelle

kkxsam avatar Nov 28 '25 07:11 kkxsam

肯定是pipenv安装出了问题。

我也会这样做。@jurrejelle

Have you encountered a similar problem? How can I successfully install EMBArk correctly? @BenediktMKuehne

kkxsam avatar Nov 28 '25 07:11 kkxsam

Ok, according to the log you attached the installation failes when checking the sql connection. To fix restart the docker service and Uninstall completely.

  1. service docker restart
  2. ./installer.sh -U

than install again with ./installer.sh -d

The first screenshots you showed would indicate that the python virtual environment doesn't install correctly on your machine. To test this manually you could run MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv install

BenediktMKuehne avatar Nov 28 '25 09:11 BenediktMKuehne

好的,根据您提供的日志,安装过程中在检查 SQL 连接时失败。 要解决此问题,请重启 Docker 服务并彻底卸载。

  1. service docker restart
  2. ./installer.sh -U

然后再次安装./installer.sh -d

你提供的第一张截图表明你的机器上 Python 虚拟环境没有正确安装。 你可以手动运行以下命令来测试这一点。MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv install

I've tried it for the past few days, but it still doesn't work. Even after reinstalling the system, it still doesn't work. I'm wondering what the Docker requirements are for Embark. What preparations are needed on an Ubuntu 22.04 system before executing the following commands? Can the current Embark installation be done on Kali Linux?

git clone https://github.com/e-m-b-a/embark.git cd embark sudo ./installer.sh -d

kkxsam avatar Dec 02 '25 00:12 kkxsam

好的,根据您提供的日志,安装过程中检查 SQL 连接时失败。要解决此问题,请重新启动 Docker 服务并彻底卸载。

  1. service docker restart
  2. ./installer.sh -U

然后再次安装./installer.sh -d 你提供的第一张截图表明你的机器在Python虚拟环境上没有正确安装。你可以手动运行以下命令来测试这一点。MYSQLCLIENT_LDFLAGS='-L/usr/mysql/lib -lmysqlclient -lssl -lcrypto -lresolv' MYSQLCLIENT_CFLAGS='-I/usr/include/mysql/' PIPENV_VENV_IN_PROJECT=1 pipenv install

我这几天一直在尝试,但还是不行。即使重装系统也一样。我想知道 Embark 对 Docker 有什么要求。在 Ubuntu 22.04 系统上执行以下命令之前需要做哪些准备?目前的 Embark 版本可以在 Kali Linux 上安装吗?

git clone https://github.com/e-m-b-a/embark.git cd embark sudo ./installer.sh -d

To install Embark, what dependencies need to be installed beforehand?

git clone https://github.com/e-m-b-a/embark.git cd embark sudo ./installer.sh -d

kkxsam avatar Dec 02 '25 00:12 kkxsam

Do you know what part of the installation is actually failing?

The installer:

  1. install docker + docker deamon and docker compose (from source not through apt)
  2. installs pipenv and the pip-packages as venv

Which errors are you encountering when you install? The install.log you attached only showes that the mysql container couldn't be started because there was an old installation still active (if you run the installer twice for example).

To help me help you can you do the following:

git clone https://github.com/e-m-b-a/embark.git cd embark sudo ./installer.sh -d |& tee install.log

and upload that install.log to look for errors

BenediktMKuehne avatar Dec 02 '25 18:12 BenediktMKuehne