Skip to content

Bug: nexusd can fail on startup due to attempting to use default pkarr relays when in testnet modeΒ #592

@catch-21

Description

@catch-21

pubky-nexus version: b0d428b
pubky-stack version: https://github.com/pubky/pubky-stack/tree/ce44db8342d7e0673eba8f6862ba11e163a1ff9b

Using nexusd in our E2E test pipeline works most of the time. One occurrence of it failing startup has been noticed here https://github.com/pubky/franky/actions/runs/18143567883/job/51640128555 (look at 'Dump docker logs on failure' step).

2025-09-30T21:12:33.175256Z DEBUG hyper_util::client::legacy::pool:395: pooling idle connection for ("https", relay.pkarr.org)
2025-09-30T21:12:33.175497Z DEBUG pkarr::client::relays:337: PUT reqwest::Error { kind: Request, url: "https://relay.pkarr.org/kspydab4rzhrxp9ydrmegp86ju3xo3n9kumeojg5rz5haaxzg65o", source: TimedOut }
2025-09-30T21:12:33.175529Z DEBUG hyper_util::client::legacy::pool:395: pooling idle connection for ("https", pkarr.pubky.org)
2025-09-30T21:12:33.175560Z DEBUG pkarr::client::relays:337: PUT reqwest::Error { kind: Request, url: "https://pkarr.pubky.org/kspydab4rzhrxp9ydrmegp86ju3xo3n9kumeojg5rz5haaxzg65o", source: TimedOut }
2025-09-30T21:12:33.175586Z  WARN nexus_webapi::key_republisher:49: Failed to publish the service's pkarr packet to the DHT: Publish query timed out with no responses neither success or errors.
2025-09-30T21:12:33.175643Z ERROR nexus_webapi::builder:86: Failed to start Nexus API: Publish query timed out with no responses neither success or errors.

Config being used is https://github.com/pubky/pubky-docker/blob/70054e36f8aa63e9f63c2ff579614e5ef33fc8ce/pubky-nexus-config-testnet.toml

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't workingπŸ”‘ pkarrPKARR resolution/discovery work

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions