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

Configuration is broken if project name starts with "tor" and links are used #15

Closed
iBobik opened this issue May 20, 2017 · 3 comments
Closed
Assignees

Comments

@iBobik
Copy link

iBobik commented May 20, 2017

If I use links between torproxy and another service it will expose env variables of linked service into torproxy container. It is not problem unless compose project name starts with "tor", because then there will be env variables TOR_* and this variables will be copied into /etc/tor/torrc.

Then tor will fail on broken config:

21. 5. 2017 1:35:36May 21 01:35:36.957 [notice] Tor 0.2.9.10 (git-e28303bcf90b842d) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.1.0e and Zlib 1.2.8.
21. 5. 2017 1:35:36May 21 01:35:36.960 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
21. 5. 2017 1:35:36May 21 01:35:36.961 [notice] Read configuration file "/etc/tor/torrc".
21. 5. 2017 1:35:36May 21 01:35:36.974 [warn] Failed to parse/validate config: Unknown option '_DOWNLOADER_DB_1_ENV_GOSU_VERSION'.  Failing.
21. 5. 2017 1:35:36May 21 01:35:36.975 [err] Reading config failed--see warnings above.
@dperson dperson self-assigned this May 22, 2017
@dperson
Copy link
Owner

dperson commented May 22, 2017

Okay, tor uses camelCase for it's configuration option names. I've modified the entry point script to skip any named values starting with tor_ that contain a second (or more) underscore character(s). Hopefully this will fix the issue you're seeing.

@dperson dperson closed this as completed May 22, 2017
@iBobik
Copy link
Author

iBobik commented May 22, 2017 via email

dperson pushed a commit that referenced this issue May 25, 2017
@renozion
Copy link

renozion commented Mar 2, 2023

hello, I am stuck on this error, cant find solution: Failed to parse/validate config: Unknown option 'service'. Failing.
any clues?

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

3 participants