Git Product home page Git Product logo

Comments (8)

MeisterP avatar MeisterP commented on June 11, 2024

I can not reproduce this issue.
Does it happen if you download and launch the upstream Tor Browser from https://www.torproject.org/download/ as well?
Have you tried resetting your profile?

from torbrowser-overlay.

leycec avatar leycec commented on June 11, 2024

I can reproduce this issue. Additionally, in my case, the Tor system service fails to connect to some (but not all) clearnet sites. I see an unreasonable number of fatal resolve failed log errors resembling:

Nov 21 03:16:47.000 [notice] Closed 1 streams for service [scrubbed].onion for reason resolve failed. Fetch status: No more HSDir available to query.

This renders torbrowser effectively unusable for me. Of course, I'm also hit by #55. Since installing Wayland just for TorBrowser isn't happening, I've currently elected to avoid using TorBrowser on Gentoo entirely until the radioactive dust settles here.

I understand none of this is your fault, @MeisterP. This is all on upstream for failing to properly test. Thanks for your many years of faithful volunteerism! We'll get this right – eventually. </sigh>

from torbrowser-overlay.

midnightpizza avatar midnightpizza commented on June 11, 2024

What is your TOR_SOCKS_IPC_PATH set to?
When i do have my env set with this: TOR_SOCKS_IPC_PATH=/run/tor/socks
I too get over 80 Tabs, and the error that something went wrong.
But it magically will work if i unset the TOR_SOCKS_IPC_PATH env variable.

torrc is also set like the example torrc is indicating.
net-vpn/tor is build with those useflags: caps lzma man seccomp selinux server tor-hardening verify-sig zstd

I Probably have the control password set wrong, torrc is hashed and env is not hashed or both hashed? its not fully clear.
Also it seems i don't have a /run/tor/control

from torbrowser-overlay.

leycec avatar leycec commented on June 11, 2024

To summarize @midnightpizza's helpful response: tor as a system service is indeed the 💩 show we always knew it to be. Is it any wonder they push Tor Browser so hard? It is not.

That said...

But it magically will work if i unset the TOR_SOCKS_IPC_PATH env variable.

This is fascinating. In my case, I'm fairly sure I tried that – but not certain. My /etc/env.d/99torbrowser contains this helpful comment from my past to future self:

#FIXME: *UGH.* None of the following work. We've tried all possible
#permutations. Disabling this causes "torbrowser" to superficially support a
#subset of some clearnet sites -- but hardly all clearnet sites. Frustration!
#We're convinced this simply does *NOT* work to any reasonable degree.
#FIXME: Disable all of the following if re-enabling "torbrowser-launcher". See:
#    https://github.com/MeisterP/torbrowser-overlay
#TOR_SOCKS_HOST=127.0.0.1
#TOR_SOCKS_PORT=9150
#TOR_SOCKS_IPC_PATH=/run/tor/socks
#
#TOR_CONTROL_HOST=127.0.0.1
#TOR_CONTROL_PORT=9151
#TOR_CONTROL_PASSWD=[cleansed]
#TOR_CONTROL_COOKIE_AUTH_FILE=/run/tor/control.authcookie
#TOR_CONTROL_IPC_PATH=/run/tor/control

Unsurprisingly, I eventually decided to eat crow and just install Wayland for Tor Browser. I'm convinced that most of the issues surrounding tor are due to inadequate error or warning reporting in their log output. Sadly, I'm unwilling to ever try tor again. That was undeniably the worst experience with a system service I've ever had.

I still shudder from the painful memories.

from torbrowser-overlay.

MeisterP avatar MeisterP commented on June 11, 2024

Well, there are basically two ways to configure your locale tor instance. You either use localhost (the local network) or you use unix sockets. With localhost, permissions are handled by a password. With unix sockets, the file permissions of the sockets are used (the user running torbrowser needs to access the sockets)

localhost
env.d/99torbrowser

TOR_SOCKS_HOST=127.0.0.1
TOR_SOCKS_PORT=9150
TOR_CONTROL_HOST=127.0.0.1
TOR_CONTROL_PORT=9151
TOR_CONTROL_PASSWD='"my_password"'

/etc/tor/torrc

SocksPort 127.0.0.1:9150
ControlPort 127.0.0.1:9151
# tor --hash-password my_password
HashedControlPassword 16:1560E15656CEDF4A60CCEA0225BF746A9435B2B89050D3B66A3ADCE480

sockets
env.d/99torbrowser

TOR_SOCKS_IPC_PATH=/run/tor/socks
TOR_CONTROL_IPC_PATH=/run/tor/control

/etc/tor/torrc

SocksPort unix:/run/tor/socks GroupWritable ExtendedErrors
ControlPort unix:/run/tor/control GroupWritable

Your user should have access to /run/tor/socks and /run/tor/control. With GroupWritable this should work if your user is in the same group as tor is running with.
If you use systemd, the RuntimeDirectoryMode option in tor.service needs to be set accordingly as well.

from torbrowser-overlay.

bbergeron0 avatar bbergeron0 commented on June 11, 2024

MeisterP,
/etc/tor/torrc is pulled with net-vpn/tor but that package does not appear in www-client/torbrowser's dependency. Last time I had www-client/torbrowser on my system, I was having the same issue as OP, and each tab reported that tor couldn't start on my system. I think the package may have a missing dependency.

from torbrowser-overlay.

MeisterP avatar MeisterP commented on June 11, 2024

www-client/torbrowser needs access to a tor daemon. (TOR_SOCKS_HOST and TOR_SOCKS_PORT). Whether tor is running on the local machine or on a server on your local network depends on your setup.
There are use cases without tor on the same machine as torbrowser. That's why it is not depending on net-vpn/tor

from torbrowser-overlay.

MeisterP avatar MeisterP commented on June 11, 2024

Is this still an issue?

from torbrowser-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.