[develop] docker-compose fails to build webapp resulting in non functional UI.
See original GitHub issueExpected Behavior
The system should build and run properly whenever a new user clone the git repository and run the system using docker-composer up as described in the documentation.
Current Behavior
When a user clone the git repository and run docker-compose up, the application seems to build properly, however it fails to load the UI when users try to access http://localhost:8009/ with the error bellow:
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/web.py", line 1509, in _execute result = method(*self.path_args, **self.path_kwargs) File "/owtf/owtf/api/handlers/ui_handlers.py", line 18, in get self.render('index.html') File "/usr/local/lib/python2.7/dist-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/web.py", line 724, in render html = self.render_string(template_name, **kwargs) File "/usr/local/lib/python2.7/dist-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/web.py", line 862, in render_string t = loader.load(template_name) File "/usr/local/lib/python2.7/dist-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/template.py", line 427, in load self.templates[name] = self._create_template(name) File "/usr/local/lib/python2.7/dist-packages/tornado-4.5.2-py2.7-linux-x86_64.egg/tornado/template.py", line 454, in _create_template with open(path, "rb") as f: IOError: [Errno 2] No such file or directory: '/owtf/owtf/webapp/build/index.html'
Possible Solution
The error indicates a missing file : wtf/owtf/webapp/build/index.html’ Some superficial investigation shows that the yarn build that is supposed to generate that file is failing. The yarn error logs are available at: https://github.com/owtf/owtf/blob/develop/owtf/webapp/yarn-error.log
I tried to trace the issue and it seems like the root problems is on UglifyJS, but I couldn’t find much more than that.
Steps to Reproduce (for bugs)
Run the following commands(tested on OSX)
- git clone https://github.com/owtf/owtf -b develop 2.cd owtf
- docker-composer up
- Launch browser and navigate to http://localhost:8009/
Logs
Context
Unable to build develop branch
Your Environment
- Installation method used: Docker Compose
- Version/branch used: develop
- Operating System and version (like Kali, Debian, ArchLinux, etc): Kali container on OSX(docker community, version 17.12.0-ce-mac55 (23011))
- pip/setuptools version: latest on kali container
- sudo access: container user is is root.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)

Top Related StackOverflow Question
Sure, go ahead! Thanks.
On Wed, Mar 7, 2018 at 10:20 Deepesh Pathak notifications@github.com wrote:
Hey Viyat,
Thanks for looking into to it and for maintaining such amazing software 😃
I hope I’ll have the chance to buy you a coffee(or tea) or a beer in a conference someday.
Cheers, RT