Closed AlexanderTyutin closed 4 years ago
@AlexanderTyutin maybe this caused by the same problem with this https://github.com/DefectDojo/django-DefectDojo/issues/1931
Having the same today with docker-compose build
I have been managed this by editing Dockerfile.nginx
to:
RUN \ cd components && \ yarn && \ cd node_modules/\@yarn_components/moment/meteor && \ rm moment.js && \ ln -s ../moment.js moment.js && \ cd ../../../../.. && \ python3 manage.py collectstatic --noinput && \ true
Same here with docker-compose build
Same here with
docker-compose build
Try out the solution above. This helped me with docker-compose build
I have the same issue - brand new install
@AlexanderTyutin should be fixed now in both dev & master could you please confirm?
Nope. Just done another new installation, Ubuntu 18.04.
Starting development server at http://104.248.169.129:443/ Quit the server with CONTROL-C. /usr/local/lib/python3.6/dist-packages/whitenoise/base.py:116: UserWarning: No directory at: /opt/django-DefectDojo/static/ warnings.warn(u"No directory at: {}".format(root)) [22/Mar/2020 18:57:22] code 400, message Bad request syntax ('\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x04®¾u@3\x13\x85´d>XWL9\x91\x82\x9dïÒlÇý}Fv\x8fO\x82Êe: :\x9fY\x0e¸÷ûñ\x8e\x88G\x99Ù\x9745I]§ò\x1fø\x9dì¹*}á¿æÎë\x00"\x1a\x1a\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00') [22/Mar/2020 18:57:22] You're accessing the development server over HTTPS, but it only supports HTTP.
^Croot@Defects:/opt/django-DefectDojo# python3 manage.py runserver 104.248.169.129:80 Watching for file changes with StatReloader Performing system checks...
Popen(['git', 'version'], cwd=/opt/django-DefectDojo, universal_newlines=False, shell=None, istream=None) Popen(['git', 'version'], cwd=/opt/django-DefectDojo, universal_newlines=False, shell=None, istream=None) System check identified no issues (0 silenced). March 22, 2020 - 18:57:42 Django version 2.2.9, using settings 'dojo.settings.settings' Starting development server at http://104.248.169.129:80/ Quit the server with CONTROL-C. /usr/local/lib/python3.6/dist-packages/whitenoise/base.py:116: UserWarning: No directory at: /opt/django-DefectDojo/static/ warnings.warn(u"No directory at: {}".format(root))
^Croot@Defects:/opt/django-DefectDojo# python3 manage.py runserver 104.248.169.129:943 Watching for file changes with StatReloader Performing system checks...
Popen(['git', 'cat-file', '--batch-check'], cwd=/opt/django-DefectDojo, universal_newlines=False, shell=None, istream=
some of the problems with setup.bash for ubuntu1804 are
1) the apt install nodejs installs an old version of 8 and the nodes setup runs for version 6, so if you remove the apt install of nodejs from line 214 of setup/scripts/os/linux.sh and
2) change last line of setup/scripts/common/config-vars.sh from NODE_URL="https://deb.nodesource.com/setup_6.x" to NODE_URL="https://deb.nodesource.com/setup_8.x"
your YARN section might complete and publish a /static folder
if YARN section still fails - tempoarily remove line 29 , "@yarn_components/moment": "moment/moment#^2.9.0", from components/package.json
moment is a date format library that breaks my Yarn and collectstatic https://momentjs.com/
Hi, thanks for that, that has fixed some of the issues. UI issue is still just text and no images/css etc so I moved the /static folder from /dojo into the application path root, there UI is improved but still clearly not right. Using fresh ubuntu 18.04.
Still seeing this issue unfortunately :(
Edit:
I tried this out and the static folder does get published.
some of the problems with setup.bash for ubuntu1804 are
- the apt install nodejs installs an old version of 8 and the nodes setup runs for version 6, so if you remove the apt install of nodejs from line 214 of setup/scripts/os/linux.sh and
- change last line of setup/scripts/common/config-vars.sh from NODE_URL="https://deb.nodesource.com/setup_6.x" to NODE_URL="https://deb.nodesource.com/setup_8.x"
your YARN section might complete and publish a /static folder
if YARN section still fails - tempoarily remove line 29 , "@yarn_components/moment": "moment/moment#^2.9.0", from components/package.json
moment is a date format library that breaks my Yarn and collectstatic https://momentjs.com/
@00re00 do you know what functions exactly of the application I'm missing without having the moment installed?
As of release 1.6.0
this should be fixed in the master
branch
Bug description Got the error During the installation according to the official documentation:
Steps to reproduce Steps to reproduce the behavior:
setup.bash
Expected behavior System is up and running according to the documentation
Deployment method (select with an
X
)Environment information
Sample scan files (optional) If applicable, add sample scan files to help reproduce your problem.
Screenshots (optional) As a result no static files are accessible
Console logs (optional)
Additional context (optional) Add any other context about the problem here.