Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #5572

Closed (moved)
(moved)
Open
Created Apr 04, 2012 by Trac@tracbot

Tor fails to store dynamic DH modulus on first start

when first starting tor as a relay, notice logs complain about not being able to open the file it wants to write dynamic DH modulus to for writing.

[WARN] Couldn't open "/var/lib/tor/keys/dynamic_dh_params" [NOTICE] Failed while storing dynamic DH modulus. Make sure your data directory is sane.

It would appear that /var/lib/tor/keys is created after tor tries to open dynamic_dh_params, thus the first time tor is started as a relay, it generates DH modulus and fails to save them. The second time, however, as /var/lib/tor/keys has been created, tor generates other DH modulus, and is then able to save those.

I guess it shouldn't be hard to fix once the code responsible for that sequence is located and put back in the right order so that keys is created before trying to save any DH Modulus.

tor version tested was from the current latest git for 0.2.3.13-alpha (commit b8e582255e8ee920904c71ed9d4ff3927f22757a)

Trac:
Username: koolfy

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking