[Freedombox-pkg-team] Render as Docbook always failing on large page

Steve McIntyre 93sam at debian.org
Tue Nov 19 15:24:53 GMT 2019


On Mon, Nov 18, 2019 at 07:32:24PM -0500, James Valleroy wrote:
>Hello,
>
>The "Render as Docbook" action is always returning 500 Internal Server
>Error for the FreedomBox manual page:
>
>https://wiki.debian.org/FreedomBox/Manual?action=show&mimetype=text%2Fdocbook
>
>I checked that "Render as Docbook" works ok for other pages, so I think
>it is due to the size of this page.
>
>Please let me know if a solution is possible.

Hi James,

I was guessing it might be a resource problem. So I've just tried to
access that URL now myself, and it looks like the backend is throwing
errors. See attached.

I haven't the first idea how the docbook stuff works, I'm afraid...

-- 
Steve McIntyre                                        93sam at debian.org
Debian wiki admin - wiki.debian.org                    wiki at debian.org
-------------- next part --------------
[Tue Nov 19 15:06:30.677840 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] 2019-11-19 15:06:30,675 ERROR MoinMoin.wsgiapp:281 An exception has occurred [https://wiki.debian.org/FreedomBox/Manual?action=show&mimetype=text%2Fdocbook].
[Tue Nov 19 15:06:30.677890 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] Traceback (most recent call last):
[Tue Nov 19 15:06:30.677895 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 264, in __call__
[Tue Nov 19 15:06:30.677914 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = run(context)
[Tue Nov 19 15:06:30.677919 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 89, in run
[Tue Nov 19 15:06:30.677923 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = dispatch(request, context, action_name)
[Tue Nov 19 15:06:30.677927 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 137, in dispatch
[Tue Nov 19 15:06:30.677931 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = handle_action(context, pagename, action_name)
[Tue Nov 19 15:06:30.677936 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 203, in handle_action
[Tue Nov 19 15:06:30.677940 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     handler(context.page.page_name, context)
[Tue Nov 19 15:06:30.677944 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py", line 267, in do_show
[Tue Nov 19 15:06:30.677948 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     content_only=content_only,
[Tue Nov 19 15:06:30.677964 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1332, in send_page
[Tue Nov 19 15:06:30.677968 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     start_line=pi['lines'])
[Tue Nov 19 15:06:30.677971 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1422, in send_page_content
[Tue Nov 19 15:06:30.677975 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     self.format(parser)
[Tue Nov 19 15:06:30.677978 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1443, in format
[Tue Nov 19 15:06:30.677982 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     parser.format(self.formatter)
[Tue Nov 19 15:06:30.677985 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1553, in format
[Tue Nov 19 15:06:30.677989 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     formatted_line = self.scan(line, inhibit_p=inhibit_p)
[Tue Nov 19 15:06:30.677992 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1363, in scan
[Tue Nov 19 15:06:30.677996 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     result.append(self.replace(match, inhibit_p))
[Tue Nov 19 15:06:30.677999 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1407, in replace
[Tue Nov 19 15:06:30.678003 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     result.append(replace_func(hit, match.groupdict()))
[Tue Nov 19 15:06:30.678006 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1330, in _macro_repl
[Tue Nov 19 15:06:30.678010 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
[Tue Nov 19 15:06:30.678014 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/formatter/text_docbook.py", line 605, in macro
[Tue Nov 19 15:06:30.678017 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     self._copyExternalNodes(minidom.parseString(text).documentElement.childNodes, exclude=excludes)
[Tue Nov 19 15:06:30.678021 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/minidom.py", line 1925, in parseString
[Tue Nov 19 15:06:30.678024 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return expatbuilder.parseString(string)
[Tue Nov 19 15:06:30.678028 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/expatbuilder.py", line 942, in parseString
[Tue Nov 19 15:06:30.678031 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return builder.parseString(string)
[Tue Nov 19 15:06:30.678035 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/expatbuilder.py", line 223, in parseString
[Tue Nov 19 15:06:30.678038 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     parser.Parse(string, True)
[Tue Nov 19 15:06:30.678042 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] ExpatError: junk after document element: line 1, column 83
[Tue Nov 19 15:06:30.678082 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] mod_wsgi (pid=9873): Exception occurred processing WSGI script '/srv/wiki.debian.org/bin/moin.wsgi'.
[Tue Nov 19 15:06:30.678097 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] Traceback (most recent call last):
[Tue Nov 19 15:06:30.678108 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 599, in __call__
[Tue Nov 19 15:06:30.678386 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return self.app(environ, start_response)
[Tue Nov 19 15:06:30.678400 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 264, in __call__
[Tue Nov 19 15:06:30.678415 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = run(context)
[Tue Nov 19 15:06:30.678422 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 89, in run
[Tue Nov 19 15:06:30.678432 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = dispatch(request, context, action_name)
[Tue Nov 19 15:06:30.678439 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 137, in dispatch
[Tue Nov 19 15:06:30.678448 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     response = handle_action(context, pagename, action_name)
[Tue Nov 19 15:06:30.678455 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 203, in handle_action
[Tue Nov 19 15:06:30.678464 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     handler(context.page.page_name, context)
[Tue Nov 19 15:06:30.678471 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py", line 267, in do_show
[Tue Nov 19 15:06:30.678481 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     content_only=content_only,
[Tue Nov 19 15:06:30.678487 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1332, in send_page
[Tue Nov 19 15:06:30.678497 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     start_line=pi['lines'])
[Tue Nov 19 15:06:30.678503 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1422, in send_page_content
[Tue Nov 19 15:06:30.678512 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     self.format(parser)
[Tue Nov 19 15:06:30.678518 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1443, in format
[Tue Nov 19 15:06:30.678526 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     parser.format(self.formatter)
[Tue Nov 19 15:06:30.678532 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1553, in format
[Tue Nov 19 15:06:30.678546 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     formatted_line = self.scan(line, inhibit_p=inhibit_p)
[Tue Nov 19 15:06:30.678555 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1363, in scan
[Tue Nov 19 15:06:30.678569 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     result.append(self.replace(match, inhibit_p))
[Tue Nov 19 15:06:30.678583 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1407, in replace
[Tue Nov 19 15:06:30.678596 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     result.append(replace_func(hit, match.groupdict()))
[Tue Nov 19 15:06:30.678603 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py", line 1330, in _macro_repl
[Tue Nov 19 15:06:30.678615 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
[Tue Nov 19 15:06:30.678622 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/usr/lib/python2.7/dist-packages/MoinMoin/formatter/text_docbook.py", line 605, in macro
[Tue Nov 19 15:06:30.678635 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     self._copyExternalNodes(minidom.parseString(text).documentElement.childNodes, exclude=excludes)
[Tue Nov 19 15:06:30.678644 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/minidom.py", line 1925, in parseString
[Tue Nov 19 15:06:30.678660 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return expatbuilder.parseString(string)
[Tue Nov 19 15:06:30.678669 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/expatbuilder.py", line 942, in parseString
[Tue Nov 19 15:06:30.678683 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     return builder.parseString(string)
[Tue Nov 19 15:06:30.678692 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]   File "/srv/wiki.debian.org/usr/python-xml/_xmlplus/dom/expatbuilder.py", line 223, in parseString
[Tue Nov 19 15:06:30.678705 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353]     parser.Parse(string, True)
[Tue Nov 19 15:06:30.678724 2019] [wsgi:error] [pid 9873:tid 140706876958464] [remote 81.128.185.34:50353] ExpatError: junk after document element: line 1, column 83


More information about the Freedombox-pkg-team mailing list