Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiddenService not set up in torrc file because of sed expression error #40

Open
pcantalupo opened this issue Feb 13, 2022 · 0 comments
Open

Comments

@pcantalupo
Copy link

I tried installing the standup script following your directions. I noticed that the HiddenService lines were not added to my /etc/tor/torrc. Then, I saw this error in /standup.err:

standup@localhost:~$ grep ^sed /standup.err
sed: -e expression #1, char 253: unknown option to `s'

I was able to reproduce the error by running the code https://github.com/BlockchainCommons/Bitcoin-Standup-Scripts/blob/master/Scripts/LinodeStandUp.sh#L214-L225:

standup@localhost:~$ sed -i -e 's/## address y:z./## address y:z.\
\
HiddenServiceDir \/var\/lib\/tor\/standup\/\
HiddenServiceVersion 3\
HiddenServicePort 18332 127.0.0.1:18332\
HiddenServicePort 18443 127.0.0.1:18443\
HiddenServicePort 8332 127.0.0.1:8332\
\
HiddenServiceDir \/var/\lib/\tor/\cypherpunkpay\
HiddenServiceVersion 3\
HiddenServicePort 8081 127.0.0.1:8081\
/g' /etc/tor/torrc
sed: -e expression #1, char 253: unknown option to `s'

I think the problem is this line that doesn't properly escape the directory forward slashes. It needs changed to:

HiddenServiceDir \/var\/lib\/tor\/cypherpunkpay\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant