Commit 037d09c
committed
fix: private IPFS swarm nodes never peer, breaking shared storage
The pinned ipfs/go-ipfs:v0.10.0 image has a private-network (pnet)
connection bug where swarm connections drop immediately after
handshake, so org IPFS nodes never peer with each other. This causes
"failed to bootstrap (no peers found)" and shared storage downloads
to time out fetching content pinned only on another member's node.
Bump to ipfs/kubo:v0.42.0, and since modern Kubo refuses to start in
private-network mode with its default AutoConf/public bootstrap
config, add a container-init.d script that disables it for
private-mode stacks.
mDNS auto-discovery, which worked locally, proved unreliable on
native Linux Docker bridge networks - members' nodes never found each
other there. Add an explicit peering step after first-time-setup that
queries each member's real PeerID via its own API and calls
swarm/peering/add against every other member, so nodes connect (and
persistently reconnect) regardless of whether mDNS works in a given
environment.
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>1 parent 42476ef commit 037d09c
4 files changed
Lines changed: 94 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
508 | 516 | | |
509 | 517 | | |
510 | 518 | | |
| |||
566 | 574 | | |
567 | 575 | | |
568 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
569 | 632 | | |
570 | 633 | | |
571 | 634 | | |
| |||
908 | 971 | | |
909 | 972 | | |
910 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
911 | 978 | | |
912 | 979 | | |
913 | 980 | | |
| |||
919 | 986 | | |
920 | 987 | | |
921 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
922 | 993 | | |
923 | 994 | | |
924 | 995 | | |
| |||
0 commit comments