owtf / owtf

Offensive Web Testing Framework (OWTF), is a framework which tries to unite great tools and make pen testing more efficient http://owtf.org https://twitter.com/owtfp
https://medium.com/@owtf
BSD 3-Clause "New" or "Revised" License
1.8k stars 470 forks source link

Running with Docker compose: No such file or directory: '/root/.owtf/build/index.html' #1203

Open sebix opened 2 years ago

sebix commented 2 years ago

Expected Behavior

http://0.0.0.0:8009/ presents an interface

Current Behavior

Traceback (most recent call last):
  File "/bin/owtf/lib/python3.9/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/bin/owtf/lib/python3.9/site-packages/owtf-2.6.0-py3.9.egg/owtf/api/handlers/index.py", line 35, in get
    self.render("index.html")
  File "/bin/owtf/lib/python3.9/site-packages/tornado/web.py", line 766, in render
    html = self.render_string(template_name, **kwargs)
  File "/bin/owtf/lib/python3.9/site-packages/tornado/web.py", line 904, in render_string
    t = loader.load(template_name)
  File "/bin/owtf/lib/python3.9/site-packages/tornado/template.py", line 425, in load
    self.templates[name] = self._create_template(name)
  File "/bin/owtf/lib/python3.9/site-packages/tornado/template.py", line 452, in _create_template
    with open(path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.owtf/build/index.html'

Possible Solution

Steps to Reproduce (for bugs)

Follow https://github.com/owtf/owtf#running-as-a-docker-container

  1. git clone https://github.com/owtf/owtf
  2. cd owtf
  3. make compose

Logs

/tmp/owtf/ui_server.log has just the same error message as above

Context

Trying to run the application.

Your Environment

Some more information not fitting in the above sections: /root/.owtf/build/ does not exist at all. Various other issues reporting the same issue exist, proposing to run yarn manually, but that does not bring the files into /root/.owtf/build/ inside the container? Also I have noticed that the Dockerfile does not call yarn anywhere.

Pratham1812 commented 6 months ago

Hey try downloading and using docker-compose, I had similar issue when I used docker compose