From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 5 16:00:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A87BD205 for ; Sat, 5 Apr 2014 16:00:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84AF0F82 for ; Sat, 5 Apr 2014 16:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s35G00dj049473 for ; Sat, 5 Apr 2014 16:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s35G00fJ049472; Sat, 5 Apr 2014 16:00:00 GMT (envelope-from gnats) Resent-Date: Sat, 5 Apr 2014 16:00:00 GMT Resent-Message-Id: <201404051600.s35G00fJ049472@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Neel Chauhan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F6CEF8B for ; Sat, 5 Apr 2014 15:53:00 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (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 E5894F3A for ; Sat, 5 Apr 2014 15:52:59 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s35FqxeS042652 for ; Sat, 5 Apr 2014 15:52:59 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s35Fqxo3042644; Sat, 5 Apr 2014 15:52:59 GMT (envelope-from nobody) Message-Id: <201404051552.s35Fqxo3042644@cgiserv.freebsd.org> Date: Sat, 5 Apr 2014 15:52:59 GMT From: Neel Chauhan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/188293: When starting Tor, I get: "Failed to parse/validate config: Failed to init Log options" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2014 16:00:00 -0000 >Number: 188293 >Category: ports >Synopsis: When starting Tor, I get: "Failed to parse/validate config: Failed to init Log options" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 05 16:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Neel Chauhan >Release: FreeBSD 10.0-RELEASE >Organization: >Environment: FreeBSD megan.neelc.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260829: Fri Jan 17 13:23:36 EST 2014 neel@megan:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When I start Tor, I get an error which says: Failed to parse/validate config: Failed to init Log options \I tried submitting this without sending a PR and just sent it to the mailing lists , but I got no response, so I decided to come here. >How-To-Repeat: 1. Install /usr/ports/security/tor 2. Copy /usr/local/etc/tor/torrc.sample /usr/local/etc/tor/torrc 3. Start Tor (run "service tor onestart" without the quotes) 4. If /var/log/tor doesn't exist and isn't isn't owned by _tor, you get the error: Failed to parse/validate config: Failed to init Log options >Fix: I have a patch to fix this: --- Makefile.old 2014-04-03 19:48:25.000000000 -0400 +++ Makefile 2014-04-03 19:49:57.000000000 -0400 @@ -42,6 +42,9 @@ CONFLICTS= tor-devel-[0-9]* +PLIST_SUB= USERS=${USERS} +PLIST_SUB+= GROUPS=${GROUPS} + .include .if ( (${OSVERSION} < 900000) || \ --- pkg-plist.old 2014-04-03 19:37:16.000000000 -0400 +++ pkg-plist 2014-04-03 19:47:56.000000000 -0400 @@ -8,6 +8,8 @@ man/man1/tor-resolve.1.gz man/man1/tor.1.gz man/man1/torify.1.gz + at exec touch /var/log/tor ; chown %%USERS%%:%%GROUPS%% /var/log/tor + at exec mkdir /var/run/tor ; chown -R %%USERS%%:%%GROUPS%% /var/run/tor %%DATADIR%%/geoip %%DATADIR%%/geoip6 @dirrm %%DATADIR%% So what this patch does is, that it makes the /var/log/tor logfile, the /var/run/tor directory for the tor.pid file, and makes /var/(log,run)/tor owned by _tor (or whatever user is specified to run Tor). >Release-Note: >Audit-Trail: >Unformatted: