Open mobidevadmin opened 6 years ago
It looks like you have an outdated version of python-elasticsearch module, you can try to upgrade with:
pip install --upgrade requirements.txt
Hi,
It's all was done beforehand. Didn't help.
Then it is probably an issue with the installation: the "No module named exceptions" indicates that the elasticsearch module was found, but not the exceptions.py file it should contain. A few things can be checked:
Thank you for the hints.
Could you please elaborate on how I can check this steps?
I'd like to add that version 1.1.7 works
In /opt/scirius/rules/views.py, insert line 26 (just before the line that triggered the initial exception):
import elasticsearch
raise Exception('elasticsearch path: %s' % elasticsearch.__file__)
This will show what elasticsearch library is used. Revert it when done. :) Hope it helps.
This is what I received as a result:
Environment:
Request Method: GET
Request URL: http://192.168.0.5:9090/accounts/login/
Django Version: 1.8
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_tables2',
'bootstrap3',
'dbbackup',
'rules',
'suricata',
'accounts')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'scirius.loginrequired.LoginRequiredMiddleware',
'scirius.utils.TimezoneMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
119. resolver_match = resolver.resolve(request.path_info)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
366. for pattern in self.url_patterns:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in url_patterns
402. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in urlconf_module
396. self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/opt/scirius_backup/scirius/urls.py" in <module>
7. url(r'^rules/', include('rules.urls')),
File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py" in include
33. urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/opt/scirius_backup/rules/urls.py" in <module>
23. from rules import views
File "/opt/scirius_backup/rules/views.py" in <module>
27. raise Exception('elasticsearch ptah: %s' % elasticsearch__file__)
Exception Type: NameError at /accounts/login/
Exception Value: name 'elasticsearch__file__' is not defined
Can you try the latest source now? There were quite some new updates.
Hello, After upgrade to the recent available scirius version in git repository, I've been experiencing this error message while accessing web interface:
GET /accounts/login/ HTTP/1.1" 500
the run log from CLI is:
Webbrowser (Firefox) shows this: