salopensource / sal

Modular reporting for Endpoints
Apache License 2.0
212 stars 64 forks source link

ERROR [django.request:228] Internal Server Error: /checkin/ #416

Closed tpegues2 closed 3 years ago

tpegues2 commented 3 years ago

We've been getting Internal Server Errors in my /var/log/messages in my Linux 8 environment.
A clear and concise description of what the bug is.

To Reproduce It seems to occur as machines check into the environment but it doesn't happen for all the machines that do the checkin but only certain ones as the error occurs randomly.

Expected behavior I would expect that these errors would not appear as they have not occurred in the past.

Screenshots If applicable, add screenshots to help explain your problem. Feb 14 03:17:58 onemorething gunicorn: [14/Feb/2021 03:17:58] ERROR [django.request:228] Internal Server Error: /checkin/ Feb 14 03:17:58 onemorething gunicorn: Traceback (most recent call last): Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner Feb 14 03:17:58 onemorething gunicorn: response = get_response(request) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response Feb 14 03:17:58 onemorething gunicorn: response = self.process_exception_by_middleware(e, request) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response Feb 14 03:17:58 onemorething gunicorn: response = wrapped_callback(request, *callback_args, callback_kwargs) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view Feb 14 03:17:58 onemorething gunicorn: return view_func(*args, *kwargs) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/lib/python3.6/site-packages/django/views/decorators/http.py", line 40, in inner Feb 14 03:17:58 onemorething gunicorn: return func(request, args, kwargs) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/sal/sal/decorators.py", line 169, in wrap Feb 14 03:17:58 onemorething gunicorn: return function(request, *args, **kwargs) Feb 14 03:17:58 onemorething gunicorn: File "/srv/saluser/sal_env/sal/server/non_ui_views.py", line 283, in checkin Feb 14 03:17:58 onemorething gunicorn: MachineGroup, key=submission["Sal"]["extra_data"].get("key") Feb 14 03:17:58 onemorething gunicorn: KeyError: 'Sal'

Server (please complete the following information):

Client (please complete the following information):

Additional context Add any other context about the problem here.

If possible, please replicate the issue while Sal is in debug mode. Only happens in our production environment but not in our test environment.

grahamgilbert commented 3 years ago

Are your clients running an out of date client scripts version?

tpegues2 commented 3 years ago

I will validate with the client team and let you know.

From: Graham Gilbert notifications@github.com Reply-To: salopensource/sal reply@reply.github.com Date: Friday, February 19, 2021 at 10:13 AM To: salopensource/sal sal@noreply.github.com Cc: Tharrow Pegues tpegues2@kennesaw.edu, Author author@noreply.github.com Subject: [EXTERNAL] Re: [salopensource/sal] ERROR [django.request:228] Internal Server Error: /checkin/ (#416)

Are your clients running an out of date client scripts version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/salopensource/sal/issues/416#issuecomment-782136011, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKCBRHXOXIKZYZYEVTLLALLS7Z5YZANCNFSM4X4OKG5A.

CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links or opening attachments. If you suspect the message is fraudulent, contact the UITS Service Desk at 470-578-6999 or service@kennesaw.edumailto:servicedesk@kennesaw.edu.

tpegues2 commented 3 years ago

There some clients that are out of date but the latest version is installed once they check in. Could this be what I am seeing in the error logs?

From: Graham Gilbert notifications@github.com Reply-To: salopensource/sal reply@reply.github.com Date: Friday, February 19, 2021 at 10:13 AM To: salopensource/sal sal@noreply.github.com Cc: Tharrow Pegues tpegues2@kennesaw.edu, Author author@noreply.github.com Subject: [EXTERNAL] Re: [salopensource/sal] ERROR [django.request:228] Internal Server Error: /checkin/ (#416)

Are your clients running an out of date client scripts version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/salopensource/sal/issues/416#issuecomment-782136011, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKCBRHXOXIKZYZYEVTLLALLS7Z5YZANCNFSM4X4OKG5A.

CAUTION: This email originated from outside of KSU. Use caution replying or supplying information, clicking links or opening attachments. If you suspect the message is fraudulent, contact the UITS Service Desk at 470-578-6999 or service@kennesaw.edumailto:servicedesk@kennesaw.edu.

grahamgilbert commented 3 years ago

Yes, that would be my guess.

grahamgilbert commented 3 years ago

Closing due to inactivity.