Skip to content

Instantly share code, notes, and snippets.

Created June 14, 2017 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/381d04a7e5d2854c7a705f2eea3341ca to your computer and use it in GitHub Desktop.
Save anonymous/381d04a7e5d2854c7a705f2eea3341ca to your computer and use it in GitHub Desktop.
Salt stack django auth salt.auth.django error
tail /var/log/apache2/error.log
[Wed Jun 14 07:08:49.050002 2017] [wsgi:error] [pid 28803:tid 140270695847680] Traceback (most recent call last):
[Wed Jun 14 07:08:49.050006 2017] [wsgi:error] [pid 28803:tid 140270695847680] File "/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py", line 149, in get_response
[Wed Jun 14 07:08:49.050010 2017] [wsgi:error] [pid 28803:tid 140270695847680] response = self.process_exception_by_middleware(e, request)
[Wed Jun 14 07:08:49.050014 2017] [wsgi:error] [pid 28803:tid 140270695847680] File "/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py", line 147, in get_response
[Wed Jun 14 07:08:49.050017 2017] [wsgi:error] [pid 28803:tid 140270695847680] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Jun 14 07:08:49.050020 2017] [wsgi:error] [pid 28803:tid 140270695847680] File "/var/www/html/portrait/all_minions/views.py", line 41, in all_minions
[Wed Jun 14 07:08:49.050024 2017] [wsgi:error] [pid 28803:tid 140270695847680] salt.auth.django.django_auth_setup()
[Wed Jun 14 07:08:49.050027 2017] [wsgi:error] [pid 28803:tid 140270695847680] File "/usr/local/lib/python2.7/dist-packages/salt/auth/django.py", line 93, in django_auth_setup
[Wed Jun 14 07:08:49.050030 2017] [wsgi:error] [pid 28803:tid 140270695847680] if '^model' in __opts__['external_auth']['django']:
[Wed Jun 14 07:08:49.050033 2017] [wsgi:error] [pid 28803:tid 140270695847680] NameError: global name '__opts__' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment