Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #10554

Closed (moved)
(moved)
Open
Created Jan 04, 2014 by Trac@tracbot

Incorrect error message when invalid DataDirectory is specified in FreeBSD

When torrc DataDirectory is invalid, messages output to stderr incorrectly state that Log is invalid.

To reproduce:

  1. Torrc has invalid DataDirectory specification like DataDirectory /foo/does-not-exist or similar
  2. Torrc has valid Log specification of any kind; e.g. Log notice syslog or Log notice file /var/log/tor/notices.log
  3. Start tor as a service, i.e. # Service tor start
  4. Messages written to stderr are as follows:
Jan 04 17:43:01.000 [warn] Couldn't open file for 'Log notice file /var/log/tor': Is a directory
<snip>
Jan 04 17:43:01.000 [warn] Failed to parse/validate config: Failed to init Log options. See logs for details.

To remedy, specify a valid DataDirectory or comment out the line. Tor runs without issue, revealing that the Log specification was not the issue.

# uname -a
FreeBSD 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

 # tor --version
Jan 04 18:01:55.249 [notice] Tor v0.2.3.25 (git-17c24b3118224d65) running on FreeBSD.

Trac:
Username: modalexii

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking