Skip to content
Snippets Groups Projects
  1. Jun 18, 2020
  2. Dec 30, 2019
  3. Dec 28, 2019
    • Damian Johnson's avatar
      Drop unused skip constants · 062cace5
      Damian Johnson authored
      The last commit added unused DIRAUTH_SKIP_REACHABLE and DIRAUTH_SKIP_SEEN
      constants. If we have use for this at some point then happy to reintroduce
      them, but for the moment dead code is unhelpful.
      062cace5
    • Starlight's avatar
      resolve ticket 32842 · 5303c453
      Starlight authored and Damian Johnson's avatar Damian Johnson committed
      replace hard coded exclusion of authority tor26 with three
      lists that during checks determine which authorities to not
      a) check reachability for
      b) check presence in consensus for
      c) request and validate documents from
      
      correct defect where router-line IPv4 OR address was not
      checked for reachability
      
      eliminate Python 3 exception by truncating array index
      expression result to integer (further 2to3 revisions
      applied during testing but not committed)
      5303c453
  4. Nov 19, 2019
  5. Sep 24, 2019
  6. Aug 20, 2019
  7. Jan 01, 2019
    • Damian Johnson's avatar
      Update copyright dates for 2019 · 342dab71
      Damian Johnson authored
      Happy new year! Bumping the dates for 2019...
      
        % find . -type f -iname '*.py' -exec sed -i 's/-2018/-2019/g' "{}" +;
        % grep -R "# Copyright 2018," ./*
      342dab71
  8. Dec 17, 2018
  9. Nov 02, 2018
  10. Jun 15, 2018
    • Damian Johnson's avatar
      Stacktrace when tor26 lacks authority flag · a7989448
      Damian Johnson authored
      Oops, need to be a tad more defensive here...
      
      	Traceback (most recent call last):
        	File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 976, in <module>
          	main()
      	  File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 258, in main
        	  issues += run_checks(consensuses, votes)
      	  File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 352, in run_checks
        	  issues = checker(latest_consensus, consensuses, votes)
      	  File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 640, in has_authority_flag
        	  seen_authorities.remove('tor26')
      	KeyError: 'tor26'
      a7989448
  11. May 13, 2018
  12. May 10, 2018
  13. Apr 22, 2018
    • Damian Johnson's avatar
      Errors are getting incorrectly suppressed · 023cbeef
      Damian Johnson authored
      Interesting! Roger reported an issue where he isn't getting notified about
      moria1's bwauth scanner being down. In taking a look at the logs I'm indeed
      seeing something funky...
      
        04/21/2018 21:05:46 [DEBUG] NOTICE: The following directory authorities are not reporting bandwidth scanner results: gabelmoo
        04/21/2018 21:05:47 [INFO] Suppressing The_following_directory_authorities_are_not_reporting_bandwidth_scanner_results:_gabelmoo, time remaining is 1
        3 hours
        04/21/2018 21:05:47 [INFO] All 1 issues were suppressed. Not sending a notification.
        04/21/2018 21:05:47 [DEBUG] Checks finished, runtime was 46.84 seconds
        04/21/2018 22:05:45 [DEBUG] ERROR: The following directory authorities are not reporting bandwidth scanner results: gabelmoo, moria1
        04/21/2018 22:05:46 [INFO] All 1 issues were suppressed. Not sending a notification.
        04/21/2018 22:05:46 [DEBUG] Checks finished, runtime was 45.56 seconds
      
      I suspect what's happening is this...
      
        * When only gabelmoo is down this is a NOTICE runlevel notification, which
          works.
      
        * When moria1 is down as well it's an ERROR runlevel notice which should
          generate an email every hour, but isn't. I think this is due to a bug where
          ERROR notices in specific are getting incorrectly suppressed.
      
      Lets give this a try...
      023cbeef
  14. Apr 14, 2018
  15. Apr 13, 2018
  16. Apr 11, 2018
    • Damian Johnson's avatar
      Disable DocTor checks for tor26 · 5bae2023
      Damian Johnson authored
      To cut down on abuse tor26 rejects DirPort requests without a '.z' suffix
      (technically it throttles them, but I've never seen one work so effectively
      it's blocked). Stem no longer appends this suffix, using headers to indicate
      the compression it wants instead.
      5bae2023
  17. Apr 01, 2018
  18. Mar 24, 2018
  19. Feb 17, 2018
  20. Feb 11, 2018
  21. Jan 22, 2018
  22. Dec 18, 2017
  23. Nov 02, 2017
    • Damian Johnson's avatar
      Drop bwauth exception for gabelmoo · d54d5b3a
      Damian Johnson authored
      Earlier gabelmoo's bwauth had issues and after a while Sebastian disabled it.
      During it we disabled this check so he woulnd't spam for having *or* omitting
      bwauth measurements. Sebastian's now running a bwauth again so dropping this
      exception.
      d54d5b3a
  24. Aug 27, 2017
  25. May 10, 2017
  26. May 09, 2017
    • Damian Johnson's avatar
      Syntax error · d8f4d7a0
      Damian Johnson authored
      Stupid me, missing a bracket. Would be nice if we had a test suite for these... :/
      d8f4d7a0
    • Damian Johnson's avatar
      Avoid crashing when a vote is missing · 8724b42d
      Damian Johnson authored
      Addressing a simple stacktrace I see on occasion...
      
        Traceback (most recent call last):
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 885, in <module>
            main()
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 244, in main
            issues += run_checks(consensuses, votes)
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 336, in run_checks
            issues = checker(latest_consensus, consensuses, votes)
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 790, in shared_random_commit_partitioning
            if commitment.commit != self_commitments[commitment.identity]:
        KeyError: u'D586D18309DED4CD6D57C18FDB97EFA96D330566'
      8724b42d
  27. Apr 22, 2017
  28. Jan 29, 2017
    • Damian Johnson's avatar
      Stacktrace when shared random commitment isn't present · 13f97932
      Damian Johnson authored
      Not entirely sure what's up yet but got the following stacktrace on 1/26/17...
      
        Traceback (most recent call last):
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 879, in <module>
            main()
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 244, in main
            issues += run_checks(consensuses, votes)
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 336, in run_checks
            issues = checker(latest_consensus, consensuses, votes)
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 810, in shared_random_reveal_partitioning
            our_reveal = [c.reveal for c in vote.directory_authorities[0].shared_randomness_commitments if c.identity == our_v3ident][0]
        IndexError: list index out of range
      13f97932
  29. Jan 18, 2017
  30. Jan 17, 2017
  31. Jan 16, 2017
  32. Dec 22, 2016
    • Damian Johnson's avatar
      Stacktrace when all descriptors are unavalable or malformed · ab4698a6
      Damian Johnson authored
      Just addressing an interesting edge case that's currently cropping up because the consensus is invalid.
      
        Traceback (most recent call last):
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 802, in <module>
            main()
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 239, in main
            consensuses, consensus_fetching_issues = get_consensuses()
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 755, in get_consensuses
            return _get_documents('consensus', '/tor/status-vote/current/consensus.z')
          File "/srv/doctor.torproject.org/doctor/consensus_health_checker.py", line 790, in _get_documents
            median_time = sorted(times_taken.values())[len(times_taken) / 2]
        IndexError: list index out of range
      ab4698a6
  33. Nov 02, 2016
Loading