Some operators are confused or alarmed by these logs:
Sep 05 03:22:50.000 [notice] Our directory information is no longer up-to-date enough to build circuits: We're missing descriptors for 1/3 of our primary entry guards (total microdescriptors: 6515/6541).Sep 05 03:22:50.000 [notice] I learned some more directory information, but not enough to build a circuit: We're missing descriptors for 1/3 of our primary entry guards (total microdescriptors: 6515/6541).
We should rephrase them or document that:
tor tries to keep active 3 primary guards for anonymity and safety
we'll try to get new microdescs soon
tor usually recovers quickly from this issue
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I'm OK with the change, but if the log message should not be acted upon, why should we expose it to the users as a [notice]?
Is it so that if we ever get issues like (#30746 (moved)/#21969 (moved)) again we know that this is the underlying issue? In this case, could we just output this message just in pathological cases?
I'm marking this as needs_revision to hear teor's opinion.
How do we reliably detect pathological cases?
Suppress the message, until it occurs a few times within a short timeframe?
That's a good question I don't have an answer for.
Unfortunately, I don't think that's the kind of message that occurs multiple times, looking at #30746 (moved) (and friends) this seems to be able to cause havoc with just a single repeatition.
I'm not sure why this is the case, since router_have_minimum_dir_info() seems to be called all the time and that should eventually call entry_guards_get_err_str_if_dir_info_missing() which is the source of the log message... Things are kinda messy between these two functions tho, so it's kinda hard to understand what's the issue.
Perhaps we can merge this patch for now since it does not seem to make the situation worse, and we can think in the future how to improve the UX? If you agree, feel free to toggle this into merge_ready since the patch LGTM.