Package: polipo
Version: 1.0.4.1-1.1
Severity: normal

Part of the Tor configuration documentation 
(https://www.torproject.org/docs/tor-doc-unix.html.en#polipo) says to use their 
particular Polipo config file 
(https://gitweb.torproject.org/torbrowser.git/blob_plain/HEAD:/build-scripts/config/polipo.conf).
 As root, I wgetted it, copied it over the default config and then:

root@craft:/etc/polipo# /etc/init.d/polipo start && echo true
Starting polipo: Couldn't open config file /etc/polipo/config: 13.

An error on line 13? What's the problem? I open up the file and remove line 13. 
Still the error. I remove the comments to see whether it affects the line 
number. Still the error. I look for invisible characters (often a cause of bugs 
in Makefiles, and for all I know, Polipo). Still the error. The damn line 13 
keeps causing errors for no reason I can see!

I purge polipo, reinstall, and this time try editing the Tor config to resemble 
the old config; but a lot of the settings seem different or to have changed 
names. My modifications don't work. At this point, I check the Tor trac - maybe 
Debian unstable's polipo has non-backwards compatible changes and someone 
reported that their config is borked. But no. I go to their IRC channel to ask 
whether anyone there has run into the problem. They haven't. After a while, one 
of them suggests I check the permissions. Well, the new config was perfectly 
readable by root (`-rw------- 1 root root 3904 Jun 16 21:16 config`), but it 
does differ from the original config's permissions, so I try a `chmod a+r`. Now 
polipo starts and I can browse through Tor!

It turned out that the ': 13' had nothing to do with line or column numbers or 
parse errors. It apparently was supposed to mean that polipo *couldn't read* 
the config!

In all my other software, an absolute filename followed by a colon and then a 
number, gives information about where in the file the error was found. This is 
worse than an uninformative error message: it is actively misleading.

-- System Information:
Debian Release: wheezy/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages polipo depends on:
ii  dpkg                      1.16.0.3       Debian package management system
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in
ii  libc6                     2.13-7         Embedded GNU C Library: Shared lib

polipo recommends no packages.

polipo suggests no packages.

-- Configuration Files:
/etc/polipo/config changed:
proxyAddress = "127.0.0.1"
proxyPort = 8118
allowedClients = 127.0.0.1
allowedPorts = 1-65535
proxyName = "localhost"
cacheIsShared = false
socksParentProxy = "localhost:9050"
socksProxyType = socks5
chunkHighMark = 67108864
diskCacheRoot = ""
localDocumentRoot = ""
disableLocalInterface = true
disableConfiguration = true
dnsUseGethostbyname = yes
disableVia = true
censoredHeaders = from,accept-language,x-pad,link
censorReferer = maybe
maxConnectionAge = 5m
maxConnectionRequests = 120
serverMaxSlots = 8
serverSlots = 2
tunnelAllowedPorts = 1-65535


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to