Automatic Reupload Attempts for Failed Descriptors

Description

From the Security page:

If descriptor uploads fail due to network issues or relay unavailability, administrators must manually restart the process. Automating reuploads would improve reliability.

This seems to be happening because:

  • Function upload_descriptor() may raise stem.InvalidRequest and stem.ProtocolError.
  • But these exceptions aren't handled by OnionbalanceService._upload_descriptor.

Tasks

  • Properly act on stem.InvalidRequest and stem.ProtocolError exceptions.
  • Update the Security page accordingly.
  • Consider to re-bootstrap the Tor connection after every failed upload job.
  • Implement reupload attempts for failed descriptors.
  • Check if there are other problems preventing Onionbalance to upload failed descriptors again.

Time estimation

  • Complexity: very small (0.5 day)
  • Uncertainty: low (x1.1)
  • Reference (adapted)
Edited Feb 11, 2026 by Silvio Rhatto
Assignee Loading
Time tracking Loading