Hi,
I am using a Kali 2021.04 linuxin VMware Workstation.
I am doing a partly manual installation of emba + EMBArk like this:
change shell to /bin/bash
docker installation:
$ sudo apt install docker-ce -y
$ git clone https://github.com/e-m-b-a/embark.git
$ cd embark
$ git clone https://github.com/e-m-b-a/emba.git
$ git clone https://github.com/cve-search/cve-search.git
Install system requirements:
$ cd cve-search
$ sudo xargs apt-get install -y < requirements.system
$ sudo pip3 install -r requirements.txt
MongoDB installation
$ sudo apt install -y mongodb-org
and I install EMBArk with the default -d mode. The install looks fine, I can start the server with:
$ sudo ./run-server.sh
and I can register a user in the browser but after login I get 404 error.
If I start with developer mode:
sudo ./dev-tools/debug-server-start.sh
I can log in.
I checked also the -F installation which is also looks fine, but if I start the server with the default command:
$ sudo ./run-server.sh
I get this error:
Finished setup mysql and redis docker images
mkdir: cannot create directory ‘/app/www/logs’: No such file or directory
mkdir: cannot create directory ‘/app/www/conf’: No such file or directory
[ JOB] Redis logs are copied to ./embark/logs/redis_dev.log
[ JOB] DB logs are copied to ./embark/logs/mysql_dev.log
./run-server.sh: line 98: /app/www/logs/redis.log: No such file or directory
./run-server.sh: line 100: /app/www/logs/mysql.log: No such file or directory
cp: cannot create directory '/app/www/embark/': No such file or directory
./run-server.sh: line 113: /app/www/conf/embark.conf: No such file or directory
./run-server.sh: line 116: cd: /app/www/embark/: No such file or directory
The output of docker-compose ps:
Name Command State Ports
embark_db docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp,:::3306->3306/tcp, 33060/tcp
embark_redis docker-entrypoint.sh --por ... Up 6379/tcp, 0.0.0.0:7777->7777/tcp,:::7777->7777/tcp
I can use only the
$ sudo ./dev-tools/debug-server-start.sh
mode even if I install -d or with -F but the normal way does not work.
What could be the problem?
If I want to open a report after a full emba test in EMBArk I get this message:
TemplateDoesNotExist at /emba_logs/1/html-report/index.html
/app/emba/emba_logs/emba_logs/1/html-report/index.html
Request Method: GET
Request URL: http://127.0.0.1:8000/emba_logs/1/html-report/index.html
Django Version: 4.0.1
Exception Type: TemplateDoesNotExist
Exception Value:
/app/emba/emba_logs/emba_logs/1/html-report/index.html
Exception Location: /home/kali/embark/.venv/lib/python3.9/site-packages/django/template/loader.py, line 19, in get_template
Python Executable: /home/kali/embark/.venv/bin/python
Python Version: 3.9.9
Python Path:
['/home/kali/embark/embark',
'/home/kali/embark',
'/home/kali/embark/embark',
'/usr/lib/python39.zip',
'/usr/lib/python3.9',
'/usr/lib/python3.9/lib-dynload',
'/home/kali/embark/.venv/lib/python3.9/site-packages']
Server time: Sun, 30 Jan 2022 10:14:42 +0000
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /app/emba/emba_logs/emba_logs/1/html-report/index.html (Source does not exist)
But other pages are working and I am able to download the logs in HTML with "Download Logs" button.
Regards,
Torabi