Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-06 Thread Peter Palfrader
On Sun, 05 Aug 2007, Max Alekseyev wrote:

 I've just manually chown the log directory:
 
 chown debian-tor:debian-tor /var/log/tor
 
 and successfully re-installed tor.
 
 So, this bug must be related to not chowning the log directory by the 
 post-installation script.

It does chown it, if you install the package, it does not chown it if
you just upgrade the package, or only had the package removed, not
purged.
-- 
   |  .''`.  ** Debian GNU/Linux **
  Peter Palfrader  | : :' :  The  universal
 http://www.palfrader.org/ | `. `'  Operating System
   |   `-http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-05 Thread Peter Palfrader
On Fri, 03 Aug 2007, Max wrote:

 The phrase Failed to init Log options. See logs for details. is a non-sense.

no, it's not.

 The file /var/log/tor/log is not even created (but the directory 
 /var/log/tor/ is).

Please show me ls -la /var/log/tor

-- 
   |  .''`.  ** Debian GNU/Linux **
  Peter Palfrader  | : :' :  The  universal
 http://www.palfrader.org/ | `. `'  Operating System
   |   `-http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-05 Thread Max Alekseyev

Peter Palfrader wrote:

On Fri, 03 Aug 2007, Max wrote:


The phrase Failed to init Log options. See logs for details. is a non-sense.


no, it's not.


If Log options are not initialized, then there are no logs, aren't there?


The file /var/log/tor/log is not even created (but the directory /var/log/tor/ 
is).


Please show me ls -la /var/log/tor


# ls -la /var/log/tor
total 8
drwxr-xr-x  2 root root 4096 Aug  1 23:08 .
drwxr-xr-x 15 root root 4096 Aug  5 10:13 ..

Regards,
Max


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-05 Thread Peter Palfrader
On Sun, 05 Aug 2007, Max Alekseyev wrote:

 Please show me ls -la /var/log/tor
 
 # ls -la /var/log/tor
 total 8
 drwxr-xr-x  2 root root 4096 Aug  1 23:08 .
 drwxr-xr-x 15 root root 4096 Aug  5 10:13 ..

This is not how the debian package creates that directory.  If you
install the debian package it will chown that to the tor user.  I guess
you removed that directory at one point and created it incorrectly.

-- 
   |  .''`.  ** Debian GNU/Linux **
  Peter Palfrader  | : :' :  The  universal
 http://www.palfrader.org/ | `. `'  Operating System
   |   `-http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-05 Thread Max Alekseyev

Peter Palfrader wrote:

On Sun, 05 Aug 2007, Max Alekseyev wrote:


Please show me ls -la /var/log/tor

# ls -la /var/log/tor
total 8
drwxr-xr-x  2 root root 4096 Aug  1 23:08 .
drwxr-xr-x 15 root root 4096 Aug  5 10:13 ..


This is not how the debian package creates that directory.  If you
install the debian package it will chown that to the tor user.  I guess
you removed that directory at one point and created it incorrectly.



I did not create it.
It was created by the debian package!

Look:

maxbase:~# rm -r /var/log/tor
rm: cannot remove `/var/log/tor': No such file or directory
maxbase:~# apt-get install tor
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  mixmaster mixminion anon-proxy
Recommended packages:
  privoxy polipo socat
The following NEW packages will be installed:
  tor
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1001kB of archives.
After unpacking 2167kB of additional disk space will be used.
Selecting previously deselected package tor.
(Reading database ... 124320 files and directories currently installed.)
Unpacking tor (from .../tor_0.1.2.16-1_amd64.deb) ...
Setting up tor (0.1.2.16-1) ...
debian-tor uid check: ok
debian-tor homedir check: ok
Raising maximum number of filedescriptors (ulimit -n) to 8192.
Starting tor daemon: tor...
Aug 05 12:09:59.827 [notice] Tor v0.1.2.16. This is experimental software. Do 
not rely on it for strong anonymity.
Aug 05 12:09:59.831 [notice] Initialized libevent version 1.3b using method 
epoll. Good.
Aug 05 12:09:59.832 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 05 12:09:59.832 [warn] Couldn't open file for 'Log notice file 
/var/log/tor/log'
Aug 05 12:09:59.832 [notice] Closing partially-constructed listener Socks 
listener on 127.0.0.1:9050
Aug 05 12:09:59.832 [warn] Failed to parse/validate config: Failed to init Log 
options. See logs for details.
Aug 05 12:09:59.832 [err] Reading config failed--see warnings above.
invoke-rc.d: initscript tor, action start failed.
dpkg: error processing tor (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 tor
E: Sub-process /usr/bin/dpkg returned an error code (1)
maxbase:~# ls -la /var/log/tor/
total 8
drwxr-xr-x  2 root root 4096 Aug  1 23:08 .
drwxr-xr-x 15 root root 4096 Aug  5 12:09 ..


Max


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-05 Thread Max Alekseyev

I've just manually chown the log directory:

chown debian-tor:debian-tor /var/log/tor

and successfully re-installed tor.

So, this bug must be related to not chowning the log directory by the 
post-installation script.

Regards,
Max




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#435861: post-installation script fails since tor Failed to init Log options

2007-08-03 Thread Max
Package: tor
Version: 0.1.2.16-1
Severity: normal

The installation of tor fails as shown below. 
The phrase Failed to init Log options. See logs for details. is a non-sense.
The file /var/log/tor/log is not even created (but the directory /var/log/tor/ 
is).

# apt-get install tor
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Suggested packages:
  mixmaster mixminion anon-proxy
Recommended packages:
  privoxy polipo socat
The following NEW packages will be installed:
  tor
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/1001kB of archives.
After unpacking 2167kB of additional disk space will be used.
Selecting previously deselected package tor.
(Reading database ... 124132 files and directories currently installed.)
Unpacking tor (from .../tor_0.1.2.16-1_amd64.deb) ...
Setting up tor (0.1.2.16-1) ...
debian-tor uid check: ok
debian-tor homedir check: ok
Raising maximum number of filedescriptors (ulimit -n) to 8192.
Starting tor daemon: tor...
Aug 03 10:09:01.395 [notice] Tor v0.1.2.16. This is experimental software. Do 
not rely on it for strong anonymity.
Aug 03 10:09:01.396 [notice] Configuration file /etc/tor/torrc not present, 
using reasonable defaults.
Aug 03 10:09:01.397 [notice] Initialized libevent version 1.3b using method 
epoll. Good.
Aug 03 10:09:01.397 [notice] Opening Socks listener on 127.0.0.1:9050
Aug 03 10:09:01.397 [warn] Couldn't open file for 'Log notice file 
/var/log/tor/log'
Aug 03 10:09:01.397 [notice] Closing partially-constructed listener Socks 
listener on 127.0.0.1:9050
Aug 03 10:09:01.397 [warn] Failed to parse/validate config: Failed to init Log 
options. See logs for details.
Aug 03 10:09:01.397 [err] Reading config failed--see warnings above.
invoke-rc.d: initscript tor, action start failed.
dpkg: error processing tor (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 tor
E: Sub-process /usr/bin/dpkg returned an error code (1)


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'sarge-unsupported'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.1 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages tor depends on:
ii  adduser 3.104add and remove users and groups
ii  libc6   2.6-5GNU C Library: Shared libraries
ii  libevent1   1.3b-0   An asynchronous event notification
ii  libssl0.9.8 0.9.8e-5+b1  SSL shared libraries
ii  tsocks  1.8beta5-6   transparent network access through
ii  zlib1g  1:1.2.3.3.dfsg-5 compression library - runtime

Versions of packages tor recommends:
pn  privoxy | polipo  none (no description available)
pn  socat none (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]