You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions
The db-sync version (eg cardano-db-sync --version): 13.2.0.1
PostgreSQL version: 15
Build/Install Method
NixOS module
Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): NixOS module
Additional context
Add any other context about the problem here.
Problem Report
The getconf bin in postgresql.sh setup script used here isn't in coreutils pkg of nixos, but this script does get used by the dbsync systemd service:
/nix/store/8srs5rqymbnsm8gg515qxxbnl3k4jjyl-postgresql-setup.sh: line 28: getconf: command not found
/nix/store/8srs5rqymbnsm8gg515qxxbnl3k4jjyl-postgresql-setup.sh: line 29: test: : integer expression expected
During a takeSnapshot operation, the error is fatal and a snapshot won't be taken:
Mar 06 19:18:06 misc1-snapshots-eu-central-1a-1 systemd[1]: Stopping cardano-db-sync.service...
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 cardano-db-sync-post-stop[131443]: yes: standard output: Broken pipe
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 cardano-db-sync-post-stop[131456]: /nix/store/1bys3yjgm97yxy91sfy8f5law41fyif9-postgresql-setup.sh: line 28: getconf: command not found
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 cardano-db-sync-post-stop[131454]: /nix/store/1bys3yjgm97yxy91sfy8f5law41fyif9-postgresql-setup.sh: line 29: test: : integer expression expected
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 cardano-db-sync-post-stop[131454]: Working directory: /tmp/db-sync-snapshot-JPdTxx0lUE
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 cardano-db-sync-post-stop[131472]: pg_dump: error: -j/--jobs must be in range 1..2147483647
Mar 06 19:18:07 misc1-snapshots-eu-central-1a-1 systemd[1]: cardano-db-sync.service: Control process exited, code=exited, status=1/FAILURE
I've added pkgs.getconf to the systemd.services.cardano-db-sync.path and that fixes the takeSnapshot failure (probably will also fix the non-fatal error for restore snapshot, but haven't tested that). Probably that getconf package should get added to the nixos cardano-db-sync service path by default. (edited)
The text was updated successfully, but these errors were encountered:
OS
NixOS
Versions
The
db-sync
version (egcardano-db-sync --version
): 13.2.0.1PostgreSQL version: 15
Build/Install Method
NixOS module
Run method
The method you used to run
cardano-db-sync
(eg Nix/Docker/systemd/none): NixOS moduleAdditional context
Add any other context about the problem here.
Problem Report
The getconf bin in postgresql.sh setup script used here isn't in coreutils pkg of nixos, but this script does get used by the dbsync systemd service:
The text was updated successfully, but these errors were encountered: