From owner-freebsd-questions@FreeBSD.ORG Sat Sep 27 12:22:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9822E53A for ; Sat, 27 Sep 2014 12:22:51 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62DC98A7 for ; Sat, 27 Sep 2014 12:22:51 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-76.adsl.hiwaay.net [216.180.19.76]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s8RCMnZY017831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 27 Sep 2014 07:22:49 -0500 Message-ID: <5426AD90.9020000@hiwaay.net> Date: Sat, 27 Sep 2014 07:29:04 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org Subject: Re: Problems starting tor service .... References: <201409270744.s8R7igeR025220@sdf.org> In-Reply-To: <201409270744.s8R7igeR025220@sdf.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 12:22:51 -0000 On 09/27/14 02:44, Scott Bennett wrote: > On Fri, 26 Sep 2014 22:12:13 -0500 "William A. Mahaffey III" > wrote: >> [root@kabini1, /etc, 5:20:57pm] 404 % mkdir /var/log/tor >> [root@kabini1, /etc, 10:07:29pm] 405 % touch /var/log/tor/notices.log >> [root@kabini1, /etc, 10:07:29pm] 406 % chown -R _tor:_tor /var/log/tor >> [root@kabini1, /etc, 10:07:31pm] 407 % >> [root@kabini1, /etc, 10:07:32pm] 407 % >> [root@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@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@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.