These are chat archives for allegro/ralph

13th
Dec 2017
✪ vi4m Marcin Kliks
@vi4m
Dec 13 2017 00:21
well
✪ vi4m Marcin Kliks
@vi4m
Dec 13 2017 00:27
Zrzut ekranu 2017-12-13 o 01.26.20.png
did you try it as described here?
tretos53
@tretos53
Dec 13 2017 13:43
@vi4m Hi, I mentioned this before but I don't think I did get any response. Would you know if there is an official way to make Ralph start on boot? Using upstart for example?
✪ vi4m Marcin Kliks
@vi4m
Dec 13 2017 15:30
well, please ask @romcheg for detail, he has worked on it
Roman Prykhodchenko
@romcheg
Dec 13 2017 15:32
hi
I was indeed worked on that. However, some other important things have taken me from that task so I've passed it to @ar4s
tretos53
@tretos53
Dec 13 2017 15:44

How do I fix the permissions to be able to upload attachments from below error:

`

PermissionError at /data_center/datacenterasset/319/attachment/
[Errno 13] Permission denied: '/opt/ralph/ralph-core/lib/python3.4/site-packages/ralph/var/media/attachments/f'
Request Method: POST
Request URL: http://172.31.131.110:8000/data_center/datacenterasset/319/attachment/
Django Version: 1.8.18
Exception Type: PermissionError
Exception Value:
[Errno 13] Permission denied: '/opt/ralph/ralph-core/lib/python3.4/site-packages/ralph/var/media/attachments/f'
Exception Location: /opt/ralph/ralph-core/lib/python3.4/os.py in makedirs, line 237
Python Executable: /opt/ralph/ralph-core/bin/python
Python Version: 3.4.3
Python Path:
['/opt/ralph/ralph-core/bin',
'/opt/ralph/ralph-core/lib/python3.4',
'/opt/ralph/ralph-core/lib/python3.4/plat-x86_64-linux-gnu',
'/opt/ralph/ralph-core/lib/python3.4/lib-dynload',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/opt/ralph/ralph-core/lib/python3.4/site-packages',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf',
'/opt/ralph/ralph-core/lib/python3.4/site-packages/odf']
Server time: Wed, 13 Dec 2017 16:31:45 +0100`

Permission on below folder:

`

administrator@hostname:/opt/ralph/ralph-core/lib/python3.4/site-packages/ralph/var/media/attachments$ ls -al
total 36
drwxr-xr-x 9 root root 4096 Sep 27 15:16 .
drwxr-xr-x 4 root root 4096 Sep 27 15:16 ..
drwxr-xr-x 3 root root 4096 Sep 27 15:16 3
drwxr-xr-x 4 root root 4096 Sep 27 15:16 5
drwxr-xr-x 3 root root 4096 Sep 27 15:16 7
drwxr-xr-x 3 root root 4096 Sep 27 15:16 8
drwxr-xr-x 5 root root 4096 Sep 27 15:16 a
drwxr-xr-x 3 root root 4096 Sep 27 15:16 c
drwxr-xr-x 3 root root 4096 Sep 27 15:16 e
administrator@hostname:/opt/ralph/ralph-core/lib/python3.4/site-packages/ralph/var/media/attachments$
`

✪ vi4m Marcin Kliks
@vi4m
Dec 13 2017 15:46
on which account does the ralph command runs?
administrator ?
you could probably chown entire tree without changing permissions on each level
if this is a case, obviously
tretos53
@tretos53
Dec 13 2017 15:55
yes it is admin
that worked
thanks
swb
@spencewb16_twitter
Dec 13 2017 17:16
@vi4m any idea about the boolean icons? after reading up on some django documentation, seems like those icons are only available in admin list filters - just curious if there's a quick way to get them to show up in non-admin pages without using list_display options
wade-lich
@wade-lich
Dec 13 2017 19:31
@vi4m, thank you. I did searches for PDU and CDU. I would never have thought to call it a "power supply" Perhaps, that could be corrected as CDU/PDU are standard terms?
✪ vi4m Marcin Kliks
@vi4m
Dec 13 2017 22:09
yes, it should be corrected to CDU/PDU
would you like to improve documentation there? :-)