[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #10554 [Tor]: Incorrect error message when invalid DataDirectory is specified in FreeBSD
#10554: Incorrect error message when invalid DataDirectory is specified in FreeBSD
-----------------------+-------------------------------
Reporter: modalexii | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Tor | Version: Tor: 0.2.3.25
Keywords: | Actual Points:
Parent ID: | Points:
-----------------------+-------------------------------
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
1. Torrc has __valid__ÂLog specification of any kind; e.g.Â`Log notice
syslog`ÂorÂ`Log notice file /var/log/tor/notices.log`
1. Start tor as a service, i.e.Â`# Service tor start`
1. 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@xxxxxxxxxxxxxxxxxxxx:/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.
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10554>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs