[GH-ISSUE #687] "can't get next random port" spamming the logs #271

Closed
opened 2026-03-07 23:09:59 +03:00 by kerem · 4 comments
Owner

Originally created by @axos88 on GitHub (Feb 12, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/687

Describe the bug
Spamming the logs with the following message:
WARN 2019-02-08T00:07:05.159159836Z: trust_dns_proto::udp::udp_stream: could not get next random port, delaying, filling up the disk. (one line about every 5ms)

To Reproduce

I think it's caused by os error 24 (too many files open, but not sure, it occurs randomly)

Expected behavior

Exponential backoff maybe?

System:

  • OS: Raspbian GNU/Linux 9 (stretch)
  • Architecture: arm, raspberry pi
  • Version: 9
  • rustc version: 1.31

Version:
Crate: resolver
Version: 0.4.3

Additional context

Occurs randomly, until disk fills up.

Originally created by @axos88 on GitHub (Feb 12, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/687 **Describe the bug** Spamming the logs with the following message: `WARN 2019-02-08T00:07:05.159159836Z: trust_dns_proto::udp::udp_stream: could not get next random port, delaying`, filling up the disk. (one line about every 5ms) **To Reproduce** I think it's caused by os error 24 (too many files open, but not sure, it occurs randomly) **Expected behavior** Exponential backoff maybe? **System:** - OS: Raspbian GNU/Linux 9 (stretch) - Architecture: arm, raspberry pi - Version: 9 - rustc version: 1.31 **Version:** Crate: resolver Version: 0.4.3 **Additional context** Occurs randomly, until disk fills up.
kerem 2026-03-07 23:09:59 +03:00
Author
Owner

@bluejekyll commented on GitHub (Feb 12, 2019):

This is interesting, can you describe your situation a little more? It sounds like you have a significant number of resolutions ocuring if this is the case.

We can drop that message to a debug log message.

<!-- gh-comment-id:462798664 --> @bluejekyll commented on GitHub (Feb 12, 2019): This is interesting, can you describe your situation a little more? It sounds like you have a significant number of resolutions ocuring if this is the case. We can drop that message to a debug log message.
Author
Owner

@axos88 commented on GitHub (Feb 12, 2019):

I'm not sure what is happening exactly either yet, I shouldn't be having multiple resolutions happening simultaneously, I'm still investigating why the error 24 is occuring. However if it does happen, it will spam the logs, because it will log out the same message for every poll that happens.

<!-- gh-comment-id:462821836 --> @axos88 commented on GitHub (Feb 12, 2019): I'm not sure what is happening exactly either yet, I shouldn't be having multiple resolutions happening simultaneously, I'm still investigating why the error 24 is occuring. However if it does happen, it will spam the logs, because it will log out the same message for every poll that happens.
Author
Owner

@bluejekyll commented on GitHub (Feb 12, 2019):

Is this accurate: resolver Version: 0.4.3? That would be really old. can you confirm that version please? I'd highly recommend upgrading to 0.10 (current supported release), or the 0.11 alpha preview release. There were some issues discovered in previous versions related to socket management, that have since been fixed.

Similarly, the 0.6 or 0.7 release of the proto crate has those fixes.

<!-- gh-comment-id:462858660 --> @bluejekyll commented on GitHub (Feb 12, 2019): Is this accurate: `resolver Version: 0.4.3`? That would be really old. can you confirm that version please? I'd highly recommend upgrading to 0.10 (current supported release), or the 0.11 alpha preview release. There were some issues discovered in previous versions related to socket management, that have since been fixed. Similarly, the 0.6 or 0.7 release of the proto crate has those fixes.
Author
Owner

@axos88 commented on GitHub (Feb 13, 2019):

No, I must've missed something, I'm using 0.10.0

<!-- gh-comment-id:463231990 --> @axos88 commented on GitHub (Feb 13, 2019): No, I must've missed something, I'm using 0.10.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#271
No description provided.