cloud@test01-database:/app/staging$ ./deploy.mk do TARGET=226b487eaa32e995af051689240ce598ba6596c5
if [[ ! -L "./Makefile" ]] || [[ ! "./Makefile" -ef "./docker.mk" ]]; then \
echo "./docker-compose.yaml does not link to ${file}" >&2 ; \
exit 1 ; \
fi
if [[ "staging" == "staging" ]]; then \
file="./docker-compose.production.yaml" ; \
else \
file="./docker-compose.staging.yaml" ; \
fi && \
if [[ ! -L "./docker-compose.yaml" ]] || [[ ! "./docker-compose.yaml" -ef "${file}" ]]; then \
echo "./docker-compose.yaml does not link to ${file}" >&2 ; \
exit 2 ; \
fi
./deploy.sh target "226b487eaa32e995af051689240ce598ba6596c5" --on-error "pause"
···························································
DEPLOYING TARGET '226b487eaa32e995af051689240ce598ba6596c5'
···························································
[1/9] Beginning maintenance mode
make[1]: Entering directory '/home/cloud/staging'
cp \
./nginx/html/maintenance.off.html \
./nginx/html/maintenance.html
make[1]: Leaving directory '/home/cloud/staging'
[2/9] Setting target in ./.env to '226b487eaa32e995af051689240ce598ba6596c5'
make[1]: Entering directory '/home/cloud/staging'
sed --in-place --regexp-extended \
's#^TARGET=(.*)$#TARGET=226b487eaa32e995af051689240ce598ba6596c5#' \
./.env
make[1]: Leaving directory '/home/cloud/staging'
[3/9] Backing up data into '/app/data/backups/2026-04-28_11_44_11'
make[1]: Entering directory '/home/cloud/staging'
mkdir --parents "/app/data/backups/2026-04-28_11_44_11"
docker compose up \
--no-build \
--no-deps \
--no-recreate \
--wait \
database
[+] up 2/2
✔ Image postgres:13.23-trixie Pulled 1.1s
✔ Container test01-database_staging_staging-database-1 Healthy 0.5s
docker compose exec \
--no-tty \
database \
pg_dump \
--clean \
--if-exists \
--username="postgres" \
--dbname="xbase" \
| gzip \
> "/app/data/backups/2026-04-28_11_44_11/postgresql_dumpall.gz"
docker compose run \
--rm \
--no-deps \
--no-TTY \
--volume "/app/data/backups/2026-04-28_11_44_11":/backup \
backend \
tar \
--verbose \
--create \
--gzip \
--file="/backup/files.gz" \
--directory=/app \
./files
Container test01-database_staging_staging-backend-run-f67681913dab Creating
Container test01-database_staging_staging-backend-run-f67681913dab Created
./files/
make[1]: Leaving directory '/home/cloud/staging'
[4/9] Fetching code from Git remote and switching to Git target '226b487eaa32e995af051689240ce598ba6596c5'
make[1]: Entering directory '/home/cloud/staging'
git fetch --all
debug1: client_input_channel_open: ctype auth-agent@openssh.com rchan 2 win 65536 max 16384
debug1: client_request_agent: bound agent to hostkey
debug1: channel 1: new agent-connection [authentication agent connection] (inactive timeout: 0)
debug1: confirm auth-agent@openssh.com
debug1: channel 1: FORCE input drain
debug1: channel 1: free: authentication agent connection, nchannels 2
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 32 (delta 24), reused 30 (delta 22), pack-reused 0 (from 0)
Unpacking objects: 100% (32/32), 25.48 KiB | 932.00 KiB/s, done.
From github.com:building-envelope-data/database
03af9ce..226b487 develop -> origin/develop
1e7f159..02abfda add-details-to-readme -> origin/add-details-to-readme
make[1]: Leaving directory '/home/cloud/staging'
make[1]: Entering directory '/home/cloud/staging'
git switch \
--discard-changes \
--detach \
"226b487eaa32e995af051689240ce598ba6596c5"
git-lfs filter-process: 1: git-lfs: not found
fatal: the remote end hung up unexpectedly
make[1]: *** [deploy.mk:84: switch] Error 128
make[1]: Leaving directory '/home/cloud/staging'
✗ Failed during step 'switch'
Line '-1'
Command 'exit 1'
Exit code '1'
• Writing attempt '2026-04-28T11:44:11+02:00' to history './.deploy-history'
▲ Deployment paused. Fix the issue. Then either
• resume with `./deploy.sh resume` or
• rollback with `./deploy.sh rollback`.
make: *** [deploy.mk:31: do] Error 1
c