Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: bitcoin-zmq-{variant} incorrectly uses --no-await trigger #185

Open
Kixunil opened this issue Nov 21, 2021 · 1 comment
Open

Bug: bitcoin-zmq-{variant} incorrectly uses --no-await trigger #185

Kixunil opened this issue Nov 21, 2021 · 1 comment
Labels
blocks stable Stable can't be released without this being fixed bug Something isn't working debcrafter This issue should be resolved in debcrafter repository robustness Makes the system less liklely to breaak src:bitcoin Directly related to the bitcoin source package
Milestone

Comments

@Kixunil
Copy link
Collaborator

Kixunil commented Nov 21, 2021

Have you read the documentation?
Yes.

Describe the bug
bitcoin-zmq-@variant uses --no-await trigger on the placed file but it's only considered installed when bitcoind actually restarts. Thus services relying on it will experience connection refused.

To Reproduce
Steps to reproduce the behavior:

  1. Install packages: lnd
  2. Check log
  3. See error about ZMQ

Expected behavior
bitcoin-@variant is restarted before lnd is installed thus making sure it works properly.

System
OS, if anything else than Debian Buster:
Installed packages from this repository and their versions: bitcoind and related, lnd 0.14
Is apparmor enabled? No

Non-default configuration settings
N/A

Logs of affected package(s)
Please paste the log if installation failed

LND log
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.882 [INF] LTND: Version: 0.14.0-beta commit=v0.14.0-beta, build=production, logging=default, debuglevel=info
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.891 [INF] LTND: Active chain: Bitcoin (network=regtest)
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.891 [INF] RPCS: Generating TLS certificates...
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.914 [INF] RPCS: Done generating TLS certificates
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.949 [INF] RPCS: RPC server listening on 127.0.0.1:10011
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.969 [INF] RPCS: gRPC proxy started at 127.0.0.1:9092
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.973 [INF] LTND: Opening the main database, this might take a few minutes...
Nov 21 18:27:32 disp6182 lnd[6562]: 2021-11-21 18:27:32.973 [INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false
Nov 21 18:27:33 disp6182 lnd[6562]: 2021-11-21 18:27:33.038 [INF] LTND: Creating local graph and channel state DB instances
Nov 21 18:27:33 disp6182 lnd[6562]: 2021-11-21 18:27:33.081 [INF] CHDB: Checking for schema update: latest_version=24, db_version=24
Nov 21 18:27:33 disp6182 lnd[6562]: 2021-11-21 18:27:33.081 [INF] LTND: Database(s) now open (time_to_open=107.241515ms)!
Nov 21 18:27:33 disp6182 lnd[6562]: 2021-11-21 18:27:33.083 [INF] LTND: Systemd was notified about our readiness
Nov 21 18:27:33 disp6182 lnd[6562]: 2021-11-21 18:27:33.084 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
Nov 21 18:27:33 disp6182 systemd[1]: Started Lightning Network Daemon.
Nov 21 18:34:55 disp6182 lnd[6562]: 2021-11-21 18:34:55.774 [INF] LNWL: Opened wallet
Nov 21 18:34:56 disp6182 lnd[6562]: 2021-11-21 18:34:56.009 [INF] CHRE: Primary chain is set to: bitcoin
Nov 21 18:34:56 disp6182 lnd[6562]: 2021-11-21 18:34:56.316 [ERR] LTND: unable to create partial chain control: unable to subscribe for zmq block events: dial tcp 127.0.0.1:28442: connect: connection refused
Nov 21 18:34:56 disp6182 lnd[6562]: 2021-11-21 18:34:56.316 [ERR] LTND: Shutting down because error in main method: error creating wallet config: unable to create partial chain control: unable to subscribe for zmq block events: dial tcp 127.0.0.1:28442: connect: connection refused
Nov 21 18:34:56 disp6182 lnd[6562]: 2021-11-21 18:34:56.323 [INF] LTND: Shutdown complete
Nov 21 18:34:56 disp6182 lnd[6562]: error creating wallet config: unable to create partial chain control: unable to subscribe for zmq block events: dial tcp 127.0.0.1:28442: connect: connection refused
@Kixunil Kixunil added bug Something isn't working blocks stable Stable can't be released without this being fixed robustness Makes the system less liklely to breaak labels Nov 21, 2021
@Kixunil Kixunil added this to the Stable milestone Nov 21, 2021
@Kixunil Kixunil added the debcrafter This issue should be resolved in debcrafter repository label Dec 5, 2021
@Kixunil
Copy link
Collaborator Author

Kixunil commented Dec 5, 2021

Seems to come from debcrafter

@Kixunil Kixunil added the src:bitcoin Directly related to the bitcoin source package label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks stable Stable can't be released without this being fixed bug Something isn't working debcrafter This issue should be resolved in debcrafter repository robustness Makes the system less liklely to breaak src:bitcoin Directly related to the bitcoin source package
Projects
None yet
Development

No branches or pull requests

1 participant