Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Error reported when access the jobs list page #13

Open
liuyq opened this issue Jun 17, 2021 · 1 comment
Open

500 Internal Error reported when access the jobs list page #13

liuyq opened this issue Jun 17, 2021 · 1 comment

Comments

@liuyq
Copy link
Collaborator

liuyq commented Jun 17, 2021

In the log file, following error was reported:
[15/Jun/2021 10:24:27.032] ERROR [django.request:135] Internal Server Error: /lkft/jobs/
Traceback (most recent call last):
File "/android/django_postgres/workspace-python3/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/android/django_postgres/workspace-python3/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/android/django_postgres/workspace-python3/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/android/django_postgres/lcr-report/lkft/views.py", line 1690, in list_jobs
test_case_res = TestCase.objects.get(job_id=job_id, lava_nick=lava_nick, suite__endswith='
%s' % test_suite, name=test_case)
File "/android/django_postgres/workspace-python3/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/android/django_postgres/workspace-python3/lib/python3.6/site-packages/django/db/models/query.py", line 384, in get
(self.model._meta.object_name, num)
lkft.models.MultipleObjectsReturned: get() returned more than one TestCase -- it returned 2!

@liuyq
Copy link
Collaborator Author

liuyq commented Jun 17, 2021

Currently still not sure the root cause of this problem, it could be worked around manually by making the result for the job fetched again.
I am thinking to show some message for this error and give a link with fetch_latest to have it resolved automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant