You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this HTTP 500 Internal Server Error when querying comments on bodhi.fedoraproject.org:
500 Internal Server Error
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyramid_mako/init.py", line 148, in call result = template.render_unicode(**system) File "/usr/lib/python3.8/site-packages/mako/template.py", line 481, in render_unicode return runtime._render( File "/usr/lib/python3.8/site-packages/mako/runtime.py", line 878, in _render _render_context( File "/usr/lib/python3.8/site-packages/mako/runtime.py", line 920, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/usr/lib/python3.8/site-packages/mako/runtime.py", line 947, in exec_template callable(context, *args, **kwargs) File "master_html", line 132, in render_body File "/usr/local/lib/python3.8/site-packages/bodhi/server/templates/comments.html", line 44, in render_body ${fragments.comment(comment)} File "fragments_html", line 174, in render_comment AttributeError: 'NoneType' object has no attribute 'get_url'
Looks like there are some invalid Comment objects in the bodhi database, where a field that should be NOT NULL is NULL.
As far as I can tell, the page numbers (when querying with rows_per_page=5) that trigger this issue are 1136, 1138, 1141, 1142, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1183, 1184, 1188, and 1190. That does not pinpoint the problematic comments exactly, but should get you close to what's wrong.
The text was updated successfully, but these errors were encountered:
It looks like we have a bunch of comments that are not assigned to their update object:
>>> com = m.Comment.query.filter_by(update=None).all()
>>> len(com)
54
(that's from my vagrant Bodhi, the latest database dump seems to be 3 weeks old)
This is something that must not happen. Maybe we should drop the buggy comments and set the update_id column in the comments table to be not nullable, since it already has index=True set.
I'm getting this HTTP 500 Internal Server Error when querying comments on bodhi.fedoraproject.org:
Looks like there are some invalid Comment objects in the bodhi database, where a field that should be NOT NULL is NULL.
For example: https://bodhi.fedoraproject.org/comments/?rows_per_page=5&page=1136
As far as I can tell, the page numbers (when querying with
rows_per_page=5
) that trigger this issue are 1136, 1138, 1141, 1142, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1183, 1184, 1188, and 1190. That does not pinpoint the problematic comments exactly, but should get you close to what's wrong.The text was updated successfully, but these errors were encountered: