Closed VN1977 closed 5 years ago
Hi! I have updated all packages recently using apt-get update && apt-get dist-upgrade and after this operation can not open web. Error at web is
apt-get update && apt-get dist-upgrade
Request Method: | GET -- | -- https://ids01.domain.local/accounts/login/ 1.11.15 AttributeError 'Settings' object has no attribute 'MOLOCH_URL' /usr/share/python/scirius/lib/python2.7/site-packages/django/conf/__init__.py in __getattr__, line 57 /usr/bin/python 2.7.13 ['/usr/share/python/scirius/lib/python2.7/site-packages/git/ext/gitdb', '/usr/share/python/scirius/lib/python2.7/site-packages', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/share/python/scirius/lib/python2.7/site-packages/gitdb/ext/smmap'] Mon, 11 Mar 2019 09:18:31 +0000
Environment:
Request Method: GET Request URL: https://ids01.domain.local/accounts/login/ Django Version: 1.11.15 Python Version: 2.7.13 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_tables2', 'bootstrap3', 'dbbackup', 'viz', 'rules', 'suricata', 'accounts', 'rest_framework', 'rest_framework.authtoken', 'django_filters', 'webpack_loader', 'revproxy') Installed Middleware: ['django.middleware.security.SecurityMiddleware', '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/share/python/scirius/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/usr/share/python/scirius/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 172. resolver_match = resolver.resolve(request.path_info) File "/usr/share/python/scirius/lib/python2.7/site-packages/django/urls/resolvers.py" in resolve 364. for pattern in self.url_patterns: File "/usr/share/python/scirius/lib/python2.7/site-packages/django/utils/functional.py" in __get__ 35. res = instance.__dict__[self.name] = self.func(instance) File "/usr/share/python/scirius/lib/python2.7/site-packages/django/urls/resolvers.py" in url_patterns 407. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/share/python/scirius/lib/python2.7/site-packages/django/utils/functional.py" in __get__ 35. res = instance.__dict__[self.name] = self.func(instance) File "/usr/share/python/scirius/lib/python2.7/site-packages/django/urls/resolvers.py" in urlconf_module 400. return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py" in import_module 37. __import__(name) File "/usr/share/python/scirius/lib/python2.7/site-packages/scirius/urls.py" in <module> 4. from views import homepage, KibanaProxyView, EveboxProxyView, MolochProxyView File "/usr/share/python/scirius/lib/python2.7/site-packages/scirius/views.py" in <module> 47. class MolochProxyView(ProxyView): File "/usr/share/python/scirius/lib/python2.7/site-packages/scirius/views.py" in MolochProxyView 48. upstream = settings.MOLOCH_URL File "/usr/share/python/scirius/lib/python2.7/site-packages/django/conf/__init__.py" in __getattr__ 57. val = getattr(self._wrapped, name) Exception Type: AttributeError at /accounts/login/ Exception Value: 'Settings' object has no attribute 'MOLOCH_URL'
How to resolve the problem?
Solved after reboot
Hi! I have updated all packages recently using
apt-get update && apt-get dist-upgrade
and after this operation can not open web. Error at web isEnvironment:
Traceback:
How to resolve the problem?