Bug 188293

Summary: security/tor: When starting Tor, I get: "Failed to parse/validate config: Failed to init Log options"
Product: Ports & Packages Reporter: Neel Chauhan <nc>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: yuri
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204739
Attachments:
Description Flags
file.diff none

Description Neel Chauhan freebsd_committer freebsd_triage 2014-04-05 17:00:00 UTC
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
<http://lists.freebsd.org/pipermail/freebsd-ports/2014-April/091338.html>,
but I got no response, so I decided to come here.

Fix: I have a patch to fix this:
CONFLICTS=     tor-devel-[0-9]*

+PLIST_SUB=     USERS=${USERS}
+PLIST_SUB+=    GROUPS=${GROUPS}
+
  .include <bsd.port.options.mk>

  .if ( (${OSVERSION} < 900000) || \



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).--JgWd90qHvq2XdeEs2y1sJ4gURDCnxnKa8Y2V0XynjZotL3Lf
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.old        2014-04-03 19:48:25.000000000 -0400
+++ Makefile    2014-04-03 19:49:57.000000000 -0400
@@ -42,6 +42,9 @@
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-04-07 06:15:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bf

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Brendan Fabeny freebsd_committer freebsd_triage 2015-03-09 07:24:07 UTC
Sorry about the delay in replying.  I've already informed users about the steps that may be necessary with major updates and new installations in the pkg-message, and I prefer to leave changes of /var to sysadmins, because I don't want to tamper with their local modifications.
Comment 3 Brendan Fabeny freebsd_committer freebsd_triage 2015-05-10 08:44:55 UTC
*** Bug 199365 has been marked as a duplicate of this bug. ***
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2015-12-17 11:03:04 UTC
Should be fixed by r403904