Skip to content

Commit 9d6cf51

Browse files
committed
tmpl: add absPeerSnap to nixosCfg until 10.5 release
1 parent 77aaa63 commit 9d6cf51

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

templates/cardano-parts-project/flake/colmena.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ in
7171
# Config for cardano-node group deployments
7272
inputs.cardano-parts.nixosModules.profile-cardano-node-group
7373
inputs.cardano-parts.nixosModules.profile-cardano-custom-metrics
74+
75+
# Until 10.5 is released -- see description below
76+
absPeerSnap
7477
];
7578
};
7679

@@ -184,6 +187,9 @@ in
184187
inputs.cardano-parts.nixosModules.profile-cardano-postgres
185188
{services.cardano-node.shareNodeSocket = true;}
186189
{services.cardano-postgres.enablePsqlrc = true;}
190+
191+
# Until 10.5 is released -- see description below
192+
absPeerSnap
187193
];
188194
};
189195

@@ -197,6 +203,17 @@ in
197203
{services.cardano-faucet.acmeEmail = "[email protected]";}
198204
];
199205
};
206+
207+
# Until 10.5.x is released, 10.4.1 will fail to start without this because
208+
# node doesn't yet properly look up the relative path from topology to
209+
# peer snapshot file.
210+
#
211+
# Setting this option null fixes the problem, but will leave a
212+
# dangling peer snapshot file until 10.6.
213+
#
214+
# So until then, we'll switch from relative path that causes node failure
215+
# to absolute path which does not.
216+
absPeerSnap = {services.cardano-node.peerSnapshotFile = i: "/etc/cardano-node/peer-snapshot-${toString i}.json";};
200217
in {
201218
meta = {
202219
nixpkgs = import inputs.nixpkgs {

0 commit comments

Comments
 (0)