most-tent-39133
05/30/2025, 12:58 AMSYNCHRONOUS TERMINATION NOTICE: When explicitly exiting the process via process.exit or via a parent process, asynchronous tasks in your exitHooks will not run. Either remove these tasks, use gracefulExit() instead of process.exit(), or ensure your parent process sends a SIGINT to the process running this code.
node:events:497
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:958:11)
at Socket._write (node:net:970:8)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writable.write (node:internal/streams/writable:510:10)
at Transform.<anonymous> (file:///home/ryan/.local/share/garden/1746479452-NIEIYT4.r/rollup/container-CIK3SmVD.mjs:565:37)
at Transform.emit (node:events:519:28)
at Transform.emit (node:domain:488:12)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v22.9.0
most-tent-39133
05/30/2025, 12:59 AMkind: Build
name: build-service
description: service container image
type: container
spec:
dockerfile: garden/dockerfiles/Dockerfile
---
kind: Deploy
name: -mongodb-helm-deploy
description: Deploys the MongoDB community operator using its helm chart
type: helm
varfiles:
- garden/config/action_vars.yml
spec:
releaseName: "${var.ssasm_staging ? var.global_mongo_release_name : var._service_mongo_release_name}"
chart:
repo: https://mongodb.github.io/helm-charts
name: community-operator
namespace: ${var._service_namespace}${var.namespace_suffix}
values:
# Disable crds so multiple instances of mongo can be deployed at once
community-operator-crds:
enabled: false
---
kind: Deploy
name: -mongodb-deploy
description: Deploys the Service's MongoDB replica set to kubernetes
type: kubernetes
varfiles:
- garden/config/action_vars.yml
variables:
temp_ssasm_staging: "${var.ssasm_staging || ''}"
dependencies:
- deploy.-mongodb-helm-deploy
spec:
manifestTemplates:
- garden/config/mongo_config.yml
namespace: ${var._service_namespace}${var.namespace_suffix}
waitForJobs: true
portForwards:
- name: mongo
resource: service/service-mongodb-svc
targetPort: 27017
localPort: ${var._service_db_local_port}
---
kind: Deploy
name: service
type: kubernetes
dependencies:
- run.-initialize-mongodb
build:
build-service
varfiles:
- garden/config/action_vars.yml
spec:
manifestTemplates:
- garden/manifests/deployment.yml
namespace: ${var.service_namespace}
---
kind: Test
name: service-code-coverage
type: exec
varfiles:
- garden/config/action_vars.yml
spec:
command: ["bash", "-c", "cd code && ./coverage.sh"]
env:
MONGO_CON_STR: "mongodb://localhost:27017"
most-tent-39133
05/30/2025, 12:59 AMgarden build
and then garden deploy
the deployment always works. It's only if I delete the docker image and run garden deploy
without manually building first that I sometimes get this error - it will work probably about 80% of the time and fail 20% of the time with this error.most-tent-39133
06/02/2025, 5:38 PMmost-tent-39133
06/02/2025, 6:02 PMbig-spring-14945
06/04/2025, 12:17 PMbig-spring-14945
06/05/2025, 2:02 PM