[tor-relays] 0.2.4.20 logging duplicate messages

Scott Bennett bennett at sdf.org
Tue Jan 28 12:26:13 UTC 2014


Roger Dingledine <arma at mit.edu> wrote:

> On Tue, Jan 28, 2014 at 03:10:57AM -0600, Scott Bennett wrote:
> >      Along with my recent OS upgrade I have also updated my tor relay from
> > 0.2.4.3-alpha to 0.2.4.20.  The latter version write two identical copies
> > of every message to the log file.  I have only one uncommented "Log " line
> > in my torrc, which is
> > 
> > Log notice file /var/log/tor/notices.log
> > 
> > but every single message is getting written to the file twice.
>
> Which package did you install? If it was the deb, look at

     I used portmaster to install it from security/tor-devel in the FreeBSD
ports tree.

> /usr/share/tor/tor-service-defaults-torrc
> (these are the default defaults, if you will).
>
     In FreeBSD, anything from ports and packages normally gets installed
somewhere under /usr/local, not /usr.  /usr/local/share/tor contains only
two files, geoip and geoip6.
     However, I now see that Fabian Keil <freebsd-listen at fabiankeil.de>
has responded, too:


>I'm guessing FreeBSD in which case the culprit is probably the
>rc script which enables notice logging by default:
>
>fk at r500 ~ $grep Log /usr/jails/tor-jail/usr/local/etc/rc.d/tor 
>command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} --+Log ${tor_loglevel}\ file\ ${tor_logfile}"
>
     Aw, hell.  This is the first time in many years that I have built and
installed tor from the ports tree, and I had forgotten all about the script.
This sort of nonsense was one of several reasons I took to building tor
manually and apart from the ports system.  I would have done so again, except
that 0.2.4.3-alpha was the last version that I was able to compile and have
execute correctly.  The port apparently chooses a set of build configuration
options that works, so I used it. :-(  So the makefile for the port replaced
the old, slightly tailored version of that script that I had used for any
years. :-(  I guess I"m going to delve further into what it will take to
resume building and installing tor outside the ports system.
     Thanks, Fabian and Roger.


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:   bennett at sdf.org   *or*   bennett at freeshell.org   *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************


More information about the tor-relays mailing list