You are not logged in.

#1 2008-03-03 03:42:01

fflarex
Member
Registered: 2007-09-15
Posts: 466

tor daemon will not start up on boot...

Here's the appropriate line from rc.conf, but it will not start unless I enter it manually from the command line. I'm not even sure where else to look or debug, as I've never had any troubles with daemons before this.

DAEMONS=(syslog-ng cpufreq dhcdbd networkmanager tor polipo crond bluetooth cups hal fam alsa)

And as a related but less important question, does anyone know where tor logs are located by default? I tried setting up a relay but could not verify that it worked because I don't know where the logs are kept.

Last edited by fflarex (2008-03-03 03:42:23)

Offline

#2 2008-03-03 04:36:19

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: tor daemon will not start up on boot...

you can just add tor to /etc/rc.local

Offline

#3 2008-03-03 17:12:56

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: tor daemon will not start up on boot...

Didn't work... (the line I added was just '/etc/rc.d/tor start')

Any other ideas?

Offline

#4 2008-03-03 17:40:07

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: tor daemon will not start up on boot...

you have to simply add:

tor

to /etc/rc.local

Offline

#5 2008-03-03 19:36:58

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: tor daemon will not start up on boot...

Still a no-go...

Offline

#6 2008-03-06 18:35:22

TheDoctor
Member
From: Ontario, Canada
Registered: 2005-06-28
Posts: 63
Website

Re: tor daemon will not start up on boot...

cat the tor startup script and run the startup command locally.  That should throw any errors to console.

Offline

#7 2008-03-06 19:20:05

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: tor daemon will not start up on boot...

I'm afraid I don't really know what you mean. Care to give an example?

Anyways, I've found an error when I simply run 'tor' which could be the reason it does not start automatically. This error does not appear when I run 'sudo /etc/rc.d/tor start' (unless it is redirected to the log files instead, which I still haven't found). The error is:

Mar 06 13:17:58.439 [warn] Error setting to configured GID: Operation not permitted
Mar 06 13:17:58.439 [warn] Failed to parse/validate config: Problem with User or Group value. See logs for details.

As far as I can tell, nothing should be wrong at all with the groups and it is all set according to the tor documentation. This is really starting to bother me...

Offline

#8 2008-03-06 20:11:20

TheDoctor
Member
From: Ontario, Canada
Registered: 2005-06-28
Posts: 63
Website

Re: tor daemon will not start up on boot...

Mar 06 13:17:58.439 [warn] Error setting to configured GID: Operation not permitted
Mar 06 13:17:58.439 [warn] Failed to parse/validate config: Problem with User or Group value. See logs for details.

This is because a standard user can't switch users.  No problem here.   what happens when you run 'sudo tor' ?

Offline

#9 2008-03-08 16:47:39

matahari
Member
From: Bandung, Indonesia
Registered: 2007-04-04
Posts: 59

Re: tor daemon will not start up on boot...

try to uncoment and comment this line in /etc/tor/torrc

Log notice file /var/lib/tor/notices.log
#Log notice syslog

now you can see more verbose log at /var/lib/tor/notices.log

Offline

#10 2009-01-31 01:01:39

az7
Member
Registered: 2008-07-24
Posts: 5

Re: tor daemon will not start up on boot...

/etc/tor/torrc references:

## Uncomment this to start the process in the background... or use
## --runasdaemon 1 on the command line.
RunAsDaemon 1
User tor
Group tor

I commented out User tor & Group tor

also /var/lib/tor had the following permissions set:

drwx------  2   43     43 4096 2008-12-18 03:17 tor

after running "chown -R root:root /var/lib/tor" I was able to start tor.

Last edited by az7 (2009-01-31 01:03:19)

Offline

Board footer

Powered by FluxBB