The following old pull-request returns Fatal Error (500): https://pagure.io/workstation-ostree-config/pull-request/109
It's five years old so at this point we don't strictly need the content but fixing it or closing it would be appreciated. If the history could be preserved that would be great but not critical.
Thanks.
No ETA, it's been like that for a while already.
Was initially filed in https://pagure.io/pagure/issue/5443
Metadata Update from @zlopez: - Issue priority set to: Waiting on Assignee (was: Needs Review) - Issue tagged with: low-gain, medium-trouble, ops
Metadata Update from @zlopez: - Issue assigned to zlopez
It seems that the issue here is in generating the page from jinja template. Here is the full error
[Fri Jan 26 11:18:12.204348 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] 2024-01-26 11:18:12,203 [ERROR] pagure.ui.filters: Failed to get stats on a patch [Fri Jan 26 11:18:12.204414 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] Traceback (most recent call last): [Fri Jan 26 11:18:12.204437 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/filters.py", line 846, in get_patch_stats [Fri Jan 26 11:18:12.204441 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] output = pagure.lib.git.get_stats_patch(patch) [Fri Jan 26 11:18:12.204444 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/lib/git.py", line 2997, in get_stats_patch [Fri Jan 26 11:18:12.204447 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] "Unable to properly retrieve the stats for this patch" [Fri Jan 26 11:18:12.204452 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] pagure.exceptions.PagureException: Unable to properly retrieve the stats for this patch [Fri Jan 26 11:18:12.204459 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [Fri Jan 26 11:18:12.339735 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] 2024-01-26 11:18:12,203 [ERROR] pagure.ui.filters: Failed to get stats on a patch [Fri Jan 26 11:18:12.339798 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] Traceback (most recent call last): [Fri Jan 26 11:18:12.339805 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/filters.py", line 846, in get_patch_stats [Fri Jan 26 11:18:12.339809 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] output = pagure.lib.git.get_stats_patch(patch) [Fri Jan 26 11:18:12.339813 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/lib/git.py", line 2997, in get_stats_patch [Fri Jan 26 11:18:12.339817 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] "Unable to properly retrieve the stats for this patch" [Fri Jan 26 11:18:12.339823 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] pagure.exceptions.PagureException: Unable to properly retrieve the stats for this patch [Fri Jan 26 11:18:12.339839 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [Fri Jan 26 11:18:12.405931 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [2024-01-26 11:18:12,404] ERROR in app: Exception on /workstation-ostree-config/pull-request/109 [GET] [Fri Jan 26 11:18:12.406013 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] Traceback (most recent call last): [Fri Jan 26 11:18:12.406024 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app [Fri Jan 26 11:18:12.406028 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] response = self.full_dispatch_request() [Fri Jan 26 11:18:12.406033 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request [Fri Jan 26 11:18:12.406036 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.handle_user_exception(e) [Fri Jan 26 11:18:12.406040 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception [Fri Jan 26 11:18:12.406055 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.406058 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise [Fri Jan 26 11:18:12.406061 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value [Fri Jan 26 11:18:12.406064 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request [Fri Jan 26 11:18:12.406068 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.dispatch_request() [Fri Jan 26 11:18:12.406071 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request [Fri Jan 26 11:18:12.406075 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.view_functions[rule.endpoint](**req.view_args) [Fri Jan 26 11:18:12.406078 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/fork.py", line 376, in request_pull [Fri Jan 26 11:18:12.406081 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] warning_characters=warning_characters, [Fri Jan 26 11:18:12.406085 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 134, in render_template [Fri Jan 26 11:18:12.406107 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] context, ctx.app) [Fri Jan 26 11:18:12.406113 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 116, in _render [Fri Jan 26 11:18:12.406116 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = template.render(context) [Fri Jan 26 11:18:12.406119 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render [Fri Jan 26 11:18:12.406123 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return original_render(self, *args, **kwargs) [Fri Jan 26 11:18:12.406127 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render [Fri Jan 26 11:18:12.406130 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.environment.handle_exception(exc_info, True) [Fri Jan 26 11:18:12.406133 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception [Fri Jan 26 11:18:12.406137 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.406140 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise [Fri Jan 26 11:18:12.406144 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value.with_traceback(tb) [Fri Jan 26 11:18:12.406148 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 12, in top-level template code [Fri Jan 26 11:18:12.406151 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.406155 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 27, in top-level template code [Fri Jan 26 11:18:12.406160 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.406163 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/master.html", line 167, in top-level template code [Fri Jan 26 11:18:12.406167 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block content %}{% endblock %} [Fri Jan 26 11:18:12.406175 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 289, in block "content" [Fri Jan 26 11:18:12.406179 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block repo %} [Fri Jan 26 11:18:12.406183 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 377, in block "repo" [Fri Jan 26 11:18:12.406187 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{repo_renderdiff(diff=diff, [Fri Jan 26 11:18:12.406190 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke [Fri Jan 26 11:18:12.406194 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self._func(*arguments) [Fri Jan 26 11:18:12.406204 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/_repo_renderdiff.html", line 162, in template [Fri Jan 26 11:18:12.406209 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{ patch | patch_to_diff | format_loc( [Fri Jan 26 11:18:12.406213 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/filters.py", line 144, in format_loc [Fri Jan 26 11:18:12.406216 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] if hasattr(commit_hash, "hex"): [Fri Jan 26 11:18:12.406222 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'new_id' [Fri Jan 26 11:18:12.406241 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [Fri Jan 26 11:18:12.406653 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] 2024-01-26 11:18:12,406 [ERROR] pagure.flask_app: Error while processing request [Fri Jan 26 11:18:12.406675 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] Traceback (most recent call last): [Fri Jan 26 11:18:12.406680 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app [Fri Jan 26 11:18:12.406684 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] response = self.full_dispatch_request() [Fri Jan 26 11:18:12.406688 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request [Fri Jan 26 11:18:12.406692 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.handle_user_exception(e) [Fri Jan 26 11:18:12.406695 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception [Fri Jan 26 11:18:12.406699 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.406702 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise [Fri Jan 26 11:18:12.406706 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value [Fri Jan 26 11:18:12.406712 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request [Fri Jan 26 11:18:12.406718 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.dispatch_request() [Fri Jan 26 11:18:12.406722 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request [Fri Jan 26 11:18:12.406729 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.view_functions[rule.endpoint](**req.view_args) [Fri Jan 26 11:18:12.406733 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/fork.py", line 376, in request_pull [Fri Jan 26 11:18:12.406736 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] warning_characters=warning_characters, [Fri Jan 26 11:18:12.406740 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 134, in render_template [Fri Jan 26 11:18:12.406743 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] context, ctx.app) [Fri Jan 26 11:18:12.406751 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 116, in _render [Fri Jan 26 11:18:12.406756 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = template.render(context) [Fri Jan 26 11:18:12.406759 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render [Fri Jan 26 11:18:12.406763 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return original_render(self, *args, **kwargs) [Fri Jan 26 11:18:12.406767 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render [Fri Jan 26 11:18:12.406771 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.environment.handle_exception(exc_info, True) [Fri Jan 26 11:18:12.406774 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception [Fri Jan 26 11:18:12.406779 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.406782 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise [Fri Jan 26 11:18:12.406785 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value.with_traceback(tb) [Fri Jan 26 11:18:12.406789 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 12, in top-level template code [Fri Jan 26 11:18:12.406792 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.406796 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 27, in top-level template code [Fri Jan 26 11:18:12.406799 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.406802 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/master.html", line 167, in top-level template code [Fri Jan 26 11:18:12.406806 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block content %}{% endblock %} [Fri Jan 26 11:18:12.406809 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 289, in block "content" [Fri Jan 26 11:18:12.406816 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block repo %} [Fri Jan 26 11:18:12.406842 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 377, in block "repo" [Fri Jan 26 11:18:12.406847 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{repo_renderdiff(diff=diff, [Fri Jan 26 11:18:12.406851 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke [Fri Jan 26 11:18:12.406854 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self._func(*arguments) [Fri Jan 26 11:18:12.406857 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/_repo_renderdiff.html", line 162, in template [Fri Jan 26 11:18:12.406863 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{ patch | patch_to_diff | format_loc( [Fri Jan 26 11:18:12.406867 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/filters.py", line 144, in format_loc [Fri Jan 26 11:18:12.406871 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] if hasattr(commit_hash, "hex"): [Fri Jan 26 11:18:12.406876 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'new_id' [Fri Jan 26 11:18:12.406883 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [Fri Jan 26 11:18:12.450056 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] [2024-01-26 11:18:12,406] ERROR in flask_app: Error while processing request [Fri Jan 26 11:18:12.450122 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] Traceback (most recent call last): [Fri Jan 26 11:18:12.450130 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app [Fri Jan 26 11:18:12.450134 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] response = self.full_dispatch_request() [Fri Jan 26 11:18:12.450138 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request Fri Jan 26 11:18:12.450141 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.handle_user_exception(e) [Fri Jan 26 11:18:12.450145 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception [Fri Jan 26 11:18:12.450155 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.450158 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise [Fri Jan 26 11:18:12.450161 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value [Fri Jan 26 11:18:12.450255 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request [Fri Jan 26 11:18:12.450263 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self.dispatch_request() [Fri Jan 26 11:18:12.450267 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request [Fri Jan 26 11:18:12.450271 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.view_functions[rule.endpoint](**req.view_args) [Fri Jan 26 11:18:12.450278 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/fork.py", line 376, in request_pull [Fri Jan 26 11:18:12.450282 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] warning_characters=warning_characters, [Fri Jan 26 11:18:12.450285 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 134, in render_template [Fri Jan 26 11:18:12.450288 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] context, ctx.app) [Fri Jan 26 11:18:12.450291 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/flask/templating.py", line 116, in _render [Fri Jan 26 11:18:12.450302 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = template.render(context) [Fri Jan 26 11:18:12.450306 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render [Fri Jan 26 11:18:12.450310 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return original_render(self, *args, **kwargs) [Fri Jan 26 11:18:12.450313 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render [Fri Jan 26 11:18:12.450316 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] return self.environment.handle_exception(exc_info, True) [Fri Jan 26 11:18:12.450319 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception [Fri Jan 26 11:18:12.450323 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] reraise(exc_type, exc_value, tb) [Fri Jan 26 11:18:12.450328 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise [Fri Jan 26 11:18:12.450333 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] raise value.with_traceback(tb) [Fri Jan 26 11:18:12.450336 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 12, in top-level template code [Fri Jan 26 11:18:12.450340 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.450343 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 27, in top-level template code [Fri Jan 26 11:18:12.450347 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% set tag = "home" %} [Fri Jan 26 11:18:12.450350 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/master.html", line 167, in top-level template code [Fri Jan 26 11:18:12.450353 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block content %}{% endblock %} [Fri Jan 26 11:18:12.450359 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_master.html", line 289, in block "content" [Fri Jan 26 11:18:12.450363 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {% block repo %} [Fri Jan 26 11:18:12.450366 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/repo_pull_request.html", line 377, in block "repo" [Fri Jan 26 11:18:12.450369 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{repo_renderdiff(diff=diff, [Fri Jan 26 11:18:12.450372 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/jinja2/runtime.py", line 579, in _invoke [Fri Jan 26 11:18:12.450376 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] rv = self._func(*arguments) [Fri Jan 26 11:18:12.450382 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/templates/_repo_renderdiff.html", line 162, in template [Fri Jan 26 11:18:12.450386 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] {{ patch | patch_to_diff | format_loc( [Fri Jan 26 11:18:12.450395 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] File "/usr/lib/python3.6/site-packages/pagure/ui/filters.py", line 144, in format_loc [Fri Jan 26 11:18:12.450399 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] if hasattr(commit_hash, "hex"): [Fri Jan 26 11:18:12.450406 2024] [wsgi:error] [pid 1383271:tid 140585552418560] [remote 185.16.81.132:38280] jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'new_id'
Looking at the pull requests on pagure02 it looks like /srv/git/repositories/workstation-ostree-config.git/refs/pull/109 is empty. That is probably causing the error, now I need to find way how to remove the pull request or at least close it.
/srv/git/repositories/workstation-ostree-config.git/refs/pull/109
The PR is now deleted I needed to remove it from requests repository and from database as well.
requests
Metadata Update from @zlopez: - Issue close_status updated to: Fixed with Explanation - Issue status updated to: Closed (was: Open)
Thanks!
Log in to comment on this ticket.