Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
@damian1976 ralph 3 ?
damian1976
@damian1976
yes
damian1976
@damian1976
the only thing the nginx actually does is that it's a proxy for django (it redirects from 8000 to 443). That's all.
damian1976
@damian1976
2018/03/01 09:49:24 [error] 30971#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: IP_ADDRESS, server: SERVER_NAME, request: "GET / HTTP/1.1", upstream: "SERVER_NAME:8000/", host: "SERVER_NAME"

It look like django dies after some time. ralph is visible under 'ps' command

ralph    31001     1  0 08:20 ?        00:00:01 /home/ralph/ralph_ng/bin/python /home/ralph/ralph_ng/bin/ralph runserver 0.0.0.0:8000

But when I'm trying to telnet localhost on the port 8000 I fail .
Then I have to kill ralph process and start it again (virtualenv has to be activated):

DJANGO_SETTINGS_MODULE=ralph.settings.local ralph runserver 0.0.0.0:8000 &
Arkadiusz Adamski
@ar4s
@damian1976 you use proxy_pass in nginx?
server {
    listen 80;
    client_max_body_size 200M;
    server_name ralph.localhost;
    proxy_set_header Host ralph.localhost;

    location / {
      proxy_pass http://127.0.0.1:8003;
    }
}
I have something like above configuration to start Ralph on my local machine (through nginx ofc)
damian1976
@damian1976
Yes , I use proxy_pass. I noticed I used dns name instead of IP. I read somewhere that I should try with IP and/or switch ipv6 off on the machine. I gave it a try already and currently waiting . Let's wait 1, 2 days to see what will happen. Are client_max_body_size 200M; and proxy_set_header Host ... necessary?
Arkadiusz Adamski
@ar4s
Yes if you have DEBUG=False and then Host header must correspond to ALLOWED_HOSTS but
you have another problem
ShyamalaViswanathan
@ShyamalaViswanathan
HI, I was able to successfully integrate CAS with Ralph using remote authentication of Django. Thanks to the Django link and suggestion. I now need to use email for authentication instead of username. Any suggestion on how to go about it?
Arkadiusz Adamski
@ar4s
@ShyamalaViswanathan
https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#extending-django-s-default-user probably you should write custom user's model with attr USERNAME_FIELD = email
Erik Smedinga
@ErikSmedinga
What permissions does a user need for 'DC Visualisation'?
Arkadiusz Adamski
@ar4s
@ErikSmedinga user need Can view ServerRoomView and Can view SettingsForAngularView you can find it in User section
Ruslan Vakilov
@supaflyster
Hi, I've noticed that there were no releases pushed to bintray since 22nd of August 2017, while there were daily builds before. Is it intended or smth just broke?
apt-cache policy ralph-core
ralph-core:
  Installed: 3.0.0-snapshot-20170822-8254
  Candidate: 3.0.0-snapshot-20170822-8254
✪ vi4m Marcin Kliks
@vi4m
well, actually it is intended
we're preparing official release. do you need new snapshots?
Ruslan Vakilov
@supaflyster
no, just wondering what's happened. all good! Thanks for update
Jonny Rees-Williams
@jonnythelarge
Hello @everyone!
We are wondering if the ability to barcode scan assets directly into Ralph is available as of yet, or has anyone achieved this?
AkankshaDureja
@AkankshaDureja_twitter
Hi All, We are using Ralph for Asset Management and wondering if there is a possibility to get attachments added while creating a Hardware by using any API?
✪ vi4m Marcin Kliks
@vi4m
@AkankshaDureja_twitter glad you use Ralph :) what type of attachments do you want to upload ?
AkankshaDureja
@AkankshaDureja_twitter
@vi4m We need to attach images so we can have logos for all components, and need these attachment details in API calls.
Adam
@tretos53
Hi, Maybe I missed that in the documentation but is there a way for Ralph to send me an email when Support contract is due to expire ?
Adam
@tretos53
Also can you add warranty date end to a hardware asset and send email before expiry feature ?
Adam
@tretos53
Another question. How easy is to migrate from Ubuntu to Docker version of ralph keeping all the current data ?
✪ vi4m Marcin Kliks
@vi4m
@ar4s
@romcheg
bulion96
@bulion96
Hi, I was just wondering, is it possible to use RFID with Ralph?
✪ vi4m Marcin Kliks
@vi4m
@bulion96 i haven’t heard about such integration, but you know - it’s open source, and there are open API’s to build on it
Roman Prykhodchenko
@romcheg
@tretos53 sorry for a long delay -- we had several holidays in a raw here.
We are trying a several concepts for implementing notifications for expirins support contracts, licenses, etc
No guarantees, however, when we are going to implement a version of that that is generic enough in order to make it public :(
Also I'm not sure when we will have time for that feature, because there is a lot of things in our backlog ATM
If you want, you can try implementing it and we will gladly provide you some of the thoughts we have had and will support your work in order to land it to the main branch
Roman Prykhodchenko
@romcheg
Re migration: migrating the database is relatively easy. Also you should mount appropriate directory for static files and uploads
That should do it
Charley Sheets
@nvdacsheets
What versions of python are expected to work with ralph? I ran into a problem with python 3.4, which I documented as #3250 but closed once I understood that the problem was python 3.4 and not with ralph itself. I'm now running into a different problem with python 3.6.
looks like 3.4 is being used for CI, though, so maybe that issue shouldn't be closed quite yet
Charley Sheets
@nvdacsheets
Oh, and 3.4 is what you get on Ubuntu 14.04 if you install the ralph-core 3.0.0-snapshot-20170822-8254 package.
arcyber1
@arcyber1
hello how can I see the left and right view of my rack on the DC Visualisation menu ?
Chez
@Chez
Does anyone know if there is documentation regarding API calls to POST data such as virtual and physical servers? Thanks
Chez
@Chez
Ok, I found the APi data pages on the local dev machine
Does anyone know why the following curl command :- curl -s -H "Authorization: Token 950a0ca0ca830ff018fa22309137b507c09678b4" -X POST http://0.0.0.0:8000/api/virtual-servers/ -d '{"hostname": "VS-phishfinder-2", "service_env": 1, "status": 1, "type": 1, "hypervisor": 2}'
gives the error: {"type":["This field is required."],"hypervisor":["This field is required."]}
belacs
@belacs
i was tring to use the demo but the default creds: ralph/ralph arnt working
Roman Prykhodchenko
@romcheg
@belacs perhaps someone had changed it
we will reset the credentials to default ones
Thanks for letting us know!
maibold1
@maibold1
hi guys im new to ralph and i read that maybe there is a new stable version is that correct?
also i want to try ralph but for me to do it it has to have support for ubuntu 16.04 or more is there any planning update to support newer ubuntu versions ?
Kaden
@Kadenaio_gitlab
Hello-is there a Scan for servers or network hw i can use, other then go each one on the hosts