Opened 5 years ago

Closed 5 years ago

#14010 closed defect (fixed)

SETCONF can't create a hidden service if the directory doesn't exist

Reported by: atagar Owned by:
Priority: Medium Milestone: Tor: 0.2.6.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-hs regression
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hi Nick, a couple weeks ago Stem's integ tests started failing. Trouble looks to be commit 85bfad1. When the tests do...

SETCONF HiddenServiceDir="test_hidden_service_empty/"
        HiddenServiceDir="test_hidden_service1/"
          HiddenServicePort="8020 127.0.0.1:8020"
          HiddenServicePort="8021 127.0.0.1:8021"
          HiddenServiceVersion="2"
        HiddenServiceDir="test_hidden_service2/"
          HiddenServicePort="8030 127.0.0.1:8030"
          HiddenServicePort="8031 127.0.0.1:8031"
          HiddenServicePort="8032 127.0.0.1:8032"
          HiddenServiceAuthorizeClient="stealth a, b"

(newlines and whitespace added for readability)

Tor previously worked, but after the commit balks with...

Dec 21 11:59:36.000 [warn] Directory test_hidden_service2/ does not exist.
Dec 21 11:59:36.000 [warn] Controller gave us config lines that didn't validate: Failed to configure rendezvous options. See logs for details.

In my case the directory owner and tor's user are the same, so there wasn't any permission issues.

Child Tickets

Change History (4)

comment:1 Changed 5 years ago by atagar

I just swapped the test to use absolute paths in case relative paths were the issue but nay...

SETCONF HiddenServiceDir="/home/atagar/Desktop/stem/test/data/test_hidden_service2"
          HiddenServicePort="8030 127.0.0.1:8030"
          HiddenServicePort="8031 127.0.0.1:8031"
          HiddenServicePort="8032 127.0.0.1:8032"
          HiddenServiceAuthorizeClient="stealth a, b"
        HiddenServiceDir="/home/atagar/Desktop/stem/test/data/test_hidden_service_empty"
        HiddenServiceDir="/home/atagar/Desktop/stem/test/data/test_hidden_service1"
          HiddenServicePort="8020 127.0.0.1:8020"
          HiddenServicePort="8021 127.0.0.1:8021"
          HiddenServiceVersion="2"

... results in....

Dec 21 12:13:48.000 [warn] Directory /home/atagar/Desktop/stem/test/data/test_hidden_service1 does not exist.
Dec 21 12:13:48.000 [warn] Controller gave us config lines that didn't validate: Failed to configure rendezvous options. See logs for details.

comment:2 Changed 5 years ago by atagar

Summary: Hidden service regressionSETCONF can't create a hidden service if the directory doesn't exist

Changing the ticket title to reflect what's up. Seems pretty straight forward.

comment:3 Changed 5 years ago by nickm

Should be fixed in 276700131a14697aa84d95a867782bbfd612277f ?

comment:4 Changed 5 years ago by nickm

Keywords: tor-hs regression added
Milestone: Tor: 0.2.6.x-final
Resolution: fixed
Status: newclosed

(please reopen if not)

Note: See TracTickets for help on using tickets.