Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #11970

Closed (moved)
Open
Opened May 15, 2014 by Trac@tracbot

`[err] sandbox_getaddrinfo(): Bug: (Sandbox) failed to get address localhost!`

Built from git, but using Debian init.d scripts, and configure options. Sandbox appears to cause a crash when the logs are rotated. (The following coincides with the time the logs are normally rotated):

May 15 06:25:02.000 [notice] Received reload signal (hup). Reloading config and resetting internal state.
May 15 06:25:02.000 [notice] Read configuration file "/usr/share/tor/tor-service-defaults-torrc".
May 15 06:25:02.000 [notice] Read configuration file "/etc/tor/torrc".
May 15 06:25:02.000 [err] sandbox_getaddrinfo(): Bug: (Sandbox) failed to get address localhost!
May 15 06:25:02.000 [warn] Couldn't parse address '"localhost:9050"' for SocksPort
May 15 06:25:02.000 [warn] Failed to parse/validate config: Invalid SocksPort/SocksListenAddress configuration
May 15 06:25:02.000 [err] Reading config failed--see warnings above. For usage, try -h.
May 15 06:25:02.000 [warn] Restart failed (config error?). Exiting.

/usr/share/tor/tor-service-defaults-torrc:

DataDirectory /var/lib/tor
PidFile /var/run/tor/tor.pid
RunAsDaemon 1
User debian-tor

ControlSocket /var/run/tor/control
ControlSocketsGroupWritable 1

CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/run/tor/control.authcookie

Log notice file /var/log/tor/log

torrc:

SocksPort localhost:9050
SocksPort 192.168.108.51:9100

SocksPolicy accept 127.0.0.1
SocksPolicy accept 192.168.108.0/24
SocksPolicy reject *

ORPort 443 NoListen
ORPort 9001 NoAdvertise

Nickname PrivateJoker

RelayBandwidthRate 128 KB
RelayBandwidthBurst 172 KB
BandwidthRate 128 KB
BandwidthBurst 172 KB

DirPort 80 NoListen
DirPort 9030 NoAdvertise
DirReqStatistics 0
DirPortFrontPage /etc/tor/tor-exit-notice.html

ExitPolicy reject *:*

AvoidDiskWrites 1
NumCPUs 2
FastFirstHopPK 0
ShutdownWaitLength 60
SafeSocks 1
ProtocolWarnings 1
WarnUnsafeSocks 1
HeartbeatPeriod 3 hours
TLSECGroup P256
DisableAllSwap 1
DisableDebuggerAttachment 1
Sandbox 1

Trac:
Username: alphawolf

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#11970