Peter Palfrader <[EMAIL PROTECTED]> writes: > severity 338424 normal > thanks > > On Thu, 10 Nov 2005, Jari Aalto wrote: > | > Package: tor | > Version: 0.1.0.15-1.0.1 | > Severity: important | > | > There should not be "exit 0" in /etc/init.d/tor to cover all cases of | > startup. If process did not start of if it didn't stop, there should be | > indication of error. Now it always signals ok - only for admin to find | > out much later that there is something wrong. | > | > EXAMPLE RUN | > | > # sh -x /etc/init.d/tor start | > + set -e | > ... | > + echo 'Starting tor daemon: tor...' | > Starting tor daemon: tor... | > + ulimit -n 4096 | > + start-stop-daemon --start --quiet --oknodo --chuid debian-tor:debian-tor --pidfile /var/run/tor/tor.pid --exec /usr/sbin/tor -- | > Nov 10 10:34:08.186 [notice] Tor v0.1.0.15. This is experimental software. Do not rely on it for strong anonymity. | > + echo done. | > done. | > + exit 0
[snip] > Start it as debian-tor and see why it fails (and then let me know if and > why). In the first instance above it did start properly. The displayed: Nov 10 10:34:08.189 [notice] Tor 0.1.0.15 opening log file. Nov 10 10:34:08.190 [notice] Initialized libevent version 1.1a using method epoll Nov 10 10:34:08.192 [warn] connection_create_listener(): Could not bind to port 9050: Cannot assign requested address Nov 10 10:34:08.193 [err] options_act(): Failed to bind one of the listener ports. Nov 10 10:34:08.193 [err] init_from_config(): Acting on config options left us in a broken state. Dying. However it was not obvious what was wrong so I ran strace, which showed: 19377 bind(8, {sa_family=AF_INET, sin_port=htons(9050), sin_addr=inet_addr("192.168.1.3")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address) I had put SocksBindAddress 192.168.1.3 In there by mistake. The "HOST" is known by 192.168.1.2 and 127.0.0.1, so this was the reason for EADDRNOTAVAIL. SUGGESTION: could the error bessage display the IP it tries to bind along with a hint. Something like: "I can only bind local addresses, does this ip belog to this host?" Jari -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]