Bug 39235 - Internal Server Error
Summary: Internal Server Error
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: puppetboard (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-09 17:30 MSK by Alexander Makeenkov
Modified: 2020-11-09 18:45 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2020-11-09 17:30:16 MSK
При попытке открыть web интерфейс puppetboard возникает "Internal Server Error".

При этом в логах /var/log/httpd2/puppetboard.log следующая ошибка:

[Mon Nov 09 17:23:45.262475 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586] ERROR:puppetboard.core:Exception on / [GET]
[Mon Nov 09 17:23:45.262542 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586] Traceback (most recent call last):
[Mon Nov 09 17:23:45.262552 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/app.py", line 2447, in wsgi_app
[Mon Nov 09 17:23:45.262574 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     response = self.full_dispatch_request()
[Mon Nov 09 17:23:45.262582 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/app.py", line 1952, in full_dispatch_request
[Mon Nov 09 17:23:45.262589 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     rv = self.handle_user_exception(e)
[Mon Nov 09 17:23:45.262596 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/app.py", line 1821, in handle_user_exception
[Mon Nov 09 17:23:45.262603 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     reraise(exc_type, exc_value, tb)
[Mon Nov 09 17:23:45.262610 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/_compat.py", line 39, in reraise
[Mon Nov 09 17:23:45.262618 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     raise value
[Mon Nov 09 17:23:45.262625 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/app.py", line 1950, in full_dispatch_request
[Mon Nov 09 17:23:45.262632 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     rv = self.dispatch_request()
[Mon Nov 09 17:23:45.262639 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/flask/app.py", line 1936, in dispatch_request
[Mon Nov 09 17:23:45.262646 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     return self.view_functions[rule.endpoint](**req.view_args)
[Mon Nov 09 17:23:45.262653 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/puppetboard/app.py", line 205, in index
[Mon Nov 09 17:23:45.262660 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     for node in nodes:
[Mon Nov 09 17:23:45.262667 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]   File "/usr/lib/python3/site-packages/pypuppetdb/api.py", line 406, in nodes
[Mon Nov 09 17:23:45.262674 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586]     nodes = self._query('nodes', **kwargs)
[Mon Nov 09 17:23:45.262681 2020] [wsgi:error] [pid 9331:tid 140719865771776] [client 10.88.16.40:37586] TypeError: _query() got an unexpected keyword argument 'with_event_numbers'

Так же не хватает зависимости на python3-module-commonmark, поскольку сначала вылезает другая ошибка:

[Mon Nov 09 17:22:51.724650 2020] [wsgi:error] [pid 9331:tid 140719890949888] [client 10.88.16.40:37574] mod_wsgi (pid=9331): Exception occurred processing WSGI script '/usr/share/puppetboard/wsgi.py'.
[Mon Nov 09 17:22:51.725302 2020] [wsgi:error] [pid 9331:tid 140719890949888] [client 10.88.16.40:37574] Traceback (most recent call last):
[Mon Nov 09 17:22:51.725343 2020] [wsgi:error] [pid 9331:tid 140719890949888] [client 10.88.16.40:37574]   File "/usr/lib/python3/site-packages/puppetboard/app.py", line 31, in <module>
[Mon Nov 09 17:22:51.725352 2020] [wsgi:error] [pid 9331:tid 140719890949888] [client 10.88.16.40:37574]     import CommonMark as commonmark
[Mon Nov 09 17:22:51.725378 2020] [wsgi:error] [pid 9331:tid 140719890949888] [client 10.88.16.40:37574] ModuleNotFoundError: No module named 'CommonMark'


Версия пакета: puppetboard-2.2.0-alt1