Skip to content

Invalid port specified in -zmqpubrawtx when using IPC #29802

@tajelp

Description

@tajelp

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

This error is being returned if IPC is specified instead of tpc:

Error: Invalid port specified in -zmqpubrawtx: 'ipc:///root/snap/bitcoin-core/common/.bitcoin/bitcoind.tx.raw

Expected behaviour

IPC should correctly work

Steps to reproduce

# cat ~/snap/bitcoin-core/common/.bitcoin/bitcoin.conf

server=1
rpcuser=<censored>
rpcpassword=<censored>
zmqpubhashtx=tcp://127.0.0.1:29000
zmqpubhashblock=tcp://127.0.0.1:29001
zmqpubrawblock=tcp://127.0.0.1:29002
zmqpubsequence=tcp://127.0.0.1:29004
zmqpubrawtx=ipc:///root/snap/bitcoin-core/common/.bitcoin/bitcoind.tx.raw

Relevant log output

2024-04-04T07:58:25Z Bitcoin Core version v26.0.0 (release build)
2024-04-04T07:58:25Z Using the 'x86_shani(1way,2way)' SHA256 implementation
2024-04-04T07:58:25Z Using RdSeed as an additional entropy source
2024-04-04T07:58:25Z Using RdRand as an additional entropy source
2024-04-04T07:58:25Z Default data directory /root/snap/bitcoin-core/common/.bitcoin
2024-04-04T07:58:25Z Using data directory /root/snap/bitcoin-core/common/.bitcoin
2024-04-04T07:58:25Z Config file: /root/snap/bitcoin-core/common/.bitcoin/bitcoin.conf
2024-04-04T07:58:25Z Config file arg: rpcpassword=****
2024-04-04T07:58:25Z Config file arg: rpcuser=****
2024-04-04T07:58:25Z Config file arg: server="1"
2024-04-04T07:58:25Z Config file arg: zmqpubhashblock="tcp://127.0.0.1:29001"
2024-04-04T07:58:25Z Config file arg: zmqpubhashtx="tcp://127.0.0.1:29000"
2024-04-04T07:58:25Z Config file arg: zmqpubrawblock="tcp://127.0.0.1:29002"
2024-04-04T07:58:25Z Config file arg: zmqpubrawtx="ipc:///root/snap/bitcoin-core/common/.bitcoin/bitcoind.tx.raw"
2024-04-04T07:58:25Z Config file arg: zmqpubsequence="tcp://127.0.0.1:29004"
2024-04-04T07:58:25Z Using at most 125 automatic connections (65536 file descriptors available)
2024-04-04T07:58:25Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
2024-04-04T07:58:25Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
2024-04-04T07:58:25Z Script verification uses 15 additional threads
2024-04-04T07:58:25Z scheduler thread start
2024-04-04T07:58:25Z Binding RPC on address ::1 port 8332
2024-04-04T07:58:25Z Binding RPC on address 127.0.0.1 port 8332
2024-04-04T07:58:25Z [http] creating work queue of depth 16
2024-04-04T07:58:25Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
2024-04-04T07:58:25Z [http] starting 4 worker threads
2024-04-04T07:58:25Z Using wallet directory /root/snap/bitcoin-core/common/.bitcoin/wallets
2024-04-04T07:58:25Z init message: Verifying wallet(s)…
2024-04-04T07:58:25Z Using /16 prefix for IP bucketing
2024-04-04T07:58:25Z init message: Loading P2P addresses…
2024-04-04T07:58:25Z Loaded 63406 addresses from peers.dat  101ms
2024-04-04T07:58:25Z init message: Loading banlist…
2024-04-04T07:58:25Z SetNetworkActive: true
2024-04-04T07:58:25Z Error: Invalid port specified in -zmqpubrawtx: 'ipc:///root/snap/bitcoin-core/common/.bitcoin/bitcoind.tx.raw'
Error: Invalid port specified in -zmqpubrawtx: 'ipc:///root/snap/bitcoin-core/common/.bitcoin/bitcoind.tx.raw'
2024-04-04T07:58:25Z Shutdown: In progress...
2024-04-04T07:58:25Z scheduler thread exit
2024-04-04T07:58:25Z Flushed fee estimates to fee_estimates.dat.
2024-04-04T07:58:25Z Shutdown: done

How did you obtain Bitcoin Core

Other

What version of Bitcoin Core are you using?

v26.0.0

Operating system and version

Ubuntu 22.04.4 LTS

Machine specifications

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions