On Premises Web Server Error


#1

After loggin to Web Server , I am getting Web Server (500) error. below is my ///var/log/openalpr/web.log

ARNING 2019-10-21 15:41:10,088 /usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/base.py:get_response:152 24960 140309950329440 Not Found: /account/login/api/accountinfo
ERROR 2019-10-22 10:41:44,846 /usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/exception.py:handle_uncaught_exception:135 8880 139772936668008 Internal Server Error: /account/login/
Traceback (most recent call last):
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/auth/views.py”, line 54, in inner
return func(*args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/auth/views.py”, line 150, in login
)(request)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 67, in _wrapper
return bound_func(*args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/views/decorators/debug.py”, line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 63, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 67, in _wrapper
return bound_func(*args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 63, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 67, in _wrapper
return bound_func(*args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/views/decorators/cache.py”, line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 63, in bound_func
return func.get(self, type(self))(*args2, **kwargs2)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/auth/views.py”, line 90, in dispatch
return super(LoginView, self).dispatch(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/views/generic/base.py”, line 88, in dispatch
return handler(request, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/views/generic/edit.py”, line 183, in post
return self.form_valid(form)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/auth/views.py”, line 119, in form_valid
auth_login(self.request, form.get_user())
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/auth/init.py”, line 140, in login
request.session.cycle_key()
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py”, line 311, in cycle_key
self.create()
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py”, line 50, in create
self._session_key = self._get_new_session_key()
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py”, line 164, in _get_new_session_key
if not self.exists(session_key):
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/contrib/sessions/backends/cached_db.py”, line 58, in exists
if session_key and (self.cache_key_prefix + session_key) in self._cache:
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/django/core/cache/backends/base.py”, line 203, in contains
return self.has_key(key)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/redis_cache/backends/base.py”, line 30, in wrapped
return method(self, client, key, *args, **kwargs)
File “/usr/share/openalpr-web/venv/lib/python2.7/site-packages/redis_cache/backends/base.py”, line 367, in has_key
return client.exists(key)


#2

I found I would get that if I left open the configuration of the agent open in a browser window somewhere… Had to reboot to fix it. I would be looking at the framerate of analytics or something and would leave that browser open and would start getting the 500 server error.


#3

I haven’t seen that error before. What version of the software are you running? If you haven’t upgraded lately, you can get the latest version with:
bash <(curl https://deb.openalpr.com/install)
and choose “Upgrade Software”