Package: doc-central
Version: 1.9.1
Severity: normal
File: /usr/lib/cgi-bin/doc-central/contents.cgi
Hi,
When serving the contents frame, the following error is generated:
2026/02/12 11:49:21 [error] 116109#116109: *19987 FastCGI sent in stderr:
"/usr/lib/cgi-bin/doc-central/docutils.py:104: SyntaxWarning: invalid escape
sequence '\.'
m = re.match("/usr(/share)?/info/(.+)\.info", doc.docs[format])
/usr/lib/cgi-bin/doc-central/docinfo.py:19: SyntaxWarning: invalid escape
sequence '\.'
pat_paragraph = re.compile('^ \.\n', re.MULTILINE)
/usr/lib/cgi-bin/doc-central/docinfo.py:21: SyntaxWarning: invalid escape
sequence '\.'
pat_url = re.compile('((http|ftp)s?://[a-zA-Z0-9-]+\.[a-zA-Z0-9-./]+)')
/usr/lib/cgi-bin/doc-central/docinfo.py" while reading response header from
upstream, client: 192.168.10.54, server: , request: "GET
/cgi-bin/doc-central/contents.cgi HTTP/1.1", upstream:
"fastcgi://unix:/var/run/fcgiwrap.socket:", host: "my.server.local", referrer:
"https://my.server.local/dc/"
2026/02/12 11:49:21 [error] 116109#116109: *19987 FastCGI sent in stderr: ":72:
SyntaxWarning: invalid escape sequence '\g'
abstract = re.sub(pat_verbatim, '<PRE>\n\g<1></PRE>', abstract)
/usr/lib/cgi-bin/doc-central/docinfo.py:73: SyntaxWarning: invalid escape
sequence '\g'
abstract = re.sub(pat_url, '<A HREF="\g<1>">\g<1></A>', abstract)
Traceback (most recent call last):
File "/usr/lib/cgi-bin/doc-central/contents.cgi", line 63, in <module>
print("""
~~~
</body></html>""" % docutils.scriptname("search.cgi"))
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~" while reading response header from
upstream, client: 192.168.10.54, server: , request: "GET
/cgi-bin/doc-central/contents.cgi HTTP/1.1", upstream:
"fastcgi://unix:/var/run/fcgiwrap.socket:", host: "my.server.local", referrer:
"https://my.server.local/dc/"
2026/02/12 11:49:21 [error] 116109#116109: *19987 FastCGI sent in stderr:
"~~~~~~~~~~~~~~~~~~~~~~~
TypeError: not all arguments converted during string formatting" while reading
response header from upstream, client: 192.168.10.54, server: , request: "GET
/cgi-bin/doc-central/contents.cgi HTTP/1.1", upstream:
"fastcgi://unix:/var/run/fcgiwrap.socket:", host: "my.server.local", referrer:
"https://my.server.local/dc/"
The page served is missing the closing body and html tags, ending with:
<LI><A HREF="/cgi-bin/doc-central/browse.cgi?section=Text">Text</A>
<LI><A HREF="/cgi-bin/doc-central/browse.cgi?section=Viewers">Viewers</A>
</UL>
I'm sorry that I don't have the Python experience or time to debug this
myself at the moment.
When I try to use the search box at the top of the contents frame, I get
this error:
2026/02/12 16:07:41 [info] 116113#116113: *20511 client sent invalid request
while reading client request line, client: 192.168.10.54, server: , request:
"GET /cgi-bin/doc-central/%s?keyword=foo HTTP/1.1"
I don't know whether this is related or possibly due to a bad CGI
configuration on the server.
Thanks,
Roger
-- System Information:
Debian Release: 13.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.63+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages doc-central depends on:
ii doc-base 0.11.2
ii info2www 1.2.2.9-27
ii nginx [httpd-cgi] 1.26.3-3+deb13u1
ii python3 3.13.5-1
ii python3-debian 1.0.1
ii sensible-utils 0.0.25
Versions of packages doc-central recommends:
ii elinks [www-browser] 0.18.0-1+b1
ii links [www-browser] 2.29-2+b3
ii lynx [www-browser] 2.9.2-1
ii w3m [www-browser] 0.5.3+git20230121-2.1
doc-central suggests no packages.
-- no debconf information