Nowe posty

Autor Wątek: Problem z oprogramowaniem NetBox  (Przeczytany 183 razy)

Offline spilip

  • Nowy na forum
  • *
  • Wiadomości: 1
    • Zobacz profil
Problem z oprogramowaniem NetBox
« dnia: 2021-05-12, 06:45:53 »
Witajcie. Z linuxem mialem do tej pory niewiele do czynienia i prosze o wsparcie doswiadczonych kolegow. Otoz mam serwer na ktorym zainstalowane jest oprogramowanie NetBox (do zarzadzania adresami IP itp.). Kiedy zresetuje ta usluge lub caly serwer interfejs tego softu jest nie osiagalny. W logach syslog znalazlem to:
May 12 04:41:25 srv-netbox gunicorn[1098695]: [2021-05-12 06:41:25 +0200] [1098695] [ERROR] Error handling request /
May 12 04:41:25 srv-netbox gunicorn[1098695]: Traceback (most recent call last):
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 271, in handle
May 12 04:41:25 srv-netbox gunicorn[1098695]:     keepalive = self.handle_request(req, conn)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 320, in handle_request
May 12 04:41:25 srv-netbox gunicorn[1098695]:     respiter = self.wsgi(environ, resp.start_response)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
May 12 04:41:25 srv-netbox gunicorn[1098695]:     response = self.get_response(request)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 128, in get_response
May 12 04:41:25 srv-netbox gunicorn[1098695]:     response = self._middleware_chain(request)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 49, in inner
May 12 04:41:25 srv-netbox gunicorn[1098695]:     response = response_for_exception(request, exc)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 103, in response>
May 12 04:41:25 srv-netbox gunicorn[1098695]:     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 141, in handle_u>
May 12 04:41:25 srv-netbox gunicorn[1098695]:     callback, param_dict = resolver.resolve_error_handler(500)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 602, in resolve_error_han>
May 12 04:41:25 srv-netbox gunicorn[1098695]:     callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
May 12 04:41:25 srv-netbox gunicorn[1098695]:     res = instance.__dict__[self.name] = self.func(instance)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
May 12 04:41:25 srv-netbox gunicorn[1098695]:     return import_module(self.urlconf_name)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
May 12 04:41:25 srv-netbox gunicorn[1098695]:     return _bootstrap._gcd_import(name[level:], package, level)
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/netbox/netbox/urls.py", line 9, in <module>
May 12 04:41:25 srv-netbox gunicorn[1098695]:     from netbox.views import APIRootView, HomeView, StaticMediaFailureView, SearchView
May 12 04:41:25 srv-netbox gunicorn[1098695]:   File "/opt/netbox/netbox/netbox/views.py", line 34, in <module>
May 12 04:41:25 srv-netbox gunicorn[1098695]:     from secrets.filters import SecretFilterSet
May 12 04:41:25 srv-netbox gunicorn[1098695]: ModuleNotFoundError: No module named 'secrets.filters'; 'secrets' is not a package
May 12 04:41:26 srv-netbox gunicorn[1098695]: [2021-05-12 06:41:26 +0200] [1098695] [ERROR] Error handling request /
May 12 04:41:25 srv-netbox gunicorn[1098695]: ModuleNotFoundError: No module named 'secrets.filters'; 'secrets' is not a package
May 12 04:41:26 srv-netbox gunicorn[1098695]: [2021-05-12 06:41:26 +0200] [1098695] [ERROR] Error handling request /
May 12 04:41:26 srv-netbox gunicorn[1098695]: Traceback (most recent call last):
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 271, in handle
May 12 04:41:26 srv-netbox gunicorn[1098695]:     keepalive = self.handle_request(req, conn)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 320, in handle_request
May 12 04:41:26 srv-netbox gunicorn[1098695]:     respiter = self.wsgi(environ, resp.start_response)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
May 12 04:41:26 srv-netbox gunicorn[1098695]:     response = self.get_response(request)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 128, in get_response
May 12 04:41:26 srv-netbox gunicorn[1098695]:     response = self._middleware_chain(request)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 49, in inner
May 12 04:41:26 srv-netbox gunicorn[1098695]:     response = response_for_exception(request, exc)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 103, in response>
May 12 04:41:26 srv-netbox gunicorn[1098695]:     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 141, in handle_u>
May 12 04:41:26 srv-netbox gunicorn[1098695]:     callback, param_dict = resolver.resolve_error_handler(500)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 602, in resolve_error_han>
May 12 04:41:26 srv-netbox gunicorn[1098695]:     callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
May 12 04:41:26 srv-netbox gunicorn[1098695]:     res = instance.__dict__[self.name] = self.func(instance)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
May 12 04:41:26 srv-netbox gunicorn[1098695]:     return import_module(self.urlconf_name)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
May 12 04:41:26 srv-netbox gunicorn[1098695]:     return _bootstrap._gcd_import(name[level:], package, level)
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/netbox/netbox/urls.py", line 9, in <module>
May 12 04:41:26 srv-netbox gunicorn[1098695]:     from netbox.views import APIRootView, HomeView, StaticMediaFailureView, SearchView
May 12 04:41:26 srv-netbox gunicorn[1098695]:   File "/opt/netbox/netbox/netbox/views.py", line 34, in <module>
May 12 04:41:26 srv-netbox gunicorn[1098695]:     from secrets.filters import SecretFilterSet
May 12 04:41:26 srv-netbox gunicorn[1098695]: ModuleNotFoundError: No module named 'secrets.filters'; 'secrets' is not a package
May 12 04:41:26 srv-netbox gunicorn[1098696]: [2021-05-12 06:41:26 +0200] [1098696] [ERROR] Error handling request /
May 12 04:41:26 srv-netbox gunicorn[1098696]: Traceback (most recent call last):
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 271, in handle
May 12 04:41:26 srv-netbox gunicorn[1098696]:     keepalive = self.handle_request(req, conn)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 320, in handle_request
May 12 04:41:26 srv-netbox gunicorn[1098696]:     respiter = self.wsgi(environ, resp.start_response)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
May 12 04:41:26 srv-netbox gunicorn[1098696]:     response = self.get_response(request)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 128, in get_response
May 12 04:41:26 srv-netbox gunicorn[1098696]:     response = self._middleware_chain(request)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 49, in inner
May 12 04:41:26 srv-netbox gunicorn[1098696]:     response = response_for_exception(request, exc)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 103, in response>
May 12 04:41:26 srv-netbox gunicorn[1098696]:     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 141, in handle_u>
May 12 04:41:26 srv-netbox gunicorn[1098696]:     callback, param_dict = resolver.resolve_error_handler(500)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 602, in resolve_error_han>
May 12 04:41:26 srv-netbox gunicorn[1098696]:     callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
May 12 04:41:26 srv-netbox gunicorn[1098696]:     res = instance.__dict__[self.name] = self.func(instance)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/venv/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
May 12 04:41:26 srv-netbox gunicorn[1098696]:     return import_module(self.urlconf_name)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
May 12 04:41:26 srv-netbox gunicorn[1098696]:     return _bootstrap._gcd_import(name[level:], package, level)
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/netbox/netbox/urls.py", line 9, in <module>
May 12 04:41:26 srv-netbox gunicorn[1098696]:     from netbox.views import APIRootView, HomeView, StaticMediaFailureView, SearchView
May 12 04:41:26 srv-netbox gunicorn[1098696]:   File "/opt/netbox/netbox/netbox/views.py", line 34, in <module>
May 12 04:41:26 srv-netbox gunicorn[1098696]:     from secrets.filters import SecretFilterSet
May 12 04:41:26 srv-netbox gunicorn[1098696]: ModuleNotFoundError: No module named 'secrets.filters'; 'secrets' is not a package
May 12 04:41:28 srv-netbox gunicorn[1098693]: [2021-05-12 06:41:28 +0200] [1098693] [ERROR] Error handling request /
May 12 04:41:28 srv-netbox gunicorn[1098693]: Traceback (most recent call last):



Ja z tego rozumiem, ze brakuje jakiegos modulu python-a 'secrets.filters'. Szukajac w sieci takiego modulu nie znalazlem. Czy moglibyscie mi pomoc rozwiazac ten problem? Z gory dziekuje.

Offline robson75

  • Users
  • Stały bywalec
  • ***
  • Wiadomości: 229
    • Zobacz profil
Odp: Problem z oprogramowaniem NetBox
« Odpowiedź #1 dnia: 2021-05-12, 12:24:35 »
Być może że chodzi o python-django-filter, tu masz listę jakich paczek potrzebuje netbox https://aur.archlinux.org/packages/netbox
Arch Linux Xfce+compiz - 64Bit Linux User #621110
anarchyinstaller