<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39235</bug_id>
          
          <creation_ts>2020-11-09 17:30:16 +0300</creation_ts>
          <short_desc>Internal Server Error</short_desc>
          <delta_ts>2020-11-09 18:45:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>puppetboard</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193969</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2020-11-09 17:30:16 +0300</bug_when>
    <thetext>При попытке открыть web интерфейс puppetboard возникает &quot;Internal Server Error&quot;.

При этом в логах /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 &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/flask/_compat.py&quot;, 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 &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/puppetboard/app.py&quot;, 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 &quot;/usr/lib/python3/site-packages/pypuppetdb/api.py&quot;, 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(&apos;nodes&apos;, **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 &apos;with_event_numbers&apos;

Так же не хватает зависимости на 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 &apos;/usr/share/puppetboard/wsgi.py&apos;.
[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 &quot;/usr/lib/python3/site-packages/puppetboard/app.py&quot;, line 31, in &lt;module&gt;
[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 &apos;CommonMark&apos;


Версия пакета: puppetboard-2.2.0-alt1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>