0

Self-hosting onion service and noticed service has availability issues.

Added following API route over clear net to monitor availability using Cronitor.

app.get("/api/status/tor", async (req, res) => {
  try {
    await execa("curl", [
      "--fail",
      "--show-error",
      "--silent",
      "--socks5-hostname",
      "localhost:9050",
      process.env.REACT_APP_TOR_URL,
    ])
    return res.sendStatus(200)
  } catch (error) {
    logger.captureException(error)
    return res.sendStatus(500)
  }
})

Running systemctl status tor@*, I noticed following error.

Tried for 120 seconds to get a connection to [scrubbed]:80. Giving up. (waiting for circuit)

Interestingly enough, I can access onion service using Tor Browser on another computer.

Running systemctl restart tor@* on server fixes issue.

Would someone happen to know what is going on?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.