this derivation will be built: /nix/store/1w6rf7k6sqs9mdjxpm06726lmjh02wfr-treefmt-check.drv building '/nix/store/1w6rf7k6sqs9mdjxpm06726lmjh02wfr-treefmt-check.drv' treefmt-check> treefmt v2.4.0traversed 950 files treefmt-check> emitted 242 files for processing treefmt-check> formatted 242 files (1 changed) in 778ms treefmt-check> M ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh treefmt-check> diff --git a/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh b/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh treefmt-check> index 28545ed..563e3ae 100755 treefmt-check> --- a/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh treefmt-check> +++ b/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh treefmt-check> @@ -87,11 +87,11 @@ if ! umount_out=$(umount /data 2>&1); then treefmt-check> shopt -s nullglob treefmt-check> treefmt-check> QUOTING_STYLE=literal stat -c '%U %N' /proc/[0-9]*/cwd 2>/dev/null | treefmt-check> - sed -nE 's|^(\S+) /proc/([0-9]+)/cwd -> /data(/.*)?$|\1 \2|p' | treefmt-check> - while read -r user pid; do treefmt-check> - comm=$(cat "/proc/$pid/comm" 2>/dev/null) || continue treefmt-check> - log "user: ${user} pid: ${pid} command: ${comm}" treefmt-check> - done treefmt-check> + sed -nE 's|^(\S+) /proc/([0-9]+)/cwd -> /data(/.*)?$|\1 \2|p' | treefmt-check> + while read -r user pid; do treefmt-check> + comm=$(cat "/proc/$pid/comm" 2>/dev/null) || continue treefmt-check> + log "user: ${user} pid: ${pid} command: ${comm}" treefmt-check> + done treefmt-check> treefmt-check> exit 1 treefmt-check> fi error: Cannot build '/nix/store/1w6rf7k6sqs9mdjxpm06726lmjh02wfr-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/hyd85x33wq5080gwwxbg8lv7lm4k2qc0-treefmt-check Last 25 log lines: > treefmt v2.4.0traversed 950 files > emitted 242 files for processing > formatted 242 files (1 changed) in 778ms > M ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh > diff --git a/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh b/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh > index 28545ed..563e3ae 100755 > --- a/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh > +++ b/ansible/files/admin_api_scripts/pg_upgrade_scripts/prepare.sh > @@ -87,11 +87,11 @@ if ! umount_out=$(umount /data 2>&1); then > shopt -s nullglob > > QUOTING_STYLE=literal stat -c '%U %N' /proc/[0-9]*/cwd 2>/dev/null | > - sed -nE 's|^(\S+) /proc/([0-9]+)/cwd -> /data(/.*)?$|\1 \2|p' | > - while read -r user pid; do > - comm=$(cat "/proc/$pid/comm" 2>/dev/null) || continue > - log "user: ${user} pid: ${pid} command: ${comm}" > - done > + sed -nE 's|^(\S+) /proc/([0-9]+)/cwd -> /data(/.*)?$|\1 \2|p' | > + while read -r user pid; do > + comm=$(cat "/proc/$pid/comm" 2>/dev/null) || continue > + log "user: ${user} pid: ${pid} command: ${comm}" > + done > > exit 1 > fi For full logs, run: nix log /nix/store/1w6rf7k6sqs9mdjxpm06726lmjh02wfr-treefmt-check.drv