nixpkgs/nixos/modules
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
..
config Merge master into staging-next 2022-10-20 12:01:25 +00:00
hardware treewide: optional -> optionals where the argument is a list 2022-10-10 15:40:21 +03:00
i18n/input-method nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
installer sd-image: remove unnecessary subshell 2022-10-22 12:11:30 +02:00
misc nixos/modules/misc/documentation.nix: Don't use toString on a path 2022-10-28 17:05:03 +02:00
profiles nixos/profiles/minimal: don't install freedesktop files 2022-10-21 14:54:38 +02:00
programs nixos/zsh: prefer added completions over completions shipped with Zsh 2022-10-24 09:27:19 +02:00
security Merge pull request #174951 from dpausp/fix-pam-tty-audit 2022-11-01 23:50:58 +01:00
services nixos/bitcoind: fix rare startup error 2022-11-02 12:31:40 +01:00
system Merge pull request #194291 from bronson/sort-etc-clean 2022-10-28 00:47:15 +02:00
tasks Merge pull request #194766 from ncfavier/proxy-arp 2022-10-31 09:59:56 +01:00
testing nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
virtualisation nixos/vmware-guest: depend headless option on xserver availability 2022-11-01 16:57:30 +01:00
module-list.nix Merge pull request #197221 from azahi/endlessh-module 2022-11-01 23:44:25 +01:00
rename.nix dd-agent: remove 2022-09-14 14:11:14 +02:00