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
  • #14164

Closed (moved)
Open
Opened Jan 11, 2015 by toralf@toralf

Controller method to get our own descriptor

I'm wondering why this pythin snippet

def main():
  ControlPort = 9051
  ProcessName = 'tor'

  with Controller.from_port(port = ControlPort) as controller:
    controller.authenticate()
    #print " Tor version %s" % controller.get_version()
    try:
      desc = controller.get_microdescriptor()
      print " flags : %s" % desc.flags()
      print " measured bandwidth : %i" % desc.measured()
    except Exception as exc:
      print exc
      #pass

gives

Tor was unable to provide the descriptor for 'F1BE15429B3CE696D6807F4D4A58B1BFEC45C822'

Does this means that stems asks tor and tor doesn't know itself ?

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#14164