Bug#657355: pygopherd: fails to bind to an IPv6 address
On Wed, 25 Jan 2012 22:35:07 +0100 Damien CLAUZEL wrote: > I am trying to run a gopher server on IPv6 (don’t ask me why :), but it > does look like pygopherd cannot bind on an IPv6 address. pygopherd 3.0.0~git20221126.02c65d60-3 has been reintroduced into Debian unstable. Please try it and see if the issue has been fixed. If the issue has been fixed, please let us know on this bug. If the issue has not been fixed, please search the upstream bug databases to see if the issue is already reported and if it is not reported, then report a new issue upstream. Please let us know about any new or existing upstream bugs you file or find. https://github.com/michael-lazar/pygopherd/issues -- bye, pabs https://wiki.debian.org/PaulWise signature.asc Description: This is a digitally signed message part
Bug#657355: pygopherd: fails to bind to an IPv6 address
Package: pygopherd Version: 2.0.18.3+nmu2 Severity: normal I am trying to run a gopher server on IPv6 (don’t ask me why :), but it does look like pygopherd cannot bind on an IPv6 address. o In /etc/pygopherd/pygopherd.conf I tried the following setup, but none work: interface = serveur.LT-P.net interface = ::1 interface = :: interface = [::1] interface = [::] ___ # service pygopherd start Starting Python Gopher Server: Traceback (most recent call last): File /usr/sbin/pygopherd, line 30, in module s = initialization.initeverything(conffile) File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 205, in initeverything s = getserverobject(config) File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 134, in getserverobject GopherRequestHandler) File /usr/lib/python2.7/SocketServer.py, line 408, in __init__ self.server_bind() File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 104, in server_bind servertype.server_bind(self) File /usr/lib/python2.7/SocketServer.py, line 419, in server_bind self.socket.bind(self.server_address) File /usr/lib/python2.7/socket.py, line 224, in meth return getattr(self._sock,name)(*args) socket.gaierror: [Errno -9] Address family for hostname not supported ___ The expected result is to have pygopherd binding on IPv6 and accepting connections. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pygopherd depends on: ii logrotate 3.8.1-1 ii mime-support 3.51-1 ii python2.7.2-9 ii python-central0.6.17 ii python-simpletal 4.1-7 pygopherd recommends no packages. pygopherd suggests no packages. -- Configuration Files: /etc/pygopherd/pygopherd.conf changed: [pygopherd] detach = yes pidfile = /var/run/pygopherd.pid servername = serveur.LT-P.net interface = ::1 port = 70 servertype = ForkingTCPServer timeout = 60 abstract_headers = on abstract_entries = always tracebacks = yes usechroot = yes setuid = gopher setgid = gopher root = /var/gopher mimetypes = ./conf/mime.types:/etc/pygopherd/mime.types:/etc/mime.types encoding = mimetypes.encodings_map.items() + \ {'.bz2' : 'bzip2', '.tal': 'tal.TALFileHandler' }.items() [logger] logmethod = syslog priority = LOG_INFO facility = LOG_LOCAL3 [GopherEntry] defaultmimetype = text/plain mapping = [['text/html', 'h'], ['text/.+', '0'], ['application/mac-binhex40', '4'], ['audio/.+', 's'], ['image/gif', 'g'], ['image/.+', 'I'], ['application/gopher-menu', '1'], ['application/gopher\+-menu', '1'], ['multipart/mixed', 'M'], ['application/.+', '9'], ['.*', '0'] ] eaexts = {'.abstract' : 'ABSTRACT', '.keywords' : 'KEYWORDS', '.ask' : 'ASK', '.3d' : '3D'} [handlers.HandlerMultiplexer] handlers = [url.HTMLURLHandler, gophermap.BuckGophermapHandler, mbox.MaildirFolderHandler, mbox.MaildirMessageHandler, UMN.UMNDirHandler, html.HTMLFileTitleHandler, mbox.MBoxMessageHandler, mbox.MBoxFolderHandler, file.FileHandler] [handlers.file.CompressedFileHandler] decompressors = {} decompresspatt = .* [handlers.dir.DirHandler] ignorepatt = /.cap$|/lost\+found$|/lib$|/bin$|/etc$|/dev$|~$|/\.cache|/\.forward$|/\.message$|/\.hushlogin$|/\.kermrc$|/\.notar$|/\.where$|/veronica.ctl$|/robots.txt$|/nohup.out$|/gophermap$|\.abstract$|\.keyboards$|\.ask|\.3d$|~$ cachetime = 180 cachefile = .cache.pygopherd.dir [handlers.UMN.UMNDirHandler] extstrip = nonencoded [handlers.ZIP.ZIPHandler] enabled = false pattern = \.zip$ [protocols.ProtocolMultiplexer] protocols = [wap.WAPProtocol, http.HTTPProtocol, gopherp.GopherPlusProtocol, rfc1436.GopherProtocol] [protocols.gopherp.GopherPlusProtocol] admin = Unconfigured Pygopherd Admin pygopherd@nowhere.nowhere [protocols.http.HTTPProtocol] iconmapping = {'h' : 'text.gif', '0' : 'text.gif', '4' : 'binhex.gif', 's' : 'sound1.gif', 'g' : 'image3.gif', 'I' : 'image3.gif', 'M' : 'text.gif', '9' : 'binary.gif', '1' : 'folder.gif', '7' : 'folder.gif', 'i' : 'blank.gif'} pagetopper = Welcome to Gopherspace! You are browsing Gopher through a Web interface right now. You can use most browsers or Gopher clients to browse Gopher natively. If your browser supports it, A HREF=GOPHERURLtry clicking here/A to see this page in Gopher directly. To find Gopher browsers, A
Bug#657355: pygopherd: fails to bind to an IPv6 address
It is probably true that PyGopherd is not IPv6-aware, and also that it should be. However, I haven't had much time to add new features to it lately, and realistically probably won't in the near future. A patch would be quite welcome. -- John On 01/25/2012 03:35 PM, Damien CLAUZEL wrote: Package: pygopherd Version: 2.0.18.3+nmu2 Severity: normal I am trying to run a gopher server on IPv6 (don’t ask me why :), but it does look like pygopherd cannot bind on an IPv6 address. o In /etc/pygopherd/pygopherd.conf I tried the following setup, but none work: interface = serveur.LT-P.net interface = ::1 interface = :: interface = [::1] interface = [::] ___ # service pygopherd start Starting Python Gopher Server: Traceback (most recent call last): File /usr/sbin/pygopherd, line 30, inmodule s = initialization.initeverything(conffile) File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 205, in initeverything s = getserverobject(config) File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 134, in getserverobject GopherRequestHandler) File /usr/lib/python2.7/SocketServer.py, line 408, in __init__ self.server_bind() File /usr/lib/python2.7/dist-packages/pygopherd/initialization.py, line 104, in server_bind servertype.server_bind(self) File /usr/lib/python2.7/SocketServer.py, line 419, in server_bind self.socket.bind(self.server_address) File /usr/lib/python2.7/socket.py, line 224, in meth return getattr(self._sock,name)(*args) socket.gaierror: [Errno -9] Address family for hostname not supported ___ The expected result is to have pygopherd binding on IPv6 and accepting connections. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pygopherd depends on: ii logrotate 3.8.1-1 ii mime-support 3.51-1 ii python2.7.2-9 ii python-central0.6.17 ii python-simpletal 4.1-7 pygopherd recommends no packages. pygopherd suggests no packages. -- Configuration Files: /etc/pygopherd/pygopherd.conf changed: [pygopherd] detach = yes pidfile = /var/run/pygopherd.pid servername = serveur.LT-P.net interface = ::1 port = 70 servertype = ForkingTCPServer timeout = 60 abstract_headers = on abstract_entries = always tracebacks = yes usechroot = yes setuid = gopher setgid = gopher root = /var/gopher mimetypes = ./conf/mime.types:/etc/pygopherd/mime.types:/etc/mime.types encoding = mimetypes.encodings_map.items() + \ {'.bz2' : 'bzip2', '.tal': 'tal.TALFileHandler' }.items() [logger] logmethod = syslog priority = LOG_INFO facility = LOG_LOCAL3 [GopherEntry] defaultmimetype = text/plain mapping = [['text/html', 'h'], ['text/.+', '0'], ['application/mac-binhex40', '4'], ['audio/.+', 's'], ['image/gif', 'g'], ['image/.+', 'I'], ['application/gopher-menu', '1'], ['application/gopher\+-menu', '1'], ['multipart/mixed', 'M'], ['application/.+', '9'], ['.*', '0'] ] eaexts = {'.abstract' : 'ABSTRACT', '.keywords' : 'KEYWORDS', '.ask' : 'ASK', '.3d' : '3D'} [handlers.HandlerMultiplexer] handlers = [url.HTMLURLHandler, gophermap.BuckGophermapHandler, mbox.MaildirFolderHandler, mbox.MaildirMessageHandler, UMN.UMNDirHandler, html.HTMLFileTitleHandler, mbox.MBoxMessageHandler, mbox.MBoxFolderHandler, file.FileHandler] [handlers.file.CompressedFileHandler] decompressors = {} decompresspatt = .* [handlers.dir.DirHandler] ignorepatt = /.cap$|/lost\+found$|/lib$|/bin$|/etc$|/dev$|~$|/\.cache|/\.forward$|/\.message$|/\.hushlogin$|/\.kermrc$|/\.notar$|/\.where$|/veronica.ctl$|/robots.txt$|/nohup.out$|/gophermap$|\.abstract$|\.keyboards$|\.ask|\.3d$|~$ cachetime = 180 cachefile = .cache.pygopherd.dir [handlers.UMN.UMNDirHandler] extstrip = nonencoded [handlers.ZIP.ZIPHandler] enabled = false pattern = \.zip$ [protocols.ProtocolMultiplexer] protocols = [wap.WAPProtocol, http.HTTPProtocol, gopherp.GopherPlusProtocol, rfc1436.GopherProtocol] [protocols.gopherp.GopherPlusProtocol] admin = Unconfigured Pygopherd Adminpygopherd@nowhere.nowhere [protocols.http.HTTPProtocol] iconmapping = {'h' : 'text.gif', '0' : 'text.gif', '4' : 'binhex.gif', 's' : 'sound1.gif', 'g' : 'image3.gif', 'I' : 'image3.gif', 'M' : 'text.gif', '9' : 'binary.gif', '1' : 'folder.gif', '7' : 'folder.gif', 'i' : 'blank.gif'} pagetopper = Welcome to