Opened 2 years ago

Closed 20 months ago

#20456 closed defect (duplicate)

Relative paths don't work for PidFile and control_auth_cookie

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: 0.3.2.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: regression?, triaged-out-20170308
Cc: Actual Points:
Parent ID: #22101 Points: .5
Reviewer: Sponsor:

Description

When I use relative paths in my torrc, tor tells me what it will use for the PidFile, and then claims it can't find it.
It also has a similar issue with a relative data directory and control_auth_cookie.

Oct 25 11:24:12.784 [warn] Path for PidFile (./data/tor.2/tor.pid) is relative and will resolve to /home/ubuntu/bwauth/torflow/NetworkScanners/BwAuthority/./data/tor.2/tor.pid. Is this what you wanted?
...
Oct 25 11:24:12.000 [warn] Unable to open "./data/tor.2/tor.pid" for writing: No such file or directory
Oct 25 11:24:12.000 [warn] Couldn't open "./data/tor.2/control_auth_cookie.tmp" (./data/tor.2/control_auth_cookie) for writing: No such file or directory

Child Tickets

Change History (12)

comment:1 Changed 2 years ago by teor

This may be related to #20119, and, if so, there are also issues with creating a PidFile in a non-existent directory.

comment:2 Changed 2 years ago by dgoulet

Milestone: Tor: 0.3.0.x-final

comment:3 Changed 2 years ago by dgoulet

Keywords: triage-out-030-201612 added
Milestone: Tor: 0.3.0.x-finalTor: 0.3.1.x-final

Triaged out on December 2016 from 030 to 031.

comment:4 Changed 2 years ago by nickm

Points: .5

comment:5 Changed 2 years ago by nickm

Keywords: triaged-out-20170308 added
Milestone: Tor: 0.3.1.x-finalTor: unspecified

Deferring all 0.3.1 tickets with status == new, owner == nobody, sponsor == nobody, points > 0.5, and priority < high.

I'd still take patches for most of these -- there's just nobody currently lined up to work on them in this timeframe.

comment:6 Changed 2 years ago by teor

Milestone: Tor: unspecifiedTor: 0.3.1.x-final
Parent ID: #22101
Version: Tor: 0.2.8.9

comment:7 in reply to:  1 Changed 2 years ago by arma

Replying to teor:

This may be related to #20119, and, if so, there are also issues with creating a PidFile in a non-existent directory.

Agreed. In fact, how does this ticket differ from that one?

That is, do relativepaths work just fine for pidfile and control_auth_cookie, so long as the appropriate directory exists first?

comment:8 Changed 2 years ago by nickm

Milestone: Tor: 0.3.1.x-finalTor: 0.3.2.x-final

0.3.1 feature freeze today: these don't seem like they will be all sorted out in time. Let's try to make progress in 0.3.2.

comment:9 Changed 2 years ago by nickm

Keywords: triage-out-030-201612 removed

comment:10 Changed 2 years ago by nickm

Also see #4885

comment:11 Changed 22 months ago by arma

I think the "relative datadir" part of this bug is now better understood as #22731, and the "pidfile won't create its enclosing directories" part of this bug is better understood as #20119.

comment:12 Changed 20 months ago by nickm

Resolution: duplicate
Status: newclosed

closing in favor of abovementioned tickets.

Note: See TracTickets for help on using tickets.