Problems starting tor service ....

William A. Mahaffey III wam at hiwaay.net
Sat Sep 27 12:22:51 UTC 2014


On 09/27/14 02:44, Scott Bennett wrote:
>       On Fri, 26 Sep 2014 22:12:13 -0500 "William A. Mahaffey III"
> <wam at hiwaay.net> wrote:
>> [root at kabini1, /etc, 5:20:57pm] 404 % mkdir /var/log/tor
>> [root at kabini1, /etc, 10:07:29pm] 405 % touch /var/log/tor/notices.log
>> [root at kabini1, /etc, 10:07:29pm] 406 % chown -R _tor:_tor /var/log/tor
>> [root at kabini1, /etc, 10:07:31pm] 407 %
>> [root at kabini1, /etc, 10:07:32pm] 407 %
>> [root at kabini1, /etc, 10:07:32pm] 407 % service tor start
>> Starting tor.
>> Sep 26 22:07:40.245 [notice] Tor v0.2.4.23 (git-598c61362f1b3d3e)
>> running on FreeBSD with Libevent 2.0.21-stable and OpenSSL 0.9.8za-freebsd.
>> Sep 26 22:07:40.246 [notice] Tor can't help you if you use it wrong!
>> Learn how to be safe at https://www.torproject.org/download/download#warning
>> Sep 26 22:07:40.246 [notice] Read configuration file
>> "/usr/local/etc/tor/torrc".
>> Sep 26 22:07:40.263 [notice] Opening Socks listener on 127.0.0.1:9050
>> Sep 26 22:07:40.000 [warn] Couldn't open file for 'Log notice file
>> /var/log/tor': Is a directory
>> Sep 26 22:07:40.000 [notice] Closing partially-constructed Socks
>> listener on 127.0.0.1:9050
>> Sep 26 22:07:40.000 [warn] Failed to parse/validate config: Failed to
>> init Log options. See logs for details.
>> Sep 26 22:07:40.000 [err] Reading config failed--see warnings above.
>> /usr/local/etc/rc.d/tor: WARNING: failed to start tor
>       Have you looked at your torrc file yet?  Maybe it *does* say to
> use a file by that name instead of a file in a directory of that name.
>       As far as defaults go, I installed tor back around 0.1.1.16 or
> a bit earlier, so I really don't remember what they were then or whether
> any changes I've made to torrc since then changed that in particular.
> On my system, /var/log/tor is a directory, but I may have set it up that
> way myself years ago.
>       Remember, too, to check any changes you make to torrc with
> "tor --validate-config" before trying to run tor with those changes.
> Please do read the tor man page carefully, too.
>
>
>                                    Scott Bennett, Comm. ASMELG, CFIAG
> **********************************************************************
> * Internet:   bennett at sdf.org   *xor*   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         *
> **********************************************************************
>

[root at kabini1, /etc, 7:23:25am] 449 % tor --validate-config
Sep 27 07:24:31.513 [notice] Tor v0.2.4.23 (git-598c61362f1b3d3e) 
running on FreeBSD with Libevent 2.0.21-stable and OpenSSL 0.9.8za-freebsd.
Sep 27 07:24:31.514 [notice] Tor can't help you if you use it wrong! 
Learn how to be safe at https://www.torproject.org/download/download#warning
Sep 27 07:24:31.514 [warn] Command-line option '--validate-config' with 
no value. Failing.
Sep 27 07:24:31.514 [err] Reading config failed--see warnings above.
[root at kabini1, /etc, 7:24:31am] 450 %


& yes, /var/log/tor is apparently supposed to be a *file*, *not* a dir 
in the default setup ....

-- 

	William A. Mahaffey III

  ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                            -- Gen. George S. Patton Jr.



More information about the freebsd-questions mailing list