MBS frontend crashes (returns internal server error) when trying to list some modules.
Reproducer:
curl 'https://mbs.fedoraproject.org/module-build-service/1/module-builds/?name=platform&per_page=100'
Actual result: 500 Internal Server Error
Relevant traceback from httpd error log:
ERROR:MBS.utils.submit:The modulemd is invalid. Please verify the syntax is correct. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/module_build_service/utils/submit.py", line 930, in load_mmd mmd = Modulemd.Module().new_from_string(yaml) TypeError: constructor returned NULL ERROR:MBS.models:An error occurred while trying to parse the modulemd Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/module_build_service/models.py", line 496, in mmd return load_mmd(self.modulemd) File "/usr/lib/python2.7/site-packages/module_build_service/utils/submit.py", line 947, in load_mmd raise UnprocessableEntity(error) UnprocessableEntity: The modulemd is invalid. Please verify the syntax is correct. ERROR:module_build_service:Exception on /module-build-service/1/module-builds/ [GET] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/lib/python2.7/site-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, **kwargs) File "/usr/lib/python2.7/site-packages/flask/views.py", line 149, in dispatch_request return meth(*args, **kwargs) File "/usr/lib/python2.7/site-packages/module_build_service/utils/views.py", line 409, in wrapper rv = func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/module_build_service/utils/views.py", line 437, in wrapper return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/module_build_service/views.py", line 123, in get getattr(item, json_func_name)(**json_func_kwargs) for item in p_query.items File "/usr/lib/python2.7/site-packages/module_build_service/models.py", line 802, in json mmd = self.mmd() File "/usr/lib/python2.7/site-packages/module_build_service/models.py", line 499, in mmd raise ValueError("Invalid modulemd") ValueError: Invalid modulemd
Attached full <img alt="error log" src="/fedora-infrastructure/issue/raw/files/7510df0781c55a365cdb44bed102f8b2d09277cfe80da8b7f02116cd2fb1d8ca-mbs-error.log" />
It turned out to be invalid modulemd in MBS database. I've hotfixed MBS database as suggested by @jkaluza and the issue is gone now. <img alt="mbs-hotfix.sql" src="/fedora-infrastructure/issue/raw/files/5fdc6178cde9d14e48f42151ef0368a1c1fa29d5069ac4c7bb335090767c2c1e-mbs-hotfix.sql" />
Metadata Update from @mizdebsk: - Issue assigned to mizdebsk - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Yep, seems to work now. Thanks a lot both of you, @mizdebsk and @jkaluza!
Err, commented on wrong ticket :)
Login to comment on this ticket.