From what I see - the problem might be with the way your package is installed. Django should not be installed to /usr/lib, but should sit in the same location (/opt/Ralph)
Verifying this, when installing the new ralph I followed these instructions https://ralph-ng.readthedocs.io/en/stable/installation/installation/#ubuntu-package-bionic-and-newer-recommended, installing from apt. This is bad?
Is that your specific installation detail or some error?
It is an error that I see in the logs when going to https://ralph_host/virtual/virtualserver/
ralph shell
will open database connectivity to fix some data
Getting error during accessing cloud host instance from UI and it shows cloud project dependency. But not sure if any relation exists between cloud host and cloud project.Although cloud host API is working fine returning metadata of cloudhost.
Request URL: http://<dns_var>/virtual/cloudhost/
AttributeError at /virtual/cloudhost/
/opt/ralph/ralph-core/lib/python3.6/site-packages/ralph/virtual/admin.py in get_cloudproject, line 375
Let me know if someone faced this type of issue earlier or have some solutions to fix it.
I can't log-in https://ralph-demo.allegro.tech/ and also found the message "Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive.".
Could you fix this problem? Thanks.
[08.12.2020 10:50:52,687] WARNING [MainProcess 1454] base - Not Found: /static/vendor/js/jquery.888d4551b8db.js
[08.12.2020 10:50:52,759] WARNING [MainProcess 1453] base - Not Found: /static/src/js/ralph.init.39e2f0a497aa.js
[08.12.2020 10:50:52,824] WARNING [MainProcess 1453] base - Not Found: /static/auto-complete-helpers.c5d245511ec1.js
[08.12.2020 10:50:52,890] WARNING [MainProcess 1453] base - Not Found: /static/vendor/js/foundation.min.6b2ec41c18b2.js
[08.12.2020 10:50:52,950] WARNING [MainProcess 1453] base - Not Found: /static/vendor/js/modernizr.c1ff1650bba6.js
[08.12.2020 10:50:53,015] WARNING [MainProcess 1454] base - Not Found: /static/src/js/fill-fields.63d74f0f02ca.js
Hi guys,
I have a question. As a Ralph administrator, you can add new users to the Ralph system and give them certain rights. This also includes a box to select whether this user is Active, has a Staff status and/or an Administrator status.
The employee status now says that users with this status can log on to the administrator page. This raises the question in my mind of whether there is also an employee page in addition to this administrator page. In an old Ralph document I also heard something about a staff interface.
In addition to the administrator page or admin interface, is there also a staff interface where you can log in without the staff status box being activated?
Otherwise it makes no sense to me. Why should it be possible to give Ralph users the option of logging in via the administrator page if this is the only log-in option?
Kind regards
Murat
Translated with www.DeepL.com/Translator (free version)
Hello! Guys, i'm trying to apply filter for object_type field like this: https://ralph-demo.allegro.tech/api/dc-hosts/?object_type__in=['cluster']
It returns 0 objects. Is there any syntax error or smth? Can anybody share the proper example?
Is it possible to include custom fields in a data import?
Getting started with Ralph3 and I'm working on importing existing back-office inventory spreadsheets. Most of the existing data maps very well to Ralph3 fields, but there are some details we need to retain that just .. don't. (for example, we track OS licenses, audio and video drivers, disk capacity, and both wifi and hard-wired MAC addresses .. which don't map to existing Ralph3 fields)
What I'd like to do is to create custom fields for this data, and then just include them in the import. I'm really hoping to avoid a brute-force copy/paste/repeat for hundreds of rows, both because it's not any fun, and because it's error-prone and I would likely end up with a garbage database.
Hoping this is an easy one -
John
Hello People
can someone help me with this error that i am getting while setting up the development environment on macosx.
I am following instructions mentioned at https://ralph-ng.readthedocs.io/en/stable/development/development_environment/ and the error occurs at dev_ralph migrate
Traceback (most recent call last):
File "/Users/b0211000/.virtualenvs/ralph/bin/dev_ralph", line 33, in <module>
sys.exit(load_entry_point('ralph', 'console_scripts', 'dev_ralph')())
File "/Users/b0211000/Todo/AIRTEL/POC/ralph/src/ralph/main.py", line 18, in dev
main('ralph.settings.dev')
File "/Users/b0211000/Todo/AIRTEL/POC/ralph/src/ralph/main.py", line 14, in main
execute_from_command_line(sys.argv)
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/django/core/management/init.py", line 328, in execute
django.setup()
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/django/apps/config.py", line 86, in create
module = import_module(entry)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/b0211000/Todo/AIRTEL/POC/ralph/src/ralph/admin/init.py", line 2, in <module>
from ralph.admin.mixins import (
File "/Users/b0211000/Todo/AIRTEL/POC/ralph/src/ralph/admin/mixins.py", line 23, in <module>
from mptt.admin import MPTTAdminForm, MPTTModelAdmin
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/mptt/admin.py", line 26, in <module>
from mptt.models import MPTTModel, TreeForeignKey
File "/Users/b0211000/.virtualenvs/ralph/lib/python3.8/site-packages/mptt/models.py", line 377, in <module>
class MPTTModel(six.with_metaclass(MPTTModelBase, models.Model)):
RuntimeError: class not set defining 'MPTTModel' as <class 'mptt.models.MPTTModel'>. Was classcell propagated to type.new?