Bug 188293 - security/tor: When starting Tor, I get: "Failed to parse/validate config: Failed to init Log options"
Summary: security/tor: When starting Tor, I get: "Failed to parse/validate config: Fai...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
: 199365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-05 17:00 UTC by Neel Chauhan
Modified: 2015-12-17 11:03 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (405 bytes, patch)
2014-04-05 17:00 UTC, Neel Chauhan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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