Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-vpn/tor fails to start: Socket creation failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dennisn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Aug 2004
Posts: 119
Location: Montreal, Canada

PostPosted: Wed Jul 14, 2021 5:46 pm    Post subject: net-vpn/tor fails to start: Socket creation failed Reply with quote

After upgrading net-vpn/tor, it failed to start:

[warn] Socket creation failed: Address family not supported by protocol
[warn] Failed to parse/validate config: Failed to bind one of the listener ports.

The error message wasn't very helpful, nor was /etc/tor/torrc.sample.

It turns out that the problem was that I didn't have ipv6 support. To fix it I had to append "IPv4Only" to ORPort in torrc:

eg.
ORPort 6969 IPv4Only
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Thu Jul 15, 2021 1:20 am    Post subject: Reply with quote

Please consider filing a problem report with the Tor project, requesting that they produce a better error message in this case. The program knew which address family it was requesting, and if it had instead written Socket creation failed for AF_INET6 address address, you might have found the solution more readily. I suspect most people leave IPv6 support enabled in the kernel, even if they do not use IPv6 over the Internet at large.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum