#7844 MBS crashes when trying to list modules
Closed: Fixed 2 years ago by mizdebsk. Opened 2 years ago by mizdebsk.

MBS frontend crashes (returns internal server error) when trying to list some modules.


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

Metadata Update from @mizdebsk:
- Issue assigned to mizdebsk
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

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.