-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
From https://github.com/DefangLabs/samples/actions/runs/16296336889/job/46018839249?pr=417
* Using Defang Playground provider from default project
* Updated value for POSTGRES_PASSWORD
* Using Defang Playground provider from default project
* Updated value for POSTGRES_PASSWORD
* Using Defang Playground provider from default project
- Using access token from env DEFANG_ACCESS_TOKEN
- Using tenant default for cluster fabric-staging.defang.dev:443
- fabricClient 66wvupj6o8dt /io.defang.v1.FabricController/WhoAmI null
- fabricClient atrt5yelslj9 /io.defang.v1.FabricController/GetVersion null
- Fabric: v0.6.0-740-g10b1c199 CLI: 1.2.6 CLI-Min: v1.1.20
- fabricClient 7854wfrl0wp0 /io.defang.v1.FabricController/CheckToS null
name: nextjs-postgres
services:
app:
build:
context: /home/runner/work/samples/samples/samples/nextjs-postgres/app
dockerfile: Dockerfile
depends_on:
database:
condition: service_started
required: true
environment:
POSTGRES_DB: postgres
POSTGRES_HOST: database
POSTGRES_PASSWORD: null
POSTGRES_PORT: "5432"
POSTGRES_SSL: "true"
POSTGRES_USER: postgres
healthcheck:
test:
- CMD
- curl
- -f
- http://localhost:3000
networks:
default: null
ports:
- mode: ingress
target: 3000
published: "3000"
protocol: tcp
database:
environment:
POSTGRES_PASSWORD: null
image: postgres:16
networks:
default: null
ports:
- mode: host
target: 5432
published: "5432"
protocol: tcp
x-defang-postgres: true
networks:
default:
name: nextjs-postgres_default
* Using Defang Playground provider from default project
- Creating defang provider
- fabricClient d5yoy99e4c3e /io.defang.v1.FabricController/CanIUse {"project":"nextjs-postgres","provider":1}
- fabricClient k53gl14w4ew9 /io.defang.v1.FabricController/ListDeployments {"project":"nextjs-postgres","type":2}
! Defang cannot monitor status of the following managed service(s): [database].
To check if the managed service is up, check the status of the service which depends on it.
- fabricClient j2g2fphix2e6 /io.defang.v1.FabricController/ListSecrets {"project":"nextjs-postgres"}
- service "app": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
- service "app": unsupported compose directive: depends_on
! service "app": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
- service "database": missing compose directive: restart; assuming 'unless-stopped' (add 'restart' to silence)
! service "database": missing memory reservation; using provider-specific defaults. Specify deploy.resources.reservations.memory to avoid out-of-memory errors
- fabricClient 1koc5mlywne0 /io.defang.v1.FabricController/ListSecrets {"project":"nextjs-postgres"}
- port 3000: ignoring 'published: 3000' in 'ingress' mode
! service "database": managed postgres is not supported in the Playground; consider using BYOC (https://s.defang.io/byoc)
* Packaging the project files for app at /home/runner/work/samples/samples/samples/nextjs-postgres/app
- Reading .dockerignore file from .dockerignore
- Adding .dockerignore
- Adding .eslintrc.json
- Adding .gitignore
- Adding Dockerfile
- Adding README.md
- Adding next.config.mjs
- Adding package-lock.json
- Adding package.json
- Adding postcss.config.mjs
- Adding src
- Adding src/app
- Adding src/app/favicon.ico
- Adding src/app/fonts
- Adding src/app/fonts/GeistMonoVF.woff
- Adding src/app/fonts/GeistVF.woff
- Adding src/app/globals.css
- Adding src/app/layout.tsx
- Adding src/app/page.tsx
- Adding tailwind.config.ts
- Adding tsconfig.json
- Digest: sha256-IgHVpT1fZTbAJrWV/86I3Dz1SCSKfESkXE3yWF6a6EY=
* Uploading the project files for app
- fabricClient 6fdy2q9szrdp /io.defang.v1.FabricController/CreateUploadURL {"digest":"sha256-IgHVpT1fZTbAJrWV/86I3Dz1SCSKfESkXE3yWF6a6EY=","project":"nextjs-postgres"}
- [DEBUG] PUT https://ecs-staging-build-bucket20240206190130621800000004.s3.us-west-2.amazonaws.com/builds/defangSampleTestFakeTenant5/sha256-IgHVpT1fZTbAJrWV_86I3Dz1SCSKfESkXE3yWF6a6EY_?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAWGYDH4O3MZZVDN5C%2F20250715%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250715T143809Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjECsaCXVzLXdlc3QtMiJHMEUCIQDiv7R1S8WP%2FmZvCopePVr1D%2FhBRcGUybP5VfoGs7T4OgIgdExRemS5PYzNggdtvNR%2BQlfyU67bRxQdB2NVB8vD%2BBwq%2FQMIRBABGgw0MjY4MTkxODM1NDIiDKJhew%2Bxah0QcepC%2BCraAzBshADAxEHv%2F4%2F2yqqMUjFzSIVSwbs3GbaFjjHPmtg6y5yte8OeB891oZPcMIU2VENVYJCzdtOaBs0ClQ91ZalkizqHjDVJwxxjWomH53cOMUgxdNoRzI97%2BUMcnQ1xabazlGtfYW26BFovNaGvmksCFyLz3uf0T0KaBhzi6tpK6osOiaxIKkAxNT7mUHyLPf31%2FwcZ75V7QoNgxndlsDFuMtN2oFFkRfKOSKooEVqETekiegTU18o1pwhBIw06XtdbJFHGh7E7cqLRziOf0KTcdWM80Aom2vzWhzqBGlpYNEXE2FzcFtud7GcOTCMq9rPA1mPMUKNUxaNKkFzuQ9qYjtOHh03l8oM5q7oXCql%2BM9UnMidRRIKC0cSvEVd%2B5mfB7kgpwVFBsRgOMEdRmJSfVdcpE8fRt08fwqRV8E5BlXHEk0Ad4sIsOAYDfRDr6dkTv5WKSSWtG3%2BNS0q5a2Myu%2BBLjXoXscqIfuZiQwUhAMnys8FzlH8QLlYgv%2BWJ5LBZ628BK8axWrxBt8pu9XkBFfaf5qvYrv3nt6q2qSRgCMLE4y2YvKrcMpeixZNCycRtFwAFLgbmKC8iUxUtCxAA73xL6W91pex1xBtcqNQAvILHYjMiLjY%2FSjCR29jDBjqlAT75kl%2BaZW%2F%2Bu27LYFdkxw2kFC6XWdPdt1PB45b4goKi0QNBE13xXnu4CoHh7DomR7Q9sCShQmKOGIk3OZv9ly72jCen7v2FSQZF90A6gKYqbagSmuA82xK9WSNdP50488pwHKxPLwjrAuqZpb5cO8xAy3D3mlU7%2F6j905SmG6wHsd%2Bwl9JMqI1nwAjdYTXxYhBIALeoToITHNOt6aqn9BFbdE5Rvg%3D%3D&X-Amz-SignedHeaders=host&x-id=PutObject&X-Amz-Signature=0943a95a86343e48c7bae6e07814cc2a3c861e93ed7bead9f702b8f2e3f29e9e
- service "app": service name was adjusted: environment variable "POSTGRES_HOST" assigned value "defangSampleTestFakeTenant5-database"
- fabricClient q0odrm4k52dd /io.defang.v1.FabricController/GetDelegateSubdomainZone {"project":"nextjs-postgres"}
- fabricClient gdojq10xpscv /io.defang.v1.FabricController/Deploy {"project":"nextjs-postgres","compose":"bmFtZTogbmV4dGpzLXBvc3RncmVzCnNlcnZpY2VzOgogIGFwcDoKICAgIGJ1aWxkOgogICAgICBjb250ZXh0OiBodHRwczovL2Vjcy1zdGFnaW5nLWJ1aWxkLWJ1Y2tldDIwMjQwMjA2MTkwMTMwNjIxODAwMDAwMDA0LnMzLnVzLXdlc3QtMi5hbWF6b25hd3MuY29tL2J1aWxkcy9kZWZhbmdTYW1wbGVUZXN0RmFrZVRlbmFudDUvc2hhMjU2LUlnSFZwVDFmWlRiQUpyV1ZfODZJM0R6MVNDU0tmRVNrWEUzeVdGNmE2RVlfCiAgICAgIGRvY2tlcmZpbGU6IERvY2tlcmZpbGUKICAgIGRlcGVuZHNfb246CiAgICAgIGRhdGFiYXNlOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9zdGFydGVkCiAgICAgICAgcmVxdWlyZWQ6IHRydWUKICAgIGVudmlyb25tZW50OgogICAgICBQT1NUR1JFU19EQjogcG9zdGdyZXMKICAgICAgUE9TVEdSRVNfSE9TVDogZGVmYW5nU2FtcGxlVGVzdEZha2VUZW5hbnQ1LWRhdGFiYXNlCiAgICAgIFBPU1RHUkVTX1BBU1NXT1JEOiBudWxsCiAgICAgIFBPU1RHUkVTX1BPUlQ6ICI1NDMyIgogICAgICBQT1NUR1JFU19TU0w6ICJ0cnVlIgogICAgICBQT1NUR1JFU19VU0VSOiBwb3N0Z3JlcwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQKICAgICAgICAtIGN1cmwKICAgICAgICAtIC1mCiAgICAgICAgLSBodHRwOi8vbG9jYWxob3N0OjMwMDAKICAgIG5ldHdvcmtzOgogICAgICBkZWZhdWx0OiBudWxsCiAgICBwb3J0czoKICAgICAgLSBtb2RlOiBp…
- fabricClient ffu2beegznj7 /io.defang.v1.FabricController/PutDeployment {"deployment":{"id":"tuf6pemr26xu","project":"nextjs-postgres","provider_string":"defang","provider_account_id":"defangSampleTestFakeTenant5","timestamp":{"seconds":1752590289,"nanos":659947625},"action":1,"region":"us-west-2","provider":1}}
Project: nextjs-postgres
database:
createdAt: "2025-07-15T14:38:09.901209606Z"
endpoints:
- defangsampletestfaketenant5-database.staging.ecs.internal:5432
etag: tuf6pemr26xu
natIps:
- 34.210.156.224
privateFqdn: defangsampletestfaketenant5-database.staging.ecs.internal
project: defangSampleTestFakeTenant5
service:
image: postgres:16
internal: true
name: database
ports:
- protocol: TCP
target: 5432
secrets:
- source: POSTGRES_PASSWORD
state: UPDATE_QUEUED
status: UPDATE_QUEUED
updatedAt: "2025-07-15T14:38:09.901209606Z"
app:
createdAt: "2025-07-15T14:38:09.901201253Z"
endpoints:
- defangsampletestfaketenant5-app--3000.staging.defang.dev
etag: tuf6pemr26xu
lbIps:
- 10.0.32.0/20
- 10.0.96.0/20
- 10.0.160.0/20
natIps:
- 34.210.156.224
project: defangSampleTestFakeTenant5
publicFqdn: defangsampletestfaketenant5-app.staging.defang.dev
service:
build:
context: https://ecs-staging-build-bucket20240206190130621800000004.s3.us-west-2.amazonaws.com/builds/defangSampleTestFakeTenant5/sha256-IgHVpT1fZTbAJrWV_86I3Dz1SCSKfESkXE3yWF6a6EY_
dockerfile: Dockerfile
environment:
POSTGRES_DB: postgres
POSTGRES_HOST: defangSampleTestFakeTenant5-database
POSTGRES_PORT: "5432"
POSTGRES_SSL: "true"
POSTGRES_USER: postgres
internal: true
name: app
ports:
- mode: INGRESS
protocol: TCP
target: 3000
secrets:
- source: POSTGRES_PASSWORD
state: BUILD_QUEUED
status: BUILD_QUEUED
updatedAt: "2025-07-15T14:38:09.901201253Z"
* Tailing logs for deployment ID tuf6pemr26xu ; press Ctrl+C to detach:
- Tailing ALL logs in project "nextjs-postgres"
- waiting for services [app] to reach state DEPLOYMENT_COMPLETED
- service app with state ( BUILD_QUEUED ) and status: BUILD_QUEUED
2025-07-15T14:41:20.709Z cd Update started for stack defangSampleTestFakeTenant5-staging
2025-07-15T14:41:24.761Z cd ** Updating service "database"
2025-07-15T14:41:24.845Z cd ** Building image for "app"...
2025-07-15T14:41:24.865Z cd ** Updating service "app"
2025-07-15T14:41:28.452Z cd ** Updated service "database" to revision 3
- service app with state ( BUILD_PROVISIONING ) and status: BUILD_PROVISIONING
- service app with state ( BUILD_PENDING ) and status: BUILD_PENDING
2025-07-15T14:41:50.207Z app-image kaniko INFO[0000] Resolved base name node:20-bookworm-slim to builder
2025-07-15T14:41:50.207Z app-image kaniko INFO[0000] Resolved base name node:20-bookworm-slim to development
2025-07-15T14:41:50.207Z app-image kaniko INFO[0000] Using dockerignore file: /kaniko/buildcontext/.dockerignore
2025-07-15T14:41:50.207Z app-image kaniko INFO[0000] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:50.208Z app-image kaniko INFO[0000] Retrieving image node:20-bookworm-slim from mapped registry 426819183542.dkr.ecr.us-west-2.amazonaws.com
- service app with state ( BUILD_RUNNING ) and status: BUILD_RUNNING
2025-07-15T14:41:50.973Z app-image kaniko WARN[0001] Failed to retrieve image node:20-bookworm-slim from remapped registry 426819183542.dkr.ecr.us-west-2.amazonaws.com: unable to complete operation after 0 attempts, last error: GET https://426819183542.dkr.ecr.us-west-2.amazonaws.com/v2/library/node/manifests/20-bookworm-slim: DENIED: The authentication to the upstream registry failed. Verify that the credentials provided in the pull through cache rule are correct, and try again.. Will try with the next registry, or fallback to the original registry.
2025-07-15T14:41:50.973Z app-image kaniko INFO[0001] Retrieving image node:20-bookworm-slim from mapped registry public.ecr.aws
2025-07-15T14:41:51.604Z app-image kaniko WARN[0001] Failed to retrieve image node:20-bookworm-slim from remapped registry public.ecr.aws: unable to complete operation after 0 attempts, last error: GET https://public.ecr.aws/v2/library/node/manifests/20-bookworm-slim: NAME_UNKNOWN: The repository with name 'node' does not exist in the registry with id 'library'. Will try with the next registry, or fallback to the original registry.
2025-07-15T14:41:51.604Z app-image kaniko INFO[0001] Retrieving image node:20-bookworm-slim from registry index.docker.io
2025-07-15T14:41:52.200Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.201Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Built cross stage deps: map[0:[/app/package*.json /app/.next /app/next.config.mjs]]
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Returning cached image manifest
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Executing 0 build triggers
2025-07-15T14:41:52.324Z app-image kaniko INFO[0002] Building stage 'node:20-bookworm-slim' [idx: '0', base-idx: '-1']
2025-07-15T14:41:52.325Z app-image kaniko INFO[0002] Resolving srcs [package*.json]...
2025-07-15T14:41:52.325Z app-image kaniko INFO[0002] Checking for cached layer 532501343364.dkr.ecr.us-west-2.amazonaws.com/kaniko-build/cache:91c7b33a6a0a918e5ae8758e08a293d2ff6422d4c48148b6602dbbfc0d587fd2...
2025-07-15T14:41:52.570Z app-image kaniko INFO[0002] Using caching version of cmd: RUN npm ci
2025-07-15T14:41:52.575Z app-image kaniko INFO[0002] Checking for cached layer 532501343364.dkr.ecr.us-west-2.amazonaws.com/kaniko-build/cache:f8259ca2688d442f675347f8156d4778b42b015d11c871ed98d302631a5bd274...
2025-07-15T14:41:52.777Z app-image kaniko INFO[0002] Using caching version of cmd: RUN npm run build
2025-07-15T14:41:52.778Z app-image kaniko INFO[0002] Unpacking rootfs as cmd COPY package*.json ./ requires it.
2025-07-15T14:41:55.756Z app-image kaniko INFO[0005] WORKDIR /app
2025-07-15T14:41:55.756Z app-image kaniko INFO[0005] Cmd: workdir
2025-07-15T14:41:55.756Z app-image kaniko INFO[0005] Changed working directory to /app
2025-07-15T14:41:55.756Z app-image kaniko INFO[0005] Creating directory /app with uid -1 and gid -1
2025-07-15T14:41:55.756Z app-image kaniko INFO[0005] Taking snapshot of files...
2025-07-15T14:41:55.757Z app-image kaniko INFO[0005] Resolving srcs [package*.json]...
2025-07-15T14:41:55.758Z app-image kaniko INFO[0005] COPY package*.json ./
2025-07-15T14:41:55.758Z app-image kaniko INFO[0005] Resolving srcs [package*.json]...
2025-07-15T14:41:55.759Z app-image kaniko INFO[0005] Taking snapshot of files...
2025-07-15T14:41:55.763Z app-image kaniko INFO[0005] RUN npm ci
2025-07-15T14:41:55.763Z app-image kaniko INFO[0005] Found cached layer, extracting to filesystem
2025-07-15T14:42:18.382Z database ip-10-0-45-193 The files belonging to this database system will be owned by user "postgres".
2025-07-15T14:42:18.382Z database ip-10-0-45-193 This user must also own the server process.
2025-07-15T14:42:18.382Z database ip-10-0-45-193
2025-07-15T14:42:18.382Z database ip-10-0-45-193 The database cluster will be initialized with locale "en_US.utf8".
2025-07-15T14:42:18.382Z database ip-10-0-45-193 The default database encoding has accordingly been set to "UTF8".
2025-07-15T14:42:18.382Z database ip-10-0-45-193 The default text search configuration will be set to "english".
2025-07-15T14:42:18.382Z database ip-10-0-45-193
2025-07-15T14:42:18.382Z database ip-10-0-45-193 Data page checksums are disabled.
2025-07-15T14:42:18.382Z database ip-10-0-45-193
2025-07-15T14:42:18.382Z database ip-10-0-45-193 fixing permissions on existing directory /var/lib/postgresql/data ... ok
2025-07-15T14:42:18.383Z database ip-10-0-45-193 creating subdirectories ... ok
2025-07-15T14:42:18.383Z database ip-10-0-45-193 selecting dynamic shared memory implementation ... posix
2025-07-15T14:42:18.466Z database ip-10-0-45-193 selecting default max_connections ... 100
2025-07-15T14:42:18.557Z database ip-10-0-45-193 selecting default shared_buffers ... 128MB
2025-07-15T14:42:18.657Z database ip-10-0-45-193 selecting default time zone ... Etc/UTC
2025-07-15T14:42:18.657Z database ip-10-0-45-193 creating configuration files ... ok
2025-07-15T14:42:19.362Z database ip-10-0-45-193 running bootstrap script ... ok
2025-07-15T14:42:20.959Z database ip-10-0-45-193 performing post-bootstrap initialization ... ok
2025-07-15T14:42:21.115Z database ip-10-0-45-193 initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
2025-07-15T14:42:21.115Z database ip-10-0-45-193 syncing data to disk ... ok
2025-07-15T14:42:21.115Z database ip-10-0-45-193
2025-07-15T14:42:21.116Z database ip-10-0-45-193
2025-07-15T14:42:21.116Z database ip-10-0-45-193 Success. You can now start the database server using:
2025-07-15T14:42:21.116Z database ip-10-0-45-193
2025-07-15T14:42:21.116Z database ip-10-0-45-193 pg_ctl -D /var/lib/postgresql/data -l logfile start
2025-07-15T14:42:21.116Z database ip-10-0-45-193
2025-07-15T14:42:21.263Z database ip-10-0-45-193 waiting for server to start....2025-07-15 14:42:21.263 UTC [48] LOG: starting PostgreSQL 16.9 (Debian 16.9-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2025-07-15T14:42:21.265Z database ip-10-0-45-193 2025-07-15 14:42:21.265 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-07-15T14:42:21.271Z database ip-10-0-45-193 2025-07-15 14:42:21.271 UTC [51] LOG: database system was shut down at 2025-07-15 14:42:20 UTC
2025-07-15T14:42:21.276Z database ip-10-0-45-193 2025-07-15 14:42:21.276 UTC [48] LOG: database system is ready to accept connections
2025-07-15T14:42:21.367Z database ip-10-0-45-193 done
2025-07-15T14:42:21.367Z database ip-10-0-45-193 server started
2025-07-15T14:42:21.115Z database ip-10-0-45-193 initdb: warning: enabling "trust" authentication for local connections
2025-07-15T14:42:21.546Z database ip-10-0-45-193
2025-07-15T14:42:21.546Z database ip-10-0-45-193 /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
2025-07-15T14:42:21.546Z database ip-10-0-45-193
2025-07-15T14:42:21.548Z database ip-10-0-45-193 waiting for server to shut down....2025-07-15 14:42:21.548 UTC [48] LOG: received fast shutdown request
2025-07-15T14:42:21.550Z database ip-10-0-45-193 2025-07-15 14:42:21.550 UTC [48] LOG: aborting any active transactions
2025-07-15T14:42:21.552Z database ip-10-0-45-193 2025-07-15 14:42:21.552 UTC [48] LOG: background worker "logical replication launcher" (PID 54) exited with exit code 1
2025-07-15T14:42:21.555Z database ip-10-0-45-193 2025-07-15 14:42:21.555 UTC [49] LOG: shutting down
2025-07-15T14:42:21.556Z database ip-10-0-45-193 2025-07-15 14:42:21.556 UTC [49] LOG: checkpoint starting: shutdown immediate
2025-07-15T14:42:21.563Z database ip-10-0-45-193 2025-07-15 14:42:21.563 UTC [49] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.001 s, total=0.008 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB; lsn=0/14EA2C8, redo lsn=0/14EA2C8
2025-07-15T14:42:21.567Z database ip-10-0-45-193 2025-07-15 14:42:21.567 UTC [48] LOG: database system is shut down
2025-07-15T14:42:21.648Z database ip-10-0-45-193 done
2025-07-15T14:42:21.648Z database ip-10-0-45-193 server stopped
2025-07-15T14:42:21.650Z database ip-10-0-45-193
2025-07-15T14:42:21.650Z database ip-10-0-45-193 PostgreSQL init process complete; ready for start up.
2025-07-15T14:42:21.650Z database ip-10-0-45-193
2025-07-15T14:42:21.675Z database ip-10-0-45-193 2025-07-15 14:42:21.674 UTC [1] LOG: starting PostgreSQL 16.9 (Debian 16.9-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2025-07-15T14:42:21.675Z database ip-10-0-45-193 2025-07-15 14:42:21.675 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2025-07-15T14:42:21.675Z database ip-10-0-45-193 2025-07-15 14:42:21.675 UTC [1] LOG: listening on IPv6 address "::", port 5432
2025-07-15T14:42:21.678Z database ip-10-0-45-193 2025-07-15 14:42:21.678 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-07-15T14:42:21.746Z database ip-10-0-45-193 2025-07-15 14:42:21.746 UTC [62] LOG: database system was shut down at 2025-07-15 14:42:21 UTC
2025-07-15T14:42:21.753Z database ip-10-0-45-193 2025-07-15 14:42:21.753 UTC [1] LOG: database system is ready to accept connections
2025-07-15T14:42:22.583Z app-image kaniko INFO[0032] COPY . .
2025-07-15T14:42:22.588Z app-image kaniko INFO[0032] Taking snapshot of files...
2025-07-15T14:42:22.598Z app-image kaniko INFO[0032] RUN npm run build
2025-07-15T14:42:22.598Z app-image kaniko INFO[0032] Found cached layer, extracting to filesystem
2025-07-15T14:42:23.732Z app-image kaniko INFO[0033] Saving file app/next.config.mjs for later use
2025-07-15T14:42:23.732Z app-image kaniko INFO[0033] Saving file app/package-lock.json for later use
2025-07-15T14:42:23.732Z app-image kaniko INFO[0033] Saving file app/package.json for later use
2025-07-15T14:42:23.733Z app-image kaniko INFO[0033] Saving file app/.next for later use
2025-07-15T14:42:23.757Z app-image kaniko INFO[0033] Deleting filesystem...
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Returning cached image manifest
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Returning cached image manifest
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Executing 0 build triggers
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Building stage 'node:20-bookworm-slim' [idx: '1', base-idx: '-1']
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Skipping unpacking as no commands require it.
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] WORKDIR /app
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Cmd: workdir
2025-07-15T14:42:24.258Z app-image kaniko INFO[0034] Changed working directory to /app
2025-07-15T14:42:24.259Z app-image kaniko INFO[0034] Creating directory /app with uid -1 and gid -1
2025-07-15T14:42:24.259Z app-image kaniko INFO[0034] Taking snapshot of files...
2025-07-15T14:42:24.260Z app-image kaniko INFO[0034] Deleting filesystem...
2025-07-15T14:42:24.260Z app-image kaniko INFO[0034] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:42:24.260Z app-image kaniko INFO[0034] Returning cached image manifest
2025-07-15T14:42:24.260Z app-image kaniko INFO[0034] Retrieving image manifest node:20-bookworm-slim
2025-07-15T14:42:24.260Z app-image kaniko INFO[0034] Returning cached image manifest
2025-07-15T14:42:24.261Z app-image kaniko INFO[0034] Executing 0 build triggers
2025-07-15T14:42:24.261Z app-image kaniko INFO[0034] Building stage 'node:20-bookworm-slim' [idx: '2', base-idx: '-1']
2025-07-15T14:42:24.261Z app-image kaniko INFO[0034] Checking for cached layer 532501343364.dkr.ecr.us-west-2.amazonaws.com/kaniko-build/cache:c439000585b7023dd6b01c5108d1fa2982e4ba12e7bebc2e19b6853f517627b7...
2025-07-15T14:42:24.508Z app-image kaniko INFO[0034] Using caching version of cmd: RUN apt-get update -qq && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
2025-07-15T14:42:24.509Z app-image kaniko INFO[0034] Resolving srcs [/app/package*.json]...
2025-07-15T14:42:24.562Z app-image kaniko INFO[0034] Checking for cached layer 532501343364.dkr.ecr.us-west-2.amazonaws.com/kaniko-build/cache:2359bcb2e0ec8f1915252773657bc523f111f765d5c9a745cfe8217ef2072059...
2025-07-15T14:42:24.801Z app-image kaniko INFO[0034] Using caching version of cmd: RUN npm ci --only=production
2025-07-15T14:42:24.801Z app-image kaniko INFO[0034] Cmd: EXPOSE
2025-07-15T14:42:24.801Z app-image kaniko INFO[0034] Adding exposed port: 3000/tcp
2025-07-15T14:42:24.801Z app-image kaniko INFO[0034] Checking for cached layer 532501343364.dkr.ecr.us-west-2.amazonaws.com/kaniko-build/cache:ae8a6bea4ccfd96ecf666ba46bef8de33094565e36d7d4703d4dae89a62af659...
2025-07-15T14:42:25.044Z app-image kaniko INFO[0035] Using caching version of cmd: RUN addgroup --system appgroup && adduser --system appuser --ingroup appgroup
2025-07-15T14:42:25.044Z app-image kaniko INFO[0035] Cmd: USER
2025-07-15T14:42:25.044Z app-image kaniko INFO[0035] Unpacking rootfs as cmd COPY --from=builder /app/package*.json ./ requires it.
2025-07-15T14:42:28.317Z app-image kaniko INFO[0038] WORKDIR /app
2025-07-15T14:42:28.317Z app-image kaniko INFO[0038] Cmd: workdir
2025-07-15T14:42:28.317Z app-image kaniko INFO[0038] Changed working directory to /app
2025-07-15T14:42:28.317Z app-image kaniko INFO[0038] Creating directory /app with uid -1 and gid -1
2025-07-15T14:42:28.317Z app-image kaniko INFO[0038] Taking snapshot of files...
2025-07-15T14:42:28.318Z app-image kaniko INFO[0038] RUN apt-get update -qq && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
2025-07-15T14:42:28.318Z app-image kaniko INFO[0038] Found cached layer, extracting to filesystem
2025-07-15T14:42:29.556Z app-image kaniko INFO[0039] Resolving srcs [/app/package*.json]...
2025-07-15T14:42:29.558Z app-image kaniko INFO[0039] COPY --from=builder /app/package*.json ./
2025-07-15T14:42:29.558Z app-image kaniko INFO[0039] Resolving srcs [/app/package*.json]...
2025-07-15T14:42:29.559Z app-image kaniko INFO[0039] Taking snapshot of files...
2025-07-15T14:42:29.619Z app-image kaniko INFO[0039] COPY --from=builder /app/.next ./.next
2025-07-15T14:42:29.645Z app-image kaniko INFO[0039] Taking snapshot of files...
2025-07-15T14:42:29.973Z app-image kaniko INFO[0040] COPY --from=builder /app/next.config.mjs ./
2025-07-15T14:42:29.973Z app-image kaniko INFO[0040] Taking snapshot of files...
2025-07-15T14:42:29.974Z app-image kaniko INFO[0040] RUN npm ci --only=production
2025-07-15T14:42:29.974Z app-image kaniko INFO[0040] Found cached layer, extracting to filesystem
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] EXPOSE 3000
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] Cmd: EXPOSE
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] Adding exposed port: 3000/tcp
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] No files changed in this command, skipping snapshotting.
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] RUN addgroup --system appgroup && adduser --system appuser --ingroup appgroup
2025-07-15T14:42:52.482Z app-image kaniko INFO[0062] Found cached layer, extracting to filesystem
2025-07-15T14:42:52.794Z app-image kaniko INFO[0062] USER appuser
2025-07-15T14:42:52.794Z app-image kaniko INFO[0062] Cmd: USER
2025-07-15T14:42:52.794Z app-image kaniko INFO[0062] No files changed in this command, skipping snapshotting.
2025-07-15T14:42:52.794Z app-image kaniko INFO[0062] CMD ["npm", "start"]
2025-07-15T14:42:52.794Z app-image kaniko INFO[0062] No files changed in this command, skipping snapshotting.
2025-07-15T14:43:25.976Z app-image kaniko INFO[0096] Pushing image to 426819183542.dkr.ecr.us-west-2.amazonaws.com/kaniko-build:app-image-cb17f1f7-x86_64
2025-07-15T14:43:26.748Z app-image kaniko INFO[0096] Pushed 426819183542.dkr.ecr.us-west-2.amazonaws.com/kaniko-build@sha256:304a2186ac351d7adb59aa06ee22b0b9037e432ccfd81abef7f2836371988b54
- service app with state ( BUILD_STOPPING ) and status: BUILD_DEPROVISIONING EssentialContainerExited
2025-07-15T14:43:38.431Z cd ** Build succeeded for "app"
2025-07-15T14:43:38.894Z cd ** Updated service "app" to revision 148
- service app with state ( DEPLOYMENT_PENDING ) and status: SERVICE_DEPLOYMENT_IN_PROGRESS ECS deployment ecs-svc/5664558608104618981 in progress.
2025-07-15T14:43:42.630Z cd Update succeeded in 5m32.719181439s ; provisioning...
2025-07-15T14:44:22.227Z app ip-10-0-85-65
2025-07-15T14:44:22.227Z app ip-10-0-85-65 > [email protected] start
2025-07-15T14:44:22.227Z app ip-10-0-85-65 > next start
2025-07-15T14:44:22.227Z app ip-10-0-85-65
2025-07-15T14:44:23.431Z app ip-10-0-85-65 ▲ Next.js 14.2.8
2025-07-15T14:44:23.432Z app ip-10-0-85-65 - Local: http://localhost:3000
2025-07-15T14:44:23.432Z app ip-10-0-85-65
2025-07-15T14:44:23.432Z app ip-10-0-85-65 ✓ Starting...
2025-07-15T14:44:24.327Z app ip-10-0-85-65 ✓ Ready in 1894ms
2025-07-15T14:44:26.128Z app ip-10-0-85-65 Error: The server does not support SSL connections
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:77:37)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at Object.onceWrapper (node:events:639:26)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at Socket.emit (node:events:524:28)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at addChunk (node:internal/streams/readable:561:12)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at Readable.push (node:internal/streams/readable:392:5)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at TCP.onStreamRead (node:internal/stream_base_commons:191:23)
2025-07-15T14:44:26.128Z app ip-10-0-85-65 at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
2025-07-15T14:44:26.128Z app ip-10-0-85-65 digest: '3973750683'
2025-07-15T14:44:26.128Z app ip-10-0-85-65 }
2025-07-15T14:44:26.129Z app ip-10-0-85-65 Error: The server does not support SSL connections
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:77:37)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at Object.onceWrapper (node:events:639:26)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at Socket.emit (node:events:524:28)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at addChunk (node:internal/streams/readable:561:12)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at Readable.push (node:internal/streams/readable:392:5)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at TCP.onStreamRead (node:internal/stream_base_commons:191:23)
2025-07-15T14:44:26.129Z app ip-10-0-85-65 at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
2025-07-15T14:44:26.129Z app ip-10-0-85-65 digest: '3973750683'
2025-07-15T14:44:26.129Z app ip-10-0-85-65 }
2025-07-15T14:44:30.628Z app ip-10-0-85-65 Error: The server does not support SSL connections
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:77:37)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at Object.onceWrapper (node:events:639:26)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at Socket.emit (node:events:524:28)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at addChunk (node:internal/streams/readable:561:12)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at Readable.push (node:internal/streams/readable:392:5)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at TCP.onStreamRead (node:internal/stream_base_commons:191:23)
2025-07-15T14:44:30.628Z app ip-10-0-85-65 at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
2025-07-15T14:44:30.628Z app ip-10-0-85-65 digest: '3973750683'
2025-07-15T14:44:30.628Z app ip-10-0-85-65 }
…
2025-07-15T14:45:34.502Z app ip-10-0-131-214 Error: The server does not support SSL connections
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at Socket.<anonymous> (/app/node_modules/pg/lib/connection.js:77:37)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at Object.onceWrapper (node:events:639:26)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at Socket.emit (node:events:524:28)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at addChunk (node:internal/streams/readable:561:12)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at Readable.push (node:internal/streams/readable:392:5)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at TCP.onStreamRead (node:internal/stream_base_commons:191:23)
2025-07-15T14:45:34.502Z app ip-10-0-131-214 at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
2025-07-15T14:45:34.502Z app ip-10-0-131-214 digest: '3973750683'
2025-07-15T14:45:34.502Z app ip-10-0-131-214 }
- Tail stopped with tail --since=2025-07-15T14:45:34.502500462Z --deployment=tuf6pemr26xu --type=ALL --project-name=nextjs-postgres invalid_argument: protocol error: incomplete envelope: context canceled
! deployment failed for service "app": TASK_DEACTIVATING Task failed container health checks
Copilot
Metadata
Metadata
Assignees
Labels
No labels