Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Roman Prykhodchenko
@romcheg
Frontend, i. e., JS and CSS stuff has to be built now. Just run node_modules/.bin/gulp
I know that sounds like a lot of steps -- we are working on making a simple package for it
Vladislav Solovei
@vladsol
@romcheg Wow :) It's works!
@romcheg Thank you! :)
Roman Prykhodchenko
@romcheg
awesome
now you're probably interested to have that running as a service, aren't you?
Vladislav Solovei
@vladsol
@romcheg Yes)
Roman Prykhodchenko
@romcheg
Do you know how to run gunicorn?
it is already installed, since you've performed make install
the configuration file for gunicorn is located in contrib/gunicorn.py.ini
Vladislav Solovei
@vladsol
@romcheg I have configured nginx + supervisord + gunicorn)
But there are problems with the paths to some js
@romcheg on example, requested domain.com/static/admin/js/jquery.js, but theres is no "admin" directory in "src/static" .
Roman Prykhodchenko
@romcheg
@vladsol basically you don't need nginx in this bundle
ralph uses whitenoise to serve static files
Erik Smedinga
@ErikSmedinga
How can I change the password of a user?
Roman Prykhodchenko
@romcheg
@vladsol and I suppose it's not going to be a heavily loaded by external users, so whitenoise will work from the box
so go directly to gunicorn and check if you get static files
Arkadiusz Adamski
@ar4s
Vladislav Solovei
@vladsol
@romcheg Unfortunately, no :(
@romcheg for all of "/static/" i getting 404
Arkadiusz Adamski
@ar4s
@vladsol please run ralph collectstatic --noinput
Vladislav Solovei
@vladsol
2620 static files copied to '/opt/ralph/ralph/src/ralph/var/static'
Roman Prykhodchenko
@romcheg
looks good
@ar4s ^
Arkadiusz Adamski
@ar4s
+1
Vladislav Solovei
@vladsol
@romcheg But... Nothing changeds.
Arkadiusz Adamski
@ar4s
@vladsol you run gunicorn behind nginx?
Vladislav Solovei
@vladsol
No. only gunicorn. nginx is stopped.
Maybe, i need to specify static files location for unicorn?
Somehow...)
Roman Prykhodchenko
@romcheg
@vladsol well, we have examined the code with @ar4s... and looks like we aparently forgot to merge whitenoise... somehow...
Vladislav Solovei
@vladsol
Oops :)
Roman Prykhodchenko
@romcheg
so you can take the configuration file for nginx from contrib/ and adapt it for your needs
Vladislav Solovei
@vladsol
So, at this moment, i can use nginx )
Roman Prykhodchenko
@romcheg
right
sorry for the confusion
Erik Smedinga
@ErikSmedinga
Great, every time I try to logon with a newly created user I get a Server Error (500). Before I can logon again I have to clear my cookies for Ralph.
Roman Prykhodchenko
@romcheg
@ErikSmedinga could you please enable debug and post some logs when you have this error?
Erik Smedinga
@ErikSmedinga
It's the online environment.
Vladislav Solovei
@vladsol
Exception Value:
(1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
When i trying to add DC
Roman Prykhodchenko
@romcheg
@vladsol what charset and collation is set for your DB?
Vladislav Solovei
@vladsol
@romcheg My fault) looks like latin1 is set by default.
Roman Prykhodchenko
@romcheg
Well, then it's easy to fix :)
@ErikSmedinga then the logs should be in your log file
Arkadiusz Adamski
@ar4s
by default Ralph store log in /tmp/ralph.log
Erik Smedinga
@ErikSmedinga
Is there still a Windows Client Agent for Ralph 3? How can I scan in Ralph 3?
✪ vi4m Marcin Kliks
@vi4m
not tested on Windows, but for Linux here’s http://ralph-cli.readthedocs.io/en/latest/
requires some modifications to work on Windows
damian1976
@damian1976
Hi, Every couple of days I have problems with ralph (django+nginx) showing 502 Bad Gateway. Do you have any quick solution for this?
Roman Prykhodchenko
@romcheg
@damian1976 do you have any logs?