Skip to content

Error: Cannot resolve -bind address: 'bitcoind:8334=onion' #26484

@schildbach

Description

@schildbach

In my quest to finally fix #25094, I figured I need to bind the onion listen port explicitly to the external interface (bitcoind), not to "all interfaces" ([::]). So I'm using the argument

-bind=bitcoind:${BITCOIND_TOR_PORT}=onion

/etc/hostname is set to bitcoind and the hostname command yields the expected result. Also, both nslookup and ping can resolve the hostname to the external IP.

Note: I cannot use the numerical IP, because Docker assigns IP addresses dynamically on each invocation.

Expected behavior

I'd expect bitcoind to also resolve the hostname to my external IP, just like ping and nslookup do.

Actual behavior

In short, it dies.

bitcoind_1          | Error: Cannot resolve -bind address: 'bitcoind:8334=onion'
bitcoind_1          | Shutdown: In progress...
bitcoind_1          | Error: Cannot resolve -bind address: 'bitcoind:8334=onion'
bitcoind_1          | Shutdown: done

System information

bitcoind 24.0rc4 (self built), Docker+Compose from Ubuntu 22.04.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions