nixpkgs/nixos
Erik Arvstedt 828cd4c895
nixos/bitcoind: fix rare startup error
Previously, dhcpcd and bitcoind starting up in parallel could lead to
the following error in bitcoind:
```
bitcoind: libevent: getaddrinfo: address family for nodename not supported
bitcoind: Binding RPC on address 127.0.0.1 port 8332 failed.
bitcoind: Unable to bind any endpoint for
```
After the initial failure, the bitcoind service would always restart successfully.

This race condition, where both applications were simultaneously
manipulating network resources, was only triggered under specific
hardware conditions.

Fix it by running bitcoind after dhcp has started (by running after
`network-online.target`).
This bug and the fix only affect the default NixOS scripted
networking backend.
2022-11-02 12:31:40 +01:00
..
doc Merge pull request #197221 from azahi/endlessh-module 2022-11-01 23:44:25 +01:00
lib nixos/systemd-unit-options: document correct wantedBy default for user units (#199007) 2022-11-02 07:03:22 +00:00
maintainers nixos/*: md-convert hidden plaintext options 2022-08-31 16:32:54 +02:00
modules nixos/bitcoind: fix rare startup error 2022-11-02 12:31:40 +01:00
tests Merge pull request #197221 from azahi/endlessh-module 2022-11-01 23:44:25 +01:00
COPYING
default.nix
README
release-combined.nix nixos/release: add acme to tested set 2022-10-25 07:22:27 +10:00
release-small.nix nixos/release: add acme to tested set 2022-10-25 07:22:27 +10:00
release.nix nixos/release-combined: Build graphical ISOs for aarch64-linux 2022-10-11 15:33:41 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.