From 8a3f16f37cbbcfbd106cd51bcc6e7ab8c6eaf35b Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 5 Jun 2026 16:50:17 -0400 Subject: [PATCH 1/3] packer: Run scripts with stdout going to stderr Otherwise we get hard to follow interleaving of unbuffered stderr between buffered stdout messages, later stderr appearing earlier in the stdout stream. --- ebssurrogate/scripts/surrogate-bootstrap-nix.sh | 2 ++ scripts/nix-provision.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ebssurrogate/scripts/surrogate-bootstrap-nix.sh b/ebssurrogate/scripts/surrogate-bootstrap-nix.sh index 607527dc6..01fa60580 100755 --- a/ebssurrogate/scripts/surrogate-bootstrap-nix.sh +++ b/ebssurrogate/scripts/surrogate-bootstrap-nix.sh @@ -10,6 +10,8 @@ set -o errexit set -o pipefail set -o xtrace +exec 1>&2 + if [ $(dpkg --print-architecture) = "amd64" ]; then ARCH="amd64" else diff --git a/scripts/nix-provision.sh b/scripts/nix-provision.sh index 3fb2f5a53..d035148b3 100644 --- a/scripts/nix-provision.sh +++ b/scripts/nix-provision.sh @@ -5,6 +5,8 @@ set -o errexit set -o pipefail set -o xtrace +exec 1>&2 + function install_packages { # Setup Ansible on host VM sudo apt-get update && sudo apt-get install -y software-properties-common From b9882f7a80f5e3956b8d94150ee883ea736b9f52 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 5 Jun 2026 17:42:29 -0400 Subject: [PATCH 2/3] ebssurrogate: Show if any processes are holding files open under /mnt The last few AMI build failures are ending at `unmount /mnt` which is *not* lazy unlike most of the previous unmounts. I suspect this is erroring due to an upgraded salt package due to the `apt-get update; apt-get upgrade` that happens in `90-cleanup.sh` that is now pulling in salt 3008. I suspect a postinst hook running something. --- ebssurrogate/scripts/surrogate-bootstrap-nix.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ebssurrogate/scripts/surrogate-bootstrap-nix.sh b/ebssurrogate/scripts/surrogate-bootstrap-nix.sh index 01fa60580..47f3014d1 100755 --- a/ebssurrogate/scripts/surrogate-bootstrap-nix.sh +++ b/ebssurrogate/scripts/surrogate-bootstrap-nix.sh @@ -417,6 +417,10 @@ function upload_ccache { # Unmount bind mounts function umount_reset_mappings { + fuser -vm /mnt || true + lsof +f -- /mnt || true + ls -l /proc/*/root | grep /mnt || true + umount -l /mnt/dev umount -l /mnt/proc umount -l /mnt/sys From e95cd5d062822fd41c7d5b6155c7294ebd1b5aa0 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Fri, 5 Jun 2026 17:42:29 -0400 Subject: [PATCH 3/3] bump pg version --- ansible/vars.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/vars.yml b/ansible/vars.yml index bee7960a1..1bfbd7970 100644 --- a/ansible/vars.yml +++ b/ansible/vars.yml @@ -10,9 +10,9 @@ postgres_major: # Full version strings for each major version postgres_release: - postgresorioledb-17: "17.6.0.090-orioledb" - postgres17: "17.6.1.133" - postgres15: "15.14.1.133" + postgresorioledb-17: "17.6.0.090-orioledb-mmlb-err123-1" + postgres17: "17.6.1.133-mmlb-err123-1" + postgres15: "15.14.1.133-mmlb-err123-1" # Non Postgres Extensions pgbouncer_release: 1.25.1