[2026-06-01T21:07:23.425Z] [DEPLOY] [2026-06-01 21:07:23] ✓ Database backup completed [2026-06-01T21:07:23.427Z] [DEPLOY] [2026-06-01 21:07:23] STEP: Step 4/8: Building new Docker images... [2026-06-01T21:07:23.430Z] [DEPLOY] [2026-06-01 21:07:23] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-01T21:07:23.781Z] [DEPLOY] [2026-06-01 21:07:23] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-01T21:07:23.865Z] [DEPLOY] [2026-06-01 21:07:23] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-01T21:07:24.060Z] [STDERR] time="2026-06-01T21:07:24Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-01T21:07:24.442Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-01T21:07:24.443Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-01T21:07:24.444Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-01T21:07:24.445Z] [DEPLOY] #1 DONE 0.0s [2026-06-01T21:07:24.447Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-01T21:07:25.043Z] [DEPLOY] #2 DONE 0.8s [2026-06-01T21:07:25.221Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-01T21:07:25.222Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-01T21:07:25.223Z] [DEPLOY] #3 CACHED [2026-06-01T21:07:25.410Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-01T21:07:26.169Z] [DEPLOY] #4 DONE 0.8s [2026-06-01T21:07:26.302Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-01T21:07:26.302Z] [DEPLOY] #5 transferring context: 304B done [2026-06-01T21:07:26.303Z] [DEPLOY] #5 DONE 0.0s [2026-06-01T21:07:26.303Z] [DEPLOY] #6 [backend internal] load build context [2026-06-01T21:07:26.304Z] [DEPLOY] #6 DONE 0.0s [2026-06-01T21:07:26.304Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-01T21:07:26.305Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-01T21:07:26.307Z] [DEPLOY] #7 DONE 0.0s [2026-06-01T21:07:26.443Z] [DEPLOY] #6 [backend internal] load build context [2026-06-01T21:07:26.631Z] [DEPLOY] #6 transferring context: 120.92kB 0.1s done [2026-06-01T21:07:26.631Z] [DEPLOY] #6 DONE 0.1s [2026-06-01T21:07:26.632Z] [DEPLOY] #8 [backend builder 2/10] WORKDIR /app [2026-06-01T21:07:26.632Z] [DEPLOY] #8 CACHED [2026-06-01T21:07:26.632Z] [DEPLOY] #9 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-01T21:07:26.633Z] [DEPLOY] #9 CACHED [2026-06-01T21:07:26.633Z] [DEPLOY] #10 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T21:07:26.634Z] [DEPLOY] #10 CACHED [2026-06-01T21:07:26.634Z] [DEPLOY] #11 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-01T21:07:26.634Z] [DEPLOY] #11 CACHED [2026-06-01T21:07:26.634Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-01T21:07:26.635Z] [DEPLOY] #12 CACHED [2026-06-01T21:07:26.635Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-01T21:07:26.795Z] [DEPLOY] #13 DONE 0.3s [2026-06-01T21:07:26.951Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-01T21:07:29.475Z] [DEPLOY] #14 2.675 Prisma schema loaded from prisma/schema.prisma [2026-06-01T21:07:33.980Z] [DEPLOY] #14 7.180 [2026-06-01T21:07:33.981Z] [DEPLOY] #14 7.180 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.41s [2026-06-01T21:07:33.981Z] [DEPLOY] #14 7.180 [2026-06-01T21:07:33.982Z] [DEPLOY] #14 7.180 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-01T21:07:33.983Z] [DEPLOY] #14 7.180 [2026-06-01T21:07:33.985Z] [DEPLOY] #14 7.180 Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse [2026-06-01T21:07:33.986Z] [DEPLOY] #14 7.180 [2026-06-01T21:07:34.326Z] [DEPLOY] #14 DONE 7.5s [2026-06-01T21:07:34.477Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-01T21:07:35.050Z] [DEPLOY] #15 0.724 [2026-06-01T21:07:35.051Z] [DEPLOY] #15 0.724 > backend@0.0.1 build /app [2026-06-01T21:07:35.053Z] [DEPLOY] #15 0.724 > nest build [2026-06-01T21:07:35.053Z] [DEPLOY] #15 0.724 [2026-06-01T21:08:18.789Z] [DEPLOY] #15 DONE 44.5s [2026-06-01T21:08:18.941Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-01T21:08:19.078Z] [DEPLOY] #16 0.286 total 80 [2026-06-01T21:08:19.079Z] [DEPLOY] #16 0.286 drwxr-xr-x 6 root root 4096 Jun 1 21:08 . [2026-06-01T21:08:19.081Z] [DEPLOY] #16 0.286 drwxr-xr-x 4 root root 4096 Jun 1 21:08 .. [2026-06-01T21:08:19.082Z] [DEPLOY] #16 0.286 drwxr-xr-x 3 root root 4096 Jun 1 21:08 __mocks__ [2026-06-01T21:08:19.082Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 181 Jun 1 21:07 app.controller.d.ts [2026-06-01T21:08:19.083Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 1611 Jun 1 21:07 app.controller.js [2026-06-01T21:08:19.084Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 436 Jun 1 21:07 app.controller.js.map [2026-06-01T21:08:19.087Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 35 Jun 1 21:08 app.module.d.ts [2026-06-01T21:08:19.088Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 8972 Jun 1 21:08 app.module.js [2026-06-01T21:08:19.088Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 2525 Jun 1 21:08 app.module.js.map [2026-06-01T21:08:19.089Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 60 Jun 1 21:07 app.service.d.ts [2026-06-01T21:08:19.090Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 981 Jun 1 21:07 app.service.js [2026-06-01T21:08:19.092Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 281 Jun 1 21:07 app.service.js.map [2026-06-01T21:08:19.093Z] [DEPLOY] #16 0.286 drwxr-xr-x 4 root root 4096 Jun 1 21:07 common [2026-06-01T21:08:19.100Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 11 Jun 1 21:08 main.d.ts [2026-06-01T21:08:19.100Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 2914 Jun 1 21:08 main.js [2026-06-01T21:08:19.106Z] [DEPLOY] #16 0.286 -rw-r--r-- 1 root root 2491 Jun 1 21:08 main.js.map [2026-06-01T21:08:19.107Z] [DEPLOY] #16 0.286 drwxr-xr-x 58 root root 4096 Jun 1 21:08 modules [2026-06-01T21:08:19.107Z] [DEPLOY] #16 0.286 drwxr-xr-x 2 root root 4096 Jun 1 21:07 prisma [2026-06-01T21:08:19.257Z] [DEPLOY] #16 DONE 0.3s [2026-06-01T21:08:21.388Z] [DEPLOY] #17 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-01T21:08:21.389Z] [DEPLOY] #17 CACHED [2026-06-01T21:08:21.390Z] [DEPLOY] #18 [backend production 7/12] COPY prisma ./prisma/ [2026-06-01T21:08:21.391Z] [DEPLOY] #18 CACHED [2026-06-01T21:08:21.392Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-01T21:08:21.393Z] [DEPLOY] #19 CACHED [2026-06-01T21:08:21.394Z] [DEPLOY] #20 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-01T21:08:21.398Z] [DEPLOY] #20 CACHED [2026-06-01T21:08:21.399Z] [DEPLOY] #21 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T21:08:21.401Z] [DEPLOY] #21 CACHED [2026-06-01T21:08:21.402Z] [DEPLOY] #22 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-01T21:08:21.407Z] [DEPLOY] #22 CACHED [2026-06-01T21:08:21.408Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-01T21:08:21.547Z] [DEPLOY] #23 CACHED [2026-06-01T21:08:21.547Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-01T21:08:21.971Z] [DEPLOY] #24 DONE 0.6s [2026-06-01T21:08:22.126Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-01T21:08:22.479Z] [DEPLOY] #25 DONE 0.5s [2026-06-01T21:08:22.636Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-01T21:08:57.323Z] [DEPLOY] #26 DONE 34.8s [2026-06-01T21:08:57.481Z] [DEPLOY] #27 [backend] exporting to image [2026-06-01T21:08:57.482Z] [DEPLOY] #27 exporting layers [2026-06-01T21:09:18.643Z] [DEPLOY] #27 exporting layers 21.3s done [2026-06-01T21:09:18.853Z] [DEPLOY] #27 exporting manifest sha256:00dab23e69e9cd9935a73eea69f5857e54338e517e4ecdcab3af0a9cafe6c747 0.0s done [2026-06-01T21:09:18.854Z] [DEPLOY] #27 exporting config sha256:e7d20ef480907a6c17dc7e7d9375b1402547174f1af506d71a4837c21115b0d9 done [2026-06-01T21:09:18.854Z] [DEPLOY] #27 exporting attestation manifest sha256:95c0bad457ed05799f762f5159478a4c512d30a48c4b5607634f482200bc0900 0.0s done [2026-06-01T21:09:18.856Z] [DEPLOY] #27 exporting manifest list sha256:10f13d251f05d672e8469f69d740148846270e1de2eadc528b274d9cdc38d798 done [2026-06-01T21:09:18.863Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-01T21:09:18.864Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-01T21:09:24.855Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.2s done [2026-06-01T21:09:25.047Z] [DEPLOY] #27 DONE 27.6s [2026-06-01T21:09:25.127Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-01T21:09:25.230Z] [DEPLOY] #28 DONE 0.0s [2026-06-01T21:09:25.231Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-01T21:09:25.232Z] [DEPLOY] #29 transferring dockerfile: [2026-06-01T21:09:25.402Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-01T21:09:25.404Z] [DEPLOY] #29 DONE 0.0s [2026-06-01T21:09:25.406Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-01T21:09:25.757Z] [DEPLOY] #2 DONE 1.3s [2026-06-01T21:09:25.921Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-01T21:09:25.922Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-01T21:09:25.933Z] [DEPLOY] #3 CACHED [2026-06-01T21:09:25.934Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-01T21:09:26.390Z] [DEPLOY] #30 ... [2026-06-01T21:09:26.393Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-01T21:09:26.394Z] [DEPLOY] #4 DONE 1.2s [2026-06-01T21:09:26.577Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-01T21:09:26.717Z] [DEPLOY] #30 DONE 0.8s [2026-06-01T21:09:26.941Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-01T21:09:26.943Z] [DEPLOY] #31 transferring context: 194B done [2026-06-01T21:09:26.944Z] [DEPLOY] #31 DONE 0.0s [2026-06-01T21:09:27.543Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-01T21:09:27.544Z] [DEPLOY] #32 DONE 0.0s [2026-06-01T21:09:27.545Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-01T21:09:27.546Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-01T21:09:27.694Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-01T21:09:27.695Z] [DEPLOY] #33 DONE 0.2s [2026-06-01T21:09:27.695Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-01T21:09:27.697Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-01T21:09:27.697Z] [DEPLOY] #7 DONE 0.2s [2026-06-01T21:09:27.703Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-01T21:09:27.794Z] [DEPLOY] #32 transferring context: 29.48kB 0.0s done [2026-06-01T21:09:27.795Z] [DEPLOY] #32 DONE 0.0s [2026-06-01T21:09:27.796Z] [DEPLOY] #34 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-01T21:09:27.797Z] [DEPLOY] #34 CACHED [2026-06-01T21:09:27.798Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-01T21:09:27.799Z] [DEPLOY] #35 CACHED [2026-06-01T21:09:27.799Z] [DEPLOY] #36 [frontend builder 6/7] COPY . . [2026-06-01T21:09:27.800Z] [DEPLOY] #36 CACHED [2026-06-01T21:09:27.801Z] [DEPLOY] #37 [frontend builder 7/7] RUN pnpm build [2026-06-01T21:09:27.802Z] [DEPLOY] #37 CACHED [2026-06-01T21:09:27.807Z] [DEPLOY] #38 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-01T21:09:27.810Z] [DEPLOY] #38 CACHED [2026-06-01T21:09:27.812Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-01T21:09:27.814Z] [DEPLOY] #39 CACHED [2026-06-01T21:09:27.818Z] [DEPLOY] #8 [frontend builder 2/7] WORKDIR /app [2026-06-01T21:09:27.819Z] [DEPLOY] #8 CACHED [2026-06-01T21:09:27.821Z] [DEPLOY] #40 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T21:09:27.825Z] [DEPLOY] #40 CACHED [2026-06-01T21:09:27.827Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-01T21:09:27.829Z] [DEPLOY] #41 CACHED [2026-06-01T21:09:27.830Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-01T21:09:27.831Z] [DEPLOY] #42 exporting layers done [2026-06-01T21:09:27.833Z] [DEPLOY] #42 exporting manifest sha256:f4016e1768445a13d5b99de0fa817edcdf877b1186be096bf735b77b04eb8a32 done [2026-06-01T21:09:27.836Z] [DEPLOY] #42 exporting config sha256:e75adb41df8097943c45f31b60ffff0358b97a0e2777f30064ed01ef2c2d1cb9 done [2026-06-01T21:09:27.838Z] [DEPLOY] #42 exporting attestation manifest sha256:4309e0f9b7c5f8fe1ee540611484c77dcd558b1ee937cbac1b93d9fc26e430cc [2026-06-01T21:09:28.034Z] [DEPLOY] #42 exporting attestation manifest sha256:4309e0f9b7c5f8fe1ee540611484c77dcd558b1ee937cbac1b93d9fc26e430cc 0.0s done [2026-06-01T21:09:28.035Z] [DEPLOY] #42 exporting manifest list sha256:fc56c991d5eaa5610998422c800b60ade4b8b2d43a1909523a5ca5e84e65569a 0.0s done [2026-06-01T21:09:28.036Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-01T21:09:28.038Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.0s done [2026-06-01T21:09:28.039Z] [DEPLOY] #42 DONE 0.1s [2026-06-01T21:09:28.039Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-01T21:09:28.051Z] [DEPLOY] #43 DONE 0.0s [2026-06-01T21:09:28.051Z] [STDERR] backend Built [2026-06-01T21:09:28.053Z] [STDERR] frontend Built [2026-06-01T21:09:28.058Z] [DEPLOY] [2026-06-01 21:09:28] ✓ New images built successfully [2026-06-01T21:09:28.060Z] [DEPLOY] [2026-06-01 21:09:28] STEP: Step 5/8: Running database migrations... [2026-06-01T21:09:28.061Z] [DEPLOY] [2026-06-01 21:09:28] Checking for pending migrations... [2026-06-01T21:09:28.063Z] [DEPLOY] [2026-06-01 21:09:28] Applying schema changes... [2026-06-01T21:09:30.570Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-01T21:09:30.627Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-01T21:09:31.217Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-01T21:09:31.302Z] [DEPLOY] npm notice [2026-06-01T21:09:31.304Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-01T21:09:31.305Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-01T21:09:31.308Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-01T21:09:31.309Z] [DEPLOY] npm notice [2026-06-01T21:09:31.628Z] [DEPLOY] [2026-06-01 21:09:31] ✓ Database schema already in sync [2026-06-01T21:09:31.631Z] [DEPLOY] [2026-06-01 21:09:31] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-01T21:09:31.633Z] [DEPLOY] [2026-06-01 21:09:31] Updating backend container... [2026-06-01T21:09:31.908Z] [STDERR] Container clicknex-redis Running [2026-06-01T21:09:31.909Z] [STDERR] Container clicknex-backend Recreate [2026-06-01T21:09:42.414Z] [STDERR] Container clicknex-backend Recreated [2026-06-01T21:09:42.445Z] [STDERR] Container clicknex-redis Waiting [2026-06-01T21:09:42.946Z] [STDERR] Container clicknex-redis Healthy [2026-06-01T21:09:42.948Z] [STDERR] Container clicknex-backend Starting [2026-06-01T21:09:43.215Z] [STDERR] Container clicknex-backend Started [2026-06-01T21:09:48.301Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-01T21:09:50.364Z] [DEPLOY] [2026-06-01 21:09:50] ✓ Backend health check passed (healthy) [2026-06-01T21:09:50.365Z] [DEPLOY] [2026-06-01 21:09:50] Updating frontend container... [2026-06-01T21:09:50.533Z] [STDERR] Container clicknex-frontend Recreate [2026-06-01T21:09:50.944Z] [STDERR] Container clicknex-frontend Recreated [2026-06-01T21:09:50.986Z] [STDERR] Container clicknex-frontend Starting [2026-06-01T21:09:51.195Z] [STDERR] Container clicknex-frontend Started [2026-06-01T21:09:51.203Z] [DEPLOY] [2026-06-01 21:09:51] ✓ New containers started [2026-06-01T21:09:51.206Z] [DEPLOY] [2026-06-01 21:09:51] STEP: Step 7/8: Running health checks... [2026-06-01T21:09:51.263Z] [DEPLOY] [2026-06-01 21:09:51] ✓ Backend health check passed (healthy) [2026-06-01T21:09:51.306Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-01T21:09:53.365Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-01T21:09:55.418Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-01T21:09:57.488Z] [DEPLOY] [2026-06-01 21:09:57] ✓ Frontend health check passed (healthy) [2026-06-01T21:09:57.490Z] [DEPLOY] [2026-06-01 21:09:57] ✓ All health checks passed [2026-06-01T21:09:57.494Z] [DEPLOY] [2026-06-01 21:09:57] STEP: Step 8/8: Cleaning up old resources... [2026-06-01T21:09:59.039Z] [DEPLOY] [2026-06-01 21:09:59] ✓ Cleanup completed (disco: ?%) [2026-06-01T21:09:59.040Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-01T21:09:59.041Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-01T21:09:59.042Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-01T21:09:59.044Z] [DEPLOY] ║ Commit: dabf3a0 ║ [2026-06-01T21:09:59.045Z] [DEPLOY] ║ Time: 2026-06-01 21:09:59 ║ [2026-06-01T21:09:59.047Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-01T21:09:59.048Z] [DEPLOY] ║ Services: ║ [2026-06-01T21:09:59.049Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-01T21:09:59.050Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-01T21:09:59.051Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-01T21:09:59.053Z] [INFO] Deploy script encerrado com código: 0 [2026-06-01T21:09:59.056Z] [INFO] ====================================================== [2026-06-01T21:09:59.057Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 400s [2026-06-01T21:09:59.057Z] [INFO] ====================================================== [2026-06-01T22:13:43.593Z] [INFO] Deploy manual disparado (commit 446fefef) [2026-06-01T22:13:43.597Z] [INFO] ====================================================== [2026-06-01T22:13:43.598Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-01T22:13:43.599Z] [INFO] Commit: 446fefef490ce18c2a14cc828f74a1382f5bdd0e [2026-06-01T22:13:43.599Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-01T22:13:43.599Z] [INFO] Branch: main [2026-06-01T22:13:43.600Z] [INFO] Disparado por: jhon4than (CI) [2026-06-01T22:13:43.600Z] [INFO] ====================================================== [2026-06-01T22:13:43.601Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-01T22:13:43.602Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-01T22:13:43.621Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-01T22:13:43.621Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-01T22:13:43.622Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-01T22:13:43.622Z] [DEPLOY] [2026-06-01 22:13:43] STEP: Step 1/8: Pulling latest code from repository... [2026-06-01T22:13:45.727Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-01T22:13:45.727Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-01T22:13:45.730Z] [STDERR] dabf3a0..446fefe main -> origin/main [2026-06-01T22:13:45.767Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: ═══════════════════════════════════════════════════════ [2026-06-01T22:13:45.768Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-01T22:13:45.769Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-01T22:13:45.772Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-01T22:13:45.855Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: → Stash salvo (veja: git stash list) [2026-06-01T22:13:45.859Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260601_221343.patch [2026-06-01T22:13:45.859Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260601_221343.patch' [2026-06-01T22:13:45.862Z] [DEPLOY] [2026-06-01 22:13:45] WARNING: ═══════════════════════════════════════════════════════ [2026-06-01T22:13:45.864Z] [DEPLOY] [2026-06-01 22:13:45] Deploy do commit validado pelo CI: 446fefef490ce18c2a14cc828f74a1382f5bdd0e [2026-06-01T22:13:45.914Z] [STDERR] Reset branch 'main' [2026-06-01T22:13:45.916Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-01T22:13:45.918Z] [DEPLOY] [2026-06-01 22:13:45] ✓ Code updated to latest version [2026-06-01T22:13:45.922Z] [DEPLOY] [2026-06-01 22:13:45] STEP: Step 2/8: Backing up current state... [2026-06-01T22:13:45.924Z] [DEPLOY] [2026-06-01 22:13:45] STEP: Creating backup of current state... [2026-06-01T22:13:46.468Z] [DEPLOY] [2026-06-01 22:13:46] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-01T22:13:46.469Z] [DEPLOY] [2026-06-01 22:13:46] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-01T22:13:46.473Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-01T22:13:46.473Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-01T22:13:46.474Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-01T22:13:46.474Z] [DEPLOY] Database: saas_crm [2026-06-01T22:13:46.474Z] [DEPLOY] Host: localhost:5432 [2026-06-01T22:13:46.474Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260601_221346.sql.gz [2026-06-01T22:13:46.475Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-01T22:17:33.841Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260601_221346.sql.gz (2.3G) [2026-06-01T22:17:33.844Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-01T22:17:33.850Z] [DEPLOY] removendo antigo: backup_20260601_181627.sql.gz [2026-06-01T22:17:33.868Z] [DEPLOY] Current backups: [2026-06-01T22:17:33.872Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 20:44 /www/wwwroot/saas_crm/backups/database/backup_20260601_204022.sql.gz [2026-06-01T22:17:33.873Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 21:07 /www/wwwroot/saas_crm/backups/database/backup_20260601_210321.sql.gz [2026-06-01T22:17:33.874Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 22:17 /www/wwwroot/saas_crm/backups/database/backup_20260601_221346.sql.gz [2026-06-01T22:17:33.874Z] [DEPLOY] Backup completed! [2026-06-01T22:17:33.876Z] [DEPLOY] [2026-06-01 22:17:33] ✓ Database backup completed [2026-06-01T22:17:33.879Z] [DEPLOY] [2026-06-01 22:17:33] STEP: Step 4/8: Building new Docker images... [2026-06-01T22:17:33.880Z] [DEPLOY] [2026-06-01 22:17:33] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-01T22:17:34.221Z] [DEPLOY] [2026-06-01 22:17:34] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-01T22:17:34.288Z] [DEPLOY] [2026-06-01 22:17:34] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-01T22:17:34.582Z] [STDERR] time="2026-06-01T22:17:34Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-01T22:17:35.018Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-01T22:17:35.020Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-01T22:17:35.021Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-01T22:17:35.030Z] [DEPLOY] #1 DONE 0.0s [2026-06-01T22:17:35.031Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-01T22:17:35.844Z] [DEPLOY] #2 DONE 1.0s [2026-06-01T22:17:36.063Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-01T22:17:36.066Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-01T22:17:36.066Z] [DEPLOY] #3 CACHED [2026-06-01T22:17:36.252Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-01T22:17:37.090Z] [DEPLOY] #4 DONE 0.8s [2026-06-01T22:17:37.255Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-01T22:17:37.256Z] [DEPLOY] #5 transferring context: 304B done [2026-06-01T22:17:37.257Z] [DEPLOY] #5 DONE 0.0s [2026-06-01T22:17:37.435Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-01T22:17:37.436Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-01T22:17:37.437Z] [DEPLOY] #6 DONE 0.0s [2026-06-01T22:17:37.437Z] [DEPLOY] #7 [backend internal] load build context [2026-06-01T22:17:37.527Z] [DEPLOY] #7 transferring context: 524.53kB 0.1s done [2026-06-01T22:17:37.528Z] [DEPLOY] #7 DONE 0.2s [2026-06-01T22:17:37.529Z] [DEPLOY] #8 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-01T22:17:37.529Z] [DEPLOY] #8 CACHED [2026-06-01T22:17:37.529Z] [DEPLOY] #9 [backend builder 2/10] WORKDIR /app [2026-06-01T22:17:37.530Z] [DEPLOY] #9 CACHED [2026-06-01T22:17:37.530Z] [DEPLOY] #10 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-01T22:17:37.530Z] [DEPLOY] #10 CACHED [2026-06-01T22:17:37.531Z] [DEPLOY] #11 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T22:17:37.531Z] [DEPLOY] #11 CACHED [2026-06-01T22:17:37.531Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-01T22:17:37.532Z] [DEPLOY] #12 CACHED [2026-06-01T22:17:37.532Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-01T22:17:38.035Z] [DEPLOY] #13 DONE 0.5s [2026-06-01T22:17:38.194Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-01T22:17:41.830Z] [DEPLOY] #14 3.782 Prisma schema loaded from prisma/schema.prisma [2026-06-01T22:17:47.051Z] [DEPLOY] #14 9.006 [2026-06-01T22:17:47.054Z] [DEPLOY] #14 9.006 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 3.25s [2026-06-01T22:17:47.054Z] [DEPLOY] #14 9.006 [2026-06-01T22:17:47.055Z] [DEPLOY] #14 9.006 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-01T22:17:47.056Z] [DEPLOY] #14 9.006 [2026-06-01T22:17:47.057Z] [DEPLOY] #14 9.006 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-01T22:17:47.059Z] [DEPLOY] #14 9.006 [2026-06-01T22:17:47.405Z] [DEPLOY] #14 DONE 9.4s [2026-06-01T22:17:47.554Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-01T22:17:48.286Z] [DEPLOY] #15 0.883 [2026-06-01T22:17:48.287Z] [DEPLOY] #15 0.883 > backend@0.0.1 build /app [2026-06-01T22:17:48.290Z] [DEPLOY] #15 0.883 > nest build [2026-06-01T22:17:48.294Z] [DEPLOY] #15 0.883 [2026-06-01T22:18:34.300Z] [DEPLOY] #15 DONE 46.9s [2026-06-01T22:18:34.454Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-01T22:18:34.596Z] [DEPLOY] #16 0.293 total 80 [2026-06-01T22:18:34.758Z] [DEPLOY] #16 0.293 drwxr-xr-x 6 root root 4096 Jun 1 22:18 . [2026-06-01T22:18:34.758Z] [DEPLOY] #16 0.293 drwxr-xr-x 4 root root 4096 Jun 1 22:18 .. [2026-06-01T22:18:34.760Z] [DEPLOY] #16 0.293 drwxr-xr-x 3 root root 4096 Jun 1 22:18 __mocks__ [2026-06-01T22:18:34.762Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 181 Jun 1 22:18 app.controller.d.ts [2026-06-01T22:18:34.762Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 1611 Jun 1 22:18 app.controller.js [2026-06-01T22:18:34.763Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 436 Jun 1 22:18 app.controller.js.map [2026-06-01T22:18:34.763Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 35 Jun 1 22:18 app.module.d.ts [2026-06-01T22:18:34.764Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 8972 Jun 1 22:18 app.module.js [2026-06-01T22:18:34.765Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 2525 Jun 1 22:18 app.module.js.map [2026-06-01T22:18:34.765Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 60 Jun 1 22:18 app.service.d.ts [2026-06-01T22:18:34.766Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 981 Jun 1 22:18 app.service.js [2026-06-01T22:18:34.776Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 281 Jun 1 22:18 app.service.js.map [2026-06-01T22:18:34.777Z] [DEPLOY] #16 0.293 drwxr-xr-x 4 root root 4096 Jun 1 22:18 common [2026-06-01T22:18:34.778Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 11 Jun 1 22:18 main.d.ts [2026-06-01T22:18:34.779Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 2914 Jun 1 22:18 main.js [2026-06-01T22:18:34.779Z] [DEPLOY] #16 0.293 -rw-r--r-- 1 root root 2491 Jun 1 22:18 main.js.map [2026-06-01T22:18:34.779Z] [DEPLOY] #16 0.293 drwxr-xr-x 58 root root 4096 Jun 1 22:18 modules [2026-06-01T22:18:34.780Z] [DEPLOY] #16 0.293 drwxr-xr-x 2 root root 4096 Jun 1 22:18 prisma [2026-06-01T22:18:34.780Z] [DEPLOY] #16 DONE 0.3s [2026-06-01T22:18:43.936Z] [DEPLOY] #17 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T22:18:43.937Z] [DEPLOY] #17 CACHED [2026-06-01T22:18:43.937Z] [DEPLOY] #18 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-01T22:18:43.937Z] [DEPLOY] #18 CACHED [2026-06-01T22:18:43.938Z] [DEPLOY] #19 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-01T22:18:43.939Z] [DEPLOY] #19 CACHED [2026-06-01T22:18:43.939Z] [DEPLOY] #20 [backend production 7/12] COPY prisma ./prisma/ [2026-06-01T22:18:43.940Z] [DEPLOY] #20 CACHED [2026-06-01T22:18:43.942Z] [DEPLOY] #21 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-01T22:18:43.949Z] [DEPLOY] #21 CACHED [2026-06-01T22:18:43.951Z] [DEPLOY] #22 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-01T22:18:43.951Z] [DEPLOY] #22 CACHED [2026-06-01T22:18:43.952Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-01T22:18:44.105Z] [DEPLOY] #23 CACHED [2026-06-01T22:18:44.105Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-01T22:18:44.621Z] [DEPLOY] #24 DONE 0.7s [2026-06-01T22:18:44.776Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-01T22:18:44.962Z] [DEPLOY] #25 DONE 0.3s [2026-06-01T22:18:45.119Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-01T22:19:29.773Z] [DEPLOY] #26 DONE 44.8s [2026-06-01T22:19:29.939Z] [DEPLOY] #27 [backend] exporting to image [2026-06-01T22:19:29.940Z] [DEPLOY] #27 exporting layers [2026-06-01T22:19:50.847Z] [DEPLOY] #27 exporting layers 21.1s done [2026-06-01T22:19:51.071Z] [DEPLOY] #27 exporting manifest sha256:b231c563763e671c194275c912c4333a34992eee6216a6addef1e05116a9ca56 done [2026-06-01T22:19:51.071Z] [DEPLOY] #27 exporting config sha256:974b48330aae0a8cd0ae71526db4c747fa724349052fc50b6f6c054eb33fe121 done [2026-06-01T22:19:51.072Z] [DEPLOY] #27 exporting attestation manifest sha256:40db9e51bd0731ccb3daaee7480a3e7412a416c839eb05789e6f4705f9b807ef 0.0s done [2026-06-01T22:19:51.072Z] [DEPLOY] #27 exporting manifest list sha256:37fa216f7464f2f299a49954da7c065091ad144351f85715e57564318b630bc5 0.0s done [2026-06-01T22:19:51.076Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-01T22:19:51.077Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-01T22:19:57.112Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.2s done [2026-06-01T22:19:57.363Z] [DEPLOY] #27 DONE 27.4s [2026-06-01T22:19:57.562Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-01T22:19:57.687Z] [DEPLOY] #28 DONE 0.0s [2026-06-01T22:19:57.861Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-01T22:19:57.862Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-01T22:19:57.862Z] [DEPLOY] #29 DONE 0.0s [2026-06-01T22:19:57.863Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-01T22:19:58.212Z] [DEPLOY] #2 DONE 1.5s [2026-06-01T22:19:58.353Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-01T22:19:58.353Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-01T22:19:58.354Z] [DEPLOY] #3 CACHED [2026-06-01T22:19:58.356Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-01T22:19:58.811Z] [DEPLOY] #30 ... [2026-06-01T22:19:58.812Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-01T22:19:58.813Z] [DEPLOY] #4 DONE 1.3s [2026-06-01T22:19:58.962Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-01T22:19:59.093Z] [DEPLOY] #30 DONE 0.7s [2026-06-01T22:19:59.327Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-01T22:19:59.355Z] [DEPLOY] #31 transferring context: 194B done [2026-06-01T22:19:59.356Z] [DEPLOY] #31 DONE 0.1s [2026-06-01T22:19:59.990Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-01T22:19:59.991Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-01T22:19:59.993Z] [DEPLOY] #6 DONE 0.1s [2026-06-01T22:19:59.994Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-01T22:19:59.994Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-01T22:19:59.995Z] [DEPLOY] #32 DONE 0.0s [2026-06-01T22:19:59.996Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-01T22:19:59.997Z] [DEPLOY] #33 transferring context: 29.48kB 0.0s done [2026-06-01T22:20:00.109Z] [DEPLOY] #33 DONE 0.1s [2026-06-01T22:20:00.117Z] [DEPLOY] #34 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-01T22:20:00.120Z] [DEPLOY] #34 CACHED [2026-06-01T22:20:00.122Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-01T22:20:00.124Z] [DEPLOY] #35 CACHED [2026-06-01T22:20:00.180Z] [DEPLOY] #36 [frontend builder 6/7] COPY . . [2026-06-01T22:20:00.181Z] [DEPLOY] #36 CACHED [2026-06-01T22:20:00.184Z] [DEPLOY] #37 [frontend builder 7/7] RUN pnpm build [2026-06-01T22:20:00.188Z] [DEPLOY] #37 CACHED [2026-06-01T22:20:00.191Z] [DEPLOY] #38 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-01T22:20:00.199Z] [DEPLOY] #38 CACHED [2026-06-01T22:20:00.200Z] [DEPLOY] #9 [frontend builder 2/7] WORKDIR /app [2026-06-01T22:20:00.205Z] [DEPLOY] #9 CACHED [2026-06-01T22:20:00.206Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-01T22:20:00.208Z] [DEPLOY] #39 CACHED [2026-06-01T22:20:00.214Z] [DEPLOY] #40 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-01T22:20:00.215Z] [DEPLOY] #40 CACHED [2026-06-01T22:20:00.218Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-01T22:20:00.220Z] [DEPLOY] #41 CACHED [2026-06-01T22:20:00.223Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-01T22:20:00.224Z] [DEPLOY] #42 exporting layers [2026-06-01T22:20:00.286Z] [DEPLOY] #42 exporting layers 0.1s done [2026-06-01T22:20:00.287Z] [DEPLOY] #42 exporting manifest sha256:f4016e1768445a13d5b99de0fa817edcdf877b1186be096bf735b77b04eb8a32 0.0s done [2026-06-01T22:20:00.292Z] [DEPLOY] #42 exporting config sha256:e75adb41df8097943c45f31b60ffff0358b97a0e2777f30064ed01ef2c2d1cb9 done [2026-06-01T22:20:00.293Z] [DEPLOY] #42 exporting attestation manifest sha256:ddbbd32fb140e5d5f1110f11021c8a6120e13075e765593f9866faea7f10083c [2026-06-01T22:20:00.392Z] [DEPLOY] #42 exporting attestation manifest sha256:ddbbd32fb140e5d5f1110f11021c8a6120e13075e765593f9866faea7f10083c 0.1s done [2026-06-01T22:20:00.394Z] [DEPLOY] #42 exporting manifest list sha256:7ac49bd1248d4b182b270f1c9bd32bd0124052d3e68cce592c957cba382a126f 0.0s done [2026-06-01T22:20:00.395Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest [2026-06-01T22:20:00.510Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-01T22:20:00.512Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.0s done [2026-06-01T22:20:00.515Z] [DEPLOY] #42 DONE 0.4s [2026-06-01T22:20:00.970Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-01T22:20:00.997Z] [DEPLOY] #43 DONE 0.0s [2026-06-01T22:20:01.002Z] [STDERR] backend Built [2026-06-01T22:20:01.006Z] [STDERR] frontend Built [2026-06-01T22:20:01.024Z] [DEPLOY] [2026-06-01 22:20:01] ✓ New images built successfully [2026-06-01T22:20:01.028Z] [DEPLOY] [2026-06-01 22:20:01] STEP: Step 5/8: Running database migrations... [2026-06-01T22:20:01.032Z] [DEPLOY] [2026-06-01 22:20:01] Checking for pending migrations... [2026-06-01T22:20:01.034Z] [DEPLOY] [2026-06-01 22:20:01] Applying schema changes... [2026-06-01T22:20:06.133Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-01T22:20:06.206Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-01T22:20:07.181Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-01T22:20:07.268Z] [DEPLOY] npm notice [2026-06-01T22:20:07.268Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-01T22:20:07.279Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-01T22:20:07.281Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-01T22:20:07.282Z] [DEPLOY] npm notice [2026-06-01T22:20:07.844Z] [DEPLOY] [2026-06-01 22:20:07] ✓ Database schema already in sync [2026-06-01T22:20:07.848Z] [DEPLOY] [2026-06-01 22:20:07] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-01T22:20:07.850Z] [DEPLOY] [2026-06-01 22:20:07] Updating backend container... [2026-06-01T22:20:08.221Z] [STDERR] Container clicknex-redis Running [2026-06-01T22:20:08.222Z] [STDERR] Container clicknex-backend Recreate [2026-06-01T22:20:19.525Z] [STDERR] Container clicknex-backend Recreated [2026-06-01T22:20:19.568Z] [STDERR] Container clicknex-redis Waiting [2026-06-01T22:20:20.073Z] [STDERR] Container clicknex-redis Healthy [2026-06-01T22:20:20.079Z] [STDERR] Container clicknex-backend Starting [2026-06-01T22:20:20.415Z] [STDERR] Container clicknex-backend Started [2026-06-01T22:20:25.510Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-01T22:20:27.584Z] [DEPLOY] [2026-06-01 22:20:27] ✓ Backend health check passed (healthy) [2026-06-01T22:20:27.585Z] [DEPLOY] [2026-06-01 22:20:27] Updating frontend container... [2026-06-01T22:20:27.920Z] [STDERR] Container clicknex-frontend Recreate [2026-06-01T22:20:28.467Z] [STDERR] Container clicknex-frontend Recreated [2026-06-01T22:20:28.509Z] [STDERR] Container clicknex-frontend Starting [2026-06-01T22:20:28.763Z] [STDERR] Container clicknex-frontend Started [2026-06-01T22:20:28.779Z] [DEPLOY] [2026-06-01 22:20:28] ✓ New containers started [2026-06-01T22:20:28.783Z] [DEPLOY] [2026-06-01 22:20:28] STEP: Step 7/8: Running health checks... [2026-06-01T22:20:28.837Z] [DEPLOY] [2026-06-01 22:20:28] ✓ Backend health check passed (healthy) [2026-06-01T22:20:28.895Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-01T22:20:30.963Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-01T22:20:33.054Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-01T22:20:35.148Z] [DEPLOY] [2026-06-01 22:20:35] ✓ Frontend health check passed (healthy) [2026-06-01T22:20:35.149Z] [DEPLOY] [2026-06-01 22:20:35] ✓ All health checks passed [2026-06-01T22:20:35.151Z] [DEPLOY] [2026-06-01 22:20:35] STEP: Step 8/8: Cleaning up old resources... [2026-06-01T22:20:37.792Z] [DEPLOY] [2026-06-01 22:20:37] ✓ Cleanup completed (disco: ?%) [2026-06-01T22:20:37.802Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-01T22:20:37.812Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-01T22:20:37.814Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-01T22:20:37.820Z] [DEPLOY] ║ Commit: 446fefe ║ [2026-06-01T22:20:37.828Z] [DEPLOY] ║ Time: 2026-06-01 22:20:37 ║ [2026-06-01T22:20:37.836Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-01T22:20:37.836Z] [DEPLOY] ║ Services: ║ [2026-06-01T22:20:37.837Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-01T22:20:37.840Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-01T22:20:37.842Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-01T22:20:37.844Z] [INFO] Deploy script encerrado com código: 0 [2026-06-01T22:20:37.848Z] [INFO] ====================================================== [2026-06-01T22:20:37.849Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 414s [2026-06-01T22:20:37.850Z] [INFO] ====================================================== [2026-06-02T03:07:47.968Z] [INFO] Deploy manual disparado (commit 341477bd) [2026-06-02T03:07:47.985Z] [INFO] ====================================================== [2026-06-02T03:07:47.988Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-02T03:07:47.990Z] [INFO] Commit: 341477bda7b2dda7106d9489f1143c317e1b6938 [2026-06-02T03:07:47.991Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-02T03:07:47.992Z] [INFO] Branch: main [2026-06-02T03:07:47.992Z] [INFO] Disparado por: jhon4than (CI) [2026-06-02T03:07:47.993Z] [INFO] ====================================================== [2026-06-02T03:07:47.994Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-02T03:07:47.994Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-02T03:07:48.033Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T03:07:48.034Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-02T03:07:48.034Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T03:07:48.035Z] [DEPLOY] [2026-06-02 03:07:48] STEP: Step 1/8: Pulling latest code from repository... [2026-06-02T03:07:49.957Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-02T03:07:49.957Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-02T03:07:49.958Z] [STDERR] 446fefe..341477b main -> origin/main [2026-06-02T03:07:50.110Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T03:07:50.113Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-02T03:07:50.115Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-02T03:07:50.120Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-02T03:07:50.212Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: → Stash salvo (veja: git stash list) [2026-06-02T03:07:50.213Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_030748.patch [2026-06-02T03:07:50.216Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_030748.patch' [2026-06-02T03:07:50.229Z] [DEPLOY] [2026-06-02 03:07:50] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T03:07:50.230Z] [DEPLOY] [2026-06-02 03:07:50] Deploy do commit validado pelo CI: 341477bda7b2dda7106d9489f1143c317e1b6938 [2026-06-02T03:07:50.268Z] [STDERR] Reset branch 'main' [2026-06-02T03:07:50.269Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-02T03:07:50.271Z] [DEPLOY] [2026-06-02 03:07:50] ✓ Code updated to latest version [2026-06-02T03:07:50.273Z] [DEPLOY] [2026-06-02 03:07:50] STEP: Step 2/8: Backing up current state... [2026-06-02T03:07:50.276Z] [DEPLOY] [2026-06-02 03:07:50] STEP: Creating backup of current state... [2026-06-02T03:07:50.594Z] [DEPLOY] [2026-06-02 03:07:50] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-02T03:07:50.595Z] [DEPLOY] [2026-06-02 03:07:50] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-02T03:07:50.603Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-02T03:07:50.604Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-02T03:07:50.605Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-02T03:07:50.606Z] [DEPLOY] Database: saas_crm [2026-06-02T03:07:50.608Z] [DEPLOY] Host: localhost:5432 [2026-06-02T03:07:50.610Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260602_030750.sql.gz [2026-06-02T03:07:50.610Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-02T03:07:50.642Z] [STDERR] Unable to find image 'postgres:18-alpine' locally [2026-06-02T03:07:51.960Z] [STDERR] 18-alpine: [2026-06-02T03:07:51.961Z] [STDERR] Pulling from library/postgres [2026-06-02T03:07:52.377Z] [STDERR] 4e227c0c29b0: Pulling fs layer [2026-06-02T03:07:52.378Z] [STDERR] cb2ae37abf29: Pulling fs layer [2026-06-02T03:07:52.378Z] [STDERR] 033acd588901: Pulling fs layer [2026-06-02T03:07:52.379Z] [STDERR] 6797fe14fc37: Pulling fs layer [2026-06-02T03:07:52.380Z] [STDERR] cb0e827e8389: Pulling fs layer [2026-06-02T03:07:52.380Z] [STDERR] 3771f4eeb917: Pulling fs layer [2026-06-02T03:07:52.380Z] [STDERR] 05f6e8830d21: Pulling fs layer [2026-06-02T03:07:52.381Z] [STDERR] 56e975b78d08: Pulling fs layer [2026-06-02T03:07:52.770Z] [STDERR] 56e975b78d08: Download complete [2026-06-02T03:07:52.771Z] [STDERR] cb2ae37abf29: Download complete [2026-06-02T03:07:52.869Z] [STDERR] 033acd588901: Download complete [2026-06-02T03:07:52.870Z] [STDERR] 6797fe14fc37: Download complete [2026-06-02T03:07:52.870Z] [STDERR] 3771f4eeb917: Download complete [2026-06-02T03:07:52.871Z] [STDERR] 05f6e8830d21: Download complete [2026-06-02T03:07:53.015Z] [STDERR] cb0e827e8389: Download complete [2026-06-02T03:07:53.093Z] [STDERR] 6797fe14fc37: Pull complete [2026-06-02T03:07:53.242Z] [STDERR] cb0e827e8389: Pull complete [2026-06-02T03:07:53.268Z] [STDERR] b5d163238017: Download complete [2026-06-02T03:07:53.320Z] [STDERR] 3771f4eeb917: Pull complete [2026-06-02T03:07:53.369Z] [STDERR] 981ab96b77ff: Download complete [2026-06-02T03:07:57.673Z] [STDERR] 4e227c0c29b0: Download complete [2026-06-02T03:08:06.985Z] [STDERR] 4e227c0c29b0: Pull complete [2026-06-02T03:08:07.073Z] [STDERR] 56e975b78d08: Pull complete [2026-06-02T03:08:07.080Z] [STDERR] cb2ae37abf29: Pull complete [2026-06-02T03:08:07.086Z] [STDERR] 033acd588901: Pull complete [2026-06-02T03:08:07.091Z] [STDERR] 05f6e8830d21: Pull complete [2026-06-02T03:08:07.137Z] [STDERR] Digest: sha256:96d56f7f57c6aacd1fcb908bc83b345ec5f83231ee486dd66a1baadce274db88 [2026-06-02T03:08:07.138Z] [STDERR] Status: Downloaded newer image for postgres:18-alpine [2026-06-02T03:12:25.139Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260602_030750.sql.gz (2.3G) [2026-06-02T03:12:25.143Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-02T03:12:25.147Z] [DEPLOY] removendo antigo: backup_20260601_204022.sql.gz [2026-06-02T03:12:25.180Z] [DEPLOY] Current backups: [2026-06-02T03:12:25.194Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 21:07 /www/wwwroot/saas_crm/backups/database/backup_20260601_210321.sql.gz [2026-06-02T03:12:25.195Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 22:17 /www/wwwroot/saas_crm/backups/database/backup_20260601_221346.sql.gz [2026-06-02T03:12:25.196Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 2 03:12 /www/wwwroot/saas_crm/backups/database/backup_20260602_030750.sql.gz [2026-06-02T03:12:25.199Z] [DEPLOY] Backup completed! [2026-06-02T03:12:25.203Z] [DEPLOY] [2026-06-02 03:12:25] ✓ Database backup completed [2026-06-02T03:12:25.208Z] [DEPLOY] [2026-06-02 03:12:25] STEP: Step 4/8: Building new Docker images... [2026-06-02T03:12:25.212Z] [DEPLOY] [2026-06-02 03:12:25] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-02T03:12:25.945Z] [DEPLOY] [2026-06-02 03:12:25] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-02T03:12:26.000Z] [DEPLOY] [2026-06-02 03:12:25] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-02T03:12:26.882Z] [STDERR] time="2026-06-02T03:12:26Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-02T03:12:27.343Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-02T03:12:27.343Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-02T03:12:27.348Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-02T03:12:27.349Z] [DEPLOY] #1 DONE 0.1s [2026-06-02T03:12:27.350Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T03:12:28.316Z] [DEPLOY] #2 DONE 1.0s [2026-06-02T03:12:28.423Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T03:12:28.424Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-02T03:12:28.618Z] [DEPLOY] #3 CACHED [2026-06-02T03:12:29.101Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T03:12:29.837Z] [DEPLOY] #4 DONE 0.7s [2026-06-02T03:12:29.947Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-02T03:12:29.948Z] [DEPLOY] #5 transferring context: 304B done [2026-06-02T03:12:29.949Z] [DEPLOY] #5 DONE 0.0s [2026-06-02T03:12:30.111Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T03:12:30.112Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-02T03:12:30.113Z] [DEPLOY] #6 DONE 0.0s [2026-06-02T03:12:30.113Z] [DEPLOY] #7 [backend internal] load build context [2026-06-02T03:12:30.305Z] [DEPLOY] #7 transferring context: 121.36kB 0.2s done [2026-06-02T03:12:30.308Z] [DEPLOY] #7 DONE 0.3s [2026-06-02T03:12:30.502Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T03:12:30.503Z] [DEPLOY] #8 CACHED [2026-06-02T03:12:30.503Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-02T03:12:30.514Z] [DEPLOY] #9 CACHED [2026-06-02T03:12:30.514Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-02T03:12:30.515Z] [DEPLOY] #10 CACHED [2026-06-02T03:12:30.515Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-02T03:12:30.515Z] [DEPLOY] #11 CACHED [2026-06-02T03:12:30.517Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T03:12:30.518Z] [DEPLOY] #12 CACHED [2026-06-02T03:12:30.518Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-02T03:12:31.269Z] [DEPLOY] #13 DONE 0.9s [2026-06-02T03:12:31.424Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-02T03:12:34.934Z] [DEPLOY] #14 3.660 Prisma schema loaded from prisma/schema.prisma [2026-06-02T03:12:39.519Z] [DEPLOY] #14 8.246 [2026-06-02T03:12:39.520Z] [DEPLOY] #14 8.246 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.75s [2026-06-02T03:12:39.521Z] [DEPLOY] #14 8.246 [2026-06-02T03:12:39.521Z] [DEPLOY] #14 8.246 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-02T03:12:39.522Z] [DEPLOY] #14 8.246 [2026-06-02T03:12:39.522Z] [DEPLOY] #14 8.246 Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse [2026-06-02T03:12:39.523Z] [DEPLOY] #14 8.246 [2026-06-02T03:12:39.828Z] [DEPLOY] #14 DONE 8.6s [2026-06-02T03:12:39.993Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-02T03:12:40.693Z] [DEPLOY] #15 0.850 [2026-06-02T03:12:40.694Z] [DEPLOY] #15 0.850 > backend@0.0.1 build /app [2026-06-02T03:12:40.694Z] [DEPLOY] #15 0.850 > nest build [2026-06-02T03:12:40.695Z] [DEPLOY] #15 0.850 [2026-06-02T03:13:26.989Z] [DEPLOY] #15 DONE 47.1s [2026-06-02T03:13:27.139Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-02T03:13:27.401Z] [DEPLOY] #16 0.412 total 80 [2026-06-02T03:13:27.601Z] [DEPLOY] #16 0.414 drwxr-xr-x 6 root root 4096 Jun 2 03:13 . [2026-06-02T03:13:27.602Z] [DEPLOY] #16 0.414 drwxr-xr-x 4 root root 4096 Jun 2 03:13 .. [2026-06-02T03:13:27.603Z] [DEPLOY] #16 0.414 drwxr-xr-x 3 root root 4096 Jun 2 03:13 __mocks__ [2026-06-02T03:13:27.604Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 181 Jun 2 03:12 app.controller.d.ts [2026-06-02T03:13:27.608Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 1611 Jun 2 03:12 app.controller.js [2026-06-02T03:13:27.609Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 436 Jun 2 03:12 app.controller.js.map [2026-06-02T03:13:27.610Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 35 Jun 2 03:13 app.module.d.ts [2026-06-02T03:13:27.611Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 8972 Jun 2 03:13 app.module.js [2026-06-02T03:13:27.612Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 2525 Jun 2 03:13 app.module.js.map [2026-06-02T03:13:27.615Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 60 Jun 2 03:12 app.service.d.ts [2026-06-02T03:13:27.616Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 981 Jun 2 03:12 app.service.js [2026-06-02T03:13:27.617Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 281 Jun 2 03:12 app.service.js.map [2026-06-02T03:13:27.620Z] [DEPLOY] #16 0.414 drwxr-xr-x 4 root root 4096 Jun 2 03:12 common [2026-06-02T03:13:27.621Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 11 Jun 2 03:13 main.d.ts [2026-06-02T03:13:27.622Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 2914 Jun 2 03:13 main.js [2026-06-02T03:13:27.623Z] [DEPLOY] #16 0.414 -rw-r--r-- 1 root root 2491 Jun 2 03:13 main.js.map [2026-06-02T03:13:27.623Z] [DEPLOY] #16 0.414 drwxr-xr-x 58 root root 4096 Jun 2 03:13 modules [2026-06-02T03:13:27.624Z] [DEPLOY] #16 0.414 drwxr-xr-x 2 root root 4096 Jun 2 03:12 prisma [2026-06-02T03:13:27.626Z] [DEPLOY] #16 DONE 0.5s [2026-06-02T03:13:37.703Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-02T03:13:37.704Z] [DEPLOY] #17 CACHED [2026-06-02T03:13:37.704Z] [DEPLOY] #18 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-02T03:13:37.705Z] [DEPLOY] #18 CACHED [2026-06-02T03:13:37.705Z] [DEPLOY] #19 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-02T03:13:37.706Z] [DEPLOY] #19 CACHED [2026-06-02T03:13:37.708Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T03:13:37.709Z] [DEPLOY] #20 CACHED [2026-06-02T03:13:37.709Z] [DEPLOY] #21 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-02T03:13:37.710Z] [DEPLOY] #21 CACHED [2026-06-02T03:13:37.710Z] [DEPLOY] #22 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-02T03:13:37.712Z] [DEPLOY] #22 CACHED [2026-06-02T03:13:37.712Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-02T03:13:37.853Z] [DEPLOY] #23 CACHED [2026-06-02T03:13:37.854Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-02T03:13:38.388Z] [DEPLOY] #24 DONE 0.7s [2026-06-02T03:13:38.544Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-02T03:13:38.756Z] [DEPLOY] #25 DONE 0.4s [2026-06-02T03:13:38.909Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-02T03:14:26.033Z] [DEPLOY] #26 DONE 47.3s [2026-06-02T03:14:26.272Z] [DEPLOY] #27 [backend] exporting to image [2026-06-02T03:14:26.273Z] [DEPLOY] #27 exporting layers [2026-06-02T03:14:45.071Z] [DEPLOY] #27 exporting layers 19.0s done [2026-06-02T03:14:45.295Z] [DEPLOY] #27 exporting manifest sha256:46dd981a9a10c0ddbd3bcc75fd9fb149fc37a30c1f51363f86baa1ce89dc183b 0.0s done [2026-06-02T03:14:45.296Z] [DEPLOY] #27 exporting config sha256:e3597bd42aecdeb44a0576b96eef36a4192dd2b9b74588facef92107ad2c6f54 0.0s done [2026-06-02T03:14:45.298Z] [DEPLOY] #27 exporting attestation manifest sha256:3e4fbf3c725404a8c6b2556c30b8a32ea5f3ec4ac9623a29953bdd79703469b6 0.0s done [2026-06-02T03:14:45.300Z] [DEPLOY] #27 exporting manifest list sha256:ddf98906cfdb96812d3707b013d63a7c826dbefbbe1ead58bd5762b13d4cc23d done [2026-06-02T03:14:45.301Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-02T03:14:45.301Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-02T03:14:51.356Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.2s done [2026-06-02T03:14:51.595Z] [DEPLOY] #27 DONE 25.3s [2026-06-02T03:14:51.747Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-02T03:14:51.913Z] [DEPLOY] #28 DONE 0.0s [2026-06-02T03:14:52.087Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-02T03:14:52.088Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-02T03:14:52.092Z] [DEPLOY] #29 DONE 0.0s [2026-06-02T03:14:52.095Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T03:14:52.416Z] [DEPLOY] #2 DONE 1.5s [2026-06-02T03:14:52.624Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T03:14:52.625Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-02T03:14:52.626Z] [DEPLOY] #3 CACHED [2026-06-02T03:14:52.670Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T03:14:53.120Z] [DEPLOY] #4 DONE 1.2s [2026-06-02T03:14:53.120Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T03:14:53.387Z] [DEPLOY] #30 DONE 0.7s [2026-06-02T03:14:53.626Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-02T03:14:53.632Z] [DEPLOY] #31 transferring context: 194B done [2026-06-02T03:14:53.640Z] [DEPLOY] #31 DONE 0.1s [2026-06-02T03:14:54.521Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-02T03:14:54.523Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-02T03:14:54.524Z] [DEPLOY] #32 DONE 0.1s [2026-06-02T03:14:54.526Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T03:14:54.536Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T03:14:54.539Z] [DEPLOY] #6 DONE 0.1s [2026-06-02T03:14:54.554Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-02T03:14:54.639Z] [DEPLOY] #33 transferring context: 43.49kB 0.1s done [2026-06-02T03:14:54.640Z] [DEPLOY] #33 DONE 0.1s [2026-06-02T03:14:54.641Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T03:14:54.642Z] [DEPLOY] #34 CACHED [2026-06-02T03:14:54.642Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-02T03:14:54.643Z] [DEPLOY] #35 CACHED [2026-06-02T03:14:54.644Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-02T03:14:54.644Z] [DEPLOY] #10 CACHED [2026-06-02T03:14:54.645Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T03:14:54.792Z] [DEPLOY] #36 CACHED [2026-06-02T03:14:54.793Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-02T03:14:55.178Z] [DEPLOY] #37 DONE 0.5s [2026-06-02T03:14:55.342Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-02T03:14:56.145Z] [DEPLOY] #38 0.963 [2026-06-02T03:14:56.148Z] [DEPLOY] #38 0.963 > frontend@1.0.0 build /app [2026-06-02T03:14:56.149Z] [DEPLOY] #38 0.963 > tsc && vite build [2026-06-02T03:14:56.150Z] [DEPLOY] #38 0.963 [2026-06-02T03:15:54.443Z] [DEPLOY] #38 59.26 vite v5.4.21 building for production... [2026-06-02T03:15:55.211Z] [DEPLOY] #38 60.03 transforming... [2026-06-02T03:15:55.911Z] [DEPLOY] #38 60.73 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-02T03:15:55.912Z] [DEPLOY] #38 60.73 npx update-browserslist-db@latest [2026-06-02T03:15:55.916Z] [DEPLOY] #38 60.73 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-02T03:16:22.522Z] [DEPLOY] #38 87.34 ✓ 4325 modules transformed. [2026-06-02T03:16:24.542Z] [DEPLOY] #38 89.36 rendering chunks... [2026-06-02T03:16:29.022Z] [DEPLOY] #38 93.84 computing gzip size... [2026-06-02T03:16:29.197Z] [DEPLOY] #38 94.01 dist/registerSW.js 0.13 kB [2026-06-02T03:16:29.198Z] [DEPLOY] #38 94.01 dist/manifest.webmanifest 0.54 kB [2026-06-02T03:16:29.198Z] [DEPLOY] #38 94.01 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-02T03:16:29.358Z] [DEPLOY] #38 94.01 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-02T03:16:29.364Z] [DEPLOY] #38 94.01 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-02T03:16:29.365Z] [DEPLOY] #38 94.01 dist/assets/index.es-D1gxSjSe.js 150.69 kB │ gzip: 51.55 kB [2026-06-02T03:16:29.371Z] [DEPLOY] #38 94.01 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-02T03:16:29.373Z] [DEPLOY] #38 94.01 dist/assets/index-BPne2LrN.js 4,150.25 kB │ gzip: 1,077.85 kB [2026-06-02T03:16:29.373Z] [DEPLOY] #38 94.02 [2026-06-02T03:16:29.374Z] [DEPLOY] #38 94.02 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-02T03:16:29.375Z] [DEPLOY] #38 94.02 - Using dynamic import() to code-split the application [2026-06-02T03:16:29.377Z] [DEPLOY] #38 94.02 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-02T03:16:29.383Z] [DEPLOY] #38 94.02 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-02T03:16:29.385Z] [DEPLOY] #38 94.02 ✓ built in 34.71s [2026-06-02T03:16:29.386Z] [DEPLOY] #38 94.02 [2026-06-02T03:16:29.388Z] [DEPLOY] #38 94.02 PWA v1.2.0 [2026-06-02T03:16:29.394Z] [DEPLOY] #38 94.02 Building src/sw.ts service worker ("es" format)... [2026-06-02T03:16:29.397Z] [DEPLOY] #38 94.03 vite v5.4.21 building for production... [2026-06-02T03:16:31.077Z] [DEPLOY] #38 95.89 transforming... [2026-06-02T03:16:31.189Z] [DEPLOY] #38 95.90 ✓ 1 modules transformed. [2026-06-02T03:16:31.196Z] [DEPLOY] #38 95.90 rendering chunks... [2026-06-02T03:16:31.200Z] [DEPLOY] #38 95.91 computing gzip size... [2026-06-02T03:16:31.201Z] [DEPLOY] #38 95.91 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-02T03:16:31.207Z] [DEPLOY] #38 95.91 ✓ built in 1.88s [2026-06-02T03:16:31.210Z] [DEPLOY] #38 96.01 [2026-06-02T03:16:31.211Z] [DEPLOY] #38 96.01 PWA v1.2.0 [2026-06-02T03:16:31.212Z] [DEPLOY] #38 96.01 mode injectManifest [2026-06-02T03:16:31.212Z] [DEPLOY] #38 96.01 format: es [2026-06-02T03:16:31.214Z] [DEPLOY] #38 96.01 precache 15 entries (4939.59 KiB) [2026-06-02T03:16:31.215Z] [DEPLOY] #38 96.01 files generated [2026-06-02T03:16:31.215Z] [DEPLOY] #38 96.01 dist/sw.js [2026-06-02T03:16:31.562Z] [DEPLOY] #38 DONE 96.4s [2026-06-02T03:16:34.732Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-02T03:16:34.733Z] [DEPLOY] #39 CACHED [2026-06-02T03:16:34.734Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-02T03:16:34.839Z] [DEPLOY] #40 CACHED [2026-06-02T03:16:34.841Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-02T03:16:34.843Z] [DEPLOY] #41 DONE 0.1s [2026-06-02T03:16:34.843Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-02T03:16:34.990Z] [DEPLOY] #42 exporting layers [2026-06-02T03:16:35.101Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-02T03:16:35.231Z] [DEPLOY] #42 exporting manifest sha256:8e811821abd3bdabd10ba78ed73ce51c0171c341cbe34c537f114cc64f5d1662 done [2026-06-02T03:16:35.232Z] [DEPLOY] #42 exporting config sha256:ed167cb446461fed8abc665577e40cb6331edfd82c0c213df0e67753109a026c done [2026-06-02T03:16:35.234Z] [DEPLOY] #42 exporting attestation manifest sha256:b747f506e493e95319cea08ff95920522748c2ec357e1bd8f1d31d4d8d88ccf6 0.0s done [2026-06-02T03:16:35.235Z] [DEPLOY] #42 exporting manifest list sha256:6e3b15a6d16e3a192d8540f4f90a90967392423595c85da389ccafffc7d34391 done [2026-06-02T03:16:35.236Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-02T03:16:35.237Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-02T03:16:35.425Z] [DEPLOY] #42 DONE 0.4s [2026-06-02T03:16:35.465Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-02T03:16:35.495Z] [DEPLOY] #43 DONE 0.0s [2026-06-02T03:16:35.496Z] [STDERR] backend Built [2026-06-02T03:16:35.497Z] [STDERR] frontend Built [2026-06-02T03:16:35.513Z] [DEPLOY] [2026-06-02 03:16:35] ✓ New images built successfully [2026-06-02T03:16:35.513Z] [DEPLOY] [2026-06-02 03:16:35] STEP: Step 5/8: Running database migrations... [2026-06-02T03:16:35.515Z] [DEPLOY] [2026-06-02 03:16:35] Checking for pending migrations... [2026-06-02T03:16:35.516Z] [DEPLOY] [2026-06-02 03:16:35] Applying schema changes... [2026-06-02T03:16:38.510Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-02T03:16:38.552Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-02T03:16:39.253Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-02T03:16:39.297Z] [DEPLOY] npm notice [2026-06-02T03:16:39.297Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-02T03:16:39.298Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-02T03:16:39.303Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-02T03:16:39.304Z] [DEPLOY] npm notice [2026-06-02T03:16:39.559Z] [DEPLOY] [2026-06-02 03:16:39] ✓ Database schema already in sync [2026-06-02T03:16:39.560Z] [DEPLOY] [2026-06-02 03:16:39] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-02T03:16:39.562Z] [DEPLOY] [2026-06-02 03:16:39] Updating backend container... [2026-06-02T03:16:39.810Z] [STDERR] Container clicknex-redis Running [2026-06-02T03:16:39.815Z] [STDERR] Container clicknex-backend Recreate [2026-06-02T03:16:50.522Z] [STDERR] Container clicknex-backend Recreated [2026-06-02T03:16:50.558Z] [STDERR] Container clicknex-redis Waiting [2026-06-02T03:16:51.062Z] [STDERR] Container clicknex-redis Healthy [2026-06-02T03:16:51.064Z] [STDERR] Container clicknex-backend Starting [2026-06-02T03:16:51.371Z] [STDERR] Container clicknex-backend Started [2026-06-02T03:16:56.486Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-02T03:16:58.562Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-02T03:17:00.626Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-02T03:17:02.674Z] [DEPLOY] [2026-06-02 03:17:02] ✓ Backend health check passed (healthy) [2026-06-02T03:17:02.675Z] [DEPLOY] [2026-06-02 03:17:02] Updating frontend container... [2026-06-02T03:17:02.959Z] [STDERR] Container clicknex-frontend Recreate [2026-06-02T03:17:03.553Z] [STDERR] Container clicknex-frontend Recreated [2026-06-02T03:17:03.625Z] [STDERR] Container clicknex-frontend Starting [2026-06-02T03:17:03.897Z] [STDERR] Container clicknex-frontend Started [2026-06-02T03:17:03.910Z] [DEPLOY] [2026-06-02 03:17:03] ✓ New containers started [2026-06-02T03:17:03.911Z] [DEPLOY] [2026-06-02 03:17:03] STEP: Step 7/8: Running health checks... [2026-06-02T03:17:04.055Z] [DEPLOY] [2026-06-02 03:17:04] ✓ Backend health check passed (healthy) [2026-06-02T03:17:04.179Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-02T03:17:06.248Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-02T03:17:08.324Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-02T03:17:10.373Z] [DEPLOY] [2026-06-02 03:17:10] ✓ Frontend health check passed (healthy) [2026-06-02T03:17:10.374Z] [DEPLOY] [2026-06-02 03:17:10] ✓ All health checks passed [2026-06-02T03:17:10.375Z] [DEPLOY] [2026-06-02 03:17:10] STEP: Step 8/8: Cleaning up old resources... [2026-06-02T03:17:12.531Z] [DEPLOY] [2026-06-02 03:17:12] ✓ Cleanup completed (disco: ?%) [2026-06-02T03:17:12.533Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T03:17:12.534Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-02T03:17:12.536Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T03:17:12.537Z] [DEPLOY] ║ Commit: 341477b ║ [2026-06-02T03:17:12.538Z] [DEPLOY] ║ Time: 2026-06-02 03:17:12 ║ [2026-06-02T03:17:12.539Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T03:17:12.540Z] [DEPLOY] ║ Services: ║ [2026-06-02T03:17:12.541Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-02T03:17:12.542Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-02T03:17:12.544Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T03:17:12.545Z] [INFO] Deploy script encerrado com código: 0 [2026-06-02T03:17:12.558Z] [INFO] ====================================================== [2026-06-02T03:17:12.567Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 565s [2026-06-02T03:17:12.572Z] [INFO] ====================================================== [2026-06-02T16:02:01.346Z] [INFO] Deploy manual disparado (commit f90460ab) [2026-06-02T16:02:01.357Z] [INFO] ====================================================== [2026-06-02T16:02:01.360Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-02T16:02:01.361Z] [INFO] Commit: f90460ab5326fb980f41728d3f30e378e8a32a42 [2026-06-02T16:02:01.362Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-02T16:02:01.363Z] [INFO] Branch: main [2026-06-02T16:02:01.364Z] [INFO] Disparado por: jhon4than (CI) [2026-06-02T16:02:01.364Z] [INFO] ====================================================== [2026-06-02T16:02:01.367Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-02T16:02:01.368Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-02T16:02:01.413Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T16:02:01.414Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-02T16:02:01.423Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T16:02:01.425Z] [DEPLOY] [2026-06-02 16:02:01] STEP: Step 1/8: Pulling latest code from repository... [2026-06-02T16:02:03.581Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-02T16:02:03.583Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-02T16:02:03.584Z] [STDERR] 341477b..f90460a main -> origin/main [2026-06-02T16:02:03.717Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T16:02:03.719Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-02T16:02:03.720Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-02T16:02:03.721Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-02T16:02:03.809Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: → Stash salvo (veja: git stash list) [2026-06-02T16:02:03.810Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_160201.patch [2026-06-02T16:02:03.813Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_160201.patch' [2026-06-02T16:02:03.827Z] [DEPLOY] [2026-06-02 16:02:03] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T16:02:03.828Z] [DEPLOY] [2026-06-02 16:02:03] Deploy do commit validado pelo CI: f90460ab5326fb980f41728d3f30e378e8a32a42 [2026-06-02T16:02:03.891Z] [STDERR] Reset branch 'main' [2026-06-02T16:02:03.893Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-02T16:02:03.899Z] [DEPLOY] [2026-06-02 16:02:03] ✓ Code updated to latest version [2026-06-02T16:02:03.901Z] [DEPLOY] [2026-06-02 16:02:03] STEP: Step 2/8: Backing up current state... [2026-06-02T16:02:03.902Z] [DEPLOY] [2026-06-02 16:02:03] STEP: Creating backup of current state... [2026-06-02T16:02:04.845Z] [DEPLOY] [2026-06-02 16:02:04] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-02T16:02:04.846Z] [DEPLOY] [2026-06-02 16:02:04] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-02T16:02:04.857Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-02T16:02:04.860Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-02T16:02:04.862Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-02T16:02:04.864Z] [DEPLOY] Database: saas_crm [2026-06-02T16:02:04.866Z] [DEPLOY] Host: localhost:5432 [2026-06-02T16:02:04.868Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz [2026-06-02T16:02:04.868Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-02T16:06:19.383Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz (2.4G) [2026-06-02T16:06:19.385Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-02T16:06:19.392Z] [DEPLOY] removendo antigo: backup_20260601_210321.sql.gz [2026-06-02T16:06:19.465Z] [DEPLOY] Current backups: [2026-06-02T16:06:19.468Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 1 22:17 /www/wwwroot/saas_crm/backups/database/backup_20260601_221346.sql.gz [2026-06-02T16:06:19.468Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 2 03:12 /www/wwwroot/saas_crm/backups/database/backup_20260602_030750.sql.gz [2026-06-02T16:06:19.468Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 16:06 /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz [2026-06-02T16:06:19.469Z] [DEPLOY] Backup completed! [2026-06-02T16:06:19.476Z] [DEPLOY] [2026-06-02 16:06:19] ✓ Database backup completed [2026-06-02T16:06:19.477Z] [DEPLOY] [2026-06-02 16:06:19] STEP: Step 4/8: Building new Docker images... [2026-06-02T16:06:19.478Z] [DEPLOY] [2026-06-02 16:06:19] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-02T16:06:19.834Z] [DEPLOY] [2026-06-02 16:06:19] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-02T16:06:19.920Z] [DEPLOY] [2026-06-02 16:06:19] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-02T16:06:21.498Z] [STDERR] time="2026-06-02T16:06:21Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-02T16:06:22.018Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-02T16:06:22.020Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-02T16:06:22.023Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-02T16:06:22.236Z] [DEPLOY] #1 DONE 0.1s [2026-06-02T16:06:22.236Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T16:06:23.079Z] [DEPLOY] #2 DONE 1.0s [2026-06-02T16:06:23.298Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T16:06:23.299Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T16:06:23.301Z] [DEPLOY] #3 CACHED [2026-06-02T16:06:24.001Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T16:06:24.736Z] [DEPLOY] #4 DONE 0.7s [2026-06-02T16:06:24.864Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-02T16:06:24.865Z] [DEPLOY] #5 transferring context: 304B done [2026-06-02T16:06:24.865Z] [DEPLOY] #5 DONE 0.0s [2026-06-02T16:06:24.866Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T16:06:24.866Z] [DEPLOY] #6 DONE 0.0s [2026-06-02T16:06:24.867Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T16:06:24.868Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-02T16:06:25.024Z] [DEPLOY] #7 DONE 0.1s [2026-06-02T16:06:25.027Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T16:06:25.174Z] [DEPLOY] #6 transferring context: 133.57kB 0.3s done [2026-06-02T16:06:25.299Z] [DEPLOY] #6 DONE 0.4s [2026-06-02T16:06:25.511Z] [DEPLOY] #8 [backend builder 2/10] WORKDIR /app [2026-06-02T16:06:25.512Z] [DEPLOY] #8 CACHED [2026-06-02T16:06:25.513Z] [DEPLOY] #9 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-02T16:06:25.513Z] [DEPLOY] #9 CACHED [2026-06-02T16:06:25.513Z] [DEPLOY] #10 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T16:06:25.514Z] [DEPLOY] #10 CACHED [2026-06-02T16:06:25.516Z] [DEPLOY] #11 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-02T16:06:25.516Z] [DEPLOY] #11 CACHED [2026-06-02T16:06:25.516Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T16:06:25.517Z] [DEPLOY] #12 CACHED [2026-06-02T16:06:25.518Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-02T16:06:26.559Z] [DEPLOY] #13 DONE 1.2s [2026-06-02T16:06:26.715Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-02T16:06:30.162Z] [DEPLOY] #14 3.599 Prisma schema loaded from prisma/schema.prisma [2026-06-02T16:06:33.987Z] [DEPLOY] #14 7.424 [2026-06-02T16:06:33.987Z] [DEPLOY] #14 7.424 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.14s [2026-06-02T16:06:33.988Z] [DEPLOY] #14 7.424 [2026-06-02T16:06:33.988Z] [DEPLOY] #14 7.424 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-02T16:06:33.989Z] [DEPLOY] #14 7.424 [2026-06-02T16:06:33.990Z] [DEPLOY] #14 7.424 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-02T16:06:33.990Z] [DEPLOY] #14 7.424 [2026-06-02T16:06:34.292Z] [DEPLOY] #14 DONE 7.7s [2026-06-02T16:06:34.451Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-02T16:06:35.158Z] [DEPLOY] #15 0.860 [2026-06-02T16:06:35.159Z] [DEPLOY] #15 0.860 > backend@0.0.1 build /app [2026-06-02T16:06:35.160Z] [DEPLOY] #15 0.860 > nest build [2026-06-02T16:06:35.160Z] [DEPLOY] #15 0.860 [2026-06-02T16:07:15.018Z] [DEPLOY] #15 DONE 40.7s [2026-06-02T16:07:15.176Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-02T16:07:15.421Z] [DEPLOY] #16 0.397 total 80 [2026-06-02T16:07:15.421Z] [DEPLOY] #16 0.397 drwxr-xr-x 6 root root 4096 Jun 2 16:07 . [2026-06-02T16:07:15.422Z] [DEPLOY] #16 0.397 drwxr-xr-x 4 root root 4096 Jun 2 16:07 .. [2026-06-02T16:07:15.422Z] [DEPLOY] #16 0.397 drwxr-xr-x 3 root root 4096 Jun 2 16:07 __mocks__ [2026-06-02T16:07:15.422Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 181 Jun 2 16:06 app.controller.d.ts [2026-06-02T16:07:15.423Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 1611 Jun 2 16:06 app.controller.js [2026-06-02T16:07:15.423Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 436 Jun 2 16:06 app.controller.js.map [2026-06-02T16:07:15.424Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 35 Jun 2 16:07 app.module.d.ts [2026-06-02T16:07:15.424Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 8972 Jun 2 16:07 app.module.js [2026-06-02T16:07:15.425Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 2525 Jun 2 16:07 app.module.js.map [2026-06-02T16:07:15.427Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 60 Jun 2 16:06 app.service.d.ts [2026-06-02T16:07:15.428Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 981 Jun 2 16:06 app.service.js [2026-06-02T16:07:15.428Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 281 Jun 2 16:06 app.service.js.map [2026-06-02T16:07:15.429Z] [DEPLOY] #16 0.397 drwxr-xr-x 4 root root 4096 Jun 2 16:06 common [2026-06-02T16:07:15.429Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 11 Jun 2 16:07 main.d.ts [2026-06-02T16:07:15.435Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 2914 Jun 2 16:07 main.js [2026-06-02T16:07:15.436Z] [DEPLOY] #16 0.397 -rw-r--r-- 1 root root 2491 Jun 2 16:07 main.js.map [2026-06-02T16:07:15.436Z] [DEPLOY] #16 0.397 drwxr-xr-x 58 root root 4096 Jun 2 16:07 modules [2026-06-02T16:07:15.439Z] [DEPLOY] #16 0.397 drwxr-xr-x 2 root root 4096 Jun 2 16:06 prisma [2026-06-02T16:07:15.595Z] [DEPLOY] #16 DONE 0.4s [2026-06-02T16:07:27.142Z] [DEPLOY] #17 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T16:07:27.142Z] [DEPLOY] #17 CACHED [2026-06-02T16:07:27.143Z] [DEPLOY] #18 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-02T16:07:27.143Z] [DEPLOY] #18 CACHED [2026-06-02T16:07:27.143Z] [DEPLOY] #19 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-02T16:07:27.144Z] [DEPLOY] #19 CACHED [2026-06-02T16:07:27.145Z] [DEPLOY] #20 [backend production 7/12] COPY prisma ./prisma/ [2026-06-02T16:07:27.146Z] [DEPLOY] #20 CACHED [2026-06-02T16:07:27.150Z] [DEPLOY] #21 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-02T16:07:27.150Z] [DEPLOY] #21 CACHED [2026-06-02T16:07:27.151Z] [DEPLOY] #22 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-02T16:07:27.152Z] [DEPLOY] #22 CACHED [2026-06-02T16:07:27.154Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-02T16:07:27.303Z] [DEPLOY] #23 CACHED [2026-06-02T16:07:27.303Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-02T16:07:27.743Z] [DEPLOY] #24 DONE 0.6s [2026-06-02T16:07:27.898Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-02T16:07:28.119Z] [DEPLOY] #25 DONE 0.4s [2026-06-02T16:07:28.272Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-02T16:08:03.545Z] [DEPLOY] #26 DONE 35.4s [2026-06-02T16:08:03.720Z] [DEPLOY] #27 [backend] exporting to image [2026-06-02T16:08:03.720Z] [DEPLOY] #27 exporting layers [2026-06-02T16:08:21.813Z] [DEPLOY] #27 exporting layers 18.2s done [2026-06-02T16:08:22.026Z] [DEPLOY] #27 exporting manifest sha256:2ceb434d2cff93430c4eb3e1a439016d581a12174053873ed311583915881128 0.0s done [2026-06-02T16:08:22.027Z] [DEPLOY] #27 exporting config sha256:c49f8b369a1d66c6319dcce4aa7d363e5149af2524432f83e9bd44d0da291156 done [2026-06-02T16:08:22.028Z] [DEPLOY] #27 exporting attestation manifest sha256:dfb4c21c46e1560a0d656e7417a5f868833212388511e29b7500b3092f17fc76 0.0s done [2026-06-02T16:08:22.029Z] [DEPLOY] #27 exporting manifest list sha256:595d9c663dc2188a9d16ff93498047a0b81d3c827a0db72ceab816946f7f2688 done [2026-06-02T16:08:22.029Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-02T16:08:22.030Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-02T16:08:27.936Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.1s done [2026-06-02T16:08:28.128Z] [DEPLOY] #27 DONE 24.4s [2026-06-02T16:08:28.175Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-02T16:08:28.424Z] [DEPLOY] #28 DONE 0.0s [2026-06-02T16:08:28.424Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-02T16:08:28.425Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-02T16:08:28.426Z] [DEPLOY] #29 DONE 0.0s [2026-06-02T16:08:28.428Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T16:08:28.750Z] [DEPLOY] #2 DONE 1.5s [2026-06-02T16:08:28.934Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T16:08:28.935Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T16:08:28.936Z] [DEPLOY] #3 CACHED [2026-06-02T16:08:28.962Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T16:08:29.445Z] [DEPLOY] #4 DONE 1.2s [2026-06-02T16:08:29.446Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T16:08:29.693Z] [DEPLOY] #30 DONE 0.7s [2026-06-02T16:08:29.901Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-02T16:08:29.902Z] [DEPLOY] #31 transferring context: 194B done [2026-06-02T16:08:29.903Z] [DEPLOY] #31 DONE 0.1s [2026-06-02T16:08:30.616Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T16:08:30.617Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T16:08:30.619Z] [DEPLOY] #7 DONE 0.1s [2026-06-02T16:08:30.620Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-02T16:08:30.621Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-02T16:08:30.623Z] [DEPLOY] #32 DONE 0.1s [2026-06-02T16:08:30.623Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-02T16:08:30.625Z] [DEPLOY] #33 transferring context: 79.53kB 0.1s done [2026-06-02T16:08:30.801Z] [DEPLOY] #33 DONE 0.1s [2026-06-02T16:08:30.802Z] [DEPLOY] #8 [frontend builder 2/7] WORKDIR /app [2026-06-02T16:08:30.803Z] [DEPLOY] #8 CACHED [2026-06-02T16:08:30.803Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T16:08:30.804Z] [DEPLOY] #34 CACHED [2026-06-02T16:08:30.804Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-02T16:08:30.805Z] [DEPLOY] #35 CACHED [2026-06-02T16:08:30.805Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T16:08:30.807Z] [DEPLOY] #36 CACHED [2026-06-02T16:08:30.808Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-02T16:08:31.013Z] [DEPLOY] #37 DONE 0.4s [2026-06-02T16:08:31.168Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-02T16:08:31.930Z] [DEPLOY] #38 0.911 [2026-06-02T16:08:31.930Z] [DEPLOY] #38 0.911 > frontend@1.0.0 build /app [2026-06-02T16:08:31.931Z] [DEPLOY] #38 0.911 > tsc && vite build [2026-06-02T16:08:31.932Z] [DEPLOY] #38 0.911 [2026-06-02T16:09:24.404Z] [DEPLOY] #38 53.39 vite v5.4.21 building for production... [2026-06-02T16:09:25.049Z] [DEPLOY] #38 54.03 transforming... [2026-06-02T16:09:25.271Z] [DEPLOY] #38 54.10 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-02T16:09:25.273Z] [DEPLOY] #38 54.10 npx update-browserslist-db@latest [2026-06-02T16:09:25.274Z] [DEPLOY] #38 54.10 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-02T16:09:48.857Z] [DEPLOY] #38 77.84 ✓ 4325 modules transformed. [2026-06-02T16:09:50.600Z] [DEPLOY] #38 79.58 rendering chunks... [2026-06-02T16:09:55.299Z] [DEPLOY] #38 84.28 computing gzip size... [2026-06-02T16:09:55.519Z] [DEPLOY] #38 84.50 dist/registerSW.js 0.13 kB [2026-06-02T16:09:55.529Z] [DEPLOY] #38 84.50 dist/manifest.webmanifest 0.54 kB [2026-06-02T16:09:55.536Z] [DEPLOY] #38 84.50 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-02T16:09:55.704Z] [DEPLOY] #38 84.50 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-02T16:09:55.706Z] [DEPLOY] #38 84.50 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-02T16:09:55.711Z] [DEPLOY] #38 84.50 dist/assets/index.es-B-O-Jys6.js 150.69 kB │ gzip: 51.55 kB [2026-06-02T16:09:55.716Z] [DEPLOY] #38 84.50 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-02T16:09:55.722Z] [DEPLOY] #38 84.50 dist/assets/index-B0m3zdfg.js 4,150.57 kB │ gzip: 1,077.91 kB [2026-06-02T16:09:55.732Z] [DEPLOY] #38 84.50 [2026-06-02T16:09:55.754Z] [DEPLOY] #38 84.50 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-02T16:09:55.760Z] [DEPLOY] #38 84.50 - Using dynamic import() to code-split the application [2026-06-02T16:09:55.767Z] [DEPLOY] #38 84.50 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-02T16:09:55.773Z] [DEPLOY] #38 84.50 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-02T16:09:55.777Z] [DEPLOY] #38 84.51 ✓ built in 30.51s [2026-06-02T16:09:55.778Z] [DEPLOY] #38 84.53 [2026-06-02T16:09:55.779Z] [DEPLOY] #38 84.53 PWA v1.2.0 [2026-06-02T16:09:55.785Z] [DEPLOY] #38 84.53 Building src/sw.ts service worker ("es" format)... [2026-06-02T16:09:55.801Z] [DEPLOY] #38 84.53 vite v5.4.21 building for production... [2026-06-02T16:09:57.709Z] [DEPLOY] #38 86.69 transforming... [2026-06-02T16:09:57.876Z] [DEPLOY] #38 86.70 ✓ 1 modules transformed. [2026-06-02T16:09:57.880Z] [DEPLOY] #38 86.71 rendering chunks... [2026-06-02T16:09:57.887Z] [DEPLOY] #38 86.72 computing gzip size... [2026-06-02T16:09:57.892Z] [DEPLOY] #38 86.72 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-02T16:09:57.898Z] [DEPLOY] #38 86.72 ✓ built in 2.19s [2026-06-02T16:09:57.912Z] [DEPLOY] #38 86.86 [2026-06-02T16:09:57.914Z] [DEPLOY] #38 86.86 PWA v1.2.0 [2026-06-02T16:09:57.915Z] [DEPLOY] #38 86.86 mode injectManifest [2026-06-02T16:09:57.923Z] [DEPLOY] #38 86.86 format: es [2026-06-02T16:09:57.924Z] [DEPLOY] #38 86.86 precache 15 entries (4939.91 KiB) [2026-06-02T16:09:57.925Z] [DEPLOY] #38 86.86 files generated [2026-06-02T16:09:57.926Z] [DEPLOY] #38 86.86 dist/sw.js [2026-06-02T16:09:58.398Z] [DEPLOY] #38 DONE 87.4s [2026-06-02T16:10:03.262Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-02T16:10:03.263Z] [DEPLOY] #39 CACHED [2026-06-02T16:10:03.273Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-02T16:10:03.447Z] [DEPLOY] #40 CACHED [2026-06-02T16:10:03.454Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-02T16:10:03.478Z] [DEPLOY] #41 DONE 0.2s [2026-06-02T16:10:03.638Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-02T16:10:03.639Z] [DEPLOY] #42 exporting layers [2026-06-02T16:10:04.397Z] [DEPLOY] #42 exporting layers 0.9s done [2026-06-02T16:10:04.530Z] [DEPLOY] #42 exporting manifest sha256:f00873908e30ba07ae376bab9261b9cfb1ab0f82eec9d4dd8b2d8358290804b7 0.1s done [2026-06-02T16:10:04.531Z] [DEPLOY] #42 exporting config sha256:3bff721118bc16da377be7126eace5ae356d52382116641a03c038ed63ce1ef8 [2026-06-02T16:10:04.655Z] [DEPLOY] #42 exporting config sha256:3bff721118bc16da377be7126eace5ae356d52382116641a03c038ed63ce1ef8 0.0s done [2026-06-02T16:10:04.657Z] [DEPLOY] #42 exporting attestation manifest sha256:2370c7355a289ba3db1f651400d1da5a76b0c3cce8f8cbdb8630f9b7e61f39a4 0.0s done [2026-06-02T16:10:04.661Z] [DEPLOY] #42 exporting manifest list sha256:a338b4645b6a3136a641159326992be4c75e035d17989d6a6d894d8b517cd2f7 0.0s done [2026-06-02T16:10:04.668Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest [2026-06-02T16:10:04.811Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-02T16:10:04.814Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest [2026-06-02T16:10:04.908Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.2s done [2026-06-02T16:10:05.018Z] [DEPLOY] #42 DONE 1.5s [2026-06-02T16:10:05.283Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-02T16:10:05.306Z] [DEPLOY] #43 DONE 0.0s [2026-06-02T16:10:05.308Z] [STDERR] backend Built [2026-06-02T16:10:05.308Z] [STDERR] frontend Built [2026-06-02T16:10:05.330Z] [DEPLOY] [2026-06-02 16:10:05] ✓ New images built successfully [2026-06-02T16:10:05.334Z] [DEPLOY] [2026-06-02 16:10:05] STEP: Step 5/8: Running database migrations... [2026-06-02T16:10:05.335Z] [DEPLOY] [2026-06-02 16:10:05] Checking for pending migrations... [2026-06-02T16:10:05.335Z] [DEPLOY] [2026-06-02 16:10:05] Applying schema changes... [2026-06-02T16:10:08.640Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-02T16:10:08.685Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-02T16:10:09.272Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-02T16:10:09.328Z] [DEPLOY] npm notice [2026-06-02T16:10:09.329Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-02T16:10:09.330Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-02T16:10:09.331Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-02T16:10:09.332Z] [DEPLOY] npm notice [2026-06-02T16:10:09.587Z] [DEPLOY] [2026-06-02 16:10:09] ✓ Database schema already in sync [2026-06-02T16:10:09.589Z] [DEPLOY] [2026-06-02 16:10:09] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-02T16:10:09.591Z] [DEPLOY] [2026-06-02 16:10:09] Updating backend container... [2026-06-02T16:10:09.876Z] [STDERR] Container clicknex-redis Running [2026-06-02T16:10:09.877Z] [STDERR] Container clicknex-backend Recreate [2026-06-02T16:10:20.467Z] [STDERR] Container clicknex-backend Recreated [2026-06-02T16:10:20.506Z] [STDERR] Container clicknex-redis Waiting [2026-06-02T16:10:21.011Z] [STDERR] Container clicknex-redis Healthy [2026-06-02T16:10:21.012Z] [STDERR] Container clicknex-backend Starting [2026-06-02T16:10:21.443Z] [STDERR] Container clicknex-backend Started [2026-06-02T16:10:26.539Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-02T16:10:28.598Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-02T16:10:30.655Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-02T16:10:32.708Z] [DEPLOY] [2026-06-02 16:10:32] ✓ Backend health check passed (healthy) [2026-06-02T16:10:32.710Z] [DEPLOY] [2026-06-02 16:10:32] Updating frontend container... [2026-06-02T16:10:32.902Z] [STDERR] Container clicknex-frontend Recreate [2026-06-02T16:10:33.453Z] [STDERR] Container clicknex-frontend Recreated [2026-06-02T16:10:33.486Z] [STDERR] Container clicknex-frontend Starting [2026-06-02T16:10:33.694Z] [STDERR] Container clicknex-frontend Started [2026-06-02T16:10:33.703Z] [DEPLOY] [2026-06-02 16:10:33] ✓ New containers started [2026-06-02T16:10:33.705Z] [DEPLOY] [2026-06-02 16:10:33] STEP: Step 7/8: Running health checks... [2026-06-02T16:10:33.751Z] [DEPLOY] [2026-06-02 16:10:33] ✓ Backend health check passed (healthy) [2026-06-02T16:10:33.797Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-02T16:10:35.855Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-02T16:10:37.910Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-02T16:10:39.977Z] [DEPLOY] [2026-06-02 16:10:39] ✓ Frontend health check passed (healthy) [2026-06-02T16:10:39.979Z] [DEPLOY] [2026-06-02 16:10:39] ✓ All health checks passed [2026-06-02T16:10:39.983Z] [DEPLOY] [2026-06-02 16:10:39] STEP: Step 8/8: Cleaning up old resources... [2026-06-02T16:10:41.845Z] [DEPLOY] [2026-06-02 16:10:41] ✓ Cleanup completed (disco: ?%) [2026-06-02T16:10:41.847Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T16:10:41.848Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-02T16:10:41.849Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T16:10:41.850Z] [DEPLOY] ║ Commit: f90460a ║ [2026-06-02T16:10:41.851Z] [DEPLOY] ║ Time: 2026-06-02 16:10:41 ║ [2026-06-02T16:10:41.852Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T16:10:41.852Z] [DEPLOY] ║ Services: ║ [2026-06-02T16:10:41.853Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-02T16:10:41.854Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-02T16:10:41.855Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T16:10:41.857Z] [INFO] Deploy script encerrado com código: 0 [2026-06-02T16:10:41.860Z] [INFO] ====================================================== [2026-06-02T16:10:41.861Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 521s [2026-06-02T16:10:41.862Z] [INFO] ====================================================== [2026-06-02T18:11:38.116Z] [INFO] Deploy manual disparado (commit d39f1dea) [2026-06-02T18:11:38.125Z] [INFO] ====================================================== [2026-06-02T18:11:38.126Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-02T18:11:38.127Z] [INFO] Commit: d39f1dea882efe514f2f4f0c1e9735fd4d4a8008 [2026-06-02T18:11:38.127Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-02T18:11:38.128Z] [INFO] Branch: main [2026-06-02T18:11:38.128Z] [INFO] Disparado por: jhon4than (CI) [2026-06-02T18:11:38.128Z] [INFO] ====================================================== [2026-06-02T18:11:38.128Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-02T18:11:38.129Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-02T18:11:38.158Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T18:11:38.158Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-02T18:11:38.161Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T18:11:38.161Z] [DEPLOY] [2026-06-02 18:11:38] STEP: Step 1/8: Pulling latest code from repository... [2026-06-02T18:11:40.060Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-02T18:11:40.061Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-02T18:11:40.061Z] [STDERR] f90460a..d39f1de main -> origin/main [2026-06-02T18:11:40.197Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T18:11:40.199Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-02T18:11:40.200Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-02T18:11:40.201Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-02T18:11:40.280Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: → Stash salvo (veja: git stash list) [2026-06-02T18:11:40.284Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_181138.patch [2026-06-02T18:11:40.285Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_181138.patch' [2026-06-02T18:11:40.302Z] [DEPLOY] [2026-06-02 18:11:40] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T18:11:40.303Z] [DEPLOY] [2026-06-02 18:11:40] Deploy do commit validado pelo CI: d39f1dea882efe514f2f4f0c1e9735fd4d4a8008 [2026-06-02T18:11:40.373Z] [STDERR] Reset branch 'main' [2026-06-02T18:11:40.375Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-02T18:11:40.377Z] [DEPLOY] [2026-06-02 18:11:40] ✓ Code updated to latest version [2026-06-02T18:11:40.378Z] [DEPLOY] [2026-06-02 18:11:40] STEP: Step 2/8: Backing up current state... [2026-06-02T18:11:40.387Z] [DEPLOY] [2026-06-02 18:11:40] STEP: Creating backup of current state... [2026-06-02T18:11:40.710Z] [DEPLOY] [2026-06-02 18:11:40] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-02T18:11:40.719Z] [DEPLOY] [2026-06-02 18:11:40] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-02T18:11:40.728Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-02T18:11:40.728Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-02T18:11:40.750Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-02T18:11:40.751Z] [DEPLOY] Database: saas_crm [2026-06-02T18:11:40.778Z] [DEPLOY] Host: localhost:5432 [2026-06-02T18:11:40.779Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz [2026-06-02T18:11:40.780Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-02T18:16:09.314Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz (2.4G) [2026-06-02T18:16:09.319Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-02T18:16:09.325Z] [DEPLOY] removendo antigo: backup_20260601_221346.sql.gz [2026-06-02T18:16:09.351Z] [DEPLOY] Current backups: [2026-06-02T18:16:09.355Z] [DEPLOY] -rw-r--r-- 1 root root 2.3G Jun 2 03:12 /www/wwwroot/saas_crm/backups/database/backup_20260602_030750.sql.gz [2026-06-02T18:16:09.356Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 16:06 /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz [2026-06-02T18:16:09.356Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 18:16 /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz [2026-06-02T18:16:09.357Z] [DEPLOY] Backup completed! [2026-06-02T18:16:09.358Z] [DEPLOY] [2026-06-02 18:16:09] ✓ Database backup completed [2026-06-02T18:16:09.360Z] [DEPLOY] [2026-06-02 18:16:09] STEP: Step 4/8: Building new Docker images... [2026-06-02T18:16:09.360Z] [DEPLOY] [2026-06-02 18:16:09] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-02T18:16:09.585Z] [DEPLOY] [2026-06-02 18:16:09] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-02T18:16:09.638Z] [DEPLOY] [2026-06-02 18:16:09] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-02T18:16:10.557Z] [STDERR] time="2026-06-02T18:16:10Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-02T18:16:11.051Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-02T18:16:11.052Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-02T18:16:11.052Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-02T18:16:11.055Z] [DEPLOY] #1 DONE 0.1s [2026-06-02T18:16:11.222Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T18:16:12.011Z] [DEPLOY] #2 DONE 0.9s [2026-06-02T18:16:12.153Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T18:16:12.153Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T18:16:12.280Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T18:16:12.479Z] [DEPLOY] #3 CACHED [2026-06-02T18:16:12.877Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T18:16:13.623Z] [DEPLOY] #4 DONE 0.7s [2026-06-02T18:16:13.809Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-02T18:16:13.810Z] [DEPLOY] #5 transferring context: 304B done [2026-06-02T18:16:13.810Z] [DEPLOY] #5 DONE 0.0s [2026-06-02T18:16:13.946Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T18:16:13.947Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T18:16:13.948Z] [DEPLOY] #6 DONE 0.1s [2026-06-02T18:16:13.948Z] [DEPLOY] #7 [backend internal] load build context [2026-06-02T18:16:14.237Z] [DEPLOY] #7 transferring context: 291.98kB 0.3s done [2026-06-02T18:16:14.351Z] [DEPLOY] #7 DONE 0.4s [2026-06-02T18:16:14.562Z] [DEPLOY] #8 [backend builder 2/10] WORKDIR /app [2026-06-02T18:16:14.562Z] [DEPLOY] #8 CACHED [2026-06-02T18:16:14.563Z] [DEPLOY] #9 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-02T18:16:14.564Z] [DEPLOY] #9 CACHED [2026-06-02T18:16:14.564Z] [DEPLOY] #10 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T18:16:14.564Z] [DEPLOY] #10 CACHED [2026-06-02T18:16:14.566Z] [DEPLOY] #11 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-02T18:16:14.566Z] [DEPLOY] #11 CACHED [2026-06-02T18:16:14.567Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T18:16:14.567Z] [DEPLOY] #12 CACHED [2026-06-02T18:16:14.568Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-02T18:16:15.454Z] [DEPLOY] #13 DONE 1.0s [2026-06-02T18:16:15.613Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-02T18:16:19.043Z] [DEPLOY] #14 3.580 Prisma schema loaded from prisma/schema.prisma [2026-06-02T18:16:23.363Z] [DEPLOY] #14 7.901 [2026-06-02T18:16:23.364Z] [DEPLOY] #14 7.901 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.56s [2026-06-02T18:16:23.365Z] [DEPLOY] #14 7.901 [2026-06-02T18:16:23.365Z] [DEPLOY] #14 7.901 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-02T18:16:23.366Z] [DEPLOY] #14 7.901 [2026-06-02T18:16:23.366Z] [DEPLOY] #14 7.901 Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints [2026-06-02T18:16:23.366Z] [DEPLOY] #14 7.901 [2026-06-02T18:16:23.704Z] [DEPLOY] #14 DONE 8.2s [2026-06-02T18:16:23.859Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-02T18:16:24.582Z] [DEPLOY] #15 0.874 [2026-06-02T18:16:24.583Z] [DEPLOY] #15 0.874 > backend@0.0.1 build /app [2026-06-02T18:16:24.583Z] [DEPLOY] #15 0.874 > nest build [2026-06-02T18:16:24.585Z] [DEPLOY] #15 0.874 [2026-06-02T18:17:05.005Z] [DEPLOY] #15 DONE 41.3s [2026-06-02T18:17:05.163Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-02T18:17:05.418Z] [DEPLOY] #16 0.407 total 80 [2026-06-02T18:17:05.584Z] [DEPLOY] #16 0.408 drwxr-xr-x 6 root root 4096 Jun 2 18:17 . [2026-06-02T18:17:05.585Z] [DEPLOY] #16 0.408 drwxr-xr-x 4 root root 4096 Jun 2 18:17 .. [2026-06-02T18:17:05.586Z] [DEPLOY] #16 0.408 drwxr-xr-x 3 root root 4096 Jun 2 18:17 __mocks__ [2026-06-02T18:17:05.586Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 181 Jun 2 18:16 app.controller.d.ts [2026-06-02T18:17:05.587Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 1611 Jun 2 18:16 app.controller.js [2026-06-02T18:17:05.588Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 436 Jun 2 18:16 app.controller.js.map [2026-06-02T18:17:05.589Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 35 Jun 2 18:17 app.module.d.ts [2026-06-02T18:17:05.590Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 8972 Jun 2 18:17 app.module.js [2026-06-02T18:17:05.591Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 2525 Jun 2 18:17 app.module.js.map [2026-06-02T18:17:05.591Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 60 Jun 2 18:16 app.service.d.ts [2026-06-02T18:17:05.592Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 981 Jun 2 18:16 app.service.js [2026-06-02T18:17:05.592Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 281 Jun 2 18:16 app.service.js.map [2026-06-02T18:17:05.593Z] [DEPLOY] #16 0.408 drwxr-xr-x 4 root root 4096 Jun 2 18:16 common [2026-06-02T18:17:05.595Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 11 Jun 2 18:17 main.d.ts [2026-06-02T18:17:05.596Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 2914 Jun 2 18:17 main.js [2026-06-02T18:17:05.597Z] [DEPLOY] #16 0.408 -rw-r--r-- 1 root root 2491 Jun 2 18:17 main.js.map [2026-06-02T18:17:05.599Z] [DEPLOY] #16 0.408 drwxr-xr-x 58 root root 4096 Jun 2 18:17 modules [2026-06-02T18:17:05.600Z] [DEPLOY] #16 0.408 drwxr-xr-x 2 root root 4096 Jun 2 18:16 prisma [2026-06-02T18:17:05.601Z] [DEPLOY] #16 DONE 0.4s [2026-06-02T18:17:14.595Z] [DEPLOY] #17 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-02T18:17:14.596Z] [DEPLOY] #17 CACHED [2026-06-02T18:17:14.598Z] [DEPLOY] #18 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T18:17:14.599Z] [DEPLOY] #18 CACHED [2026-06-02T18:17:14.599Z] [DEPLOY] #19 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-02T18:17:14.600Z] [DEPLOY] #19 CACHED [2026-06-02T18:17:14.600Z] [DEPLOY] #20 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-02T18:17:14.601Z] [DEPLOY] #20 CACHED [2026-06-02T18:17:14.601Z] [DEPLOY] #21 [backend production 7/12] COPY prisma ./prisma/ [2026-06-02T18:17:14.602Z] [DEPLOY] #21 CACHED [2026-06-02T18:17:14.604Z] [DEPLOY] #22 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-02T18:17:14.605Z] [DEPLOY] #22 CACHED [2026-06-02T18:17:14.605Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-02T18:17:14.755Z] [DEPLOY] #23 CACHED [2026-06-02T18:17:14.756Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-02T18:17:15.571Z] [DEPLOY] #24 DONE 1.0s [2026-06-02T18:17:15.726Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-02T18:17:15.952Z] [DEPLOY] #25 DONE 0.4s [2026-06-02T18:17:16.111Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-02T18:17:58.434Z] [DEPLOY] #26 DONE 42.5s [2026-06-02T18:17:58.601Z] [DEPLOY] #27 [backend] exporting to image [2026-06-02T18:17:58.602Z] [DEPLOY] #27 exporting layers [2026-06-02T18:18:21.739Z] [DEPLOY] #27 exporting layers 23.3s done [2026-06-02T18:18:21.970Z] [DEPLOY] #27 exporting manifest sha256:b7d17f541d71eba377bdca79dd3779e006a0b77620f3eedb9bdac4aa5fc2abf0 done [2026-06-02T18:18:21.970Z] [DEPLOY] #27 exporting config sha256:946dea4d43d2ea099632cb1a84d91790d2ad98485c64d585ad0242037e80bd0c 0.0s done [2026-06-02T18:18:21.974Z] [DEPLOY] #27 exporting attestation manifest sha256:a5e683abd7a539e3ac8d26ebf407bbb49d6bda691d43945b8f00fd57cb0e72b2 0.0s done [2026-06-02T18:18:21.974Z] [DEPLOY] #27 exporting manifest list sha256:04905a5974b9f4649275f9eb5589b95cf370d7ddb398b1c9b5d3eb1871bf4682 0.0s done [2026-06-02T18:18:21.975Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-02T18:18:21.975Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-02T18:18:28.598Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.8s done [2026-06-02T18:18:28.812Z] [DEPLOY] #27 DONE 30.2s [2026-06-02T18:18:28.967Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-02T18:18:29.071Z] [DEPLOY] #28 DONE 0.0s [2026-06-02T18:18:29.263Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-02T18:18:29.264Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-02T18:18:29.265Z] [DEPLOY] #29 DONE 0.0s [2026-06-02T18:18:29.265Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T18:18:29.570Z] [DEPLOY] #2 DONE 1.4s [2026-06-02T18:18:29.750Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T18:18:29.761Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T18:18:29.795Z] [DEPLOY] #3 CACHED [2026-06-02T18:18:30.145Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T18:18:30.604Z] [DEPLOY] #30 ... [2026-06-02T18:18:30.604Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T18:18:30.606Z] [DEPLOY] #4 DONE 1.2s [2026-06-02T18:18:30.755Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T18:18:30.885Z] [DEPLOY] #30 DONE 0.7s [2026-06-02T18:18:31.046Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-02T18:18:31.052Z] [DEPLOY] #31 transferring context: [2026-06-02T18:18:31.224Z] [DEPLOY] #31 transferring context: 194B done [2026-06-02T18:18:31.225Z] [DEPLOY] #31 DONE 0.2s [2026-06-02T18:18:31.826Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-02T18:18:31.827Z] [DEPLOY] #32 DONE 0.0s [2026-06-02T18:18:31.828Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-02T18:18:31.829Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-02T18:18:31.829Z] [DEPLOY] #33 DONE 0.1s [2026-06-02T18:18:31.830Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T18:18:31.831Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T18:18:32.000Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T18:18:32.002Z] [DEPLOY] #6 DONE 0.2s [2026-06-02T18:18:32.005Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-02T18:18:32.012Z] [DEPLOY] #32 transferring context: 209.80kB 0.1s done [2026-06-02T18:18:32.251Z] [DEPLOY] #32 DONE 0.1s [2026-06-02T18:18:32.252Z] [DEPLOY] #8 [frontend builder 2/7] WORKDIR /app [2026-06-02T18:18:32.252Z] [DEPLOY] #8 CACHED [2026-06-02T18:18:32.253Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T18:18:32.254Z] [DEPLOY] #34 CACHED [2026-06-02T18:18:32.256Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-02T18:18:32.257Z] [DEPLOY] #35 CACHED [2026-06-02T18:18:32.258Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T18:18:32.259Z] [DEPLOY] #36 CACHED [2026-06-02T18:18:32.261Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-02T18:18:32.491Z] [DEPLOY] #37 DONE 0.4s [2026-06-02T18:18:32.663Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-02T18:18:33.246Z] [DEPLOY] #38 0.733 [2026-06-02T18:18:33.251Z] [DEPLOY] #38 0.733 > frontend@1.0.0 build /app [2026-06-02T18:18:33.251Z] [DEPLOY] #38 0.733 > tsc && vite build [2026-06-02T18:18:33.252Z] [DEPLOY] #38 0.733 [2026-06-02T18:19:29.382Z] [DEPLOY] #38 56.87 vite v5.4.21 building for production... [2026-06-02T18:19:30.022Z] [DEPLOY] #38 57.51 transforming... [2026-06-02T18:19:30.229Z] [DEPLOY] #38 57.72 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-02T18:19:30.230Z] [DEPLOY] #38 57.72 npx update-browserslist-db@latest [2026-06-02T18:19:30.230Z] [DEPLOY] #38 57.72 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-02T18:19:53.949Z] [DEPLOY] #38 81.44 ✓ 4325 modules transformed. [2026-06-02T18:19:55.605Z] [DEPLOY] #38 83.09 rendering chunks... [2026-06-02T18:19:59.219Z] [DEPLOY] #38 86.71 computing gzip size... [2026-06-02T18:19:59.416Z] [DEPLOY] #38 86.90 dist/registerSW.js 0.13 kB [2026-06-02T18:19:59.418Z] [DEPLOY] #38 86.90 dist/manifest.webmanifest 0.54 kB [2026-06-02T18:19:59.421Z] [DEPLOY] #38 86.90 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-02T18:19:59.587Z] [DEPLOY] #38 86.90 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-02T18:19:59.588Z] [DEPLOY] #38 86.90 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-02T18:19:59.592Z] [DEPLOY] #38 86.90 dist/assets/index.es-DNJ8lKIL.js 150.69 kB │ gzip: 51.55 kB [2026-06-02T18:19:59.592Z] [DEPLOY] #38 86.90 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-02T18:19:59.593Z] [DEPLOY] #38 86.90 dist/assets/index-C_iqxSbk.js 4,150.82 kB │ gzip: 1,078.03 kB [2026-06-02T18:19:59.594Z] [DEPLOY] #38 86.90 [2026-06-02T18:19:59.595Z] [DEPLOY] #38 86.90 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-02T18:19:59.596Z] [DEPLOY] #38 86.90 - Using dynamic import() to code-split the application [2026-06-02T18:19:59.597Z] [DEPLOY] #38 86.90 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-02T18:19:59.598Z] [DEPLOY] #38 86.90 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-02T18:19:59.599Z] [DEPLOY] #38 86.90 ✓ built in 29.43s [2026-06-02T18:19:59.599Z] [DEPLOY] #38 86.92 [2026-06-02T18:19:59.600Z] [DEPLOY] #38 86.92 PWA v1.2.0 [2026-06-02T18:19:59.601Z] [DEPLOY] #38 86.92 Building src/sw.ts service worker ("es" format)... [2026-06-02T18:19:59.602Z] [DEPLOY] #38 86.92 vite v5.4.21 building for production... [2026-06-02T18:20:01.504Z] [DEPLOY] #38 88.99 transforming... [2026-06-02T18:20:01.724Z] [DEPLOY] #38 89.01 ✓ 1 modules transformed. [2026-06-02T18:20:01.729Z] [DEPLOY] #38 89.05 rendering chunks... [2026-06-02T18:20:01.736Z] [DEPLOY] #38 89.06 computing gzip size... [2026-06-02T18:20:01.738Z] [DEPLOY] #38 89.06 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-02T18:20:01.741Z] [DEPLOY] #38 89.06 ✓ built in 2.13s [2026-06-02T18:20:01.749Z] [DEPLOY] #38 89.23 [2026-06-02T18:20:01.758Z] [DEPLOY] #38 89.23 PWA v1.2.0 [2026-06-02T18:20:01.762Z] [DEPLOY] #38 89.23 mode injectManifest [2026-06-02T18:20:01.765Z] [DEPLOY] #38 89.23 format: es [2026-06-02T18:20:01.771Z] [DEPLOY] #38 89.23 precache 15 entries (4940.16 KiB) [2026-06-02T18:20:01.773Z] [DEPLOY] #38 89.23 files generated [2026-06-02T18:20:01.777Z] [DEPLOY] #38 89.23 dist/sw.js [2026-06-02T18:20:02.501Z] [DEPLOY] #38 DONE 90.0s [2026-06-02T18:20:06.418Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-02T18:20:06.419Z] [DEPLOY] #39 CACHED [2026-06-02T18:20:06.422Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-02T18:20:06.647Z] [DEPLOY] #40 CACHED [2026-06-02T18:20:06.648Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-02T18:20:06.648Z] [DEPLOY] #41 DONE 0.1s [2026-06-02T18:20:06.650Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-02T18:20:06.650Z] [DEPLOY] #42 exporting layers [2026-06-02T18:20:06.896Z] [DEPLOY] #42 exporting layers 0.4s done [2026-06-02T18:20:07.133Z] [DEPLOY] #42 exporting manifest sha256:4d8b70e8879e824ade7969b382f165f66bec16f5802a77cf4718b57b6ff98edf 0.0s done [2026-06-02T18:20:07.136Z] [DEPLOY] #42 exporting config sha256:73afe64e6db1cf54fa66574a3725be95fc21440b18878deedae8fc88088436ec 0.0s done [2026-06-02T18:20:07.167Z] [DEPLOY] #42 exporting attestation manifest sha256:b7bfdf92cc0e57ae7400d0d168eb0a872136dbe511f1a81fb34d8e5b6ebf86be 0.0s done [2026-06-02T18:20:07.169Z] [DEPLOY] #42 exporting manifest list sha256:6f0ef24bbf7f130fc269433c2ceb9a371d63cecc3b97fc9f847f6a5a19234b7f 0.0s done [2026-06-02T18:20:07.170Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-02T18:20:07.171Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest [2026-06-02T18:20:07.175Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.2s done [2026-06-02T18:20:07.359Z] [DEPLOY] #42 DONE 0.7s [2026-06-02T18:20:07.376Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-02T18:20:07.390Z] [DEPLOY] #43 DONE 0.0s [2026-06-02T18:20:07.394Z] [STDERR] backend Built [2026-06-02T18:20:07.402Z] [STDERR] frontend Built [2026-06-02T18:20:07.403Z] [DEPLOY] [2026-06-02 18:20:07] ✓ New images built successfully [2026-06-02T18:20:07.404Z] [DEPLOY] [2026-06-02 18:20:07] STEP: Step 5/8: Running database migrations... [2026-06-02T18:20:07.405Z] [DEPLOY] [2026-06-02 18:20:07] Checking for pending migrations... [2026-06-02T18:20:07.409Z] [DEPLOY] [2026-06-02 18:20:07] Applying schema changes... [2026-06-02T18:20:10.286Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-02T18:20:10.326Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-02T18:20:11.027Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-02T18:20:11.140Z] [DEPLOY] npm notice [2026-06-02T18:20:11.141Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-02T18:20:11.141Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-02T18:20:11.142Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-02T18:20:11.144Z] [DEPLOY] npm notice [2026-06-02T18:20:11.573Z] [DEPLOY] [2026-06-02 18:20:11] ✓ Database schema already in sync [2026-06-02T18:20:11.575Z] [DEPLOY] [2026-06-02 18:20:11] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-02T18:20:11.577Z] [DEPLOY] [2026-06-02 18:20:11] Updating backend container... [2026-06-02T18:20:11.941Z] [STDERR] Container clicknex-redis Running [2026-06-02T18:20:11.944Z] [STDERR] Container clicknex-backend Recreate [2026-06-02T18:20:22.763Z] [STDERR] Container clicknex-backend Recreated [2026-06-02T18:20:22.806Z] [STDERR] Container clicknex-redis Waiting [2026-06-02T18:20:23.319Z] [STDERR] Container clicknex-redis Healthy [2026-06-02T18:20:23.320Z] [STDERR] Container clicknex-backend Starting [2026-06-02T18:20:23.672Z] [STDERR] Container clicknex-backend Started [2026-06-02T18:20:28.816Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-02T18:20:30.879Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-02T18:20:32.940Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-02T18:20:34.987Z] [DEPLOY] [2026-06-02 18:20:34] ✓ Backend health check passed (healthy) [2026-06-02T18:20:34.993Z] [DEPLOY] [2026-06-02 18:20:34] Updating frontend container... [2026-06-02T18:20:35.252Z] [STDERR] Container clicknex-frontend Recreate [2026-06-02T18:20:35.818Z] [STDERR] Container clicknex-frontend Recreated [2026-06-02T18:20:35.852Z] [STDERR] Container clicknex-frontend Starting [2026-06-02T18:20:36.096Z] [STDERR] Container clicknex-frontend Started [2026-06-02T18:20:36.113Z] [DEPLOY] [2026-06-02 18:20:36] ✓ New containers started [2026-06-02T18:20:36.118Z] [DEPLOY] [2026-06-02 18:20:36] STEP: Step 7/8: Running health checks... [2026-06-02T18:20:36.170Z] [DEPLOY] [2026-06-02 18:20:36] ✓ Backend health check passed (healthy) [2026-06-02T18:20:36.211Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-02T18:20:38.270Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-02T18:20:40.320Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-02T18:20:42.380Z] [DEPLOY] [2026-06-02 18:20:42] ✓ Frontend health check passed (healthy) [2026-06-02T18:20:42.382Z] [DEPLOY] [2026-06-02 18:20:42] ✓ All health checks passed [2026-06-02T18:20:42.386Z] [DEPLOY] [2026-06-02 18:20:42] STEP: Step 8/8: Cleaning up old resources... [2026-06-02T18:20:45.127Z] [DEPLOY] [2026-06-02 18:20:45] ✓ Cleanup completed (disco: ?%) [2026-06-02T18:20:45.128Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T18:20:45.129Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-02T18:20:45.130Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T18:20:45.131Z] [DEPLOY] ║ Commit: d39f1de ║ [2026-06-02T18:20:45.132Z] [DEPLOY] ║ Time: 2026-06-02 18:20:45 ║ [2026-06-02T18:20:45.133Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T18:20:45.134Z] [DEPLOY] ║ Services: ║ [2026-06-02T18:20:45.134Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-02T18:20:45.135Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-02T18:20:45.136Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T18:20:45.137Z] [INFO] Deploy script encerrado com código: 0 [2026-06-02T18:20:45.144Z] [INFO] ====================================================== [2026-06-02T18:20:45.145Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 547s [2026-06-02T18:20:45.152Z] [INFO] ====================================================== [2026-06-02T20:33:47.631Z] [INFO] Deploy manual disparado (commit 34b9a7f6) [2026-06-02T20:33:47.652Z] [INFO] ====================================================== [2026-06-02T20:33:47.654Z] [INFO] DEPLOY INICIADO — v1.0.1 [2026-06-02T20:33:47.657Z] [INFO] Commit: 34b9a7f6f3af3bb2ee9c3da88d1c72c8cf97894b [2026-06-02T20:33:47.657Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-02T20:33:47.658Z] [INFO] Branch: main [2026-06-02T20:33:47.659Z] [INFO] Disparado por: jhon4than (CI) [2026-06-02T20:33:47.662Z] [INFO] ====================================================== [2026-06-02T20:33:47.665Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-02T20:33:47.666Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-02T20:33:47.711Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T20:33:47.712Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-02T20:33:47.713Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T20:33:47.714Z] [DEPLOY] [2026-06-02 20:33:47] STEP: Step 1/8: Pulling latest code from repository... [2026-06-02T20:33:49.817Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-02T20:33:49.818Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-02T20:33:49.818Z] [STDERR] d39f1de..34b9a7f main -> origin/main [2026-06-02T20:33:49.934Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T20:33:49.935Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: MUDANÇA LOCAL não-commitada em arquivo versionado! [2026-06-02T20:33:49.936Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: (provável hotfix feito direto no servidor). Preservando [2026-06-02T20:33:49.937Z] [DEPLOY] [2026-06-02 20:33:49] WARNING: antes de sobrescrever — NADA será perdido. [2026-06-02T20:33:50.021Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: → Stash salvo (veja: git stash list) [2026-06-02T20:33:50.023Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: → Patch salvo: /www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_203347.patch [2026-06-02T20:33:50.025Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: Recuperar: git stash pop (ou) git apply '/www/wwwroot/saas_crm/backups/pre-deploy-hotfix_20260602_203347.patch' [2026-06-02T20:33:50.035Z] [DEPLOY] [2026-06-02 20:33:50] WARNING: ═══════════════════════════════════════════════════════ [2026-06-02T20:33:50.037Z] [DEPLOY] [2026-06-02 20:33:50] Deploy do commit validado pelo CI: 34b9a7f6f3af3bb2ee9c3da88d1c72c8cf97894b [2026-06-02T20:33:50.084Z] [STDERR] Reset branch 'main' [2026-06-02T20:33:50.086Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-02T20:33:50.088Z] [DEPLOY] [2026-06-02 20:33:50] ✓ Code updated to latest version [2026-06-02T20:33:50.089Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Step 2/8: Backing up current state... [2026-06-02T20:33:50.109Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Creating backup of current state... [2026-06-02T20:33:50.895Z] [DEPLOY] [2026-06-02 20:33:50] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-02T20:33:50.896Z] [DEPLOY] [2026-06-02 20:33:50] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-02T20:33:50.905Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-02T20:33:50.905Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-02T20:33:50.906Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-02T20:33:50.906Z] [DEPLOY] Database: saas_crm [2026-06-02T20:33:50.907Z] [DEPLOY] Host: localhost:5432 [2026-06-02T20:33:50.907Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-02T20:33:50.908Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-02T20:37:55.588Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz (2.4G) [2026-06-02T20:37:55.592Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-02T20:37:55.596Z] [DEPLOY] removendo antigo: backup_20260602_030750.sql.gz [2026-06-02T20:37:55.617Z] [DEPLOY] Current backups: [2026-06-02T20:37:55.619Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 16:06 /www/wwwroot/saas_crm/backups/database/backup_20260602_160204.sql.gz [2026-06-02T20:37:55.619Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 18:16 /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz [2026-06-02T20:37:55.620Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 20:37 /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-02T20:37:55.621Z] [DEPLOY] Backup completed! [2026-06-02T20:37:55.623Z] [DEPLOY] [2026-06-02 20:37:55] ✓ Database backup completed [2026-06-02T20:37:55.623Z] [DEPLOY] [2026-06-02 20:37:55] STEP: Step 4/8: Building new Docker images... [2026-06-02T20:37:55.628Z] [DEPLOY] [2026-06-02 20:37:55] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-02T20:37:56.083Z] [DEPLOY] [2026-06-02 20:37:56] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-02T20:37:56.138Z] [DEPLOY] [2026-06-02 20:37:56] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-02T20:37:57.034Z] [STDERR] time="2026-06-02T20:37:57Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-02T20:37:57.507Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-02T20:37:57.508Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-02T20:37:57.509Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-02T20:37:57.515Z] [DEPLOY] #1 DONE 0.1s [2026-06-02T20:37:57.516Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T20:37:58.462Z] [DEPLOY] #2 DONE 1.0s [2026-06-02T20:37:58.600Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T20:37:58.601Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-02T20:37:58.792Z] [DEPLOY] #3 CACHED [2026-06-02T20:37:59.210Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T20:37:59.953Z] [DEPLOY] #4 DONE 0.7s [2026-06-02T20:38:00.107Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-02T20:38:00.108Z] [DEPLOY] #5 transferring context: 304B done [2026-06-02T20:38:00.109Z] [DEPLOY] #5 DONE 0.0s [2026-06-02T20:38:00.304Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T20:38:00.306Z] [DEPLOY] #6 DONE 0.0s [2026-06-02T20:38:00.307Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T20:38:00.310Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-02T20:38:00.496Z] [DEPLOY] #7 DONE 0.2s [2026-06-02T20:38:00.498Z] [DEPLOY] #6 [backend internal] load build context [2026-06-02T20:38:00.779Z] [DEPLOY] #6 transferring context: 131.68kB 0.4s done [2026-06-02T20:38:00.920Z] [DEPLOY] #6 DONE 0.5s [2026-06-02T20:38:00.921Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:38:00.922Z] [DEPLOY] #8 CACHED [2026-06-02T20:38:00.922Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:38:00.923Z] [DEPLOY] #9 CACHED [2026-06-02T20:38:00.924Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-02T20:38:00.924Z] [DEPLOY] #10 CACHED [2026-06-02T20:38:00.925Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-02T20:38:00.926Z] [DEPLOY] #11 CACHED [2026-06-02T20:38:00.927Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T20:38:01.082Z] [DEPLOY] #12 CACHED [2026-06-02T20:38:01.083Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-02T20:38:02.613Z] [DEPLOY] #13 DONE 1.7s [2026-06-02T20:38:02.767Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-02T20:38:06.342Z] [DEPLOY] #14 3.724 Prisma schema loaded from prisma/schema.prisma [2026-06-02T20:38:10.451Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.452Z] [DEPLOY] #14 7.834 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.35s [2026-06-02T20:38:10.452Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.454Z] [DEPLOY] #14 7.834 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-02T20:38:10.455Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.456Z] [DEPLOY] #14 7.834 Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate [2026-06-02T20:38:10.457Z] [DEPLOY] #14 7.834 [2026-06-02T20:38:10.921Z] [DEPLOY] #14 DONE 8.3s [2026-06-02T20:38:11.081Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-02T20:38:11.861Z] [DEPLOY] #15 0.933 [2026-06-02T20:38:11.862Z] [DEPLOY] #15 0.933 > backend@0.0.1 build /app [2026-06-02T20:38:11.864Z] [DEPLOY] #15 0.933 > nest build [2026-06-02T20:38:11.865Z] [DEPLOY] #15 0.933 [2026-06-02T20:38:56.268Z] [DEPLOY] #15 DONE 45.3s [2026-06-02T20:38:56.426Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-02T20:38:56.559Z] [DEPLOY] #16 0.283 total 80 [2026-06-02T20:38:56.724Z] [DEPLOY] #16 0.285 drwxr-xr-x 6 root root 4096 Jun 2 20:38 . [2026-06-02T20:38:56.724Z] [DEPLOY] #16 0.285 drwxr-xr-x 4 root root 4096 Jun 2 20:38 .. [2026-06-02T20:38:56.725Z] [DEPLOY] #16 0.285 drwxr-xr-x 3 root root 4096 Jun 2 20:38 __mocks__ [2026-06-02T20:38:56.726Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 181 Jun 2 20:38 app.controller.d.ts [2026-06-02T20:38:56.727Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 1611 Jun 2 20:38 app.controller.js [2026-06-02T20:38:56.727Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 436 Jun 2 20:38 app.controller.js.map [2026-06-02T20:38:56.728Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 35 Jun 2 20:38 app.module.d.ts [2026-06-02T20:38:56.728Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 8972 Jun 2 20:38 app.module.js [2026-06-02T20:38:56.730Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2525 Jun 2 20:38 app.module.js.map [2026-06-02T20:38:56.730Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 60 Jun 2 20:38 app.service.d.ts [2026-06-02T20:38:56.731Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 981 Jun 2 20:38 app.service.js [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 281 Jun 2 20:38 app.service.js.map [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 drwxr-xr-x 4 root root 4096 Jun 2 20:38 common [2026-06-02T20:38:56.732Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 11 Jun 2 20:38 main.d.ts [2026-06-02T20:38:56.733Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2914 Jun 2 20:38 main.js [2026-06-02T20:38:56.733Z] [DEPLOY] #16 0.285 -rw-r--r-- 1 root root 2491 Jun 2 20:38 main.js.map [2026-06-02T20:38:56.737Z] [DEPLOY] #16 0.285 drwxr-xr-x 58 root root 4096 Jun 2 20:38 modules [2026-06-02T20:38:56.737Z] [DEPLOY] #16 0.285 drwxr-xr-x 2 root root 4096 Jun 2 20:38 prisma [2026-06-02T20:38:56.738Z] [DEPLOY] #16 DONE 0.3s [2026-06-02T20:39:08.853Z] [DEPLOY] #17 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-02T20:39:08.854Z] [DEPLOY] #17 CACHED [2026-06-02T20:39:08.855Z] [DEPLOY] #18 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-02T20:39:08.855Z] [DEPLOY] #18 CACHED [2026-06-02T20:39:08.856Z] [DEPLOY] #19 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:39:08.857Z] [DEPLOY] #19 CACHED [2026-06-02T20:39:08.857Z] [DEPLOY] #20 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-02T20:39:08.858Z] [DEPLOY] #20 CACHED [2026-06-02T20:39:08.858Z] [DEPLOY] #21 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:39:08.859Z] [DEPLOY] #21 CACHED [2026-06-02T20:39:08.859Z] [DEPLOY] #22 [backend production 7/12] COPY prisma ./prisma/ [2026-06-02T20:39:08.860Z] [DEPLOY] #22 CACHED [2026-06-02T20:39:08.860Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-02T20:39:09.013Z] [DEPLOY] #23 CACHED [2026-06-02T20:39:09.013Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-02T20:39:09.557Z] [DEPLOY] #24 DONE 0.7s [2026-06-02T20:39:09.714Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-02T20:39:09.921Z] [DEPLOY] #25 DONE 0.4s [2026-06-02T20:39:10.080Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-02T20:39:52.456Z] [DEPLOY] #26 DONE 42.5s [2026-06-02T20:39:52.624Z] [DEPLOY] #27 [backend] exporting to image [2026-06-02T20:39:52.625Z] [DEPLOY] #27 exporting layers [2026-06-02T20:40:14.027Z] [DEPLOY] #27 exporting layers 21.6s done [2026-06-02T20:40:14.243Z] [DEPLOY] #27 exporting manifest sha256:5bb37edbc4720a12db16f9ccb43114f637d1474797ad00809611abbdd40119c8 done [2026-06-02T20:40:14.243Z] [DEPLOY] #27 exporting config sha256:402447c5f5cab75c0e7a0c25726687237adf7af018b275b3d3eebacf92db9132 done [2026-06-02T20:40:14.244Z] [DEPLOY] #27 exporting attestation manifest sha256:75fd0eeb3b73d495191a8f00ff7dec5bab706dd78adc3563f462e18ee36335b1 0.0s done [2026-06-02T20:40:14.244Z] [DEPLOY] #27 exporting manifest list sha256:ef49a38211dfcb34a0ace66631848df906d3eef1a9dfe80ee9b4129609b3e272 done [2026-06-02T20:40:14.246Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-02T20:40:14.246Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-02T20:40:20.890Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.8s done [2026-06-02T20:40:21.086Z] [DEPLOY] #27 DONE 28.5s [2026-06-02T20:40:21.220Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-02T20:40:21.331Z] [DEPLOY] #28 DONE 0.0s [2026-06-02T20:40:21.332Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-02T20:40:21.332Z] [DEPLOY] #29 transferring dockerfile: 30B 0.0s [2026-06-02T20:40:21.508Z] [DEPLOY] #29 transferring dockerfile: 1.38kB 0.0s done [2026-06-02T20:40:21.509Z] [DEPLOY] #29 DONE 0.0s [2026-06-02T20:40:21.510Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-02T20:40:21.812Z] [DEPLOY] #2 DONE 1.4s [2026-06-02T20:40:21.920Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-02T20:40:21.921Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-02T20:40:21.922Z] [DEPLOY] #3 CACHED [2026-06-02T20:40:21.925Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-02T20:40:22.403Z] [DEPLOY] #4 DONE 1.2s [2026-06-02T20:40:22.404Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-02T20:40:22.705Z] [DEPLOY] #30 DONE 0.8s [2026-06-02T20:40:22.809Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-02T20:40:22.809Z] [DEPLOY] #31 transferring context: [2026-06-02T20:40:22.969Z] [DEPLOY] #31 transferring context: 194B done [2026-06-02T20:40:22.970Z] [DEPLOY] #31 DONE 0.1s [2026-06-02T20:40:23.512Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-02T20:40:23.513Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-02T20:40:23.513Z] [DEPLOY] #32 DONE 0.0s [2026-06-02T20:40:23.514Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-02T20:40:23.515Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-02T20:40:23.515Z] [DEPLOY] #7 DONE 0.3s [2026-06-02T20:40:23.516Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-02T20:40:23.518Z] [DEPLOY] #33 transferring context: 90.03kB 0.1s done [2026-06-02T20:40:23.519Z] [DEPLOY] #33 DONE 0.1s [2026-06-02T20:40:23.683Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-02T20:40:23.684Z] [DEPLOY] #34 CACHED [2026-06-02T20:40:23.684Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-02T20:40:23.685Z] [DEPLOY] #35 CACHED [2026-06-02T20:40:23.685Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-02T20:40:23.686Z] [DEPLOY] #10 CACHED [2026-06-02T20:40:23.686Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-02T20:40:23.687Z] [DEPLOY] #36 CACHED [2026-06-02T20:40:23.688Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-02T20:40:23.821Z] [DEPLOY] #37 DONE 0.3s [2026-06-02T20:40:23.974Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-02T20:40:24.622Z] [DEPLOY] #38 0.799 [2026-06-02T20:40:24.623Z] [DEPLOY] #38 0.799 > frontend@1.0.0 build /app [2026-06-02T20:40:24.625Z] [DEPLOY] #38 0.799 > tsc && vite build [2026-06-02T20:40:24.626Z] [DEPLOY] #38 0.799 [2026-06-02T20:41:15.082Z] [DEPLOY] #38 51.26 vite v5.4.21 building for production... [2026-06-02T20:41:15.844Z] [DEPLOY] #38 52.02 transforming... [2026-06-02T20:41:16.071Z] [DEPLOY] #38 52.10 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-02T20:41:16.072Z] [DEPLOY] #38 52.10 npx update-browserslist-db@latest [2026-06-02T20:41:16.074Z] [DEPLOY] #38 52.10 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-02T20:41:40.476Z] [DEPLOY] #38 76.65 ✓ 4325 modules transformed. [2026-06-02T20:41:42.279Z] [DEPLOY] #38 78.46 rendering chunks... [2026-06-02T20:41:46.206Z] [DEPLOY] #38 82.38 computing gzip size... [2026-06-02T20:41:47.097Z] [DEPLOY] #38 83.27 dist/registerSW.js 0.13 kB [2026-06-02T20:41:47.226Z] [DEPLOY] #38 83.27 dist/manifest.webmanifest 0.54 kB [2026-06-02T20:41:47.227Z] [DEPLOY] #38 83.27 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-02T20:41:47.228Z] [DEPLOY] #38 83.27 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-02T20:41:47.229Z] [DEPLOY] #38 83.28 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-02T20:41:47.230Z] [DEPLOY] #38 83.28 dist/assets/index.es-CeNknJbp.js 150.69 kB │ gzip: 51.55 kB [2026-06-02T20:41:47.231Z] [DEPLOY] #38 83.28 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-02T20:41:47.234Z] [DEPLOY] #38 83.28 dist/assets/index-C1TIQwLE.js 4,151.82 kB │ gzip: 1,078.14 kB [2026-06-02T20:41:47.240Z] [DEPLOY] #38 83.28 [2026-06-02T20:41:47.242Z] [DEPLOY] #38 83.28 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-02T20:41:47.243Z] [DEPLOY] #38 83.28 - Using dynamic import() to code-split the application [2026-06-02T20:41:47.244Z] [DEPLOY] #38 83.28 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-02T20:41:47.245Z] [DEPLOY] #38 83.28 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-02T20:41:47.246Z] [DEPLOY] #38 83.28 ✓ built in 31.99s [2026-06-02T20:41:47.246Z] [DEPLOY] #38 83.40 [2026-06-02T20:41:47.247Z] [DEPLOY] #38 83.40 PWA v1.2.0 [2026-06-02T20:41:47.248Z] [DEPLOY] #38 83.40 Building src/sw.ts service worker ("es" format)... [2026-06-02T20:41:47.414Z] [DEPLOY] #38 83.44 vite v5.4.21 building for production... [2026-06-02T20:41:49.656Z] [DEPLOY] #38 85.83 transforming... [2026-06-02T20:41:49.811Z] [DEPLOY] #38 85.84 ✓ 1 modules transformed. [2026-06-02T20:41:49.815Z] [DEPLOY] #38 85.84 rendering chunks... [2026-06-02T20:41:49.825Z] [DEPLOY] #38 85.85 computing gzip size... [2026-06-02T20:41:49.835Z] [DEPLOY] #38 85.85 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-02T20:41:49.836Z] [DEPLOY] #38 85.85 ✓ built in 2.39s [2026-06-02T20:41:49.836Z] [DEPLOY] #38 85.99 [2026-06-02T20:41:49.837Z] [DEPLOY] #38 85.99 PWA v1.2.0 [2026-06-02T20:41:49.840Z] [DEPLOY] #38 85.99 mode injectManifest [2026-06-02T20:41:49.840Z] [DEPLOY] #38 85.99 format: es [2026-06-02T20:41:49.841Z] [DEPLOY] #38 85.99 precache 15 entries (4941.14 KiB) [2026-06-02T20:41:49.842Z] [DEPLOY] #38 85.99 files generated [2026-06-02T20:41:49.843Z] [DEPLOY] #38 85.99 dist/sw.js [2026-06-02T20:41:50.242Z] [DEPLOY] #38 DONE 86.4s [2026-06-02T20:41:53.559Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-02T20:41:53.559Z] [DEPLOY] #39 CACHED [2026-06-02T20:41:53.561Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-02T20:41:53.797Z] [DEPLOY] #40 CACHED [2026-06-02T20:41:53.798Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-02T20:41:53.799Z] [DEPLOY] #41 DONE 0.1s [2026-06-02T20:41:53.799Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-02T20:41:53.800Z] [DEPLOY] #42 exporting layers [2026-06-02T20:41:53.873Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-02T20:41:53.980Z] [DEPLOY] #42 exporting manifest sha256:974e7667f80e2f805336b08bc6d6fa4c00e0d6548f2b66c02e3f1f6c1c2650f4 0.0s done [2026-06-02T20:41:53.981Z] [DEPLOY] #42 exporting config sha256:71f162efb1279a30a221204b39d5cde02f70672dcf4f1f9fe918b1c8d254cb76 done [2026-06-02T20:41:53.981Z] [DEPLOY] #42 exporting attestation manifest sha256:8c83024d9fa0972ee5b6a6c3d7fcf1a80e360bd0052f520379590ac4a594757d 0.0s done [2026-06-02T20:41:53.982Z] [DEPLOY] #42 exporting manifest list sha256:9bec2ec0362eec2f2c02ecb7bd55e2743c30646613db8f2f4cdd4077fe9c91e8 done [2026-06-02T20:41:53.983Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-02T20:41:53.983Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-02T20:41:54.168Z] [DEPLOY] #42 DONE 0.4s [2026-06-02T20:41:54.194Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-02T20:41:54.219Z] [DEPLOY] #43 DONE 0.0s [2026-06-02T20:41:54.220Z] [STDERR] backend Built [2026-06-02T20:41:54.221Z] [STDERR] frontend Built [2026-06-02T20:41:54.229Z] [DEPLOY] [2026-06-02 20:41:54] ✓ New images built successfully [2026-06-02T20:41:54.231Z] [DEPLOY] [2026-06-02 20:41:54] STEP: Step 5/8: Running database migrations... [2026-06-02T20:41:54.233Z] [DEPLOY] [2026-06-02 20:41:54] Checking for pending migrations... [2026-06-02T20:41:54.234Z] [DEPLOY] [2026-06-02 20:41:54] Applying schema changes... [2026-06-02T20:41:57.093Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-02T20:41:57.132Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-02T20:41:57.704Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-02T20:41:57.757Z] [DEPLOY] npm notice [2026-06-02T20:41:57.757Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-02T20:41:57.759Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-02T20:41:57.759Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-02T20:41:57.760Z] [DEPLOY] npm notice [2026-06-02T20:41:58.023Z] [DEPLOY] [2026-06-02 20:41:58] ✓ Database schema already in sync [2026-06-02T20:41:58.025Z] [DEPLOY] [2026-06-02 20:41:58] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-02T20:41:58.027Z] [DEPLOY] [2026-06-02 20:41:58] Updating backend container... [2026-06-02T20:41:58.264Z] [STDERR] Container clicknex-redis Running [2026-06-02T20:41:58.266Z] [STDERR] Container clicknex-backend Recreate [2026-06-02T20:42:08.947Z] [STDERR] Container clicknex-backend Recreated [2026-06-02T20:42:08.991Z] [STDERR] Container clicknex-redis Waiting [2026-06-02T20:42:09.493Z] [STDERR] Container clicknex-redis Healthy [2026-06-02T20:42:09.494Z] [STDERR] Container clicknex-backend Starting [2026-06-02T20:42:09.886Z] [STDERR] Container clicknex-backend Started [2026-06-02T20:42:14.959Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-02T20:42:17.048Z] [DEPLOY] [2026-06-02 20:42:17] ✓ Backend health check passed (healthy) [2026-06-02T20:42:17.052Z] [DEPLOY] [2026-06-02 20:42:17] Updating frontend container... [2026-06-02T20:42:17.390Z] [STDERR] Container clicknex-frontend Recreate [2026-06-02T20:42:18.022Z] [STDERR] Container clicknex-frontend Recreated [2026-06-02T20:42:18.115Z] [STDERR] Container clicknex-frontend Starting [2026-06-02T20:42:18.398Z] [STDERR] Container clicknex-frontend Started [2026-06-02T20:42:18.415Z] [DEPLOY] [2026-06-02 20:42:18] ✓ New containers started [2026-06-02T20:42:18.417Z] [DEPLOY] [2026-06-02 20:42:18] STEP: Step 7/8: Running health checks... [2026-06-02T20:42:18.478Z] [DEPLOY] [2026-06-02 20:42:18] ✓ Backend health check passed (healthy) [2026-06-02T20:42:18.538Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-02T20:42:20.614Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-02T20:42:22.669Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-02T20:42:24.737Z] [DEPLOY] [2026-06-02 20:42:24] ✓ Frontend health check passed (healthy) [2026-06-02T20:42:24.740Z] [DEPLOY] [2026-06-02 20:42:24] ✓ All health checks passed [2026-06-02T20:42:24.742Z] [DEPLOY] [2026-06-02 20:42:24] STEP: Step 8/8: Cleaning up old resources... [2026-06-02T20:42:26.867Z] [DEPLOY] [2026-06-02 20:42:26] ✓ Cleanup completed (disco: ?%) [2026-06-02T20:42:26.870Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-02T20:42:26.871Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-02T20:42:26.874Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T20:42:26.875Z] [DEPLOY] ║ Commit: 34b9a7f ║ [2026-06-02T20:42:26.876Z] [DEPLOY] ║ Time: 2026-06-02 20:42:26 ║ [2026-06-02T20:42:26.877Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-02T20:42:26.878Z] [DEPLOY] ║ Services: ║ [2026-06-02T20:42:26.878Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-02T20:42:26.879Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-02T20:42:26.880Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-02T20:42:26.881Z] [INFO] Deploy script encerrado com código: 0 [2026-06-02T20:42:26.884Z] [INFO] ====================================================== [2026-06-02T20:42:26.885Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.1 em 519s [2026-06-02T20:42:26.886Z] [INFO] ====================================================== [2026-06-03T14:26:40.625Z] [INFO] ====================================================== [2026-06-03T14:26:40.628Z] [INFO] Webhook server iniciado na porta 9000 [2026-06-03T14:26:40.628Z] [INFO] PROJECT_PATH: /www/wwwroot/saas_crm [2026-06-03T14:26:40.628Z] [INFO] LOG_FILE: /var/log/clicknex-deploy.log [2026-06-03T14:26:40.628Z] [INFO] DEPLOY_LOGS_DIR: /www/wwwroot/saas_crm/.deploy-logs [2026-06-03T14:26:40.629Z] [INFO] VERSION_FILE: /www/wwwroot/saas_crm/.deploy-version (persistente, fora do git) [2026-06-03T14:26:40.629Z] [INFO] Versão: 1.0.4 (semeada de: 1.0.4) [2026-06-03T14:26:40.629Z] [INFO] ====================================================== [2026-06-03T14:32:00.878Z] [INFO] Deploy manual disparado (commit 7ced896e) [2026-06-03T14:32:00.881Z] [INFO] ====================================================== [2026-06-03T14:32:00.882Z] [INFO] DEPLOY INICIADO — v1.0.5 [2026-06-03T14:32:00.882Z] [INFO] Commit: 7ced896ec93e9206431fda71bbed86cfddda552a [2026-06-03T14:32:00.882Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-03T14:32:00.882Z] [INFO] Branch: main [2026-06-03T14:32:00.883Z] [INFO] Disparado por: jhon4than (CI) [2026-06-03T14:32:00.883Z] [INFO] ====================================================== [2026-06-03T14:32:00.883Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-03T14:32:00.883Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-03T14:32:00.895Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T14:32:00.898Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-03T14:32:00.899Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T14:32:00.906Z] [DEPLOY] [2026-06-03 14:32:00] STEP: Step 1/8: Pulling latest code from repository... [2026-06-03T14:32:02.475Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-03T14:32:02.475Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-03T14:32:02.641Z] [DEPLOY] [2026-06-03 14:32:02] Deploy do commit validado pelo CI: 7ced896ec93e9206431fda71bbed86cfddda552a [2026-06-03T14:32:02.667Z] [STDERR] Reset branch 'main' [2026-06-03T14:32:02.669Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-03T14:32:02.672Z] [DEPLOY] [2026-06-03 14:32:02] ✓ Code updated to latest version [2026-06-03T14:32:02.674Z] [DEPLOY] [2026-06-03 14:32:02] STEP: Step 2/8: Backing up current state... [2026-06-03T14:32:02.676Z] [DEPLOY] [2026-06-03 14:32:02] STEP: Creating backup of current state... [2026-06-03T14:32:03.056Z] [DEPLOY] [2026-06-03 14:32:03] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-03T14:32:03.059Z] [DEPLOY] [2026-06-03 14:32:03] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-03T14:32:03.065Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-03T14:32:03.066Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-03T14:32:03.067Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-03T14:32:03.068Z] [DEPLOY] Database: saas_crm [2026-06-03T14:32:03.068Z] [DEPLOY] Host: localhost:5432 [2026-06-03T14:32:03.068Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-03T14:32:03.068Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-03T14:36:37.182Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz (2.5G) [2026-06-03T14:36:37.188Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-03T14:36:37.200Z] [DEPLOY] removendo antigo: backup_20260602_160204.sql.gz [2026-06-03T14:36:37.229Z] [DEPLOY] Current backups: [2026-06-03T14:36:37.231Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 18:16 /www/wwwroot/saas_crm/backups/database/backup_20260602_181140.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 20:37 /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 14:36 /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-03T14:36:37.232Z] [DEPLOY] Backup completed! [2026-06-03T14:36:37.234Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Database backup completed [2026-06-03T14:36:37.236Z] [DEPLOY] [2026-06-03 14:36:37] STEP: Step 4/8: Building new Docker images... [2026-06-03T14:36:37.238Z] [DEPLOY] [2026-06-03 14:36:37] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-03T14:36:37.534Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-03T14:36:37.604Z] [DEPLOY] [2026-06-03 14:36:37] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-03T14:36:38.602Z] [STDERR] time="2026-06-03T14:36:38Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-03T14:36:39.017Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-03T14:36:39.017Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-03T14:36:39.017Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-03T14:36:39.017Z] [DEPLOY] #1 DONE 0.1s [2026-06-03T14:36:39.017Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T14:36:39.839Z] [DEPLOY] #2 DONE 1.0s [2026-06-03T14:36:39.978Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T14:36:39.978Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T14:36:39.978Z] [DEPLOY] #3 CACHED [2026-06-03T14:36:40.483Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T14:36:41.083Z] [DEPLOY] #4 DONE 0.6s [2026-06-03T14:36:41.221Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-03T14:36:41.221Z] [DEPLOY] #5 transferring context: 304B done [2026-06-03T14:36:41.221Z] [DEPLOY] #5 DONE 0.0s [2026-06-03T14:36:41.387Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T14:36:41.387Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-03T14:36:41.388Z] [DEPLOY] #6 DONE 0.0s [2026-06-03T14:36:41.388Z] [DEPLOY] #7 [backend internal] load build context [2026-06-03T14:36:41.802Z] [DEPLOY] #7 transferring context: 10.47MB 0.5s done [2026-06-03T14:36:41.805Z] [DEPLOY] #7 DONE 0.5s [2026-06-03T14:36:41.805Z] [DEPLOY] #8 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-03T14:36:41.805Z] [DEPLOY] #8 CACHED [2026-06-03T14:36:41.805Z] [DEPLOY] #9 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:36:41.805Z] [DEPLOY] #9 CACHED [2026-06-03T14:36:41.805Z] [DEPLOY] #10 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:36:41.805Z] [DEPLOY] #10 CACHED [2026-06-03T14:36:41.806Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-03T14:36:41.806Z] [DEPLOY] #11 CACHED [2026-06-03T14:36:41.806Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T14:36:41.960Z] [DEPLOY] #12 CACHED [2026-06-03T14:36:41.960Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-03T14:36:42.266Z] [DEPLOY] #13 DONE 0.5s [2026-06-03T14:36:42.421Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-03T14:36:44.936Z] [DEPLOY] #14 2.665 Prisma schema loaded from prisma/schema.prisma [2026-06-03T14:36:49.591Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.56s [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-03T14:36:49.592Z] [DEPLOY] #14 7.321 [2026-06-03T14:36:49.914Z] [DEPLOY] #14 DONE 7.6s [2026-06-03T14:36:50.066Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-03T14:36:50.741Z] [DEPLOY] #15 0.825 [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 > backend@0.0.1 build /app [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 > nest build [2026-06-03T14:36:50.742Z] [DEPLOY] #15 0.825 [2026-06-03T14:37:43.611Z] [DEPLOY] #15 DONE 53.7s [2026-06-03T14:37:43.783Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-03T14:37:44.286Z] [DEPLOY] #16 0.663 total 80 [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 6 root root 4096 Jun 3 14:37 . [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 4 root root 4096 Jun 3 14:37 .. [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 drwxr-xr-x 3 root root 4096 Jun 3 14:37 __mocks__ [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 181 Jun 3 14:37 app.controller.d.ts [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 1611 Jun 3 14:37 app.controller.js [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 436 Jun 3 14:37 app.controller.js.map [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 35 Jun 3 14:37 app.module.d.ts [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 8972 Jun 3 14:37 app.module.js [2026-06-03T14:37:44.487Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 2525 Jun 3 14:37 app.module.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 60 Jun 3 14:37 app.service.d.ts [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 981 Jun 3 14:37 app.service.js [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 281 Jun 3 14:37 app.service.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 drwxr-xr-x 4 root root 4096 Jun 3 14:37 common [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 11 Jun 3 14:37 main.d.ts [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.664 -rw-r--r-- 1 root root 2914 Jun 3 14:37 main.js [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 -rw-r--r-- 1 root root 2491 Jun 3 14:37 main.js.map [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 drwxr-xr-x 58 root root 4096 Jun 3 14:37 modules [2026-06-03T14:37:44.488Z] [DEPLOY] #16 0.665 drwxr-xr-x 2 root root 4096 Jun 3 14:37 prisma [2026-06-03T14:37:44.488Z] [DEPLOY] #16 DONE 0.7s [2026-06-03T14:37:52.085Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-03T14:37:52.086Z] [DEPLOY] #17 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #18 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-03T14:37:52.086Z] [DEPLOY] #18 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #19 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-03T14:37:52.086Z] [DEPLOY] #19 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:37:52.086Z] [DEPLOY] #20 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #21 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-03T14:37:52.086Z] [DEPLOY] #21 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #22 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:37:52.086Z] [DEPLOY] #22 CACHED [2026-06-03T14:37:52.086Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-03T14:37:52.245Z] [DEPLOY] #23 CACHED [2026-06-03T14:37:52.245Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-03T14:37:52.848Z] [DEPLOY] #24 DONE 0.8s [2026-06-03T14:37:53.004Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-03T14:37:53.243Z] [DEPLOY] #25 DONE 0.4s [2026-06-03T14:37:53.394Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-03T14:38:41.287Z] [DEPLOY] #26 DONE 48.0s [2026-06-03T14:38:41.443Z] [DEPLOY] #27 [backend] exporting to image [2026-06-03T14:38:41.443Z] [DEPLOY] #27 exporting layers [2026-06-03T14:39:02.640Z] [DEPLOY] #27 exporting layers 21.3s done [2026-06-03T14:39:02.882Z] [DEPLOY] #27 exporting manifest sha256:27e8c0260a3d468883982a73250f21f8b0cde2398de64ecb2b13c24a634311ab 0.0s done [2026-06-03T14:39:02.882Z] [DEPLOY] #27 exporting config sha256:64a24bc2f93c79996f2db61b224fcd4a1715823b9bf0e21355b468edb19cbbf5 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 exporting attestation manifest sha256:9cb2fbab0484988bd3fc906514c090fda167a525a55eae3e9407b242cefafa37 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 exporting manifest list sha256:7b34741c93820669507d059b24b40996b9bb78b3c77d95e4aa9932bb946b5f62 0.0s done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-03T14:39:02.883Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-03T14:39:11.948Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 9.2s done [2026-06-03T14:39:12.144Z] [DEPLOY] #27 DONE 30.7s [2026-06-03T14:39:12.217Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-03T14:39:12.337Z] [DEPLOY] #28 DONE 0.0s [2026-06-03T14:39:12.338Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-03T14:39:12.339Z] [DEPLOY] #29 transferring dockerfile: [2026-06-03T14:39:12.516Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-03T14:39:12.517Z] [DEPLOY] #29 DONE 0.0s [2026-06-03T14:39:12.519Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T14:39:12.815Z] [DEPLOY] #2 DONE 1.4s [2026-06-03T14:39:13.015Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T14:39:13.015Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T14:39:13.016Z] [DEPLOY] #3 CACHED [2026-06-03T14:39:13.073Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T14:39:13.527Z] [DEPLOY] #4 DONE 1.1s [2026-06-03T14:39:13.527Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-03T14:39:13.814Z] [DEPLOY] #30 DONE 0.7s [2026-06-03T14:39:14.065Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-03T14:39:14.066Z] [DEPLOY] #31 transferring context: 194B done [2026-06-03T14:39:14.066Z] [DEPLOY] #31 DONE 0.1s [2026-06-03T14:39:15.007Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T14:39:15.007Z] [DEPLOY] #32 DONE 0.0s [2026-06-03T14:39:15.007Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T14:39:15.007Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-03T14:39:15.007Z] [DEPLOY] #6 DONE 0.1s [2026-06-03T14:39:15.008Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-03T14:39:15.008Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-03T14:39:15.008Z] [DEPLOY] #33 DONE 0.1s [2026-06-03T14:39:15.117Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T14:39:15.628Z] [DEPLOY] #32 transferring context: 5.77MB 0.3s done [2026-06-03T14:39:15.633Z] [DEPLOY] #32 DONE 0.4s [2026-06-03T14:39:15.634Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T14:39:15.634Z] [DEPLOY] #34 CACHED [2026-06-03T14:39:15.634Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-03T14:39:15.634Z] [DEPLOY] #35 CACHED [2026-06-03T14:39:15.634Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-03T14:39:15.635Z] [DEPLOY] #11 CACHED [2026-06-03T14:39:15.635Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T14:39:15.635Z] [DEPLOY] #36 CACHED [2026-06-03T14:39:15.635Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-03T14:39:15.657Z] [DEPLOY] #37 DONE 0.2s [2026-06-03T14:39:15.811Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-03T14:39:16.780Z] [DEPLOY] #38 1.119 [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 > frontend@1.0.0 build /app [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 > tsc && vite build [2026-06-03T14:39:16.781Z] [DEPLOY] #38 1.119 [2026-06-03T14:40:22.471Z] [DEPLOY] #38 66.81 vite v5.4.21 building for production... [2026-06-03T14:40:23.119Z] [DEPLOY] #38 67.46 transforming... [2026-06-03T14:40:23.369Z] [DEPLOY] #38 67.56 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-03T14:40:23.371Z] [DEPLOY] #38 67.56 npx update-browserslist-db@latest [2026-06-03T14:40:23.372Z] [DEPLOY] #38 67.56 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-03T14:40:51.283Z] [DEPLOY] #38 95.62 ✓ 4325 modules transformed. [2026-06-03T14:40:53.150Z] [DEPLOY] #38 97.49 rendering chunks... [2026-06-03T14:40:56.588Z] [DEPLOY] #38 100.9 computing gzip size... [2026-06-03T14:40:56.779Z] [DEPLOY] #38 101.1 dist/registerSW.js 0.13 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/manifest.webmanifest 0.54 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index.es-CUVhc5bm.js 150.69 kB │ gzip: 51.55 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 dist/assets/index-wsMQyfLE.js 4,151.94 kB │ gzip: 1,078.17 kB [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-03T14:40:56.939Z] [DEPLOY] #38 101.1 - Using dynamic import() to code-split the application [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 ✓ built in 33.70s [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 PWA v1.2.0 [2026-06-03T14:40:56.940Z] [DEPLOY] #38 101.1 Building src/sw.ts service worker ("es" format)... [2026-06-03T14:40:56.942Z] [DEPLOY] #38 101.1 vite v5.4.21 building for production... [2026-06-03T14:40:58.409Z] [DEPLOY] #38 102.7 transforming... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 ✓ 1 modules transformed. [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 rendering chunks... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 computing gzip size... [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-03T14:40:58.592Z] [DEPLOY] #38 102.8 ✓ built in 1.65s [2026-06-03T14:40:58.618Z] [DEPLOY] #38 103.0 [2026-06-03T14:40:58.618Z] [DEPLOY] #38 103.0 PWA v1.2.0 [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 mode injectManifest [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 format: es [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 precache 15 entries (4941.25 KiB) [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 files generated [2026-06-03T14:40:58.619Z] [DEPLOY] #38 103.0 dist/sw.js [2026-06-03T14:40:59.051Z] [DEPLOY] #38 DONE 103.4s [2026-06-03T14:41:02.291Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-03T14:41:02.292Z] [DEPLOY] #39 CACHED [2026-06-03T14:41:02.292Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-03T14:41:02.411Z] [DEPLOY] #40 CACHED [2026-06-03T14:41:02.411Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-03T14:41:02.411Z] [DEPLOY] #41 DONE 0.1s [2026-06-03T14:41:02.575Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-03T14:41:02.575Z] [DEPLOY] #42 exporting layers [2026-06-03T14:41:02.815Z] [DEPLOY] #42 exporting layers 0.4s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting manifest sha256:e11a9cba4386e5ba0f2bb38a2cebe870661f4a3c93ce743f5e9b49bcaaba886c done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting config sha256:cb077cbb324e6b1cd1f3fb5779efebe4cbb60521ed27f23f7294d8e724f3f5f3 0.0s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting attestation manifest sha256:1e744a5c4a7245e453fe164c7ee8e7141d8d8a99639cfacc38a53c7331507a23 0.0s done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 exporting manifest list sha256:bad24b631c10dd76d90c7b033a0072ccfd70d0b8dc913c80de23128ebb372bae done [2026-06-03T14:41:02.916Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest [2026-06-03T14:41:03.049Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-03T14:41:03.049Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-03T14:41:03.261Z] [DEPLOY] #42 DONE 0.7s [2026-06-03T14:41:03.537Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-03T14:41:03.546Z] [DEPLOY] #43 DONE 0.0s [2026-06-03T14:41:03.547Z] [STDERR] backend Built [2026-06-03T14:41:03.547Z] [STDERR] frontend Built [2026-06-03T14:41:03.571Z] [DEPLOY] [2026-06-03 14:41:03] ✓ New images built successfully [2026-06-03T14:41:03.572Z] [DEPLOY] [2026-06-03 14:41:03] STEP: Step 5/8: Running database migrations... [2026-06-03T14:41:03.574Z] [DEPLOY] [2026-06-03 14:41:03] Checking for pending migrations... [2026-06-03T14:41:03.575Z] [DEPLOY] [2026-06-03 14:41:03] Applying schema changes... [2026-06-03T14:41:06.770Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-03T14:41:06.841Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-03T14:41:07.832Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-03T14:41:07.945Z] [DEPLOY] npm notice [2026-06-03T14:41:07.946Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-03T14:41:07.946Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-03T14:41:07.947Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-03T14:41:07.947Z] [DEPLOY] npm notice [2026-06-03T14:41:08.395Z] [DEPLOY] [2026-06-03 14:41:08] ✓ Database schema already in sync [2026-06-03T14:41:08.399Z] [DEPLOY] [2026-06-03 14:41:08] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-03T14:41:08.400Z] [DEPLOY] [2026-06-03 14:41:08] Updating backend container... [2026-06-03T14:41:08.747Z] [STDERR] Container clicknex-redis Running [2026-06-03T14:41:08.747Z] [STDERR] Container clicknex-backend Recreate [2026-06-03T14:41:19.411Z] [STDERR] Container clicknex-backend Recreated [2026-06-03T14:41:19.468Z] [STDERR] Container clicknex-redis Waiting [2026-06-03T14:41:19.971Z] [STDERR] Container clicknex-redis Healthy [2026-06-03T14:41:19.972Z] [STDERR] Container clicknex-backend Starting [2026-06-03T14:41:20.485Z] [STDERR] Container clicknex-backend Started [2026-06-03T14:41:25.626Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-03T14:41:27.711Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-03T14:41:29.790Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-03T14:41:31.871Z] [DEPLOY] [2026-06-03 14:41:31] ✓ Backend health check passed (healthy) [2026-06-03T14:41:31.872Z] [DEPLOY] [2026-06-03 14:41:31] Updating frontend container... [2026-06-03T14:41:32.132Z] [STDERR] Container clicknex-frontend Recreate [2026-06-03T14:41:32.744Z] [STDERR] Container clicknex-frontend Recreated [2026-06-03T14:41:32.807Z] [STDERR] Container clicknex-frontend Starting [2026-06-03T14:41:33.088Z] [STDERR] Container clicknex-frontend Started [2026-06-03T14:41:33.100Z] [DEPLOY] [2026-06-03 14:41:33] ✓ New containers started [2026-06-03T14:41:33.102Z] [DEPLOY] [2026-06-03 14:41:33] STEP: Step 7/8: Running health checks... [2026-06-03T14:41:33.164Z] [DEPLOY] [2026-06-03 14:41:33] ✓ Backend health check passed (healthy) [2026-06-03T14:41:33.219Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-03T14:41:35.278Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-03T14:41:37.350Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-03T14:41:39.431Z] [DEPLOY] [2026-06-03 14:41:39] ✓ Frontend health check passed (healthy) [2026-06-03T14:41:39.433Z] [DEPLOY] [2026-06-03 14:41:39] ✓ All health checks passed [2026-06-03T14:41:39.435Z] [DEPLOY] [2026-06-03 14:41:39] STEP: Step 8/8: Cleaning up old resources... [2026-06-03T14:41:41.872Z] [DEPLOY] [2026-06-03 14:41:41] ✓ Cleanup completed (disco: ?%) [2026-06-03T14:41:41.874Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T14:41:41.874Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-03T14:41:41.875Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T14:41:41.883Z] [DEPLOY] ║ Commit: 7ced896 ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ Time: 2026-06-03 14:41:41 ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ Services: ║ [2026-06-03T14:41:41.886Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-03T14:41:41.887Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-03T14:41:41.887Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T14:41:41.891Z] [INFO] Deploy script encerrado com código: 0 [2026-06-03T14:41:41.892Z] [INFO] ====================================================== [2026-06-03T14:41:41.892Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.5 em 581s [2026-06-03T14:41:41.892Z] [INFO] ====================================================== [2026-06-03T20:55:06.313Z] [INFO] Deploy manual disparado (commit 6f3ed938) [2026-06-03T20:55:06.327Z] [INFO] ====================================================== [2026-06-03T20:55:06.330Z] [INFO] DEPLOY INICIADO — v1.0.6 [2026-06-03T20:55:06.330Z] [INFO] Commit: 6f3ed93815fbd2bcf09da2a480da2a11825414b7 [2026-06-03T20:55:06.331Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-03T20:55:06.331Z] [INFO] Branch: main [2026-06-03T20:55:06.331Z] [INFO] Disparado por: jhon4than (CI) [2026-06-03T20:55:06.331Z] [INFO] ====================================================== [2026-06-03T20:55:06.331Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-03T20:55:06.331Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-03T20:55:06.373Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T20:55:06.373Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-03T20:55:06.374Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T20:55:06.375Z] [DEPLOY] [2026-06-03 20:55:06] STEP: Step 1/8: Pulling latest code from repository... [2026-06-03T20:55:08.387Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-03T20:55:08.387Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-03T20:55:08.389Z] [STDERR] 7ced896..6f3ed93 main -> origin/main [2026-06-03T20:55:08.516Z] [DEPLOY] [2026-06-03 20:55:08] Deploy do commit validado pelo CI: 6f3ed93815fbd2bcf09da2a480da2a11825414b7 [2026-06-03T20:55:08.563Z] [STDERR] Reset branch 'main' [2026-06-03T20:55:08.565Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-03T20:55:08.568Z] [DEPLOY] [2026-06-03 20:55:08] ✓ Code updated to latest version [2026-06-03T20:55:08.570Z] [DEPLOY] [2026-06-03 20:55:08] STEP: Step 2/8: Backing up current state... [2026-06-03T20:55:08.581Z] [DEPLOY] [2026-06-03 20:55:08] STEP: Creating backup of current state... [2026-06-03T20:55:09.120Z] [DEPLOY] [2026-06-03 20:55:09] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-03T20:55:09.123Z] [DEPLOY] [2026-06-03 20:55:09] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-03T20:55:09.128Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-03T20:55:09.129Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-03T20:55:09.130Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-03T20:55:09.131Z] [DEPLOY] Database: saas_crm [2026-06-03T20:55:09.131Z] [DEPLOY] Host: localhost:5432 [2026-06-03T20:55:09.131Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260603_205509.sql.gz [2026-06-03T20:55:09.131Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-03T20:59:06.969Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260603_205509.sql.gz (2.5G) [2026-06-03T20:59:06.972Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-03T20:59:06.976Z] [DEPLOY] removendo antigo: backup_20260602_181140.sql.gz [2026-06-03T20:59:06.990Z] [DEPLOY] Current backups: [2026-06-03T20:59:06.993Z] [DEPLOY] -rw-r--r-- 1 root root 2.4G Jun 2 20:37 /www/wwwroot/saas_crm/backups/database/backup_20260602_203350.sql.gz [2026-06-03T20:59:06.993Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 14:36 /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-03T20:59:06.993Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 20:59 /www/wwwroot/saas_crm/backups/database/backup_20260603_205509.sql.gz [2026-06-03T20:59:06.994Z] [DEPLOY] Backup completed! [2026-06-03T20:59:06.995Z] [DEPLOY] [2026-06-03 20:59:06] ✓ Database backup completed [2026-06-03T20:59:06.997Z] [DEPLOY] [2026-06-03 20:59:06] STEP: Step 4/8: Building new Docker images... [2026-06-03T20:59:06.999Z] [DEPLOY] [2026-06-03 20:59:06] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-03T20:59:07.208Z] [DEPLOY] [2026-06-03 20:59:07] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-03T20:59:07.280Z] [DEPLOY] [2026-06-03 20:59:07] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-03T20:59:08.142Z] [STDERR] time="2026-06-03T20:59:08Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-03T20:59:08.544Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-03T20:59:08.544Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-03T20:59:08.545Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-03T20:59:08.546Z] [DEPLOY] #1 DONE 0.1s [2026-06-03T20:59:08.546Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T20:59:09.462Z] [DEPLOY] #2 DONE 0.9s [2026-06-03T20:59:09.643Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T20:59:09.643Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T20:59:09.643Z] [DEPLOY] #3 CACHED [2026-06-03T20:59:09.824Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T20:59:10.565Z] [DEPLOY] #4 DONE 0.7s [2026-06-03T20:59:10.694Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-03T20:59:10.694Z] [DEPLOY] #5 transferring context: 304B done [2026-06-03T20:59:10.694Z] [DEPLOY] #5 DONE 0.0s [2026-06-03T20:59:10.694Z] [DEPLOY] #6 [backend internal] load build context [2026-06-03T20:59:10.695Z] [DEPLOY] #6 DONE 0.0s [2026-06-03T20:59:10.695Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T20:59:10.854Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-03T20:59:10.854Z] [DEPLOY] #7 DONE 0.0s [2026-06-03T20:59:10.854Z] [DEPLOY] #6 [backend internal] load build context [2026-06-03T20:59:10.961Z] [DEPLOY] #6 transferring context: 93.50kB 0.2s done [2026-06-03T20:59:11.117Z] [DEPLOY] #6 DONE 0.3s [2026-06-03T20:59:11.117Z] [DEPLOY] #8 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T20:59:11.117Z] [DEPLOY] #8 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #9 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T20:59:11.118Z] [DEPLOY] #9 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #10 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-03T20:59:11.118Z] [DEPLOY] #10 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #11 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-03T20:59:11.118Z] [DEPLOY] #11 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #12 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-03T20:59:11.118Z] [DEPLOY] #12 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-03T20:59:11.118Z] [DEPLOY] #13 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #14 [backend production 9/12] RUN pnpm prisma generate [2026-06-03T20:59:11.118Z] [DEPLOY] #14 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #15 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-03T20:59:11.118Z] [DEPLOY] #15 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #16 [backend builder 2/10] WORKDIR /app [2026-06-03T20:59:11.118Z] [DEPLOY] #16 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #17 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-03T20:59:11.118Z] [DEPLOY] #17 CACHED [2026-06-03T20:59:11.118Z] [DEPLOY] #18 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-03T20:59:11.119Z] [DEPLOY] #18 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #19 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-03T20:59:11.119Z] [DEPLOY] #19 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #20 [backend builder 8/10] RUN pnpm prisma generate [2026-06-03T20:59:11.119Z] [DEPLOY] #20 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #21 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-03T20:59:11.119Z] [DEPLOY] #21 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #22 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-03T20:59:11.119Z] [DEPLOY] #22 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #23 [backend production 7/12] COPY prisma ./prisma/ [2026-06-03T20:59:11.119Z] [DEPLOY] #23 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-03T20:59:11.119Z] [DEPLOY] #24 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #25 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T20:59:11.119Z] [DEPLOY] #25 CACHED [2026-06-03T20:59:11.119Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-03T20:59:11.225Z] [DEPLOY] #26 CACHED [2026-06-03T20:59:11.226Z] [DEPLOY] #27 [backend] exporting to image [2026-06-03T20:59:11.226Z] [DEPLOY] #27 exporting layers 0.0s done [2026-06-03T20:59:11.226Z] [DEPLOY] #27 exporting manifest sha256:27e8c0260a3d468883982a73250f21f8b0cde2398de64ecb2b13c24a634311ab done [2026-06-03T20:59:11.226Z] [DEPLOY] #27 exporting config sha256:64a24bc2f93c79996f2db61b224fcd4a1715823b9bf0e21355b468edb19cbbf5 done [2026-06-03T20:59:11.226Z] [DEPLOY] #27 exporting attestation manifest sha256:d80479e20a2a7dcb87f820652b892cca89b33cd6b82dd52d826d58603ac258a4 0.0s done [2026-06-03T20:59:11.226Z] [DEPLOY] #27 exporting manifest list sha256:22c79404dd2c9e75eb3e5d60b06c7e3cc6687f255503bb86c35ccfafba9d8b61 [2026-06-03T20:59:11.329Z] [DEPLOY] #27 exporting manifest list sha256:22c79404dd2c9e75eb3e5d60b06c7e3cc6687f255503bb86c35ccfafba9d8b61 0.0s done [2026-06-03T20:59:11.329Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-03T20:59:11.329Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 0.0s done [2026-06-03T20:59:11.329Z] [DEPLOY] #27 DONE 0.2s [2026-06-03T20:59:11.606Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-03T20:59:11.847Z] [DEPLOY] #28 DONE 0.0s [2026-06-03T20:59:11.847Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-03T20:59:11.848Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-03T20:59:11.848Z] [DEPLOY] #29 DONE 0.0s [2026-06-03T20:59:11.848Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-03T20:59:12.010Z] [DEPLOY] #2 DONE 1.2s [2026-06-03T20:59:12.147Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-03T20:59:12.147Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-03T20:59:12.147Z] [DEPLOY] #3 CACHED [2026-06-03T20:59:12.147Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-03T20:59:12.413Z] [DEPLOY] #30 ... [2026-06-03T20:59:12.413Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-03T20:59:12.414Z] [DEPLOY] #4 DONE 1.0s [2026-06-03T20:59:12.563Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-03T20:59:12.891Z] [DEPLOY] #30 DONE 0.7s [2026-06-03T20:59:13.034Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-03T20:59:13.034Z] [DEPLOY] #31 transferring context: 194B done [2026-06-03T20:59:13.034Z] [DEPLOY] #31 DONE 0.0s [2026-06-03T20:59:13.034Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T20:59:13.034Z] [DEPLOY] #32 DONE 0.0s [2026-06-03T20:59:13.034Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-03T20:59:13.034Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-03T20:59:13.179Z] [DEPLOY] #7 DONE 0.1s [2026-06-03T20:59:13.180Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-03T20:59:13.180Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-03T20:59:13.180Z] [DEPLOY] #33 DONE 0.1s [2026-06-03T20:59:13.180Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-03T20:59:13.180Z] [DEPLOY] #32 transferring context: 82.32kB 0.1s done [2026-06-03T20:59:13.386Z] [DEPLOY] #32 DONE 0.1s [2026-06-03T20:59:13.387Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-03T20:59:13.387Z] [DEPLOY] #34 CACHED [2026-06-03T20:59:13.387Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-03T20:59:13.388Z] [DEPLOY] #35 CACHED [2026-06-03T20:59:13.388Z] [DEPLOY] #16 [frontend builder 2/7] WORKDIR /app [2026-06-03T20:59:13.388Z] [DEPLOY] #16 CACHED [2026-06-03T20:59:13.388Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-03T20:59:13.388Z] [DEPLOY] #36 CACHED [2026-06-03T20:59:13.389Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-03T20:59:13.736Z] [DEPLOY] #37 DONE 0.5s [2026-06-03T20:59:13.891Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-03T20:59:15.871Z] [DEPLOY] #38 2.131 [2026-06-03T20:59:15.872Z] [DEPLOY] #38 2.131 > frontend@1.0.0 build /app [2026-06-03T20:59:15.872Z] [DEPLOY] #38 2.131 > tsc && vite build [2026-06-03T20:59:15.872Z] [DEPLOY] #38 2.131 [2026-06-03T21:00:08.547Z] [DEPLOY] #38 54.81 vite v5.4.21 building for production... [2026-06-03T21:00:09.638Z] [DEPLOY] #38 55.90 transforming... [2026-06-03T21:00:09.820Z] [DEPLOY] #38 56.08 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-03T21:00:09.821Z] [DEPLOY] #38 56.08 npx update-browserslist-db@latest [2026-06-03T21:00:09.821Z] [DEPLOY] #38 56.08 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-03T21:00:39.728Z] [DEPLOY] #38 85.99 ✓ 4326 modules transformed. [2026-06-03T21:00:42.106Z] [DEPLOY] #38 88.37 rendering chunks... [2026-06-03T21:00:45.279Z] [DEPLOY] #38 91.54 computing gzip size... [2026-06-03T21:00:45.480Z] [DEPLOY] #38 91.74 dist/registerSW.js 0.13 kB [2026-06-03T21:00:45.480Z] [DEPLOY] #38 91.74 dist/manifest.webmanifest 0.54 kB [2026-06-03T21:00:45.644Z] [DEPLOY] #38 91.74 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 dist/assets/index.es-Dzg9xUX2.js 150.69 kB │ gzip: 51.55 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 dist/assets/index-LEpSNanZ.js 4,152.46 kB │ gzip: 1,078.31 kB [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 ✓ built in 35.95s [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 - Using dynamic import() to code-split the application [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.74 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.75 [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.75 PWA v1.2.0 [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.75 Building src/sw.ts service worker ("es" format)... [2026-06-03T21:00:45.646Z] [DEPLOY] #38 91.75 vite v5.4.21 building for production... [2026-06-03T21:00:47.776Z] [DEPLOY] #38 94.04 transforming... [2026-06-03T21:00:47.975Z] [DEPLOY] #38 94.05 ✓ 1 modules transformed. [2026-06-03T21:00:47.975Z] [DEPLOY] #38 94.06 rendering chunks... [2026-06-03T21:00:47.975Z] [DEPLOY] #38 94.07 computing gzip size... [2026-06-03T21:00:47.975Z] [DEPLOY] #38 94.08 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-03T21:00:47.975Z] [DEPLOY] #38 94.08 ✓ built in 2.33s [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 PWA v1.2.0 [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 mode injectManifest [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 format: es [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 precache 15 entries (4941.77 KiB) [2026-06-03T21:00:48.108Z] [DEPLOY] #38 94.37 files generated [2026-06-03T21:00:48.109Z] [DEPLOY] #38 94.37 dist/sw.js [2026-06-03T21:00:48.529Z] [DEPLOY] #38 DONE 94.8s [2026-06-03T21:00:55.317Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-03T21:00:55.318Z] [DEPLOY] #39 CACHED [2026-06-03T21:00:55.318Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-03T21:00:55.537Z] [DEPLOY] #40 CACHED [2026-06-03T21:00:55.537Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-03T21:00:55.537Z] [DEPLOY] #41 DONE 0.1s [2026-06-03T21:00:55.537Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-03T21:00:55.537Z] [DEPLOY] #42 exporting layers [2026-06-03T21:00:55.645Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-03T21:00:55.769Z] [DEPLOY] #42 exporting manifest sha256:3f774e31c9dd3d4f7751a680d24dc2e5422fae07d4b56d683bad718f71227c7c 0.0s done [2026-06-03T21:00:55.769Z] [DEPLOY] #42 exporting config sha256:82e249114bc682abff8aadc77dccdc3f5826b7cc946ff91a1da117cc1bd7725d done [2026-06-03T21:00:55.769Z] [DEPLOY] #42 exporting attestation manifest sha256:03d3a894b4715788005ac03b8bfa3def7cb0857f8fd61fa98207c2fcf36d0d29 0.0s done [2026-06-03T21:00:55.769Z] [DEPLOY] #42 exporting manifest list sha256:041c8f78b06f0c177aea889cb5a7877a04f7c1e7496054a4d1d274804f9c383f 0.0s done [2026-06-03T21:00:55.769Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-03T21:00:55.770Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-03T21:00:55.956Z] [DEPLOY] #42 DONE 0.4s [2026-06-03T21:00:55.975Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-03T21:00:55.990Z] [DEPLOY] #43 DONE 0.0s [2026-06-03T21:00:55.991Z] [STDERR] backend Built [2026-06-03T21:00:55.991Z] [STDERR] frontend Built [2026-06-03T21:00:56.006Z] [DEPLOY] [2026-06-03 21:00:56] ✓ New images built successfully [2026-06-03T21:00:56.007Z] [DEPLOY] [2026-06-03 21:00:56] STEP: Step 5/8: Running database migrations... [2026-06-03T21:00:56.009Z] [DEPLOY] [2026-06-03 21:00:56] Checking for pending migrations... [2026-06-03T21:00:56.010Z] [DEPLOY] [2026-06-03 21:00:56] Applying schema changes... [2026-06-03T21:00:58.636Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-03T21:00:58.690Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-03T21:00:59.399Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-03T21:00:59.456Z] [DEPLOY] npm notice [2026-06-03T21:00:59.456Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-03T21:00:59.456Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-03T21:00:59.456Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-03T21:00:59.456Z] [DEPLOY] npm notice [2026-06-03T21:00:59.820Z] [DEPLOY] [2026-06-03 21:00:59] ✓ Database schema already in sync [2026-06-03T21:00:59.824Z] [DEPLOY] [2026-06-03 21:00:59] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-03T21:00:59.827Z] [DEPLOY] [2026-06-03 21:00:59] Updating backend container... [2026-06-03T21:01:00.101Z] [STDERR] Container clicknex-redis Running [2026-06-03T21:01:00.101Z] [STDERR] Container clicknex-backend Recreate [2026-06-03T21:01:10.883Z] [STDERR] Container clicknex-backend Recreated [2026-06-03T21:01:10.945Z] [STDERR] Container clicknex-redis Waiting [2026-06-03T21:01:11.449Z] [STDERR] Container clicknex-redis Healthy [2026-06-03T21:01:11.449Z] [STDERR] Container clicknex-backend Starting [2026-06-03T21:01:11.764Z] [STDERR] Container clicknex-backend Started [2026-06-03T21:01:16.884Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-03T21:01:18.941Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-03T21:01:20.997Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-03T21:01:23.049Z] [DEPLOY] [2026-06-03 21:01:23] ✓ Backend health check passed (healthy) [2026-06-03T21:01:23.050Z] [DEPLOY] [2026-06-03 21:01:23] Updating frontend container... [2026-06-03T21:01:23.229Z] [STDERR] Container clicknex-frontend Recreate [2026-06-03T21:01:23.748Z] [STDERR] Container clicknex-frontend Recreated [2026-06-03T21:01:23.791Z] [STDERR] Container clicknex-frontend Starting [2026-06-03T21:01:24.053Z] [STDERR] Container clicknex-frontend Started [2026-06-03T21:01:24.062Z] [DEPLOY] [2026-06-03 21:01:24] ✓ New containers started [2026-06-03T21:01:24.063Z] [DEPLOY] [2026-06-03 21:01:24] STEP: Step 7/8: Running health checks... [2026-06-03T21:01:24.110Z] [DEPLOY] [2026-06-03 21:01:24] ✓ Backend health check passed (healthy) [2026-06-03T21:01:24.162Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-03T21:01:26.214Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-03T21:01:28.263Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-03T21:01:30.348Z] [DEPLOY] [2026-06-03 21:01:30] ✓ Frontend health check passed (healthy) [2026-06-03T21:01:30.354Z] [DEPLOY] [2026-06-03 21:01:30] ✓ All health checks passed [2026-06-03T21:01:30.357Z] [DEPLOY] [2026-06-03 21:01:30] STEP: Step 8/8: Cleaning up old resources... [2026-06-03T21:01:32.994Z] [DEPLOY] [2026-06-03 21:01:32] ✓ Cleanup completed (disco: ?%) [2026-06-03T21:01:32.995Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-03T21:01:32.995Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-03T21:01:32.995Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T21:01:32.998Z] [DEPLOY] ║ Commit: 6f3ed93 ║ [2026-06-03T21:01:32.999Z] [DEPLOY] ║ Time: 2026-06-03 21:01:32 ║ [2026-06-03T21:01:33.000Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-03T21:01:33.000Z] [DEPLOY] ║ Services: ║ [2026-06-03T21:01:33.000Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-03T21:01:33.000Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-03T21:01:33.001Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-03T21:01:33.003Z] [INFO] Deploy script encerrado com código: 0 [2026-06-03T21:01:33.008Z] [INFO] ====================================================== [2026-06-03T21:01:33.009Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.6 em 387s [2026-06-03T21:01:33.009Z] [INFO] ====================================================== [2026-06-06T03:41:46.307Z] [INFO] Deploy manual disparado (commit 2b2909d7) [2026-06-06T03:41:46.314Z] [INFO] ====================================================== [2026-06-06T03:41:46.315Z] [INFO] DEPLOY INICIADO — v1.0.7 [2026-06-06T03:41:46.315Z] [INFO] Commit: 2b2909d7ced2c5f0c80c89123100fb18a7eb7728 [2026-06-06T03:41:46.315Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-06T03:41:46.315Z] [INFO] Branch: main [2026-06-06T03:41:46.315Z] [INFO] Disparado por: jhon4than (CI) [2026-06-06T03:41:46.315Z] [INFO] ====================================================== [2026-06-06T03:41:46.316Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-06T03:41:46.316Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-06T03:41:46.350Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-06T03:41:46.352Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-06T03:41:46.352Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-06T03:41:46.355Z] [DEPLOY] [2026-06-06 03:41:46] STEP: Step 1/8: Pulling latest code from repository... [2026-06-06T03:41:48.395Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-06T03:41:48.395Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-06T03:41:48.396Z] [STDERR] 6f3ed93..2b2909d main -> origin/main [2026-06-06T03:41:48.551Z] [DEPLOY] [2026-06-06 03:41:48] Deploy do commit validado pelo CI: 2b2909d7ced2c5f0c80c89123100fb18a7eb7728 [2026-06-06T03:41:48.665Z] [STDERR] Reset branch 'main' [2026-06-06T03:41:48.667Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-06T03:41:48.669Z] [DEPLOY] [2026-06-06 03:41:48] ✓ Code updated to latest version [2026-06-06T03:41:48.671Z] [DEPLOY] [2026-06-06 03:41:48] STEP: Step 2/8: Backing up current state... [2026-06-06T03:41:48.672Z] [DEPLOY] [2026-06-06 03:41:48] STEP: Creating backup of current state... [2026-06-06T03:41:49.060Z] [DEPLOY] [2026-06-06 03:41:49] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-06T03:41:49.061Z] [DEPLOY] [2026-06-06 03:41:49] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-06T03:41:49.067Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-06T03:41:49.067Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-06T03:41:49.067Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-06T03:41:49.068Z] [DEPLOY] Database: saas_crm [2026-06-06T03:41:49.068Z] [DEPLOY] Host: localhost:5432 [2026-06-06T03:41:49.068Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz [2026-06-06T03:41:49.068Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-06T03:41:49.109Z] [STDERR] Unable to find image 'postgres:18-alpine' locally [2026-06-06T03:41:50.420Z] [STDERR] 18-alpine: [2026-06-06T03:41:50.421Z] [STDERR] Pulling from library/postgres [2026-06-06T03:41:50.862Z] [STDERR] 4e227c0c29b0: Pulling fs layer [2026-06-06T03:41:50.862Z] [STDERR] 6797fe14fc37: Pulling fs layer [2026-06-06T03:41:50.862Z] [STDERR] cb0e827e8389: Pulling fs layer [2026-06-06T03:41:50.862Z] [STDERR] 3771f4eeb917: Pulling fs layer [2026-06-06T03:41:50.862Z] [STDERR] 033acd588901: Pulling fs layer [2026-06-06T03:41:50.863Z] [STDERR] cb2ae37abf29: Pulling fs layer [2026-06-06T03:41:50.864Z] [STDERR] 56e975b78d08: Pulling fs layer [2026-06-06T03:41:50.866Z] [STDERR] 05f6e8830d21: Pulling fs layer [2026-06-06T03:41:51.163Z] [STDERR] 3771f4eeb917: Download complete [2026-06-06T03:41:51.270Z] [STDERR] 6797fe14fc37: Download complete [2026-06-06T03:41:51.368Z] [STDERR] 033acd588901: Download complete [2026-06-06T03:41:51.370Z] [STDERR] cb2ae37abf29: Download complete [2026-06-06T03:41:51.370Z] [STDERR] 56e975b78d08: Download complete [2026-06-06T03:41:51.372Z] [STDERR] 05f6e8830d21: Download complete [2026-06-06T03:41:51.373Z] [STDERR] cb0e827e8389: Download complete [2026-06-06T03:41:51.515Z] [STDERR] 6797fe14fc37: Pull complete [2026-06-06T03:41:51.771Z] [STDERR] b5d163238017: Download complete [2026-06-06T03:41:51.823Z] [STDERR] cb0e827e8389: Pull complete [2026-06-06T03:41:51.855Z] [STDERR] 981ab96b77ff: Download complete [2026-06-06T03:41:51.961Z] [STDERR] 3771f4eeb917: Pull complete [2026-06-06T03:41:57.548Z] [STDERR] 4e227c0c29b0: [2026-06-06T03:41:57.549Z] [STDERR] Download complete [2026-06-06T03:42:07.758Z] [STDERR] cb2ae37abf29: [2026-06-06T03:42:07.759Z] [STDERR] Pull complete [2026-06-06T03:42:07.779Z] [STDERR] 4e227c0c29b0: [2026-06-06T03:42:07.779Z] [STDERR] Pull complete [2026-06-06T03:42:07.851Z] [STDERR] 033acd588901: [2026-06-06T03:42:07.852Z] [STDERR] Pull complete [2026-06-06T03:42:07.858Z] [STDERR] 56e975b78d08: [2026-06-06T03:42:07.859Z] [STDERR] Pull complete [2026-06-06T03:42:07.880Z] [STDERR] 033acd588901: [2026-06-06T03:42:07.880Z] [STDERR] Pull complete [2026-06-06T03:42:07.888Z] [STDERR] 56e975b78d08: Pull complete [2026-06-06T03:42:07.893Z] [STDERR] 05f6e8830d21: Pull complete [2026-06-06T03:42:07.894Z] [STDERR] Digest: sha256:96d56f7f57c6aacd1fcb908bc83b345ec5f83231ee486dd66a1baadce274db88 [2026-06-06T03:42:07.894Z] [STDERR] Status: Downloaded newer image for postgres:18-alpine [2026-06-06T03:46:14.295Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz (2.6G) [2026-06-06T03:46:14.298Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-06T03:46:14.300Z] [DEPLOY] removendo antigo: backup_20260602_203350.sql.gz [2026-06-06T03:46:14.316Z] [DEPLOY] Current backups: [2026-06-06T03:46:14.320Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 14:36 /www/wwwroot/saas_crm/backups/database/backup_20260603_143203.sql.gz [2026-06-06T03:46:14.321Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 20:59 /www/wwwroot/saas_crm/backups/database/backup_20260603_205509.sql.gz [2026-06-06T03:46:14.322Z] [DEPLOY] -rw-r--r-- 1 root root 2.6G Jun 6 03:46 /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz [2026-06-06T03:46:14.325Z] [DEPLOY] Backup completed! [2026-06-06T03:46:14.327Z] [DEPLOY] [2026-06-06 03:46:14] ✓ Database backup completed [2026-06-06T03:46:14.332Z] [DEPLOY] [2026-06-06 03:46:14] STEP: Step 4/8: Building new Docker images... [2026-06-06T03:46:14.333Z] [DEPLOY] [2026-06-06 03:46:14] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-06T03:46:14.515Z] [DEPLOY] [2026-06-06 03:46:14] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-06T03:46:14.569Z] [DEPLOY] [2026-06-06 03:46:14] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-06T03:46:15.325Z] [STDERR] time="2026-06-06T03:46:15Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-06T03:46:15.762Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-06T03:46:15.762Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-06T03:46:15.762Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-06T03:46:15.763Z] [DEPLOY] #1 DONE 0.1s [2026-06-06T03:46:15.763Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-06T03:46:16.725Z] [DEPLOY] #2 DONE 1.0s [2026-06-06T03:46:16.865Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-06T03:46:16.865Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-06T03:46:17.047Z] [DEPLOY] #3 CACHED [2026-06-06T03:46:17.245Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-06T03:46:17.952Z] [DEPLOY] #4 DONE 0.7s [2026-06-06T03:46:18.066Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-06T03:46:18.066Z] [DEPLOY] #5 transferring context: 304B done [2026-06-06T03:46:18.067Z] [DEPLOY] #5 DONE 0.0s [2026-06-06T03:46:18.067Z] [DEPLOY] #6 [backend internal] load build context [2026-06-06T03:46:18.067Z] [DEPLOY] #6 DONE 0.0s [2026-06-06T03:46:18.067Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-06T03:46:18.067Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-06T03:46:18.067Z] [DEPLOY] #7 DONE 0.0s [2026-06-06T03:46:18.195Z] [DEPLOY] #6 [backend internal] load build context [2026-06-06T03:46:18.377Z] [DEPLOY] #6 transferring context: 337.87kB 0.3s done [2026-06-06T03:46:18.611Z] [DEPLOY] #6 DONE 0.3s [2026-06-06T03:46:18.611Z] [DEPLOY] #8 [backend builder 2/10] WORKDIR /app [2026-06-06T03:46:18.611Z] [DEPLOY] #8 CACHED [2026-06-06T03:46:18.611Z] [DEPLOY] #9 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-06T03:46:18.611Z] [DEPLOY] #9 CACHED [2026-06-06T03:46:18.611Z] [DEPLOY] #10 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-06T03:46:18.611Z] [DEPLOY] #10 CACHED [2026-06-06T03:46:18.611Z] [DEPLOY] #11 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-06T03:46:18.611Z] [DEPLOY] #11 CACHED [2026-06-06T03:46:18.611Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-06T03:46:18.612Z] [DEPLOY] #12 CACHED [2026-06-06T03:46:18.612Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-06T03:46:19.327Z] [DEPLOY] #13 DONE 0.9s [2026-06-06T03:46:19.481Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-06T03:46:22.938Z] [DEPLOY] #14 3.608 Prisma schema loaded from prisma/schema.prisma [2026-06-06T03:46:26.877Z] [DEPLOY] #14 7.547 [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.29s [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 Tip: Want to react to database changes in your app as they happen? Discover how with Pulse: https://pris.ly/tip-1-pulse [2026-06-06T03:46:26.878Z] [DEPLOY] #14 7.547 [2026-06-06T03:46:27.216Z] [DEPLOY] #14 DONE 7.9s [2026-06-06T03:46:27.367Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-06T03:46:28.041Z] [DEPLOY] #15 0.825 [2026-06-06T03:46:28.042Z] [DEPLOY] #15 0.825 > backend@0.0.1 build /app [2026-06-06T03:46:28.042Z] [DEPLOY] #15 0.825 > nest build [2026-06-06T03:46:28.042Z] [DEPLOY] #15 0.825 [2026-06-06T03:47:13.727Z] [DEPLOY] #15 DONE 46.5s [2026-06-06T03:47:13.889Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-06T03:47:14.114Z] [DEPLOY] #16 0.376 total 80 [2026-06-06T03:47:14.286Z] [DEPLOY] #16 0.377 drwxr-xr-x 6 root root 4096 Jun 6 03:47 . [2026-06-06T03:47:14.287Z] [DEPLOY] #16 0.377 drwxr-xr-x 4 root root 4096 Jun 6 03:47 .. [2026-06-06T03:47:14.287Z] [DEPLOY] #16 0.377 drwxr-xr-x 3 root root 4096 Jun 6 03:47 __mocks__ [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 181 Jun 6 03:46 app.controller.d.ts [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 1611 Jun 6 03:46 app.controller.js [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 436 Jun 6 03:46 app.controller.js.map [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 35 Jun 6 03:47 app.module.d.ts [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 8972 Jun 6 03:47 app.module.js [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 2525 Jun 6 03:47 app.module.js.map [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 60 Jun 6 03:46 app.service.d.ts [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 981 Jun 6 03:46 app.service.js [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 281 Jun 6 03:46 app.service.js.map [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 drwxr-xr-x 4 root root 4096 Jun 6 03:46 common [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 11 Jun 6 03:47 main.d.ts [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 2914 Jun 6 03:47 main.js [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 -rw-r--r-- 1 root root 2491 Jun 6 03:47 main.js.map [2026-06-06T03:47:14.288Z] [DEPLOY] #16 0.377 drwxr-xr-x 58 root root 4096 Jun 6 03:47 modules [2026-06-06T03:47:14.289Z] [DEPLOY] #16 0.377 drwxr-xr-x 2 root root 4096 Jun 6 03:46 prisma [2026-06-06T03:47:14.289Z] [DEPLOY] #16 DONE 0.4s [2026-06-06T03:47:23.401Z] [DEPLOY] #17 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-06T03:47:23.402Z] [DEPLOY] #17 CACHED [2026-06-06T03:47:23.402Z] [DEPLOY] #18 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-06T03:47:23.402Z] [DEPLOY] #18 CACHED [2026-06-06T03:47:23.402Z] [DEPLOY] #19 [backend production 7/12] COPY prisma ./prisma/ [2026-06-06T03:47:23.402Z] [DEPLOY] #19 CACHED [2026-06-06T03:47:23.402Z] [DEPLOY] #20 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-06T03:47:23.403Z] [DEPLOY] #20 CACHED [2026-06-06T03:47:23.403Z] [DEPLOY] #21 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-06T03:47:23.403Z] [DEPLOY] #21 CACHED [2026-06-06T03:47:23.403Z] [DEPLOY] #22 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-06T03:47:23.403Z] [DEPLOY] #22 CACHED [2026-06-06T03:47:23.403Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-06T03:47:23.563Z] [DEPLOY] #23 CACHED [2026-06-06T03:47:23.564Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-06T03:47:23.970Z] [DEPLOY] #24 DONE 0.6s [2026-06-06T03:47:24.125Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-06T03:47:24.260Z] [DEPLOY] #25 DONE 0.3s [2026-06-06T03:47:24.411Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-06T03:47:54.599Z] [DEPLOY] #26 DONE 30.3s [2026-06-06T03:47:54.773Z] [DEPLOY] #27 [backend] exporting to image [2026-06-06T03:47:54.773Z] [DEPLOY] #27 exporting layers [2026-06-06T03:48:13.579Z] [DEPLOY] #27 exporting layers 19.0s done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 exporting manifest sha256:240ce571e55708f93568b331cc3e1747077e3e5b072e024acd1a0a67ef7724df done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 exporting config sha256:0768c21ce6dd468545680d39ef336d6b59e44f3c14d179bf114245a2a47fce8f done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 exporting attestation manifest sha256:460770eca329489185177ecc23cb890ec379f73d5ef692768f2d3e37858b41c4 0.0s done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 exporting manifest list sha256:f0298e8a71a9815c5b7305adb97e277d0c80f6b32b573cd5afc728a66b2841ac 0.0s done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-06T03:48:13.793Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-06T03:48:21.174Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 7.5s done [2026-06-06T03:48:21.397Z] [DEPLOY] #27 DONE 26.6s [2026-06-06T03:48:21.514Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-06T03:48:21.627Z] [DEPLOY] #28 DONE 0.0s [2026-06-06T03:48:21.803Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-06T03:48:21.803Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-06T03:48:21.803Z] [DEPLOY] #29 DONE 0.0s [2026-06-06T03:48:21.803Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-06T03:48:22.154Z] [DEPLOY] #2 DONE 1.5s [2026-06-06T03:48:22.342Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-06T03:48:22.343Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-06T03:48:22.343Z] [DEPLOY] #3 CACHED [2026-06-06T03:48:22.455Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-06T03:48:22.940Z] [DEPLOY] #30 ... [2026-06-06T03:48:22.940Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-06T03:48:22.940Z] [DEPLOY] #4 DONE 1.2s [2026-06-06T03:48:23.091Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-06T03:48:23.353Z] [DEPLOY] #30 DONE 0.9s [2026-06-06T03:48:23.541Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-06T03:48:23.541Z] [DEPLOY] #31 transferring context: 194B done [2026-06-06T03:48:23.541Z] [DEPLOY] #31 DONE 0.0s [2026-06-06T03:48:24.196Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-06T03:48:24.197Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-06T03:48:24.197Z] [DEPLOY] #7 DONE 0.1s [2026-06-06T03:48:24.197Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-06T03:48:24.198Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-06T03:48:24.198Z] [DEPLOY] #32 DONE 0.1s [2026-06-06T03:48:24.198Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-06T03:48:24.199Z] [DEPLOY] #33 transferring context: 245.18kB 0.1s done [2026-06-06T03:48:24.380Z] [DEPLOY] #33 DONE 0.1s [2026-06-06T03:48:24.380Z] [DEPLOY] #34 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-06T03:48:24.380Z] [DEPLOY] #34 CACHED [2026-06-06T03:48:24.380Z] [DEPLOY] #8 [frontend builder 2/7] WORKDIR /app [2026-06-06T03:48:24.380Z] [DEPLOY] #8 CACHED [2026-06-06T03:48:24.380Z] [DEPLOY] #35 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-06T03:48:24.380Z] [DEPLOY] #35 CACHED [2026-06-06T03:48:24.380Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-06T03:48:24.380Z] [DEPLOY] #36 CACHED [2026-06-06T03:48:24.380Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-06T03:48:24.557Z] [DEPLOY] #37 DONE 0.3s [2026-06-06T03:48:24.710Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-06T03:48:25.344Z] [DEPLOY] #38 0.784 [2026-06-06T03:48:25.344Z] [DEPLOY] #38 0.784 > frontend@1.0.0 build /app [2026-06-06T03:48:25.347Z] [DEPLOY] #38 0.784 > tsc && vite build [2026-06-06T03:48:25.347Z] [DEPLOY] #38 0.784 [2026-06-06T03:49:24.136Z] [DEPLOY] #38 59.58 vite v5.4.21 building for production... [2026-06-06T03:49:25.069Z] [DEPLOY] #38 60.51 transforming... [2026-06-06T03:49:25.304Z] [DEPLOY] #38 60.59 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-06T03:49:25.304Z] [DEPLOY] #38 60.59 npx update-browserslist-db@latest [2026-06-06T03:49:25.304Z] [DEPLOY] #38 60.59 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-06T03:49:51.713Z] [DEPLOY] #38 87.15 ✓ 4326 modules transformed. [2026-06-06T03:49:53.886Z] [DEPLOY] #38 89.33 rendering chunks... [2026-06-06T03:49:58.430Z] [DEPLOY] #38 93.87 computing gzip size... [2026-06-06T03:49:58.560Z] [DEPLOY] #38 94.00 dist/registerSW.js 0.13 kB [2026-06-06T03:49:58.734Z] [DEPLOY] #38 94.00 dist/manifest.webmanifest 0.54 kB [2026-06-06T03:49:58.734Z] [DEPLOY] #38 94.00 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-06T03:49:58.734Z] [DEPLOY] #38 94.00 dist/assets/index-2PMsNwYe.css 163.19 kB │ gzip: 24.90 kB [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 dist/assets/index.es-CIQ2vqt5.js 150.69 kB │ gzip: 51.55 kB [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 dist/assets/index-Bin5O5Ni.js 4,153.04 kB │ gzip: 1,078.44 kB [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 - Using dynamic import() to code-split the application [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.00 ✓ built in 34.37s [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.02 [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.02 PWA v1.2.0 [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.02 Building src/sw.ts service worker ("es" format)... [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.02 vite v5.4.21 building for production... [2026-06-06T03:49:58.735Z] [DEPLOY] #38 94.02 transforming... [2026-06-06T03:50:01.004Z] [DEPLOY] #38 96.44 ✓ 1 modules transformed. [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.45 rendering chunks... [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.45 computing gzip size... [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.45 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.45 ✓ built in 2.44s [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 PWA v1.2.0 [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 mode injectManifest [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 format: es [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 precache 15 entries (4942.33 KiB) [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 files generated [2026-06-06T03:50:01.153Z] [DEPLOY] #38 96.59 dist/sw.js [2026-06-06T03:50:02.567Z] [DEPLOY] #38 DONE 98.0s [2026-06-06T03:50:06.769Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-06T03:50:06.774Z] [DEPLOY] #39 CACHED [2026-06-06T03:50:06.775Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-06T03:50:07.015Z] [DEPLOY] #40 CACHED [2026-06-06T03:50:07.016Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-06T03:50:07.016Z] [DEPLOY] #41 DONE 0.1s [2026-06-06T03:50:07.016Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-06T03:50:07.016Z] [DEPLOY] #42 exporting layers [2026-06-06T03:50:07.184Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-06T03:50:07.379Z] [DEPLOY] #42 exporting manifest sha256:3ca7dea31d5e3889e298402d30a773707b0dc8d4d7c5ce75412b4097ba539b62 0.0s done [2026-06-06T03:50:07.380Z] [DEPLOY] #42 exporting config sha256:59ecb07a9f5096d6c41be4af7387354578d3a640f937a4c783f21f09ac4055b4 0.0s done [2026-06-06T03:50:07.380Z] [DEPLOY] #42 exporting attestation manifest sha256:038f4363b00504dd45d1edfbd28d0a291ead585dabf57940bbef66a44edd5d73 0.0s done [2026-06-06T03:50:07.380Z] [DEPLOY] #42 exporting manifest list sha256:035a3251bb88c6dde904bad0b1e5584bf65998308be568d036e6ea2d482d2d9b done [2026-06-06T03:50:07.380Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-06T03:50:07.380Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-06T03:50:07.561Z] [DEPLOY] #42 DONE 0.5s [2026-06-06T03:50:07.619Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-06T03:50:07.636Z] [DEPLOY] #43 DONE 0.0s [2026-06-06T03:50:07.636Z] [STDERR] backend Built [2026-06-06T03:50:07.636Z] [STDERR] frontend Built [2026-06-06T03:50:07.657Z] [DEPLOY] [2026-06-06 03:50:07] ✓ New images built successfully [2026-06-06T03:50:07.664Z] [DEPLOY] [2026-06-06 03:50:07] STEP: Step 5/8: Running database migrations... [2026-06-06T03:50:07.666Z] [DEPLOY] [2026-06-06 03:50:07] Checking for pending migrations... [2026-06-06T03:50:07.668Z] [DEPLOY] [2026-06-06 03:50:07] Applying schema changes... [2026-06-06T03:50:11.202Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-06T03:50:11.254Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-06T03:50:11.972Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-06T03:50:12.044Z] [DEPLOY] npm notice [2026-06-06T03:50:12.044Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-06T03:50:12.044Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-06T03:50:12.044Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-06T03:50:12.044Z] [DEPLOY] npm notice [2026-06-06T03:50:12.390Z] [DEPLOY] [2026-06-06 03:50:12] ✓ Database schema already in sync [2026-06-06T03:50:12.394Z] [DEPLOY] [2026-06-06 03:50:12] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-06T03:50:12.395Z] [DEPLOY] [2026-06-06 03:50:12] Updating backend container... [2026-06-06T03:50:12.708Z] [STDERR] Container clicknex-redis Running [2026-06-06T03:50:12.709Z] [STDERR] Container clicknex-backend Recreate [2026-06-06T03:50:23.376Z] [STDERR] Container clicknex-backend Recreated [2026-06-06T03:50:23.411Z] [STDERR] Container clicknex-redis Waiting [2026-06-06T03:50:23.914Z] [STDERR] Container clicknex-redis Healthy [2026-06-06T03:50:23.914Z] [STDERR] Container clicknex-backend Starting [2026-06-06T03:50:24.198Z] [STDERR] Container clicknex-backend Started [2026-06-06T03:50:29.283Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-06T03:50:31.341Z] [DEPLOY] [2026-06-06 03:50:31] ✓ Backend health check passed (healthy) [2026-06-06T03:50:31.343Z] [DEPLOY] [2026-06-06 03:50:31] Updating frontend container... [2026-06-06T03:50:31.547Z] [STDERR] Container clicknex-frontend Recreate [2026-06-06T03:50:32.138Z] [STDERR] Container clicknex-frontend Recreated [2026-06-06T03:50:32.171Z] [STDERR] Container clicknex-frontend Starting [2026-06-06T03:50:32.423Z] [STDERR] Container clicknex-frontend Started [2026-06-06T03:50:32.434Z] [DEPLOY] [2026-06-06 03:50:32] ✓ New containers started [2026-06-06T03:50:32.435Z] [DEPLOY] [2026-06-06 03:50:32] STEP: Step 7/8: Running health checks... [2026-06-06T03:50:32.487Z] [DEPLOY] [2026-06-06 03:50:32] ✓ Backend health check passed (healthy) [2026-06-06T03:50:32.557Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-06T03:50:34.621Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-06T03:50:36.681Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-06T03:50:38.747Z] [DEPLOY] [2026-06-06 03:50:38] ✓ Frontend health check passed (healthy) [2026-06-06T03:50:38.749Z] [DEPLOY] [2026-06-06 03:50:38] ✓ All health checks passed [2026-06-06T03:50:38.751Z] [DEPLOY] [2026-06-06 03:50:38] STEP: Step 8/8: Cleaning up old resources... [2026-06-06T03:50:38.888Z] [DEPLOY] [2026-06-06 03:50:38] ✓ Cleanup completed (disco: ?%) [2026-06-06T03:50:38.889Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-06T03:50:38.889Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-06T03:50:38.889Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-06T03:50:38.895Z] [DEPLOY] ║ Commit: 2b2909d ║ [2026-06-06T03:50:38.897Z] [DEPLOY] ║ Time: 2026-06-06 03:50:38 ║ [2026-06-06T03:50:38.897Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-06T03:50:38.898Z] [DEPLOY] ║ Services: ║ [2026-06-06T03:50:38.898Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-06T03:50:38.898Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-06T03:50:38.898Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-06T03:50:38.901Z] [INFO] Deploy script encerrado com código: 0 [2026-06-06T03:50:38.902Z] [INFO] ====================================================== [2026-06-06T03:50:38.902Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.7 em 533s [2026-06-06T03:50:38.903Z] [INFO] ====================================================== [2026-06-09T19:19:17.652Z] [INFO] Deploy manual disparado (commit a74160ce) [2026-06-09T19:19:17.671Z] [INFO] ====================================================== [2026-06-09T19:19:17.674Z] [INFO] DEPLOY INICIADO — v1.0.8 [2026-06-09T19:19:17.674Z] [INFO] Commit: a74160cec3059ba6e0628fe63cef0d07cec0ef33 [2026-06-09T19:19:17.674Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-09T19:19:17.674Z] [INFO] Branch: main [2026-06-09T19:19:17.674Z] [INFO] Disparado por: jhon4than (CI) [2026-06-09T19:19:17.674Z] [INFO] ====================================================== [2026-06-09T19:19:17.676Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-09T19:19:17.676Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-09T19:19:17.713Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T19:19:17.713Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-09T19:19:17.713Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T19:19:17.715Z] [DEPLOY] [2026-06-09 19:19:17] STEP: Step 1/8: Pulling latest code from repository... [2026-06-09T19:19:19.722Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-09T19:19:19.722Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-09T19:19:19.722Z] [STDERR] 2b2909d..a74160c main -> origin/main [2026-06-09T19:19:19.815Z] [DEPLOY] [2026-06-09 19:19:19] Deploy do commit validado pelo CI: a74160cec3059ba6e0628fe63cef0d07cec0ef33 [2026-06-09T19:19:19.871Z] [STDERR] Reset branch 'main' [2026-06-09T19:19:19.873Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-09T19:19:19.875Z] [DEPLOY] [2026-06-09 19:19:19] ✓ Code updated to latest version [2026-06-09T19:19:19.878Z] [DEPLOY] [2026-06-09 19:19:19] STEP: Step 2/8: Backing up current state... [2026-06-09T19:19:19.878Z] [DEPLOY] [2026-06-09 19:19:19] STEP: Creating backup of current state... [2026-06-09T19:19:20.822Z] [DEPLOY] [2026-06-09 19:19:20] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-09T19:19:20.823Z] [DEPLOY] [2026-06-09 19:19:20] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-09T19:19:20.829Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-09T19:19:20.829Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-09T19:19:20.829Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-09T19:19:20.829Z] [DEPLOY] Database: saas_crm [2026-06-09T19:19:20.829Z] [DEPLOY] Host: localhost:5432 [2026-06-09T19:19:20.830Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz [2026-06-09T19:19:20.830Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-09T19:19:20.871Z] [STDERR] Unable to find image 'postgres:18-alpine' locally [2026-06-09T19:19:22.186Z] [STDERR] 18-alpine: [2026-06-09T19:19:22.186Z] [STDERR] Pulling from library/postgres [2026-06-09T19:19:22.742Z] [STDERR] 05f6e8830d21: Pulling fs layer [2026-06-09T19:19:22.743Z] [STDERR] 6797fe14fc37: Pulling fs layer [2026-06-09T19:19:22.743Z] [STDERR] cb0e827e8389: Pulling fs layer [2026-06-09T19:19:22.743Z] [STDERR] 3771f4eeb917: Pulling fs layer [2026-06-09T19:19:22.744Z] [STDERR] cb2ae37abf29: Pulling fs layer [2026-06-09T19:19:22.744Z] [STDERR] 033acd588901: Pulling fs layer [2026-06-09T19:19:22.744Z] [STDERR] 56e975b78d08: Pulling fs layer [2026-06-09T19:19:22.745Z] [STDERR] 4e227c0c29b0: Pulling fs layer [2026-06-09T19:19:22.998Z] [STDERR] 56e975b78d08: Download complete [2026-06-09T19:19:23.002Z] [STDERR] 05f6e8830d21: Download complete [2026-06-09T19:19:23.095Z] [STDERR] 6797fe14fc37: Download complete [2026-06-09T19:19:23.096Z] [STDERR] cb0e827e8389: Download complete [2026-06-09T19:19:23.207Z] [STDERR] cb2ae37abf29: Download complete [2026-06-09T19:19:23.208Z] [STDERR] 033acd588901: Download complete [2026-06-09T19:19:23.209Z] [STDERR] 3771f4eeb917: Download complete [2026-06-09T19:19:23.279Z] [STDERR] 6797fe14fc37: Pull complete [2026-06-09T19:19:23.491Z] [STDERR] b5d163238017: Download complete [2026-06-09T19:19:23.554Z] [STDERR] cb0e827e8389: Pull complete [2026-06-09T19:19:23.610Z] [STDERR] 981ab96b77ff: Download complete [2026-06-09T19:19:23.761Z] [STDERR] 3771f4eeb917: Pull complete [2026-06-09T19:19:25.496Z] [STDERR] 4e227c0c29b0: Download complete [2026-06-09T19:19:33.535Z] [STDERR] 4e227c0c29b0: Pull complete [2026-06-09T19:19:33.608Z] [STDERR] 56e975b78d08: Pull complete [2026-06-09T19:19:33.642Z] [STDERR] cb2ae37abf29: Pull complete [2026-06-09T19:19:33.658Z] [STDERR] 033acd588901: Pull complete [2026-06-09T19:19:33.703Z] [STDERR] 05f6e8830d21: Pull complete [2026-06-09T19:19:33.770Z] [STDERR] Digest: sha256:96d56f7f57c6aacd1fcb908bc83b345ec5f83231ee486dd66a1baadce274db88 [2026-06-09T19:19:33.771Z] [STDERR] Status: Downloaded newer image for postgres:18-alpine [2026-06-09T19:24:43.390Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz (2.9G) [2026-06-09T19:24:43.394Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-09T19:24:43.399Z] [DEPLOY] removendo antigo: backup_20260603_143203.sql.gz [2026-06-09T19:24:43.413Z] [DEPLOY] Current backups: [2026-06-09T19:24:43.416Z] [DEPLOY] -rw-r--r-- 1 root root 2.5G Jun 3 20:59 /www/wwwroot/saas_crm/backups/database/backup_20260603_205509.sql.gz [2026-06-09T19:24:43.416Z] [DEPLOY] -rw-r--r-- 1 root root 2.6G Jun 6 03:46 /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz [2026-06-09T19:24:43.416Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 19:24 /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz [2026-06-09T19:24:43.417Z] [DEPLOY] Backup completed! [2026-06-09T19:24:43.418Z] [DEPLOY] [2026-06-09 19:24:43] ✓ Database backup completed [2026-06-09T19:24:43.419Z] [DEPLOY] [2026-06-09 19:24:43] STEP: Step 4/8: Building new Docker images... [2026-06-09T19:24:43.420Z] [DEPLOY] [2026-06-09 19:24:43] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-09T19:24:43.587Z] [DEPLOY] [2026-06-09 19:24:43] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-09T19:24:43.648Z] [DEPLOY] [2026-06-09 19:24:43] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-09T19:24:44.653Z] [STDERR] time="2026-06-09T19:24:44Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-09T19:24:45.043Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-09T19:24:45.043Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-09T19:24:45.044Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-09T19:24:45.045Z] [DEPLOY] #1 DONE 0.1s [2026-06-09T19:24:45.045Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T19:24:45.969Z] [DEPLOY] #2 DONE 0.9s [2026-06-09T19:24:46.187Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T19:24:46.188Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-09T19:24:46.188Z] [DEPLOY] #3 CACHED [2026-06-09T19:24:46.538Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T19:24:47.263Z] [DEPLOY] #4 DONE 0.7s [2026-06-09T19:24:47.368Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-09T19:24:47.368Z] [DEPLOY] #5 transferring context: 304B done [2026-06-09T19:24:47.369Z] [DEPLOY] #5 DONE 0.1s [2026-06-09T19:24:47.591Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T19:24:47.591Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T19:24:47.591Z] [DEPLOY] #6 DONE 0.1s [2026-06-09T19:24:47.591Z] [DEPLOY] #7 [backend internal] load build context [2026-06-09T19:24:47.928Z] [DEPLOY] #7 transferring context: 320.40kB 0.3s done [2026-06-09T19:24:48.030Z] [DEPLOY] #7 DONE 0.4s [2026-06-09T19:24:48.031Z] [DEPLOY] #8 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-09T19:24:48.031Z] [DEPLOY] #8 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #9 [backend builder 2/10] WORKDIR /app [2026-06-09T19:24:48.031Z] [DEPLOY] #9 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #10 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-09T19:24:48.031Z] [DEPLOY] #10 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #11 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T19:24:48.031Z] [DEPLOY] #11 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #12 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-09T19:24:48.031Z] [DEPLOY] #12 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #13 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T19:24:48.031Z] [DEPLOY] #13 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #14 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-09T19:24:48.031Z] [DEPLOY] #14 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #15 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-09T19:24:48.031Z] [DEPLOY] #15 CACHED [2026-06-09T19:24:48.031Z] [DEPLOY] #16 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T19:24:48.189Z] [DEPLOY] #16 ... [2026-06-09T19:24:48.189Z] [DEPLOY] #17 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T19:24:48.189Z] [DEPLOY] #17 CACHED [2026-06-09T19:24:48.287Z] [DEPLOY] #16 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T19:24:48.287Z] [DEPLOY] #16 DONE 0.3s [2026-06-09T19:24:48.287Z] [DEPLOY] #18 [backend builder 7/10] COPY . . [2026-06-09T19:24:49.324Z] [DEPLOY] #18 DONE 1.3s [2026-06-09T19:24:49.325Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-09T19:24:51.070Z] [DEPLOY] #19 2.780 Lockfile is up to date, resolution step is skipped [2026-06-09T19:24:51.271Z] [DEPLOY] #19 2.867 Progress: resolved 1, reused 0, downloaded 0, added 0 [2026-06-09T19:24:51.271Z] [DEPLOY] #19 2.981 Packages: +232 [2026-06-09T19:24:51.271Z] [DEPLOY] #19 2.981 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 ╭──────────────────────────────────────────────╮ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 │ │ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 │ Update available! 10.25.0 → 11.5.2. │ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 │ Changelog: https://pnpm.io/v/11.5.2 │ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 │ To update, run: corepack use pnpm@11.5.2 │ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 │ │ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 ╰──────────────────────────────────────────────╯ [2026-06-09T19:24:51.513Z] [DEPLOY] #19 3.223 [2026-06-09T19:24:52.161Z] [DEPLOY] #19 3.871 Progress: resolved 232, reused 12, downloaded 0, added 0 [2026-06-09T19:24:53.161Z] [DEPLOY] #19 4.871 Progress: resolved 232, reused 20, downloaded 0, added 0 [2026-06-09T19:24:54.161Z] [DEPLOY] #19 5.871 Progress: resolved 232, reused 164, downloaded 0, added 0 [2026-06-09T19:24:55.161Z] [DEPLOY] #19 6.871 Progress: resolved 232, reused 232, downloaded 0, added 12 [2026-06-09T19:24:56.164Z] [DEPLOY] #19 7.873 Progress: resolved 232, reused 232, downloaded 0, added 15 [2026-06-09T19:24:57.166Z] [DEPLOY] #19 8.876 Progress: resolved 232, reused 232, downloaded 0, added 19 [2026-06-09T19:24:58.167Z] [DEPLOY] #19 9.877 Progress: resolved 232, reused 232, downloaded 0, added 20 [2026-06-09T19:24:59.319Z] [DEPLOY] #19 10.88 Progress: resolved 232, reused 232, downloaded 0, added 22 [2026-06-09T19:24:59.470Z] [DEPLOY] #19 ... [2026-06-09T19:24:59.470Z] [DEPLOY] #20 [backend builder 8/10] RUN pnpm prisma generate [2026-06-09T19:24:59.470Z] [DEPLOY] #20 3.713 Prisma schema loaded from prisma/schema.prisma [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 3.71s [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-09T19:24:59.470Z] [DEPLOY] #20 9.819 [2026-06-09T19:24:59.552Z] [DEPLOY] #20 DONE 10.2s [2026-06-09T19:24:59.552Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-09T19:24:59.709Z] [DEPLOY] #19 ... [2026-06-09T19:24:59.723Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T19:25:01.963Z] [DEPLOY] #21 2.407 [2026-06-09T19:25:01.965Z] [DEPLOY] #21 2.407 > backend@0.0.1 build /app [2026-06-09T19:25:01.965Z] [DEPLOY] #21 2.407 > nest build [2026-06-09T19:25:01.965Z] [DEPLOY] #21 2.407 [2026-06-09T19:25:06.098Z] [DEPLOY] #21 ... [2026-06-09T19:25:06.098Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-09T19:25:06.098Z] [DEPLOY] #19 11.88 Progress: resolved 232, reused 232, downloaded 0, added 27 [2026-06-09T19:25:06.098Z] [DEPLOY] #19 13.50 Progress: resolved 232, reused 232, downloaded 0, added 28 [2026-06-09T19:25:06.098Z] [DEPLOY] #19 14.50 Progress: resolved 232, reused 232, downloaded 0, added 50 [2026-06-09T19:25:06.098Z] [DEPLOY] #19 15.50 Progress: resolved 232, reused 232, downloaded 0, added 116 [2026-06-09T19:25:06.098Z] [DEPLOY] #19 16.51 Progress: resolved 232, reused 232, downloaded 0, added 147 [2026-06-09T19:25:06.098Z] [DEPLOY] #19 17.51 Progress: resolved 232, reused 232, downloaded 0, added 161 [2026-06-09T19:25:06.796Z] [DEPLOY] #19 18.51 Progress: resolved 232, reused 232, downloaded 0, added 197 [2026-06-09T19:25:07.797Z] [DEPLOY] #19 19.51 Progress: resolved 232, reused 232, downloaded 0, added 212 [2026-06-09T19:25:08.829Z] [DEPLOY] #19 20.54 Progress: resolved 232, reused 232, downloaded 0, added 213 [2026-06-09T19:25:09.503Z] [DEPLOY] #19 21.21 Progress: resolved 232, reused 232, downloaded 0, added 232, done [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 dependencies: [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/common 11.1.9 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/config 4.0.2 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/core 11.1.9 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/event-emitter 3.1.0 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/jwt 11.0.2 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/passport 11.0.5 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/platform-express 11.1.9 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/schedule 6.1.0 [2026-06-09T19:25:10.369Z] [DEPLOY] #19 22.08 + @nestjs/serve-static 5.0.4 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + @nestjs/swagger 11.2.3 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + @nestjs/throttler 6.5.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + @prisma/client 5.22.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + @sendgrid/mail 8.1.6 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + adm-zip 0.5.16 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + argon2 0.44.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + axios 1.13.2 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + class-transformer 0.5.1 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + class-validator 0.14.3 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + compression 1.8.1 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + express 5.1.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + form-data 4.0.5 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + helmet 8.1.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + multer 2.0.2 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + passport 0.7.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + passport-jwt 4.0.1 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + pdf-parse 2.4.5 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + pdf2pic 3.2.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + prisma 5.22.0 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + reflect-metadata 0.2.2 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + rxjs 7.8.2 [2026-06-09T19:25:10.370Z] [DEPLOY] #19 22.08 + sharp 0.34.5 [2026-06-09T19:25:10.371Z] [DEPLOY] #19 22.08 + stripe 22.1.0 [2026-06-09T19:25:10.371Z] [DEPLOY] #19 22.08 + swagger-ui-express 5.0.1 [2026-06-09T19:25:10.371Z] [DEPLOY] #19 22.08 + uuid 13.0.0 [2026-06-09T19:25:10.371Z] [DEPLOY] #19 22.08 + web-push 3.6.7 [2026-06-09T19:25:10.371Z] [DEPLOY] #19 22.08 + xlsx 0.18.5 [2026-06-09T19:25:10.372Z] [DEPLOY] #19 22.08 [2026-06-09T19:25:10.372Z] [DEPLOY] #19 22.08 devDependencies: skipped [2026-06-09T19:25:10.372Z] [DEPLOY] #19 22.08 [2026-06-09T19:25:10.614Z] [DEPLOY] #19 22.15 ╭ Warning ─────────────────────────────────────────────────────────────────────╮ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ Ignored build scripts: @nestjs/core@11.1.9, @prisma/client@5.22.0, │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ @prisma/engines@5.22.0, @scarf/scarf@1.4.0, argon2@0.44.0, │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ prisma@5.22.0. │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ Run "pnpm approve-builds" to pick which dependencies should be allowed │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ to run scripts. │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 │ │ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.15 ╰──────────────────────────────────────────────────────────────────────────────╯ [2026-06-09T19:25:10.615Z] [DEPLOY] #19 22.17 Done in 20.3s using pnpm v10.25.0 [2026-06-09T19:25:10.627Z] [DEPLOY] #19 DONE 22.3s [2026-06-09T19:25:10.627Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T19:25:10.786Z] [DEPLOY] #21 ... [2026-06-09T19:25:10.786Z] [DEPLOY] #22 [backend production 9/12] RUN pnpm prisma generate [2026-06-09T19:25:14.640Z] [DEPLOY] #22 4.009 Prisma schema loaded from prisma/schema.prisma [2026-06-09T19:25:26.066Z] [DEPLOY] #22 15.44 [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 7.26s [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse [2026-06-09T19:25:26.067Z] [DEPLOY] #22 15.44 [2026-06-09T19:25:26.494Z] [DEPLOY] #22 DONE 15.9s [2026-06-09T19:25:26.494Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T19:25:58.444Z] [DEPLOY] #21 DONE 58.9s [2026-06-09T19:25:58.605Z] [DEPLOY] #23 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 total 80 [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 6 root root 4096 Jun 9 19:25 . [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 4 root root 4096 Jun 9 19:25 .. [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 3 root root 4096 Jun 9 19:25 __mocks__ [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 181 Jun 9 19:25 app.controller.d.ts [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 1611 Jun 9 19:25 app.controller.js [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 436 Jun 9 19:25 app.controller.js.map [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 35 Jun 9 19:25 app.module.d.ts [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 8972 Jun 9 19:25 app.module.js [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 2525 Jun 9 19:25 app.module.js.map [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 60 Jun 9 19:25 app.service.d.ts [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 981 Jun 9 19:25 app.service.js [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 281 Jun 9 19:25 app.service.js.map [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 4 root root 4096 Jun 9 19:25 common [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 11 Jun 9 19:25 main.d.ts [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 2914 Jun 9 19:25 main.js [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 -rw-r--r-- 1 root root 2491 Jun 9 19:25 main.js.map [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 58 root root 4096 Jun 9 19:25 modules [2026-06-09T19:25:58.748Z] [DEPLOY] #23 0.294 drwxr-xr-x 2 root root 4096 Jun 9 19:25 prisma [2026-06-09T19:25:58.911Z] [DEPLOY] #23 DONE 0.3s [2026-06-09T19:26:07.340Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-09T19:26:07.676Z] [DEPLOY] #24 DONE 0.3s [2026-06-09T19:26:07.829Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-09T19:26:08.088Z] [DEPLOY] #25 DONE 0.4s [2026-06-09T19:26:08.242Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-09T19:26:55.929Z] [DEPLOY] #26 DONE 47.8s [2026-06-09T19:26:56.102Z] [DEPLOY] #27 [backend] exporting to image [2026-06-09T19:26:56.102Z] [DEPLOY] #27 exporting layers [2026-06-09T19:27:20.437Z] [DEPLOY] #27 exporting layers 24.5s done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 exporting manifest sha256:25046c093c266fce35f5682175ea0109500ebd88e4f96a50c6bdc066eaa3aa65 0.0s done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 exporting config sha256:7021ffdf62318640614f65506488f7710786eb57605a068b7b732da9f36db404 0.0s done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 exporting attestation manifest sha256:47eac3fe7ded2ae3450a3071dad8a576f58e6832601d86ec94bf6c6bc73e0714 0.0s done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 exporting manifest list sha256:2a27c2a7c02a9bba53232674c3089ca4f50161c3f2a7df504be1cc669025a7c8 done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-09T19:27:20.664Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-09T19:27:33.564Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 13.1s done [2026-06-09T19:27:33.773Z] [DEPLOY] #27 DONE 37.7s [2026-06-09T19:27:33.898Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-09T19:27:34.039Z] [DEPLOY] #28 DONE 0.0s [2026-06-09T19:27:34.254Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-09T19:27:34.255Z] [DEPLOY] #29 transferring dockerfile: 1.38kB 0.0s done [2026-06-09T19:27:34.256Z] [DEPLOY] #29 DONE 0.0s [2026-06-09T19:27:34.258Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T19:27:34.616Z] [DEPLOY] #2 DONE 1.4s [2026-06-09T19:27:34.813Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T19:27:34.813Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T19:27:34.813Z] [DEPLOY] #3 CACHED [2026-06-09T19:27:34.890Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T19:27:35.519Z] [DEPLOY] #4 DONE 1.4s [2026-06-09T19:27:35.519Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T19:27:35.794Z] [DEPLOY] #30 DONE 0.9s [2026-06-09T19:27:35.978Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T19:27:35.978Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T19:27:35.978Z] [DEPLOY] #31 DONE 0.0s [2026-06-09T19:27:36.498Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T19:27:36.498Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T19:27:36.499Z] [DEPLOY] #6 DONE 0.1s [2026-06-09T19:27:36.499Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T19:27:36.499Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-09T19:27:36.499Z] [DEPLOY] #32 DONE 0.1s [2026-06-09T19:27:36.499Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T19:27:36.499Z] [DEPLOY] #33 transferring context: 161.61kB 0.1s done [2026-06-09T19:27:36.690Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T19:27:36.690Z] [DEPLOY] #9 [frontend builder 2/7] WORKDIR /app [2026-06-09T19:27:36.690Z] [DEPLOY] #9 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T19:27:36.690Z] [DEPLOY] #34 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T19:27:36.690Z] [DEPLOY] #35 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T19:27:36.690Z] [DEPLOY] #36 CACHED [2026-06-09T19:27:36.690Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T19:27:36.930Z] [DEPLOY] #37 DONE 0.4s [2026-06-09T19:27:37.084Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T19:27:38.032Z] [DEPLOY] #38 1.099 [2026-06-09T19:27:38.032Z] [DEPLOY] #38 1.099 > frontend@1.0.0 build /app [2026-06-09T19:27:38.033Z] [DEPLOY] #38 1.099 > tsc && vite build [2026-06-09T19:27:38.033Z] [DEPLOY] #38 1.099 [2026-06-09T19:28:33.992Z] [DEPLOY] #38 57.06 vite v5.4.21 building for production... [2026-06-09T19:28:34.713Z] [DEPLOY] #38 57.78 transforming... [2026-06-09T19:28:34.959Z] [DEPLOY] #38 57.88 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T19:28:34.960Z] [DEPLOY] #38 57.88 npx update-browserslist-db@latest [2026-06-09T19:28:34.960Z] [DEPLOY] #38 57.88 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T19:29:00.495Z] [DEPLOY] #38 83.56 ✓ 4326 modules transformed. [2026-06-09T19:29:03.061Z] [DEPLOY] #38 86.13 rendering chunks... [2026-06-09T19:29:06.769Z] [DEPLOY] #38 89.84 computing gzip size... [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/registerSW.js 0.13 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/manifest.webmanifest 0.54 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T19:29:06.897Z] [DEPLOY] #38 89.96 dist/assets/index-BauOmW2f.css 163.28 kB │ gzip: 24.92 kB [2026-06-09T19:29:07.070Z] [DEPLOY] #38 89.96 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/index.es-29t7SuDD.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 dist/assets/index-BrsdOQe_.js 4,159.38 kB │ gzip: 1,079.93 kB [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Using dynamic import() to code-split the application [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.96 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.97 ✓ built in 32.87s [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 PWA v1.2.0 [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 Building src/sw.ts service worker ("es" format)... [2026-06-09T19:29:07.071Z] [DEPLOY] #38 89.99 vite v5.4.21 building for production... [2026-06-09T19:29:09.094Z] [DEPLOY] #38 92.16 transforming... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.17 ✓ 1 modules transformed. [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.18 rendering chunks... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.18 computing gzip size... [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.19 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T19:29:09.271Z] [DEPLOY] #38 92.19 ✓ built in 2.21s [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 PWA v1.2.0 [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 mode injectManifest [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 format: es [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 precache 15 entries (4948.65 KiB) [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 files generated [2026-06-09T19:29:09.311Z] [DEPLOY] #38 92.38 dist/sw.js [2026-06-09T19:29:09.819Z] [DEPLOY] #38 DONE 92.9s [2026-06-09T19:29:14.249Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T19:29:14.251Z] [DEPLOY] #39 CACHED [2026-06-09T19:29:14.251Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T19:29:14.353Z] [DEPLOY] #40 CACHED [2026-06-09T19:29:14.353Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T19:29:14.353Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T19:29:14.515Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T19:29:14.515Z] [DEPLOY] #42 exporting layers [2026-06-09T19:29:14.612Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-09T19:29:14.786Z] [DEPLOY] #42 exporting manifest sha256:10d3bb22210199b63293a084aa7aa1cd869f69e7665810a579870f9bff1585cf 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting config sha256:b05cfa16dfb991d5993d8d807dc0aa7d53c38441aba6361a0aebd4305cdd5b75 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting attestation manifest sha256:08a3c1ef6e31cfe9d43bc5c1777d761d8948a09f2bf5710cf40ebbd299eb3ac5 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 exporting manifest list sha256:896eba86eac348add40bae9a87b639ac38e9785723bbc31a42719475c63886d5 0.0s done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T19:29:14.787Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-09T19:29:14.984Z] [DEPLOY] #42 DONE 0.5s [2026-06-09T19:29:15.136Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T19:29:15.156Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T19:29:15.156Z] [STDERR] backend Built [2026-06-09T19:29:15.156Z] [STDERR] frontend Built [2026-06-09T19:29:15.188Z] [DEPLOY] [2026-06-09 19:29:15] ✓ New images built successfully [2026-06-09T19:29:15.190Z] [DEPLOY] [2026-06-09 19:29:15] STEP: Step 5/8: Running database migrations... [2026-06-09T19:29:15.190Z] [DEPLOY] [2026-06-09 19:29:15] Checking for pending migrations... [2026-06-09T19:29:15.192Z] [DEPLOY] [2026-06-09 19:29:15] Applying schema changes... [2026-06-09T19:29:18.388Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T19:29:18.432Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T19:29:19.059Z] [DEPLOY] 🚀 Your database is now in sync with your Prisma schema. Done in 517ms [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T19:29:19.116Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T19:29:19.117Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T19:29:19.117Z] [DEPLOY] npm notice [2026-06-09T19:29:19.412Z] [DEPLOY] [2026-06-09 19:29:19] ✓ Database schema synced successfully [2026-06-09T19:29:19.413Z] [DEPLOY] [2026-06-09 19:29:19] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T19:29:19.414Z] [DEPLOY] [2026-06-09 19:29:19] Updating backend container... [2026-06-09T19:29:19.660Z] [STDERR] Container clicknex-redis Running [2026-06-09T19:29:19.661Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T19:29:30.327Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T19:29:30.413Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T19:29:30.917Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T19:29:30.917Z] [STDERR] Container clicknex-backend Starting [2026-06-09T19:29:31.262Z] [STDERR] Container clicknex-backend Started [2026-06-09T19:29:36.359Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T19:29:38.494Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-09T19:29:40.634Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-09T19:29:42.699Z] [DEPLOY] [2026-06-09 19:29:42] ✓ Backend health check passed (healthy) [2026-06-09T19:29:42.702Z] [DEPLOY] [2026-06-09 19:29:42] Updating frontend container... [2026-06-09T19:29:43.079Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T19:29:43.662Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T19:29:43.730Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T19:29:44.116Z] [STDERR] Container clicknex-frontend Started [2026-06-09T19:29:44.159Z] [DEPLOY] [2026-06-09 19:29:44] ✓ New containers started [2026-06-09T19:29:44.171Z] [DEPLOY] [2026-06-09 19:29:44] STEP: Step 7/8: Running health checks... [2026-06-09T19:29:44.264Z] [DEPLOY] [2026-06-09 19:29:44] ✓ Backend health check passed (healthy) [2026-06-09T19:29:44.310Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T19:29:46.394Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T19:29:48.471Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T19:29:50.553Z] [DEPLOY] [2026-06-09 19:29:50] ✓ Frontend health check passed (healthy) [2026-06-09T19:29:50.559Z] [DEPLOY] [2026-06-09 19:29:50] ✓ All health checks passed [2026-06-09T19:29:50.560Z] [DEPLOY] [2026-06-09 19:29:50] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T19:29:50.677Z] [DEPLOY] [2026-06-09 19:29:50] ✓ Cleanup completed (disco: ?%) [2026-06-09T19:29:50.678Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T19:29:50.678Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T19:29:50.678Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T19:29:50.680Z] [DEPLOY] ║ Commit: a74160c ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ Time: 2026-06-09 19:29:50 ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ Services: ║ [2026-06-09T19:29:50.681Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T19:29:50.682Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T19:29:50.682Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T19:29:50.686Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T19:29:50.688Z] [INFO] ====================================================== [2026-06-09T19:29:50.689Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.8 em 633s [2026-06-09T19:29:50.689Z] [INFO] ====================================================== [2026-06-09T20:11:22.657Z] [INFO] Deploy manual disparado (commit be4b30b9) [2026-06-09T20:11:22.659Z] [INFO] ====================================================== [2026-06-09T20:11:22.660Z] [INFO] DEPLOY INICIADO — v1.0.9 [2026-06-09T20:11:22.660Z] [INFO] Commit: be4b30b9e4acd32c614486edf5091cb9fb13f849 [2026-06-09T20:11:22.660Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-09T20:11:22.660Z] [INFO] Branch: main [2026-06-09T20:11:22.660Z] [INFO] Disparado por: jhon4than (CI) [2026-06-09T20:11:22.660Z] [INFO] ====================================================== [2026-06-09T20:11:22.660Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-09T20:11:22.660Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-09T20:11:22.669Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T20:11:22.670Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-09T20:11:22.670Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T20:11:22.671Z] [DEPLOY] [2026-06-09 20:11:22] STEP: Step 1/8: Pulling latest code from repository... [2026-06-09T20:11:24.503Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-09T20:11:24.503Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-09T20:11:24.504Z] [STDERR] a74160c..be4b30b main -> origin/main [2026-06-09T20:11:24.531Z] [DEPLOY] [2026-06-09 20:11:24] Deploy do commit validado pelo CI: be4b30b9e4acd32c614486edf5091cb9fb13f849 [2026-06-09T20:11:24.562Z] [STDERR] Reset branch 'main' [2026-06-09T20:11:24.563Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-09T20:11:24.567Z] [DEPLOY] [2026-06-09 20:11:24] ✓ Code updated to latest version [2026-06-09T20:11:24.569Z] [DEPLOY] [2026-06-09 20:11:24] STEP: Step 2/8: Backing up current state... [2026-06-09T20:11:24.570Z] [DEPLOY] [2026-06-09 20:11:24] STEP: Creating backup of current state... [2026-06-09T20:11:25.125Z] [DEPLOY] [2026-06-09 20:11:25] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-09T20:11:25.131Z] [DEPLOY] [2026-06-09 20:11:25] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-09T20:11:25.140Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-09T20:11:25.140Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-09T20:11:25.145Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-09T20:11:25.145Z] [DEPLOY] Database: saas_crm [2026-06-09T20:11:25.146Z] [DEPLOY] Host: localhost:5432 [2026-06-09T20:11:25.146Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-09T20:11:25.146Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-09T20:17:03.464Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz (2.9G) [2026-06-09T20:17:03.468Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-09T20:17:03.476Z] [DEPLOY] removendo antigo: backup_20260603_205509.sql.gz [2026-06-09T20:17:03.490Z] [DEPLOY] Current backups: [2026-06-09T20:17:03.497Z] [DEPLOY] -rw-r--r-- 1 root root 2.6G Jun 6 03:46 /www/wwwroot/saas_crm/backups/database/backup_20260606_034149.sql.gz [2026-06-09T20:17:03.498Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 19:24 /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz [2026-06-09T20:17:03.498Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 20:17 /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-09T20:17:03.499Z] [DEPLOY] Backup completed! [2026-06-09T20:17:03.501Z] [DEPLOY] [2026-06-09 20:17:03] ✓ Database backup completed [2026-06-09T20:17:03.507Z] [DEPLOY] [2026-06-09 20:17:03] STEP: Step 4/8: Building new Docker images... [2026-06-09T20:17:03.509Z] [DEPLOY] [2026-06-09 20:17:03] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-09T20:17:03.968Z] [DEPLOY] [2026-06-09 20:17:03] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-09T20:17:04.104Z] [DEPLOY] [2026-06-09 20:17:04] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-09T20:17:04.284Z] [STDERR] time="2026-06-09T20:17:04Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-09T20:17:04.511Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-09T20:17:04.511Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-09T20:17:04.685Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-09T20:17:04.685Z] [DEPLOY] #1 DONE 0.0s [2026-06-09T20:17:04.686Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T20:17:05.376Z] [DEPLOY] #2 DONE 0.8s [2026-06-09T20:17:05.592Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T20:17:05.592Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-09T20:17:05.592Z] [DEPLOY] #3 CACHED [2026-06-09T20:17:05.872Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T20:17:06.692Z] [DEPLOY] #4 DONE 0.8s [2026-06-09T20:17:06.796Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-09T20:17:06.796Z] [DEPLOY] #5 transferring context: 304B 0.0s done [2026-06-09T20:17:06.796Z] [DEPLOY] #5 DONE 0.0s [2026-06-09T20:17:06.796Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T20:17:06.796Z] [DEPLOY] #6 DONE 0.0s [2026-06-09T20:17:06.796Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T20:17:06.796Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T20:17:06.797Z] [DEPLOY] #7 DONE 0.0s [2026-06-09T20:17:06.949Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T20:17:07.199Z] [DEPLOY] #6 transferring context: 166.13kB 0.2s done [2026-06-09T20:17:07.199Z] [DEPLOY] #6 DONE 0.2s [2026-06-09T20:17:07.199Z] [DEPLOY] #8 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-09T20:17:07.199Z] [DEPLOY] #8 CACHED [2026-06-09T20:17:07.199Z] [DEPLOY] #9 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:17:07.199Z] [DEPLOY] #9 CACHED [2026-06-09T20:17:07.199Z] [DEPLOY] #10 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:17:07.200Z] [DEPLOY] #10 CACHED [2026-06-09T20:17:07.200Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-09T20:17:07.200Z] [DEPLOY] #11 CACHED [2026-06-09T20:17:07.200Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T20:17:07.200Z] [DEPLOY] #12 CACHED [2026-06-09T20:17:07.200Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-09T20:17:07.667Z] [DEPLOY] #13 DONE 0.6s [2026-06-09T20:17:07.820Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-09T20:17:11.316Z] [DEPLOY] #14 3.646 Prisma schema loaded from prisma/schema.prisma [2026-06-09T20:17:16.056Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.71s [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.065Z] [DEPLOY] #14 8.384 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate [2026-06-09T20:17:16.066Z] [DEPLOY] #14 8.384 [2026-06-09T20:17:16.486Z] [DEPLOY] #14 DONE 8.8s [2026-06-09T20:17:16.650Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T20:17:17.456Z] [DEPLOY] #15 0.956 [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 > backend@0.0.1 build /app [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 > nest build [2026-06-09T20:17:17.457Z] [DEPLOY] #15 0.956 [2026-06-09T20:18:09.414Z] [DEPLOY] #15 DONE 52.9s [2026-06-09T20:18:09.568Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 total 80 [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 drwxr-xr-x 6 root root 4096 Jun 9 20:18 . [2026-06-09T20:18:09.744Z] [DEPLOY] #16 0.326 drwxr-xr-x 4 root root 4096 Jun 9 20:18 .. [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 drwxr-xr-x 3 root root 4096 Jun 9 20:18 __mocks__ [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 181 Jun 9 20:17 app.controller.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 1611 Jun 9 20:17 app.controller.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 436 Jun 9 20:17 app.controller.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 35 Jun 9 20:18 app.module.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 8972 Jun 9 20:18 app.module.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 2525 Jun 9 20:18 app.module.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 60 Jun 9 20:17 app.service.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 981 Jun 9 20:17 app.service.js [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 281 Jun 9 20:17 app.service.js.map [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 drwxr-xr-x 4 root root 4096 Jun 9 20:17 common [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root 11 Jun 9 20:18 main.d.ts [2026-06-09T20:18:09.745Z] [DEPLOY] #16 0.326 -rw-r--r-- 1 root root [2026-06-09T20:18:09.912Z] [DEPLOY] 2914 Jun 9 20:18 main.js [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 -rw-r--r-- 1 root root 2491 Jun 9 20:18 main.js.map [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 drwxr-xr-x 58 root root 4096 Jun 9 20:18 modules [2026-06-09T20:18:09.913Z] [DEPLOY] #16 0.327 drwxr-xr-x 2 root root 4096 Jun 9 20:17 prisma [2026-06-09T20:18:09.913Z] [DEPLOY] #16 DONE 0.3s [2026-06-09T20:18:13.221Z] [DEPLOY] #17 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-09T20:18:13.221Z] [DEPLOY] #17 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #18 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:18:13.222Z] [DEPLOY] #18 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #19 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-09T20:18:13.222Z] [DEPLOY] #19 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #20 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:18:13.222Z] [DEPLOY] #20 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #21 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T20:18:13.222Z] [DEPLOY] #21 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #22 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-09T20:18:13.222Z] [DEPLOY] #22 CACHED [2026-06-09T20:18:13.222Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-09T20:18:13.393Z] [DEPLOY] #23 CACHED [2026-06-09T20:18:13.394Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-09T20:18:13.692Z] [DEPLOY] #24 DONE 0.4s [2026-06-09T20:18:13.844Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-09T20:18:14.013Z] [DEPLOY] #25 DONE 0.3s [2026-06-09T20:18:14.168Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-09T20:18:58.510Z] [DEPLOY] #26 DONE 44.5s [2026-06-09T20:18:58.686Z] [DEPLOY] #27 [backend] exporting to image [2026-06-09T20:18:58.689Z] [DEPLOY] #27 exporting layers [2026-06-09T20:19:20.059Z] [DEPLOY] #27 exporting layers 21.5s done [2026-06-09T20:19:20.289Z] [DEPLOY] #27 exporting manifest sha256:0baf590b5c2c1facb3ee2b378f010c9724d8a291a9dc02acfc774bb55a859929 done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting config sha256:1a891d42708c0703a4ac0b608d5b2b6f4255b3a434aa00eb1b8f5ae267cb90e9 done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting attestation manifest sha256:236607ef31fa1a63c7b0c68d5f147e0d42734b0f84f9e746e6f45acd19de66f1 0.0s done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 exporting manifest list sha256:72a102e0abdeaa72697829092afa741652c7553fcddebf6b7664071f6cef8b17 0.0s done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-09T20:19:20.290Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-09T20:19:26.536Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 6.4s done [2026-06-09T20:19:26.721Z] [DEPLOY] #27 DONE 28.0s [2026-06-09T20:19:26.989Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-09T20:19:27.101Z] [DEPLOY] #28 DONE 0.0s [2026-06-09T20:19:27.286Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-09T20:19:27.287Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-09T20:19:27.287Z] [DEPLOY] #29 DONE 0.0s [2026-06-09T20:19:27.287Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T20:19:27.613Z] [DEPLOY] #2 DONE 1.3s [2026-06-09T20:19:27.729Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T20:19:27.729Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T20:19:27.729Z] [DEPLOY] #3 CACHED [2026-06-09T20:19:27.729Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T20:19:28.181Z] [DEPLOY] #4 DONE 1.3s [2026-06-09T20:19:28.181Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T20:19:28.448Z] [DEPLOY] #30 DONE 0.7s [2026-06-09T20:19:28.560Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T20:19:28.560Z] [DEPLOY] #31 transferring context: [2026-06-09T20:19:28.720Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T20:19:28.720Z] [DEPLOY] #31 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T20:19:29.471Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-09T20:19:29.471Z] [DEPLOY] #7 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T20:19:29.471Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-09T20:19:29.471Z] [DEPLOY] #32 DONE 0.1s [2026-06-09T20:19:29.471Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T20:19:29.582Z] [DEPLOY] #33 transferring context: 256.89kB 0.1s done [2026-06-09T20:19:29.583Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T20:19:29.583Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-09T20:19:29.583Z] [DEPLOY] #11 CACHED [2026-06-09T20:19:29.583Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T20:19:29.583Z] [DEPLOY] #34 CACHED [2026-06-09T20:19:29.583Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T20:19:29.583Z] [DEPLOY] #35 CACHED [2026-06-09T20:19:29.583Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T20:19:29.737Z] [DEPLOY] #36 CACHED [2026-06-09T20:19:29.738Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T20:19:30.041Z] [DEPLOY] #37 DONE 0.5s [2026-06-09T20:19:30.201Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T20:19:30.988Z] [DEPLOY] #38 0.944 [2026-06-09T20:19:30.988Z] [DEPLOY] #38 0.944 > frontend@1.0.0 build /app [2026-06-09T20:19:30.989Z] [DEPLOY] #38 0.944 > tsc && vite build [2026-06-09T20:19:30.989Z] [DEPLOY] #38 0.944 [2026-06-09T20:20:30.055Z] [DEPLOY] #38 60.01 vite v5.4.21 building for production... [2026-06-09T20:20:30.736Z] [DEPLOY] #38 60.69 transforming... [2026-06-09T20:20:30.952Z] [DEPLOY] #38 60.76 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T20:20:30.952Z] [DEPLOY] #38 60.76 npx update-browserslist-db@latest [2026-06-09T20:20:30.953Z] [DEPLOY] #38 60.76 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T20:20:55.642Z] [DEPLOY] #38 85.60 ✓ 4327 modules transformed. [2026-06-09T20:20:57.509Z] [DEPLOY] #38 87.47 rendering chunks... [2026-06-09T20:21:01.216Z] [DEPLOY] #38 91.17 computing gzip size... [2026-06-09T20:21:01.344Z] [DEPLOY] #38 91.30 [2026-06-09T20:21:01.347Z] [DEPLOY] #38 91.30 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T20:21:01.348Z] [DEPLOY] #38 91.30 - Using dynamic import() to code-split the application [2026-06-09T20:21:01.348Z] [DEPLOY] #38 91.30 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T20:21:01.349Z] [DEPLOY] #38 91.30 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T20:21:01.526Z] [DEPLOY] #38 91.30 dist/registerSW.js 0.13 kB [2026-06-09T20:21:01.529Z] [DEPLOY] #38 91.30 dist/manifest.webmanifest 0.54 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index-B5Cv6OLG.css 163.31 kB │ gzip: 24.93 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index.es-l2B_WRz7.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 dist/assets/index-CMSv6KJh.js 4,167.95 kB │ gzip: 1,082.08 kB [2026-06-09T20:21:01.530Z] [DEPLOY] #38 91.30 ✓ built in 31.24s [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 PWA v1.2.0 [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.32 Building src/sw.ts service worker ("es" format)... [2026-06-09T20:21:01.531Z] [DEPLOY] #38 91.33 vite v5.4.21 building for production... [2026-06-09T20:21:03.727Z] [DEPLOY] #38 93.68 transforming... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.72 ✓ 1 modules transformed. [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.73 rendering chunks... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 computing gzip size... [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T20:21:03.930Z] [DEPLOY] #38 93.74 ✓ built in 2.40s [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 PWA v1.2.0 [2026-06-09T20:21:03.991Z] [DEPLOY] #38 93.95 mode injectManifest [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 format: es [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 precache 15 entries (4957.07 KiB) [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 files generated [2026-06-09T20:21:03.992Z] [DEPLOY] #38 93.95 dist/sw.js [2026-06-09T20:21:04.283Z] [DEPLOY] #38 DONE 94.2s [2026-06-09T20:21:06.776Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T20:21:06.776Z] [DEPLOY] #39 CACHED [2026-06-09T20:21:06.776Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T20:21:07.025Z] [DEPLOY] #40 CACHED [2026-06-09T20:21:07.025Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T20:21:07.025Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T20:21:07.025Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T20:21:07.025Z] [DEPLOY] #42 exporting layers [2026-06-09T20:21:07.341Z] [DEPLOY] #42 exporting layers 0.5s done [2026-06-09T20:21:07.343Z] [DEPLOY] #42 exporting manifest sha256:0f828c9c4c286561320cd383a2c4b31ecb4bfc2e0a2b570afd3625aa2df484f5 [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting manifest sha256:0f828c9c4c286561320cd383a2c4b31ecb4bfc2e0a2b570afd3625aa2df484f5 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting config sha256:a580293b909dc1b0278352739fbad0739a528730da2e91d16f6466356458866f 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting attestation manifest sha256:2e9cad7319e9fe0676686f4c02062cd30307d8bf92c258f8d54588bd4a6ce089 0.0s done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 exporting manifest list sha256:35c9a546781a846e107cd106d5f56008d2b64d3bb8890b372990ced2168a2dd4 done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T20:21:07.567Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest [2026-06-09T20:21:07.589Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.2s done [2026-06-09T20:21:07.714Z] [DEPLOY] #42 DONE 0.8s [2026-06-09T20:21:08.109Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T20:21:08.127Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T20:21:08.127Z] [STDERR] backend Built [2026-06-09T20:21:08.127Z] [STDERR] frontend Built [2026-06-09T20:21:08.131Z] [DEPLOY] [2026-06-09 20:21:08] ✓ New images built successfully [2026-06-09T20:21:08.133Z] [DEPLOY] [2026-06-09 20:21:08] STEP: Step 5/8: Running database migrations... [2026-06-09T20:21:08.134Z] [DEPLOY] [2026-06-09 20:21:08] Checking for pending migrations... [2026-06-09T20:21:08.135Z] [DEPLOY] [2026-06-09 20:21:08] Applying schema changes... [2026-06-09T20:21:11.260Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T20:21:11.299Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T20:21:11.853Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T20:21:11.906Z] [DEPLOY] npm notice [2026-06-09T20:21:12.236Z] [DEPLOY] [2026-06-09 20:21:12] ✓ Database schema already in sync [2026-06-09T20:21:12.239Z] [DEPLOY] [2026-06-09 20:21:12] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T20:21:12.239Z] [DEPLOY] [2026-06-09 20:21:12] Updating backend container... [2026-06-09T20:21:12.534Z] [STDERR] Container clicknex-redis Running [2026-06-09T20:21:12.534Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T20:21:23.353Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T20:21:23.403Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T20:21:23.903Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T20:21:23.903Z] [STDERR] Container clicknex-backend Starting [2026-06-09T20:21:24.189Z] [STDERR] Container clicknex-backend Started [2026-06-09T20:21:29.272Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T20:21:31.335Z] [DEPLOY] [2026-06-09 20:21:31] ✓ Backend health check passed (healthy) [2026-06-09T20:21:31.337Z] [DEPLOY] [2026-06-09 20:21:31] Updating frontend container... [2026-06-09T20:21:31.571Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T20:21:32.061Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T20:21:32.155Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T20:21:32.418Z] [STDERR] Container clicknex-frontend Started [2026-06-09T20:21:32.430Z] [DEPLOY] [2026-06-09 20:21:32] ✓ New containers started [2026-06-09T20:21:32.435Z] [DEPLOY] [2026-06-09 20:21:32] STEP: Step 7/8: Running health checks... [2026-06-09T20:21:32.483Z] [DEPLOY] [2026-06-09 20:21:32] ✓ Backend health check passed (healthy) [2026-06-09T20:21:32.535Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T20:21:34.579Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T20:21:36.632Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T20:21:38.690Z] [DEPLOY] [2026-06-09 20:21:38] ✓ Frontend health check passed (healthy) [2026-06-09T20:21:38.692Z] [DEPLOY] [2026-06-09 20:21:38] ✓ All health checks passed [2026-06-09T20:21:38.693Z] [DEPLOY] [2026-06-09 20:21:38] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T20:21:42.875Z] [DEPLOY] [2026-06-09 20:21:42] ✓ Cleanup completed (disco: ?%) [2026-06-09T20:21:42.877Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T20:21:42.877Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T20:21:42.878Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T20:21:42.879Z] [DEPLOY] ║ Commit: be4b30b ║ [2026-06-09T20:21:42.880Z] [DEPLOY] ║ Time: 2026-06-09 20:21:42 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ Services: ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T20:21:42.881Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T20:21:42.885Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T20:21:42.886Z] [INFO] ====================================================== [2026-06-09T20:21:42.886Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.9 em 620s [2026-06-09T20:21:42.886Z] [INFO] ====================================================== [2026-06-09T23:14:35.950Z] [INFO] Deploy manual disparado (commit c42c931c) [2026-06-09T23:14:35.970Z] [INFO] ====================================================== [2026-06-09T23:14:35.974Z] [INFO] DEPLOY INICIADO — v1.0.10 [2026-06-09T23:14:35.975Z] [INFO] Commit: c42c931cd099d6923c2bdc8bd9f3367b14fe5315 [2026-06-09T23:14:35.975Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-09T23:14:35.975Z] [INFO] Branch: main [2026-06-09T23:14:35.975Z] [INFO] Disparado por: jhon4than (CI) [2026-06-09T23:14:35.975Z] [INFO] ====================================================== [2026-06-09T23:14:35.976Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-09T23:14:35.976Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-09T23:14:36.015Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T23:14:36.015Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-09T23:14:36.015Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T23:14:36.020Z] [DEPLOY] [2026-06-09 23:14:36] STEP: Step 1/8: Pulling latest code from repository... [2026-06-09T23:14:37.961Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-09T23:14:37.961Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-09T23:14:37.961Z] [STDERR] be4b30b..c42c931 main -> origin/main [2026-06-09T23:14:38.081Z] [DEPLOY] [2026-06-09 23:14:38] Deploy do commit validado pelo CI: c42c931cd099d6923c2bdc8bd9f3367b14fe5315 [2026-06-09T23:14:38.117Z] [STDERR] Reset branch 'main' [2026-06-09T23:14:38.118Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-09T23:14:38.120Z] [DEPLOY] [2026-06-09 23:14:38] ✓ Code updated to latest version [2026-06-09T23:14:38.121Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Step 2/8: Backing up current state... [2026-06-09T23:14:38.122Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Creating backup of current state... [2026-06-09T23:14:38.929Z] [DEPLOY] [2026-06-09 23:14:38] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-09T23:14:38.931Z] [DEPLOY] [2026-06-09 23:14:38] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-09T23:14:38.935Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-09T23:14:38.935Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-09T23:14:38.935Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-09T23:14:38.935Z] [DEPLOY] Database: saas_crm [2026-06-09T23:14:38.935Z] [DEPLOY] Host: localhost:5432 [2026-06-09T23:14:38.935Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-09T23:14:38.935Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-09T23:19:37.533Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz (2.9G) [2026-06-09T23:19:37.536Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-09T23:19:37.541Z] [DEPLOY] removendo antigo: backup_20260606_034149.sql.gz [2026-06-09T23:19:37.566Z] [DEPLOY] Current backups: [2026-06-09T23:19:37.568Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 19:24 /www/wwwroot/saas_crm/backups/database/backup_20260609_191920.sql.gz [2026-06-09T23:19:37.569Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 20:17 /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-09T23:19:37.569Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 23:19 /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-09T23:19:37.569Z] [DEPLOY] Backup completed! [2026-06-09T23:19:37.570Z] [DEPLOY] [2026-06-09 23:19:37] ✓ Database backup completed [2026-06-09T23:19:37.571Z] [DEPLOY] [2026-06-09 23:19:37] STEP: Step 4/8: Building new Docker images... [2026-06-09T23:19:37.572Z] [DEPLOY] [2026-06-09 23:19:37] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-09T23:19:38.244Z] [DEPLOY] [2026-06-09 23:19:38] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-09T23:19:38.299Z] [DEPLOY] [2026-06-09 23:19:38] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-09T23:19:39.198Z] [STDERR] time="2026-06-09T23:19:39Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-09T23:19:39.718Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-09T23:19:39.719Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-09T23:19:39.720Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-09T23:19:39.720Z] [DEPLOY] #1 DONE 0.1s [2026-06-09T23:19:39.720Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T23:19:40.481Z] [DEPLOY] #2 DONE 0.9s [2026-06-09T23:19:40.695Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T23:19:40.695Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T23:19:40.695Z] [DEPLOY] #3 CACHED [2026-06-09T23:19:41.069Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T23:19:41.774Z] [DEPLOY] #4 DONE 0.7s [2026-06-09T23:19:41.907Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-09T23:19:41.908Z] [DEPLOY] #5 transferring context: 304B done [2026-06-09T23:19:41.908Z] [DEPLOY] #5 DONE 0.0s [2026-06-09T23:19:41.908Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T23:19:41.908Z] [DEPLOY] #6 DONE 0.0s [2026-06-09T23:19:41.908Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T23:19:41.908Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T23:19:41.909Z] [DEPLOY] #7 DONE 0.0s [2026-06-09T23:19:42.052Z] [DEPLOY] #6 [backend internal] load build context [2026-06-09T23:19:42.191Z] [DEPLOY] #6 transferring context: 93.83kB 0.2s done [2026-06-09T23:19:42.191Z] [DEPLOY] #6 DONE 0.3s [2026-06-09T23:19:42.308Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:42.308Z] [DEPLOY] #8 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #9 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T23:19:42.308Z] [DEPLOY] #9 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #10 [backend builder 8/10] RUN pnpm prisma generate [2026-06-09T23:19:42.308Z] [DEPLOY] #10 CACHED [2026-06-09T23:19:42.308Z] [DEPLOY] #11 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:42.309Z] [DEPLOY] #11 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #12 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-09T23:19:42.309Z] [DEPLOY] #12 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #13 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:42.309Z] [DEPLOY] #13 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #14 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-09T23:19:42.309Z] [DEPLOY] #14 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #15 [backend production 9/12] RUN pnpm prisma generate [2026-06-09T23:19:42.309Z] [DEPLOY] #15 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #16 [backend builder 7/10] COPY . . [2026-06-09T23:19:42.309Z] [DEPLOY] #16 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #17 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:42.309Z] [DEPLOY] #17 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #18 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-09T23:19:42.309Z] [DEPLOY] #18 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #19 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-09T23:19:42.309Z] [DEPLOY] #19 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #20 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-09T23:19:42.309Z] [DEPLOY] #20 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #21 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-09T23:19:42.309Z] [DEPLOY] #21 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #22 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-09T23:19:42.309Z] [DEPLOY] #22 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #23 [backend production 7/12] COPY prisma ./prisma/ [2026-06-09T23:19:42.309Z] [DEPLOY] #23 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-09T23:19:42.309Z] [DEPLOY] #24 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #25 [backend builder 2/10] WORKDIR /app [2026-06-09T23:19:42.309Z] [DEPLOY] #25 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-09T23:19:42.309Z] [DEPLOY] #26 CACHED [2026-06-09T23:19:42.309Z] [DEPLOY] #27 [backend] exporting to image [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting layers 0.0s done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting manifest sha256:0baf590b5c2c1facb3ee2b378f010c9724d8a291a9dc02acfc774bb55a859929 done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting config sha256:1a891d42708c0703a4ac0b608d5b2b6f4255b3a434aa00eb1b8f5ae267cb90e9 done [2026-06-09T23:19:42.309Z] [DEPLOY] #27 exporting attestation manifest sha256:4b4ff4ecf4d5b23db845cb479945fd95ed19beb84d8f677e44610004345d9cf4 [2026-06-09T23:19:42.424Z] [DEPLOY] #27 exporting attestation manifest sha256:4b4ff4ecf4d5b23db845cb479945fd95ed19beb84d8f677e44610004345d9cf4 0.0s done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 exporting manifest list sha256:7116c6d6a16f2a50b09bfffc85ec079281051362512ef950833c6205f56ad186 0.1s done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-09T23:19:42.424Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 0.0s done [2026-06-09T23:19:42.623Z] [DEPLOY] #27 DONE 0.2s [2026-06-09T23:19:42.735Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-09T23:19:42.976Z] [DEPLOY] #28 DONE 0.0s [2026-06-09T23:19:42.979Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-09T23:19:42.979Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-09T23:19:42.979Z] [DEPLOY] #29 DONE 0.0s [2026-06-09T23:19:42.979Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-09T23:19:43.050Z] [DEPLOY] #2 DONE 1.1s [2026-06-09T23:19:43.181Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-09T23:19:43.182Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-09T23:19:43.182Z] [DEPLOY] #3 CACHED [2026-06-09T23:19:43.182Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-09T23:19:43.385Z] [DEPLOY] #4 DONE 0.9s [2026-06-09T23:19:43.386Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-09T23:19:43.876Z] [DEPLOY] #30 DONE 0.7s [2026-06-09T23:19:43.988Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-09T23:19:43.988Z] [DEPLOY] #31 transferring context: 194B done [2026-06-09T23:19:43.988Z] [DEPLOY] #31 DONE 0.0s [2026-06-09T23:19:43.988Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-09T23:19:43.988Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-09T23:19:43.988Z] [DEPLOY] #7 DONE 0.1s [2026-06-09T23:19:43.988Z] [DEPLOY] #32 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-09T23:19:43.988Z] [DEPLOY] #32 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-09T23:19:43.989Z] [DEPLOY] #32 DONE 0.0s [2026-06-09T23:19:43.989Z] [DEPLOY] #33 [frontend internal] load build context [2026-06-09T23:19:44.105Z] [DEPLOY] #33 transferring context: 82.64kB 0.1s done [2026-06-09T23:19:44.105Z] [DEPLOY] #33 DONE 0.1s [2026-06-09T23:19:44.105Z] [DEPLOY] #34 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-09T23:19:44.105Z] [DEPLOY] #34 CACHED [2026-06-09T23:19:44.105Z] [DEPLOY] #35 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-09T23:19:44.105Z] [DEPLOY] #35 CACHED [2026-06-09T23:19:44.105Z] [DEPLOY] #25 [frontend builder 2/7] WORKDIR /app [2026-06-09T23:19:44.105Z] [DEPLOY] #25 CACHED [2026-06-09T23:19:44.105Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-09T23:19:44.261Z] [DEPLOY] #36 CACHED [2026-06-09T23:19:44.261Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-09T23:19:44.480Z] [DEPLOY] #37 DONE 0.4s [2026-06-09T23:19:44.635Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-09T23:19:46.385Z] [DEPLOY] #38 1.901 [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 > frontend@1.0.0 build /app [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 > tsc && vite build [2026-06-09T23:19:46.386Z] [DEPLOY] #38 1.901 [2026-06-09T23:20:42.177Z] [DEPLOY] #38 57.69 vite v5.4.21 building for production... [2026-06-09T23:20:42.933Z] [DEPLOY] #38 58.45 transforming... [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 npx update-browserslist-db@latest [2026-06-09T23:20:43.164Z] [DEPLOY] #38 58.53 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-09T23:21:06.983Z] [DEPLOY] #38 82.50 ✓ 4326 modules transformed. [2026-06-09T23:21:08.473Z] [DEPLOY] #38 83.99 rendering chunks... [2026-06-09T23:21:10.133Z] [DEPLOY] #38 85.65 computing gzip size... [2026-06-09T23:21:10.251Z] [DEPLOY] #38 85.76 dist/registerSW.js 0.13 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/manifest.webmanifest 0.54 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index-B5Cv6OLG.css 163.31 kB │ gzip: 24.93 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index.es-DRmcNVdK.js 150.69 kB │ gzip: 51.55 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.76 dist/assets/index-pyQB7Agw.js 4,161.70 kB │ gzip: 1,080.52 kB [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Using dynamic import() to code-split the application [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 ✓ built in 27.38s [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 [2026-06-09T23:21:10.412Z] [DEPLOY] #38 85.77 PWA v1.2.0 [2026-06-09T23:21:10.413Z] [DEPLOY] #38 85.77 Building src/sw.ts service worker ("es" format)... [2026-06-09T23:21:10.413Z] [DEPLOY] #38 85.78 vite v5.4.21 building for production... [2026-06-09T23:21:11.707Z] [DEPLOY] #38 87.22 transforming... [2026-06-09T23:21:11.880Z] [DEPLOY] #38 87.23 ✓ 1 modules transformed. [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 rendering chunks... [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 computing gzip size... [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-09T23:21:11.881Z] [DEPLOY] #38 87.24 ✓ built in 1.47s [2026-06-09T23:21:11.965Z] [DEPLOY] #38 87.48 [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 PWA v1.2.0 [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 mode injectManifest [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 format: es [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 precache 15 entries (4950.94 KiB) [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 files generated [2026-06-09T23:21:11.966Z] [DEPLOY] #38 87.48 dist/sw.js [2026-06-09T23:21:12.333Z] [DEPLOY] #38 DONE 87.8s [2026-06-09T23:21:21.576Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-09T23:21:21.577Z] [DEPLOY] #39 CACHED [2026-06-09T23:21:21.577Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-09T23:21:21.678Z] [DEPLOY] #40 CACHED [2026-06-09T23:21:21.679Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-09T23:21:21.679Z] [DEPLOY] #41 DONE 0.1s [2026-06-09T23:21:21.839Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-09T23:21:21.840Z] [DEPLOY] #42 exporting layers [2026-06-09T23:21:21.935Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting manifest sha256:293fa82276d7edbb36b772f2a888dcdbe8d51d733e63461434e1509c277753cf done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting config sha256:ceaff17fedc92031fb3a13a44b874ea424fe21584093a23295da0a5f570012e7 done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting attestation manifest sha256:5bc5f2a8cd1b1a0504cc56e6e2c81c63da480be2616afb6efd3dbf828ff849f9 0.0s done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 exporting manifest list sha256:03b9966475a170b7bc91c9cce0c3fd99d3923469ba2fdb42c05a24e2b9909795 done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-09T23:21:22.063Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-09T23:21:22.237Z] [DEPLOY] #42 DONE 0.4s [2026-06-09T23:21:22.237Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-09T23:21:22.249Z] [DEPLOY] #43 DONE 0.0s [2026-06-09T23:21:22.250Z] [STDERR] backend Built [2026-06-09T23:21:22.250Z] [STDERR] frontend Built [2026-06-09T23:21:22.262Z] [DEPLOY] [2026-06-09 23:21:22] ✓ New images built successfully [2026-06-09T23:21:22.263Z] [DEPLOY] [2026-06-09 23:21:22] STEP: Step 5/8: Running database migrations... [2026-06-09T23:21:22.264Z] [DEPLOY] [2026-06-09 23:21:22] Checking for pending migrations... [2026-06-09T23:21:22.265Z] [DEPLOY] [2026-06-09 23:21:22] Applying schema changes... [2026-06-09T23:21:24.910Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-09T23:21:24.948Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-09T23:21:25.579Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-09T23:21:25.639Z] [DEPLOY] npm notice [2026-06-09T23:21:25.897Z] [DEPLOY] [2026-06-09 23:21:25] ✓ Database schema already in sync [2026-06-09T23:21:25.899Z] [DEPLOY] [2026-06-09 23:21:25] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-09T23:21:25.900Z] [DEPLOY] [2026-06-09 23:21:25] Updating backend container... [2026-06-09T23:21:26.137Z] [STDERR] Container clicknex-redis Running [2026-06-09T23:21:26.137Z] [STDERR] Container clicknex-backend Recreate [2026-06-09T23:21:36.994Z] [STDERR] Container clicknex-backend Recreated [2026-06-09T23:21:37.038Z] [STDERR] Container clicknex-redis Waiting [2026-06-09T23:21:37.542Z] [STDERR] Container clicknex-redis Healthy [2026-06-09T23:21:37.542Z] [STDERR] Container clicknex-backend Starting [2026-06-09T23:21:38.017Z] [STDERR] Container clicknex-backend Started [2026-06-09T23:21:43.126Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-09T23:21:45.208Z] [DEPLOY] [2026-06-09 23:21:45] ✓ Backend health check passed (healthy) [2026-06-09T23:21:45.209Z] [DEPLOY] [2026-06-09 23:21:45] Updating frontend container... [2026-06-09T23:21:45.402Z] [STDERR] Container clicknex-frontend Recreate [2026-06-09T23:21:45.893Z] [STDERR] Container clicknex-frontend Recreated [2026-06-09T23:21:45.920Z] [STDERR] Container clicknex-frontend Starting [2026-06-09T23:21:46.165Z] [STDERR] Container clicknex-frontend Started [2026-06-09T23:21:46.178Z] [DEPLOY] [2026-06-09 23:21:46] ✓ New containers started [2026-06-09T23:21:46.179Z] [DEPLOY] [2026-06-09 23:21:46] STEP: Step 7/8: Running health checks... [2026-06-09T23:21:46.232Z] [DEPLOY] [2026-06-09 23:21:46] ✓ Backend health check passed (healthy) [2026-06-09T23:21:46.277Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-09T23:21:48.352Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-09T23:21:50.410Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-09T23:21:52.460Z] [DEPLOY] [2026-06-09 23:21:52] ✓ Frontend health check passed (healthy) [2026-06-09T23:21:52.461Z] [DEPLOY] [2026-06-09 23:21:52] ✓ All health checks passed [2026-06-09T23:21:52.462Z] [DEPLOY] [2026-06-09 23:21:52] STEP: Step 8/8: Cleaning up old resources... [2026-06-09T23:21:54.753Z] [DEPLOY] [2026-06-09 23:21:54] ✓ Cleanup completed (disco: ?%) [2026-06-09T23:21:54.754Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-09T23:21:54.754Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-09T23:21:54.754Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T23:21:54.757Z] [DEPLOY] ║ Commit: c42c931 ║ [2026-06-09T23:21:54.759Z] [DEPLOY] ║ Time: 2026-06-09 23:21:54 ║ [2026-06-09T23:21:54.759Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ Services: ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-09T23:21:54.760Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-09T23:21:54.766Z] [INFO] Deploy script encerrado com código: 0 [2026-06-09T23:21:54.769Z] [INFO] ====================================================== [2026-06-09T23:21:54.770Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.10 em 439s [2026-06-09T23:21:54.770Z] [INFO] ====================================================== [2026-06-10T00:01:52.960Z] [INFO] Deploy manual disparado (commit 04932f07) [2026-06-10T00:01:52.964Z] [INFO] ====================================================== [2026-06-10T00:01:52.967Z] [INFO] DEPLOY INICIADO — v1.0.11 [2026-06-10T00:01:52.968Z] [INFO] Commit: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:52.968Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T00:01:52.968Z] [INFO] Branch: main [2026-06-10T00:01:52.968Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T00:01:52.968Z] [INFO] ====================================================== [2026-06-10T00:01:52.969Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T00:01:52.969Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T00:01:52.988Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:01:52.989Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T00:01:52.989Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:01:52.996Z] [DEPLOY] [2026-06-10 00:01:52] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T00:01:54.846Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T00:01:54.847Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T00:01:54.847Z] [STDERR] c42c931..04932f0 main -> origin/main [2026-06-10T00:01:54.873Z] [DEPLOY] [2026-06-10 00:01:54] Deploy do commit validado pelo CI: 04932f07cd68278ec44607c911140e271366fc8a [2026-06-10T00:01:54.901Z] [STDERR] Reset branch 'main' [2026-06-10T00:01:54.901Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T00:01:54.911Z] [DEPLOY] [2026-06-10 00:01:54] ✓ Code updated to latest version [2026-06-10T00:01:54.921Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Step 2/8: Backing up current state... [2026-06-10T00:01:54.923Z] [DEPLOY] [2026-06-10 00:01:54] STEP: Creating backup of current state... [2026-06-10T00:01:55.660Z] [DEPLOY] [2026-06-10 00:01:55] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T00:01:55.664Z] [DEPLOY] [2026-06-10 00:01:55] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T00:01:55.670Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T00:01:55.670Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T00:01:55.670Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T00:01:55.671Z] [DEPLOY] Database: saas_crm [2026-06-10T00:01:55.671Z] [DEPLOY] Host: localhost:5432 [2026-06-10T00:01:55.671Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:01:55.671Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T00:07:36.812Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz (2.9G) [2026-06-10T00:07:36.813Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T00:07:36.816Z] [DEPLOY] removendo antigo: backup_20260609_191920.sql.gz [2026-06-10T00:07:36.860Z] [DEPLOY] Current backups: [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 20:17 /www/wwwroot/saas_crm/backups/database/backup_20260609_201125.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 23:19 /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 00:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T00:07:36.863Z] [DEPLOY] Backup completed! [2026-06-10T00:07:36.864Z] [DEPLOY] [2026-06-10 00:07:36] ✓ Database backup completed [2026-06-10T00:07:36.865Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Step 4/8: Building new Docker images... [2026-06-10T00:07:36.866Z] [DEPLOY] [2026-06-10 00:07:36] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T00:07:37.200Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T00:07:37.248Z] [DEPLOY] [2026-06-10 00:07:37] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T00:07:37.403Z] [STDERR] time="2026-06-10T00:07:37Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T00:07:37.788Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T00:07:37.788Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T00:07:37.788Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-10T00:07:37.788Z] [DEPLOY] #1 DONE 0.0s [2026-06-10T00:07:37.788Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:07:38.478Z] [DEPLOY] #2 DONE 0.8s [2026-06-10T00:07:38.670Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:07:38.670Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:07:38.671Z] [DEPLOY] #3 CACHED [2026-06-10T00:07:39.403Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:07:40.140Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T00:07:40.328Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T00:07:40.328Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T00:07:40.328Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T00:07:40.432Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:07:40.432Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T00:07:40.432Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T00:07:40.432Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T00:07:40.557Z] [DEPLOY] #7 transferring context: 168.51kB 0.1s done [2026-06-10T00:07:40.662Z] [DEPLOY] #7 DONE 0.2s [2026-06-10T00:07:40.662Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:07:40.662Z] [DEPLOY] #8 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:07:40.662Z] [DEPLOY] #9 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-10T00:07:40.662Z] [DEPLOY] #10 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T00:07:40.662Z] [DEPLOY] #11 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T00:07:40.662Z] [DEPLOY] #12 CACHED [2026-06-10T00:07:40.662Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-10T00:07:41.454Z] [DEPLOY] #13 DONE 0.8s [2026-06-10T00:07:41.604Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T00:07:44.141Z] [DEPLOY] #14 2.684 Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:07:49.058Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.82s [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate [2026-06-10T00:07:49.059Z] [DEPLOY] #14 7.604 [2026-06-10T00:07:49.425Z] [DEPLOY] #14 DONE 8.0s [2026-06-10T00:07:49.577Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > backend@0.0.1 build /app [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 > nest build [2026-06-10T00:07:50.176Z] [DEPLOY] #15 0.749 [2026-06-10T00:08:37.515Z] [DEPLOY] #15 DONE 48.1s [2026-06-10T00:08:37.668Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 total 80 [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 6 root root 4096 Jun 10 00:08 . [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 .. [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 drwxr-xr-x 3 root root 4096 Jun 10 00:08 __mocks__ [2026-06-10T00:08:37.781Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 181 Jun 10 00:08 app.controller.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 1611 Jun 10 00:08 app.controller.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 436 Jun 10 00:08 app.controller.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 35 Jun 10 00:08 app.module.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 8972 Jun 10 00:08 app.module.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2525 Jun 10 00:08 app.module.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 60 Jun 10 00:08 app.service.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 981 Jun 10 00:08 app.service.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 281 Jun 10 00:08 app.service.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 4 root root 4096 Jun 10 00:08 common [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 11 Jun 10 00:08 main.d.ts [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2914 Jun 10 00:08 main.js [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 -rw-r--r-- 1 root root 2491 Jun 10 00:08 main.js.map [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 58 root root 4096 Jun 10 00:08 modules [2026-06-10T00:08:37.782Z] [DEPLOY] #16 0.263 drwxr-xr-x 2 root root 4096 Jun 10 00:08 prisma [2026-06-10T00:08:37.959Z] [DEPLOY] #16 DONE 0.3s [2026-06-10T00:08:42.249Z] [DEPLOY] #17 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T00:08:42.250Z] [DEPLOY] #17 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #18 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:08:42.250Z] [DEPLOY] #18 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #19 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T00:08:42.250Z] [DEPLOY] #19 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #20 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T00:08:42.250Z] [DEPLOY] #20 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #21 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T00:08:42.250Z] [DEPLOY] #21 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #22 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:08:42.250Z] [DEPLOY] #22 CACHED [2026-06-10T00:08:42.250Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T00:08:42.408Z] [DEPLOY] #23 CACHED [2026-06-10T00:08:42.409Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T00:08:42.695Z] [DEPLOY] #24 DONE 0.4s [2026-06-10T00:08:42.849Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T00:08:43.023Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T00:08:43.179Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T00:09:23.541Z] [DEPLOY] #26 DONE 40.5s [2026-06-10T00:09:23.700Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T00:09:23.700Z] [DEPLOY] #27 exporting layers [2026-06-10T00:09:40.718Z] [DEPLOY] #27 exporting layers 17.2s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest sha256:9352a750659426263eada41531f1fd2744140de59553e622f646bcfb0759d630 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting config sha256:3997ad39f051abb15892804088f85499bc77869828036351f60b2c6efeea2713 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting attestation manifest sha256:cd0175d46a188ad7986a0316e9ae44cdee21f1908cc8e852824dd2897da6ef98 0.0s done [2026-06-10T00:09:40.821Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 [2026-06-10T00:09:40.986Z] [DEPLOY] #27 exporting manifest list sha256:3c9f0e556e86c093c4cf138b458cbccb22c62c9a914727b5fb0285971e696aa8 0.0s done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T00:09:40.987Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T00:09:46.701Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 5.9s done [2026-06-10T00:09:46.891Z] [DEPLOY] #27 DONE 23.2s [2026-06-10T00:09:46.994Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T00:09:47.094Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T00:09:47.094Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T00:09:47.261Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T00:09:47.261Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T00:09:47.261Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T00:09:47.588Z] [DEPLOY] #2 DONE 1.3s [2026-06-10T00:09:47.739Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T00:09:47.739Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T00:09:47.739Z] [DEPLOY] #3 CACHED [2026-06-10T00:09:47.739Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.220Z] [DEPLOY] #30 ... [2026-06-10T00:09:48.221Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T00:09:48.221Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T00:09:48.371Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T00:09:48.492Z] [DEPLOY] #30 DONE 0.7s [2026-06-10T00:09:48.741Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T00:09:48.742Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T00:09:48.742Z] [DEPLOY] #31 DONE 0.1s [2026-06-10T00:09:49.782Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:49.782Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T00:09:49.782Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.782Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:49.798Z] [DEPLOY] #33 ... [2026-06-10T00:09:49.798Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T00:09:49.798Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.2s done [2026-06-10T00:09:49.798Z] [DEPLOY] #6 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T00:09:50.043Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.2s done [2026-06-10T00:09:50.043Z] [DEPLOY] #33 DONE 0.2s [2026-06-10T00:09:50.043Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T00:09:50.043Z] [DEPLOY] #32 transferring context: 165.24kB 0.0s done [2026-06-10T00:09:50.043Z] [DEPLOY] #32 DONE 0.1s [2026-06-10T00:09:50.044Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-10T00:09:50.044Z] [DEPLOY] #10 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T00:09:50.044Z] [DEPLOY] #34 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T00:09:50.044Z] [DEPLOY] #35 CACHED [2026-06-10T00:09:50.044Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T00:09:50.045Z] [DEPLOY] #36 CACHED [2026-06-10T00:09:50.045Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T00:09:50.455Z] [DEPLOY] #37 DONE 0.6s [2026-06-10T00:09:50.626Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 [2026-06-10T00:09:51.551Z] [DEPLOY] #38 1.076 > frontend@1.0.0 build /app [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 > tsc && vite build [2026-06-10T00:09:51.552Z] [DEPLOY] #38 1.076 [2026-06-10T00:10:50.491Z] [DEPLOY] #38 60.02 vite v5.4.21 building for production... [2026-06-10T00:10:51.187Z] [DEPLOY] #38 60.71 transforming... [2026-06-10T00:10:51.698Z] [DEPLOY] #38 61.22 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 npx update-browserslist-db@latest [2026-06-10T00:10:51.699Z] [DEPLOY] #38 61.22 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T00:11:16.706Z] [DEPLOY] #38 86.23 ✓ 4326 modules transformed. [2026-06-10T00:11:18.458Z] [DEPLOY] #38 87.98 rendering chunks... [2026-06-10T00:11:21.371Z] [DEPLOY] #38 90.90 computing gzip size... [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/registerSW.js 0.13 kB [2026-06-10T00:11:21.610Z] [DEPLOY] #38 91.14 dist/manifest.webmanifest 0.54 kB [2026-06-10T00:11:21.611Z] [DEPLOY] #38 91.14 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 [2026-06-10T00:11:21.785Z] [DEPLOY] #38 91.14 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Using dynamic import() to code-split the application [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-RRJDHv6S.css 163.33 kB │ gzip: 24.93 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index.es-CyiEOaTq.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 dist/assets/index-D_oG79p0.js 4,161.99 kB │ gzip: 1,080.46 kB [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.14 ✓ built in 31.06s [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 PWA v1.2.0 [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.15 Building src/sw.ts service worker ("es" format)... [2026-06-10T00:11:21.786Z] [DEPLOY] #38 91.16 vite v5.4.21 building for production... [2026-06-10T00:11:23.198Z] [DEPLOY] #38 92.72 transforming... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.73 ✓ 1 modules transformed. [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 rendering chunks... [2026-06-10T00:11:23.377Z] [DEPLOY] #38 92.74 computing gzip size... [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T00:11:23.378Z] [DEPLOY] #38 92.75 ✓ built in 1.59s [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 PWA v1.2.0 [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 mode injectManifest [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 format: es [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 precache 15 entries (4951.25 KiB) [2026-06-10T00:11:23.570Z] [DEPLOY] #38 93.10 files generated [2026-06-10T00:11:23.571Z] [DEPLOY] #38 93.10 dist/sw.js [2026-06-10T00:11:24.172Z] [DEPLOY] #38 DONE 93.7s [2026-06-10T00:11:25.769Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T00:11:25.769Z] [DEPLOY] #39 CACHED [2026-06-10T00:11:25.769Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T00:11:25.998Z] [DEPLOY] #40 CACHED [2026-06-10T00:11:25.998Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T00:11:25.998Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T00:11:25.998Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T00:11:25.998Z] [DEPLOY] #42 exporting layers [2026-06-10T00:11:26.111Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest sha256:d2e2efce618398e679b1101e3ab1d3f9b7d5840b65d0dd98f8ff0c2d541da847 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting config sha256:29032daf4e6eb72fbc557d9fcb147ae0e57f76990e7c391e558cc572e273d051 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting attestation manifest sha256:0ff61557548b8aa9fb8e799e9ce12cc93fc73376e7d817da91399f9c3cd4789b 0.0s done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 exporting manifest list sha256:7e5ece65741734a8370e84c80956c94e5062f78e0b8912b8e857710569c2e594 done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T00:11:26.265Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T00:11:26.418Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T00:11:26.418Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T00:11:26.425Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T00:11:26.425Z] [STDERR] backend Built [2026-06-10T00:11:26.425Z] [STDERR] frontend Built [2026-06-10T00:11:26.434Z] [DEPLOY] [2026-06-10 00:11:26] ✓ New images built successfully [2026-06-10T00:11:26.436Z] [DEPLOY] [2026-06-10 00:11:26] STEP: Step 5/8: Running database migrations... [2026-06-10T00:11:26.437Z] [DEPLOY] [2026-06-10 00:11:26] Checking for pending migrations... [2026-06-10T00:11:26.440Z] [DEPLOY] [2026-06-10 00:11:26] Applying schema changes... [2026-06-10T00:11:28.867Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T00:11:28.910Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T00:11:29.590Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T00:11:29.672Z] [DEPLOY] npm notice [2026-06-10T00:11:30.103Z] [DEPLOY] [2026-06-10 00:11:30] ✓ Database schema already in sync [2026-06-10T00:11:30.104Z] [DEPLOY] [2026-06-10 00:11:30] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T00:11:30.105Z] [DEPLOY] [2026-06-10 00:11:30] Updating backend container... [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-redis Running [2026-06-10T00:11:30.329Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T00:11:40.930Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T00:11:40.972Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T00:11:41.474Z] [STDERR] Container clicknex-backend Starting [2026-06-10T00:11:41.722Z] [STDERR] Container clicknex-backend Started [2026-06-10T00:11:46.800Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T00:11:48.853Z] [DEPLOY] [2026-06-10 00:11:48] ✓ Backend health check passed (healthy) [2026-06-10T00:11:48.854Z] [DEPLOY] [2026-06-10 00:11:48] Updating frontend container... [2026-06-10T00:11:49.082Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T00:11:49.615Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T00:11:49.674Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T00:11:49.949Z] [STDERR] Container clicknex-frontend Started [2026-06-10T00:11:49.961Z] [DEPLOY] [2026-06-10 00:11:49] ✓ New containers started [2026-06-10T00:11:49.963Z] [DEPLOY] [2026-06-10 00:11:49] STEP: Step 7/8: Running health checks... [2026-06-10T00:11:50.017Z] [DEPLOY] [2026-06-10 00:11:50] ✓ Backend health check passed (healthy) [2026-06-10T00:11:50.088Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T00:11:52.150Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T00:11:54.196Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T00:11:56.289Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Frontend health check passed (healthy) [2026-06-10T00:11:56.290Z] [DEPLOY] [2026-06-10 00:11:56] ✓ All health checks passed [2026-06-10T00:11:56.292Z] [DEPLOY] [2026-06-10 00:11:56] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T00:11:56.694Z] [DEPLOY] [2026-06-10 00:11:56] ✓ Cleanup completed (disco: ?%) [2026-06-10T00:11:56.696Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T00:11:56.696Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T00:11:56.697Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.699Z] [DEPLOY] ║ Commit: 04932f0 ║ [2026-06-10T00:11:56.706Z] [DEPLOY] ║ Time: 2026-06-10 00:11:56 ║ [2026-06-10T00:11:56.709Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ Services: ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T00:11:56.710Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T00:11:56.713Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T00:11:56.716Z] [INFO] ====================================================== [2026-06-10T00:11:56.716Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.11 em 604s [2026-06-10T00:11:56.716Z] [INFO] ====================================================== [2026-06-10T03:28:49.119Z] [INFO] Deploy manual disparado (commit d3d452a1) [2026-06-10T03:28:49.135Z] [INFO] ====================================================== [2026-06-10T03:28:49.139Z] [INFO] DEPLOY INICIADO — v1.0.12 [2026-06-10T03:28:49.139Z] [INFO] Commit: d3d452a142ffdb4acce3a462b0e1f01a1e9443f6 [2026-06-10T03:28:49.139Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T03:28:49.140Z] [INFO] Branch: main [2026-06-10T03:28:49.140Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T03:28:49.140Z] [INFO] ====================================================== [2026-06-10T03:28:49.140Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T03:28:49.140Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T03:28:49.171Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:28:49.172Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T03:28:49.172Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:28:49.172Z] [DEPLOY] [2026-06-10 03:28:49] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T03:28:51.263Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T03:28:51.264Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T03:28:51.265Z] [STDERR] 04932f0..d3d452a main -> origin/main [2026-06-10T03:28:51.405Z] [DEPLOY] [2026-06-10 03:28:51] Deploy do commit validado pelo CI: d3d452a142ffdb4acce3a462b0e1f01a1e9443f6 [2026-06-10T03:28:51.472Z] [STDERR] Reset branch 'main' [2026-06-10T03:28:51.473Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T03:28:51.475Z] [DEPLOY] [2026-06-10 03:28:51] ✓ Code updated to latest version [2026-06-10T03:28:51.476Z] [DEPLOY] [2026-06-10 03:28:51] STEP: Step 2/8: Backing up current state... [2026-06-10T03:28:51.477Z] [DEPLOY] [2026-06-10 03:28:51] STEP: Creating backup of current state... [2026-06-10T03:28:52.310Z] [DEPLOY] [2026-06-10 03:28:52] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T03:28:52.312Z] [DEPLOY] [2026-06-10 03:28:52] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T03:28:52.320Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T03:28:52.321Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T03:28:52.321Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T03:28:52.321Z] [DEPLOY] Database: saas_crm [2026-06-10T03:28:52.321Z] [DEPLOY] Host: localhost:5432 [2026-06-10T03:28:52.321Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T03:28:52.322Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T03:33:21.991Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz (2.9G) [2026-06-10T03:33:21.994Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T03:33:21.997Z] [DEPLOY] removendo antigo: backup_20260609_201125.sql.gz [2026-06-10T03:33:22.053Z] [DEPLOY] Current backups: [2026-06-10T03:33:22.058Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 9 23:19 /www/wwwroot/saas_crm/backups/database/backup_20260609_231438.sql.gz [2026-06-10T03:33:22.059Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 00:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T03:33:22.060Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:33 /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T03:33:22.062Z] [DEPLOY] Backup completed! [2026-06-10T03:33:22.063Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Database backup completed [2026-06-10T03:33:22.065Z] [DEPLOY] [2026-06-10 03:33:22] STEP: Step 4/8: Building new Docker images... [2026-06-10T03:33:22.068Z] [DEPLOY] [2026-06-10 03:33:22] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T03:33:22.648Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T03:33:22.692Z] [DEPLOY] [2026-06-10 03:33:22] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T03:33:23.788Z] [STDERR] time="2026-06-10T03:33:23Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T03:33:24.195Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T03:33:24.195Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T03:33:24.196Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-10T03:33:24.197Z] [DEPLOY] #1 DONE 0.1s [2026-06-10T03:33:24.197Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:33:25.157Z] [DEPLOY] #2 DONE 1.0s [2026-06-10T03:33:25.347Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:33:25.347Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:33:25.347Z] [DEPLOY] #3 CACHED [2026-06-10T03:33:25.786Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:33:26.537Z] [DEPLOY] #4 DONE 0.8s [2026-06-10T03:33:26.658Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T03:33:26.659Z] [DEPLOY] #5 transferring context: 304B 0.0s done [2026-06-10T03:33:26.659Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T03:33:26.825Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:33:26.825Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:33:26.825Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T03:33:26.825Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T03:33:26.977Z] [DEPLOY] #7 transferring context: 275.50kB 0.2s done [2026-06-10T03:33:26.977Z] [DEPLOY] #7 DONE 0.3s [2026-06-10T03:33:27.150Z] [DEPLOY] #8 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:33:27.150Z] [DEPLOY] #8 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #9 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:33:27.150Z] [DEPLOY] #9 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #10 [backend builder 2/10] WORKDIR /app [2026-06-10T03:33:27.150Z] [DEPLOY] #10 CACHED [2026-06-10T03:33:27.150Z] [DEPLOY] #11 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T03:33:27.151Z] [DEPLOY] #11 CACHED [2026-06-10T03:33:27.151Z] [DEPLOY] #12 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T03:33:27.151Z] [DEPLOY] #12 CACHED [2026-06-10T03:33:27.151Z] [DEPLOY] #13 [backend builder 7/10] COPY . . [2026-06-10T03:33:27.921Z] [DEPLOY] #13 DONE 0.9s [2026-06-10T03:33:28.079Z] [DEPLOY] #14 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T03:33:31.318Z] [DEPLOY] #14 3.387 Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:33:35.429Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.42s [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-10T03:33:35.430Z] [DEPLOY] #14 7.501 [2026-06-10T03:33:35.786Z] [DEPLOY] #14 DONE 7.9s [2026-06-10T03:33:35.942Z] [DEPLOY] #15 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T03:33:36.557Z] [DEPLOY] #15 0.767 [2026-06-10T03:33:36.557Z] [DEPLOY] #15 0.767 > backend@0.0.1 build /app [2026-06-10T03:33:36.558Z] [DEPLOY] #15 0.767 > nest build [2026-06-10T03:33:36.558Z] [DEPLOY] #15 0.767 [2026-06-10T03:34:16.448Z] [DEPLOY] #15 DONE 40.7s [2026-06-10T03:34:16.605Z] [DEPLOY] #16 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 total 80 [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 6 root root 4096 Jun 10 03:34 . [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 4 root root 4096 Jun 10 03:34 .. [2026-06-10T03:34:16.767Z] [DEPLOY] #16 0.314 drwxr-xr-x 3 root root 4096 Jun 10 03:34 __mocks__ [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 181 Jun 10 03:33 app.controller.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 1611 Jun 10 03:33 app.controller.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 436 Jun 10 03:33 app.controller.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 35 Jun 10 03:34 app.module.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 8972 Jun 10 03:34 app.module.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2525 Jun 10 03:34 app.module.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 60 Jun 10 03:33 app.service.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 981 Jun 10 03:33 app.service.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 281 Jun 10 03:33 app.service.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 4 root root 4096 Jun 10 03:33 common [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 11 Jun 10 03:34 main.d.ts [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2914 Jun 10 03:34 main.js [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 -rw-r--r-- 1 root root 2491 Jun 10 03:34 main.js.map [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 58 root root 4096 Jun 10 03:34 modules [2026-06-10T03:34:16.768Z] [DEPLOY] #16 0.314 drwxr-xr-x 2 root root 4096 Jun 10 03:33 prisma [2026-06-10T03:34:16.932Z] [DEPLOY] #16 DONE 0.3s [2026-06-10T03:34:26.074Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T03:34:26.079Z] [DEPLOY] #17 CACHED [2026-06-10T03:34:26.079Z] [DEPLOY] #18 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T03:34:26.079Z] [DEPLOY] #18 CACHED [2026-06-10T03:34:26.079Z] [DEPLOY] #19 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T03:34:26.080Z] [DEPLOY] #19 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:34:26.080Z] [DEPLOY] #20 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #21 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T03:34:26.080Z] [DEPLOY] #21 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #22 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:34:26.080Z] [DEPLOY] #22 CACHED [2026-06-10T03:34:26.080Z] [DEPLOY] #23 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T03:34:26.228Z] [DEPLOY] #23 CACHED [2026-06-10T03:34:26.229Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T03:34:26.565Z] [DEPLOY] #24 DONE 0.5s [2026-06-10T03:34:26.719Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T03:34:26.849Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T03:34:27.005Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T03:34:58.574Z] [DEPLOY] #26 DONE 31.7s [2026-06-10T03:34:58.743Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T03:34:58.743Z] [DEPLOY] #27 exporting layers [2026-06-10T03:35:18.493Z] [DEPLOY] #27 exporting layers 19.9s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting manifest sha256:2563fde0b0ccc2d8f7a41363d69bc2763c527e94b8fb10c3380234f18d61b01b 0.0s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting config sha256:d692e812a8fc528824eece32dc9dcb536e68696b4ab9e53fa7b04ff2c5142cb7 done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting attestation manifest sha256:2d626726bd2ca35e61c43e842b5f7573007629c29c5a8bea27ef352c0f5d471e 0.0s done [2026-06-10T03:35:18.714Z] [DEPLOY] #27 exporting manifest list sha256:0f7fa1b892659dc7eda91b91109231456f21d27ee090fa71ac39b50d66179526 done [2026-06-10T03:35:18.715Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T03:35:18.715Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T03:35:24.337Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 5.8s done [2026-06-10T03:35:24.520Z] [DEPLOY] #27 DONE 25.8s [2026-06-10T03:35:24.605Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T03:35:24.713Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T03:35:24.898Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T03:35:24.899Z] [DEPLOY] #29 transferring dockerfile: 1.38kB 0.0s done [2026-06-10T03:35:24.899Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T03:35:24.899Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:35:25.183Z] [DEPLOY] #2 DONE 1.4s [2026-06-10T03:35:25.425Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:35:25.425Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:35:25.426Z] [DEPLOY] #3 CACHED [2026-06-10T03:35:25.426Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:35:25.738Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T03:35:25.739Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T03:35:26.014Z] [DEPLOY] #30 DONE 0.7s [2026-06-10T03:35:26.172Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T03:35:26.231Z] [DEPLOY] #31 transferring context: [2026-06-10T03:35:26.400Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T03:35:26.401Z] [DEPLOY] #31 DONE 0.2s [2026-06-10T03:35:27.081Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:35:27.082Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:35:27.082Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T03:35:27.082Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.0s done [2026-06-10T03:35:27.082Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T03:35:27.082Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:35:27.082Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:35:27.082Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T03:35:27.114Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:35:27.225Z] [DEPLOY] #32 transferring context: 377.06kB 0.1s done [2026-06-10T03:35:27.225Z] [DEPLOY] #32 DONE 0.1s [2026-06-10T03:35:27.225Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:35:27.226Z] [DEPLOY] #34 CACHED [2026-06-10T03:35:27.226Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:35:27.226Z] [DEPLOY] #35 CACHED [2026-06-10T03:35:27.226Z] [DEPLOY] #10 [frontend builder 2/7] WORKDIR /app [2026-06-10T03:35:27.226Z] [DEPLOY] #10 CACHED [2026-06-10T03:35:27.226Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T03:35:27.380Z] [DEPLOY] #36 CACHED [2026-06-10T03:35:27.380Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T03:35:27.541Z] [DEPLOY] #37 DONE 0.3s [2026-06-10T03:35:27.694Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 > frontend@1.0.0 build /app [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 > tsc && vite build [2026-06-10T03:35:28.310Z] [DEPLOY] #38 0.765 [2026-06-10T03:36:18.035Z] [DEPLOY] #38 50.49 vite v5.4.21 building for production... [2026-06-10T03:36:18.655Z] [DEPLOY] #38 51.11 transforming... [2026-06-10T03:36:18.757Z] [DEPLOY] #38 51.21 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T03:36:18.758Z] [DEPLOY] #38 51.21 npx update-browserslist-db@latest [2026-06-10T03:36:18.758Z] [DEPLOY] #38 51.21 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T03:36:40.880Z] [DEPLOY] #38 73.34 ✓ 4326 modules transformed. [2026-06-10T03:36:42.877Z] [DEPLOY] #38 75.33 rendering chunks... [2026-06-10T03:36:48.845Z] [DEPLOY] #38 81.30 computing gzip size... [2026-06-10T03:36:49.087Z] [DEPLOY] #38 81.54 dist/registerSW.js 0.13 kB [2026-06-10T03:36:49.087Z] [DEPLOY] #38 81.54 dist/manifest.webmanifest 0.54 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index-DFw90CBK.css 163.37 kB │ gzip: 24.94 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index.es-BxYGIoyk.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 dist/assets/index-C4ZTbyEq.js 4,164.40 kB │ gzip: 1,081.31 kB [2026-06-10T03:36:49.264Z] [DEPLOY] #38 81.54 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Using dynamic import() to code-split the application [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.54 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.55 ✓ built in 31.01s [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 PWA v1.2.0 [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.56 Building src/sw.ts service worker ("es" format)... [2026-06-10T03:36:49.265Z] [DEPLOY] #38 81.57 vite v5.4.21 building for production... [2026-06-10T03:36:50.896Z] [DEPLOY] #38 83.35 transforming... [2026-06-10T03:36:51.018Z] [DEPLOY] #38 83.36 ✓ 1 modules transformed. [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.37 rendering chunks... [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 computing gzip size... [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.38 ✓ built in 1.81s [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 PWA v1.2.0 [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 mode injectManifest [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 format: es [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 precache 15 entries (4953.65 KiB) [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 files generated [2026-06-10T03:36:51.019Z] [DEPLOY] #38 83.47 dist/sw.js [2026-06-10T03:36:51.378Z] [DEPLOY] #38 DONE 83.8s [2026-06-10T03:36:55.359Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T03:36:55.359Z] [DEPLOY] #39 CACHED [2026-06-10T03:36:55.359Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T03:36:55.586Z] [DEPLOY] #40 CACHED [2026-06-10T03:36:55.586Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T03:36:55.586Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T03:36:55.586Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T03:36:55.586Z] [DEPLOY] #42 exporting layers [2026-06-10T03:36:55.651Z] [DEPLOY] #42 exporting layers 0.2s done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting manifest sha256:25875ea5bf9e97b311566464fbba1a9b88beb019b54d14c72948ec17ff78cd70 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting config sha256:6e617f53654b505afa5f565339ea1d38edf6712f4fc578f2f66aa7ddf9f2bcb8 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting attestation manifest sha256:f1b7ff5d0bfd27505570b72466d9b552f6c90b4942d8da97b14d356f561d6816 0.0s done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 exporting manifest list sha256:029e2e9370281d91f0b42bca25fab73045b3b4056f48836f7b85d231f692abd4 done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T03:36:55.764Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T03:36:55.941Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T03:36:55.946Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T03:36:55.953Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T03:36:55.954Z] [STDERR] backend Built [2026-06-10T03:36:55.954Z] [STDERR] frontend Built [2026-06-10T03:36:55.967Z] [DEPLOY] [2026-06-10 03:36:55] ✓ New images built successfully [2026-06-10T03:36:55.968Z] [DEPLOY] [2026-06-10 03:36:55] STEP: Step 5/8: Running database migrations... [2026-06-10T03:36:55.970Z] [DEPLOY] [2026-06-10 03:36:55] Checking for pending migrations... [2026-06-10T03:36:55.971Z] [DEPLOY] [2026-06-10 03:36:55] Applying schema changes... [2026-06-10T03:36:58.770Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:36:58.822Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T03:36:59.650Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T03:36:59.693Z] [DEPLOY] npm notice [2026-06-10T03:37:00.054Z] [DEPLOY] [2026-06-10 03:37:00] ✓ Database schema already in sync [2026-06-10T03:37:00.067Z] [DEPLOY] [2026-06-10 03:37:00] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T03:37:00.072Z] [DEPLOY] [2026-06-10 03:37:00] Updating backend container... [2026-06-10T03:37:00.515Z] [STDERR] Container clicknex-redis Running [2026-06-10T03:37:00.515Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T03:37:11.407Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T03:37:11.439Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T03:37:11.942Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T03:37:11.943Z] [STDERR] Container clicknex-backend Starting [2026-06-10T03:37:12.305Z] [STDERR] Container clicknex-backend Started [2026-06-10T03:37:17.415Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T03:37:19.493Z] [DEPLOY] Waiting for Backend... (2/30) [status: starting] [2026-06-10T03:37:21.556Z] [DEPLOY] Waiting for Backend... (3/30) [status: starting] [2026-06-10T03:37:23.611Z] [DEPLOY] [2026-06-10 03:37:23] ✓ Backend health check passed (healthy) [2026-06-10T03:37:23.613Z] [DEPLOY] [2026-06-10 03:37:23] Updating frontend container... [2026-06-10T03:37:23.815Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T03:37:24.521Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T03:37:24.610Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T03:37:24.909Z] [STDERR] Container clicknex-frontend Started [2026-06-10T03:37:24.919Z] [DEPLOY] [2026-06-10 03:37:24] ✓ New containers started [2026-06-10T03:37:24.921Z] [DEPLOY] [2026-06-10 03:37:24] STEP: Step 7/8: Running health checks... [2026-06-10T03:37:24.985Z] [DEPLOY] [2026-06-10 03:37:24] ✓ Backend health check passed (healthy) [2026-06-10T03:37:25.067Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T03:37:27.131Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T03:37:29.198Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T03:37:31.254Z] [DEPLOY] [2026-06-10 03:37:31] ✓ Frontend health check passed (healthy) [2026-06-10T03:37:31.255Z] [DEPLOY] [2026-06-10 03:37:31] ✓ All health checks passed [2026-06-10T03:37:31.255Z] [DEPLOY] [2026-06-10 03:37:31] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T03:37:33.563Z] [DEPLOY] [2026-06-10 03:37:33] ✓ Cleanup completed (disco: ?%) [2026-06-10T03:37:33.564Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:37:33.564Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T03:37:33.564Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:37:33.567Z] [DEPLOY] ║ Commit: d3d452a ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ Time: 2026-06-10 03:37:33 ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ Services: ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T03:37:33.568Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T03:37:33.569Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:37:33.572Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T03:37:33.574Z] [INFO] ====================================================== [2026-06-10T03:37:33.574Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.12 em 524s [2026-06-10T03:37:33.574Z] [INFO] ====================================================== [2026-06-10T03:49:41.821Z] [INFO] Deploy manual disparado (commit dc4b7aff) [2026-06-10T03:49:41.822Z] [INFO] ====================================================== [2026-06-10T03:49:41.823Z] [INFO] DEPLOY INICIADO — v1.0.13 [2026-06-10T03:49:41.823Z] [INFO] Commit: dc4b7aff87771990f0ba48d76c14678960586fa1 [2026-06-10T03:49:41.823Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T03:49:41.823Z] [INFO] Branch: main [2026-06-10T03:49:41.823Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T03:49:41.823Z] [INFO] ====================================================== [2026-06-10T03:49:41.823Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T03:49:41.823Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T03:49:41.828Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:49:41.828Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T03:49:41.828Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:49:41.830Z] [DEPLOY] [2026-06-10 03:49:41] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T03:49:43.580Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T03:49:43.581Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T03:49:43.581Z] [STDERR] d3d452a..dc4b7af main -> origin/main [2026-06-10T03:49:43.604Z] [DEPLOY] [2026-06-10 03:49:43] Deploy do commit validado pelo CI: dc4b7aff87771990f0ba48d76c14678960586fa1 [2026-06-10T03:49:43.621Z] [STDERR] Reset branch 'main' [2026-06-10T03:49:43.622Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T03:49:43.624Z] [DEPLOY] [2026-06-10 03:49:43] ✓ Code updated to latest version [2026-06-10T03:49:43.626Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Step 2/8: Backing up current state... [2026-06-10T03:49:43.627Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Creating backup of current state... [2026-06-10T03:49:43.928Z] [DEPLOY] [2026-06-10 03:49:43] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T03:49:43.929Z] [DEPLOY] [2026-06-10 03:49:43] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T03:49:43.933Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T03:49:43.933Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T03:49:43.934Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T03:49:43.934Z] [DEPLOY] Database: saas_crm [2026-06-10T03:49:43.934Z] [DEPLOY] Host: localhost:5432 [2026-06-10T03:49:43.934Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz [2026-06-10T03:49:43.934Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T03:54:00.072Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz (2.9G) [2026-06-10T03:54:00.079Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T03:54:00.097Z] [DEPLOY] removendo antigo: backup_20260609_231438.sql.gz [2026-06-10T03:54:00.219Z] [DEPLOY] Current backups: [2026-06-10T03:54:00.220Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 00:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_000155.sql.gz [2026-06-10T03:54:00.221Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:33 /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T03:54:00.221Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:54 /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz [2026-06-10T03:54:00.221Z] [DEPLOY] Backup completed! [2026-06-10T03:54:00.223Z] [DEPLOY] [2026-06-10 03:54:00] ✓ Database backup completed [2026-06-10T03:54:00.224Z] [DEPLOY] [2026-06-10 03:54:00] STEP: Step 4/8: Building new Docker images... [2026-06-10T03:54:00.240Z] [DEPLOY] [2026-06-10 03:54:00] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T03:54:00.927Z] [DEPLOY] [2026-06-10 03:54:00] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T03:54:01.264Z] [DEPLOY] [2026-06-10 03:54:01] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T03:54:01.628Z] [STDERR] time="2026-06-10T03:54:01Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T03:54:02.183Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T03:54:02.184Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T03:54:02.184Z] [DEPLOY] #1 transferring dockerfile: 3.00kB 0.0s done [2026-06-10T03:54:02.185Z] [DEPLOY] #1 DONE 0.1s [2026-06-10T03:54:02.185Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:54:03.022Z] [DEPLOY] #2 DONE 1.0s [2026-06-10T03:54:03.265Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:03.265Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.1s done [2026-06-10T03:54:03.266Z] [DEPLOY] #3 DONE 0.1s [2026-06-10T03:54:03.285Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:03.285Z] [DEPLOY] #3 CACHED [2026-06-10T03:54:03.845Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:54:04.596Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T03:54:04.715Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T03:54:04.716Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T03:54:04.716Z] [DEPLOY] #5 DONE 0.0s [2026-06-10T03:54:04.879Z] [DEPLOY] #6 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:54:04.879Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T03:54:04.879Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T03:54:04.879Z] [DEPLOY] #7 [backend internal] load build context [2026-06-10T03:54:04.879Z] [DEPLOY] #7 transferring context: 93.91kB 0.1s done [2026-06-10T03:54:05.017Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T03:54:05.017Z] [DEPLOY] #8 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T03:54:05.017Z] [DEPLOY] #8 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #9 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T03:54:05.017Z] [DEPLOY] #9 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #10 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:05.017Z] [DEPLOY] #10 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #11 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T03:54:05.017Z] [DEPLOY] #11 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #12 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:05.017Z] [DEPLOY] #12 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #13 [backend builder 2/10] WORKDIR /app [2026-06-10T03:54:05.017Z] [DEPLOY] #13 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #14 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T03:54:05.017Z] [DEPLOY] #14 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #15 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T03:54:05.017Z] [DEPLOY] #15 CACHED [2026-06-10T03:54:05.017Z] [DEPLOY] #16 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T03:54:05.017Z] [DEPLOY] #16 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #17 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:05.018Z] [DEPLOY] #17 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #18 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T03:54:05.018Z] [DEPLOY] #18 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #19 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T03:54:05.018Z] [DEPLOY] #19 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #20 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:05.018Z] [DEPLOY] #20 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #21 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T03:54:05.018Z] [DEPLOY] #21 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #22 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T03:54:05.018Z] [DEPLOY] #22 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #23 [backend builder 7/10] COPY . . [2026-06-10T03:54:05.018Z] [DEPLOY] #23 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #24 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T03:54:05.018Z] [DEPLOY] #24 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #25 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T03:54:05.018Z] [DEPLOY] #25 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T03:54:05.018Z] [DEPLOY] #26 CACHED [2026-06-10T03:54:05.018Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting layers 0.0s done [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting manifest sha256:2563fde0b0ccc2d8f7a41363d69bc2763c527e94b8fb10c3380234f18d61b01b done [2026-06-10T03:54:05.019Z] [DEPLOY] #27 exporting config sha256:d692e812a8fc528824eece32dc9dcb536e68696b4ab9e53fa7b04ff2c5142cb7 done [2026-06-10T03:54:05.020Z] [DEPLOY] #27 exporting attestation manifest sha256:f53ca844da2c7efd85ed388b798594ed801047bd665b56bf00b955b33edd6271 [2026-06-10T03:54:05.127Z] [DEPLOY] #27 exporting attestation manifest sha256:f53ca844da2c7efd85ed388b798594ed801047bd665b56bf00b955b33edd6271 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 exporting manifest list sha256:c1e8c6055c87ee3d1b934a227e0bb4e4a530319facd8e3192fcb0ee3342759a0 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 0.0s done [2026-06-10T03:54:05.127Z] [DEPLOY] #27 DONE 0.2s [2026-06-10T03:54:05.397Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T03:54:05.510Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T03:54:05.683Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T03:54:05.683Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T03:54:05.683Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T03:54:05.683Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T03:54:05.755Z] [DEPLOY] #2 DONE 1.2s [2026-06-10T03:54:05.876Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T03:54:05.877Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T03:54:05.877Z] [DEPLOY] #3 CACHED [2026-06-10T03:54:05.877Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T03:54:06.109Z] [DEPLOY] #4 DONE 1.0s [2026-06-10T03:54:06.109Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T03:54:06.650Z] [DEPLOY] #30 DONE 0.8s [2026-06-10T03:54:06.785Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T03:54:06.786Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T03:54:06.786Z] [DEPLOY] #31 DONE 0.0s [2026-06-10T03:54:06.786Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:54:06.786Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:54:06.786Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T03:54:06.786Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-10T03:54:07.029Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T03:54:07.030Z] [DEPLOY] #6 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T03:54:07.032Z] [DEPLOY] #6 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-10T03:54:07.033Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T03:54:07.033Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T03:54:07.033Z] [DEPLOY] #32 transferring context: 96.84kB 0.0s done [2026-06-10T03:54:07.033Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T03:54:07.033Z] [DEPLOY] #13 [frontend builder 2/7] WORKDIR /app [2026-06-10T03:54:07.033Z] [DEPLOY] #13 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #34 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T03:54:07.034Z] [DEPLOY] #34 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #35 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T03:54:07.034Z] [DEPLOY] #35 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T03:54:07.034Z] [DEPLOY] #36 CACHED [2026-06-10T03:54:07.034Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T03:54:07.188Z] [DEPLOY] #37 DONE 0.3s [2026-06-10T03:54:07.341Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T03:54:08.115Z] [DEPLOY] #38 0.925 [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 > frontend@1.0.0 build /app [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 > tsc && vite build [2026-06-10T03:54:08.116Z] [DEPLOY] #38 0.925 [2026-06-10T03:54:55.221Z] [DEPLOY] #38 48.03 vite v5.4.21 building for production... [2026-06-10T03:54:55.834Z] [DEPLOY] #38 48.64 transforming... [2026-06-10T03:54:56.025Z] [DEPLOY] #38 48.83 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T03:54:56.025Z] [DEPLOY] #38 48.83 npx update-browserslist-db@latest [2026-06-10T03:54:56.026Z] [DEPLOY] #38 48.83 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T03:55:21.801Z] [DEPLOY] #38 74.61 ✓ 4326 modules transformed. [2026-06-10T03:55:23.425Z] [DEPLOY] #38 76.23 rendering chunks... [2026-06-10T03:55:25.468Z] [DEPLOY] #38 78.28 computing gzip size... [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/registerSW.js 0.13 kB [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/manifest.webmanifest 0.54 kB [2026-06-10T03:55:25.644Z] [DEPLOY] #38 78.45 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index-DFw90CBK.css 163.37 kB │ gzip: 24.94 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index.es-Drtkzpyb.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 dist/assets/index-BFofoGnV.js 4,164.40 kB │ gzip: 1,081.30 kB [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Using dynamic import() to code-split the application [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.45 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T03:55:25.808Z] [DEPLOY] #38 78.46 ✓ built in 30.39s [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 PWA v1.2.0 [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 Building src/sw.ts service worker ("es" format)... [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.46 vite v5.4.21 building for production... [2026-06-10T03:55:25.809Z] [DEPLOY] #38 78.47 transforming... [2026-06-10T03:55:27.102Z] [DEPLOY] #38 79.91 ✓ 1 modules transformed. [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.95 rendering chunks... [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.97 computing gzip size... [2026-06-10T03:55:27.351Z] [DEPLOY] #38 79.99 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T03:55:27.351Z] [DEPLOY] #38 80.01 ✓ built in 1.55s [2026-06-10T03:55:27.619Z] [DEPLOY] #38 80.43 [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 PWA v1.2.0 [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 mode injectManifest [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 format: es [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 precache 15 entries (4953.65 KiB) [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 files generated [2026-06-10T03:55:27.620Z] [DEPLOY] #38 80.43 dist/sw.js [2026-06-10T03:55:28.463Z] [DEPLOY] #38 DONE 81.3s [2026-06-10T03:55:30.051Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T03:55:30.055Z] [DEPLOY] #39 CACHED [2026-06-10T03:55:30.055Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T03:55:30.273Z] [DEPLOY] #40 CACHED [2026-06-10T03:55:30.274Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T03:55:30.274Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T03:55:30.274Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T03:55:30.274Z] [DEPLOY] #42 exporting layers [2026-06-10T03:55:30.400Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T03:55:30.550Z] [DEPLOY] #42 exporting manifest sha256:98c8f98fea5ae6486555c604a9a05b6a5f5188dfa3cacc9df7e6e6bef9c49111 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting config sha256:66112d1eef3bb52f82b5881ac265402072a1f8d135ea4054f6eff92f045cfb54 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting attestation manifest sha256:c383c83f2cc0e301176c76384d4d53b66c136eb076132e8c8ded8e26f7f6e1cc 0.0s done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 exporting manifest list sha256:ac1c33e5089a86b4aaa156d0269a33cff4c4ebd02ed8a10726cced1967a8afb4 done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T03:55:30.551Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T03:55:30.735Z] [DEPLOY] #42 DONE 0.5s [2026-06-10T03:55:30.772Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T03:55:30.792Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T03:55:30.794Z] [STDERR] backend Built [2026-06-10T03:55:30.794Z] [STDERR] frontend Built [2026-06-10T03:55:30.809Z] [DEPLOY] [2026-06-10 03:55:30] ✓ New images built successfully [2026-06-10T03:55:30.810Z] [DEPLOY] [2026-06-10 03:55:30] STEP: Step 5/8: Running database migrations... [2026-06-10T03:55:30.811Z] [DEPLOY] [2026-06-10 03:55:30] Checking for pending migrations... [2026-06-10T03:55:30.812Z] [DEPLOY] [2026-06-10 03:55:30] Applying schema changes... [2026-06-10T03:55:33.221Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T03:55:33.264Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T03:55:33.815Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T03:55:33.868Z] [DEPLOY] npm notice [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T03:55:33.869Z] [DEPLOY] npm notice [2026-06-10T03:55:34.180Z] [DEPLOY] [2026-06-10 03:55:34] ✓ Database schema already in sync [2026-06-10T03:55:34.180Z] [DEPLOY] [2026-06-10 03:55:34] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T03:55:34.182Z] [DEPLOY] [2026-06-10 03:55:34] Updating backend container... [2026-06-10T03:55:34.422Z] [STDERR] Container clicknex-redis Running [2026-06-10T03:55:34.423Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T03:55:44.944Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T03:55:44.983Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T03:55:45.486Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T03:55:45.487Z] [STDERR] Container clicknex-backend Starting [2026-06-10T03:55:45.791Z] [STDERR] Container clicknex-backend Started [2026-06-10T03:55:50.895Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T03:55:52.940Z] [DEPLOY] [2026-06-10 03:55:52] ✓ Backend health check passed (healthy) [2026-06-10T03:55:52.943Z] [DEPLOY] [2026-06-10 03:55:52] Updating frontend container... [2026-06-10T03:55:53.129Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T03:55:53.524Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T03:55:53.553Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T03:55:53.761Z] [STDERR] Container clicknex-frontend Started [2026-06-10T03:55:53.773Z] [DEPLOY] [2026-06-10 03:55:53] ✓ New containers started [2026-06-10T03:55:53.774Z] [DEPLOY] [2026-06-10 03:55:53] STEP: Step 7/8: Running health checks... [2026-06-10T03:55:53.818Z] [DEPLOY] [2026-06-10 03:55:53] ✓ Backend health check passed (healthy) [2026-06-10T03:55:53.862Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T03:55:55.917Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T03:55:57.971Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T03:56:00.141Z] [DEPLOY] [2026-06-10 03:56:00] ✓ Frontend health check passed (healthy) [2026-06-10T03:56:00.157Z] [DEPLOY] [2026-06-10 03:56:00] ✓ All health checks passed [2026-06-10T03:56:00.165Z] [DEPLOY] [2026-06-10 03:56:00] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T03:56:03.032Z] [DEPLOY] [2026-06-10 03:56:03] ✓ Cleanup completed (disco: ?%) [2026-06-10T03:56:03.032Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T03:56:03.033Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T03:56:03.033Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:56:03.036Z] [DEPLOY] ║ Commit: dc4b7af ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ Time: 2026-06-10 03:56:03 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ Services: ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T03:56:03.040Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T03:56:03.047Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T03:56:03.051Z] [INFO] ====================================================== [2026-06-10T03:56:03.052Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.13 em 381s [2026-06-10T03:56:03.052Z] [INFO] ====================================================== [2026-06-10T04:02:50.837Z] [INFO] Deploy manual disparado (commit fdc240b2) [2026-06-10T04:02:50.839Z] [INFO] ====================================================== [2026-06-10T04:02:50.839Z] [INFO] DEPLOY INICIADO — v1.0.14 [2026-06-10T04:02:50.839Z] [INFO] Commit: fdc240b207690726070f90b2f9746e639fa737b4 [2026-06-10T04:02:50.839Z] [INFO] Mensagem: Deploy via CI (testes OK) [2026-06-10T04:02:50.839Z] [INFO] Branch: main [2026-06-10T04:02:50.839Z] [INFO] Disparado por: jhon4than (CI) [2026-06-10T04:02:50.839Z] [INFO] ====================================================== [2026-06-10T04:02:50.839Z] [INFO] Iniciando deploy: /www/wwwroot/saas_crm/scripts/deploy-zero-downtime.sh [2026-06-10T04:02:50.839Z] [INFO] PROJECT_PATH=/www/wwwroot/saas_crm [2026-06-10T04:02:50.848Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T04:02:50.848Z] [DEPLOY] ║ ClickNex CRM - Zero Downtime Deployment ║ [2026-06-10T04:02:50.848Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T04:02:50.849Z] [DEPLOY] [2026-06-10 04:02:50] STEP: Step 1/8: Pulling latest code from repository... [2026-06-10T04:02:52.733Z] [STDERR] From github.com:jhon4than/saas_crm [2026-06-10T04:02:52.733Z] [STDERR] * branch main -> FETCH_HEAD [2026-06-10T04:02:52.733Z] [STDERR] dc4b7af..fdc240b main -> origin/main [2026-06-10T04:02:52.766Z] [DEPLOY] [2026-06-10 04:02:52] Deploy do commit validado pelo CI: fdc240b207690726070f90b2f9746e639fa737b4 [2026-06-10T04:02:52.815Z] [STDERR] Reset branch 'main' [2026-06-10T04:02:52.815Z] [DEPLOY] Your branch is up to date with 'origin/main'. [2026-06-10T04:02:52.817Z] [DEPLOY] [2026-06-10 04:02:52] ✓ Code updated to latest version [2026-06-10T04:02:52.818Z] [DEPLOY] [2026-06-10 04:02:52] STEP: Step 2/8: Backing up current state... [2026-06-10T04:02:52.820Z] [DEPLOY] [2026-06-10 04:02:52] STEP: Creating backup of current state... [2026-06-10T04:02:53.101Z] [DEPLOY] [2026-06-10 04:02:53] ✓ Backup created at /www/wwwroot/saas_crm/backups [2026-06-10T04:02:53.105Z] [DEPLOY] [2026-06-10 04:02:53] STEP: Step 3/8: Creating database backup (safety first!)... [2026-06-10T04:02:53.112Z] [DEPLOY] ╔════════════════════════════════════════╗ [2026-06-10T04:02:53.112Z] [DEPLOY] ║ ClickNex CRM - Database Backup ║ [2026-06-10T04:02:53.112Z] [DEPLOY] ╚════════════════════════════════════════╝ [2026-06-10T04:02:53.113Z] [DEPLOY] Database: saas_crm [2026-06-10T04:02:53.113Z] [DEPLOY] Host: localhost:5432 [2026-06-10T04:02:53.113Z] [DEPLOY] Backup file: /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz [2026-06-10T04:02:53.113Z] [DEPLOY] pg_dump not found locally, using Docker... [2026-06-10T04:07:19.360Z] [DEPLOY] ✓ Backup created successfully: /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz (2.9G) [2026-06-10T04:07:19.367Z] [DEPLOY] Mantendo apenas os 3 backup(s) mais recente(s)... [2026-06-10T04:07:19.378Z] [DEPLOY] removendo antigo: backup_20260610_000155.sql.gz [2026-06-10T04:07:19.398Z] [DEPLOY] Current backups: [2026-06-10T04:07:19.402Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:33 /www/wwwroot/saas_crm/backups/database/backup_20260610_032852.sql.gz [2026-06-10T04:07:19.402Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 03:54 /www/wwwroot/saas_crm/backups/database/backup_20260610_034943.sql.gz [2026-06-10T04:07:19.402Z] [DEPLOY] -rw-r--r-- 1 root root 2.9G Jun 10 04:07 /www/wwwroot/saas_crm/backups/database/backup_20260610_040253.sql.gz [2026-06-10T04:07:19.402Z] [DEPLOY] Backup completed! [2026-06-10T04:07:19.405Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Database backup completed [2026-06-10T04:07:19.409Z] [DEPLOY] [2026-06-10 04:07:19] STEP: Step 4/8: Building new Docker images... [2026-06-10T04:07:19.411Z] [DEPLOY] [2026-06-10 04:07:19] STEP: Snapshot das imagens atuais (rede de segurança p/ rollback)... [2026-06-10T04:07:19.906Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Backend atual salvo como clicknex-backend:prev [2026-06-10T04:07:19.956Z] [DEPLOY] [2026-06-10 04:07:19] ✓ Frontend atual salvo como clicknex-frontend:prev [2026-06-10T04:07:20.137Z] [STDERR] time="2026-06-10T04:07:20Z" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed" [2026-06-10T04:07:20.443Z] [DEPLOY] #0 building with "default" instance using docker driver [2026-06-10T04:07:20.444Z] [DEPLOY] #1 [backend internal] load build definition from Dockerfile [2026-06-10T04:07:20.444Z] [DEPLOY] #1 transferring dockerfile: 3.00kB done [2026-06-10T04:07:20.444Z] [DEPLOY] #1 DONE 0.0s [2026-06-10T04:07:20.444Z] [DEPLOY] #2 [backend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T04:07:21.098Z] [DEPLOY] #2 DONE 0.8s [2026-06-10T04:07:21.290Z] [DEPLOY] #3 [backend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T04:07:21.290Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T04:07:21.294Z] [DEPLOY] #3 CACHED [2026-06-10T04:07:21.294Z] [DEPLOY] #4 [backend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T04:07:22.035Z] [DEPLOY] #4 DONE 0.7s [2026-06-10T04:07:22.189Z] [DEPLOY] #5 [backend internal] load .dockerignore [2026-06-10T04:07:22.217Z] [DEPLOY] #5 transferring context: [2026-06-10T04:07:22.346Z] [DEPLOY] #5 transferring context: 304B done [2026-06-10T04:07:22.346Z] [DEPLOY] #5 DONE 0.2s [2026-06-10T04:07:22.346Z] [DEPLOY] #6 [backend internal] load build context [2026-06-10T04:07:22.346Z] [DEPLOY] #6 DONE 0.0s [2026-06-10T04:07:22.346Z] [DEPLOY] #7 [backend builder 1/10] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T04:07:22.346Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.0s done [2026-06-10T04:07:22.475Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T04:07:22.475Z] [DEPLOY] #6 [backend internal] load build context [2026-06-10T04:07:22.475Z] [DEPLOY] #6 transferring context: 300.64kB 0.1s done [2026-06-10T04:07:22.621Z] [DEPLOY] #6 DONE 0.1s [2026-06-10T04:07:22.622Z] [DEPLOY] #8 [backend production 4/12] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:07:22.622Z] [DEPLOY] #8 CACHED [2026-06-10T04:07:22.622Z] [DEPLOY] #9 [backend production 3/12] RUN apk add --no-cache openssl libc6-compat ffmpeg [2026-06-10T04:07:22.622Z] [DEPLOY] #9 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #10 [backend production 5/12] RUN addgroup -g 1001 -S nodejs && adduser -S nestjs -u 1001 [2026-06-10T04:07:22.623Z] [DEPLOY] #10 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #11 [backend builder 2/10] WORKDIR /app [2026-06-10T04:07:22.623Z] [DEPLOY] #11 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #12 [backend builder 3/10] RUN apk add --no-cache openssl libc6-compat python3 make g++ [2026-06-10T04:07:22.623Z] [DEPLOY] #12 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #13 [backend builder 4/10] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:07:22.623Z] [DEPLOY] #13 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #14 [backend builder 5/10] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:07:22.623Z] [DEPLOY] #14 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #15 [backend production 6/12] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:07:22.623Z] [DEPLOY] #15 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #16 [backend builder 6/10] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T04:07:22.623Z] [DEPLOY] #16 CACHED [2026-06-10T04:07:22.623Z] [DEPLOY] #17 [backend production 7/12] COPY prisma ./prisma/ [2026-06-10T04:07:22.623Z] [DEPLOY] #17 DONE 0.1s [2026-06-10T04:07:22.623Z] [DEPLOY] #18 [backend builder 7/10] COPY . . [2026-06-10T04:07:22.925Z] [DEPLOY] #18 DONE 0.4s [2026-06-10T04:07:22.925Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T04:07:23.938Z] [DEPLOY] #19 1.316 Lockfile is up to date, resolution step is skipped [2026-06-10T04:07:24.058Z] [DEPLOY] #19 1.436 Progress: resolved 1, reused 0, downloaded 0, added 0 [2026-06-10T04:07:24.159Z] [DEPLOY] #19 1.538 Packages: +232 [2026-06-10T04:07:24.160Z] [DEPLOY] #19 1.538 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 ╭──────────────────────────────────────────────╮ [2026-06-10T04:07:24.400Z] [DEPLOY] #19 1.778 │ │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ Update available! 10.25.0 → 11.5.2. │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ Changelog: https://pnpm.io/v/11.5.2 │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ To update, run: corepack use pnpm@11.5.2 │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 │ │ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 ╰──────────────────────────────────────────────╯ [2026-06-10T04:07:24.401Z] [DEPLOY] #19 1.778 [2026-06-10T04:07:25.074Z] [DEPLOY] #19 2.452 Progress: resolved 232, reused 15, downloaded 0, added 0 [2026-06-10T04:07:26.076Z] [DEPLOY] #19 3.454 Progress: resolved 232, reused 232, downloaded 0, added 0 [2026-06-10T04:07:27.078Z] [DEPLOY] #19 4.456 Progress: resolved 232, reused 232, downloaded 0, added 15 [2026-06-10T04:07:28.081Z] [DEPLOY] #19 5.456 Progress: resolved 232, reused 232, downloaded 0, added 19 [2026-06-10T04:07:29.078Z] [DEPLOY] #19 6.457 Progress: resolved 232, reused 232, downloaded 0, added 21 [2026-06-10T04:07:30.085Z] [DEPLOY] #19 7.464 Progress: resolved 232, reused 232, downloaded 0, added 27 [2026-06-10T04:07:31.086Z] [DEPLOY] #19 8.464 Progress: resolved 232, reused 232, downloaded 0, added 28 [2026-06-10T04:07:31.419Z] [DEPLOY] #19 ... [2026-06-10T04:07:31.420Z] [DEPLOY] #20 [backend builder 8/10] RUN pnpm prisma generate [2026-06-10T04:07:31.420Z] [DEPLOY] #20 2.692 Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 2.99s [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 8.031 [2026-06-10T04:07:31.420Z] [DEPLOY] #20 DONE 8.5s [2026-06-10T04:07:31.575Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 > backend@0.0.1 build /app [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 > nest build [2026-06-10T04:07:32.721Z] [DEPLOY] #21 1.299 [2026-06-10T04:07:36.729Z] [DEPLOY] #21 ... [2026-06-10T04:07:36.729Z] [DEPLOY] #19 [backend production 8/12] RUN --mount=type=cache,id=clicknex-pnpm,target=/pnpm-store pnpm install --frozen-lockfile --prod --store-dir /pnpm-store [2026-06-10T04:07:36.729Z] [DEPLOY] #19 9.464 Progress: resolved 232, reused 232, downloaded 0, added 111 [2026-06-10T04:07:36.729Z] [DEPLOY] #19 10.47 Progress: resolved 232, reused 232, downloaded 0, added 154 [2026-06-10T04:07:36.729Z] [DEPLOY] #19 11.47 Progress: resolved 232, reused 232, downloaded 0, added 198 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 12.47 Progress: resolved 232, reused 232, downloaded 0, added 212 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.36 Progress: resolved 232, reused 232, downloaded 0, added 232, done [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 dependencies: [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/common 11.1.9 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/config 4.0.2 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/core 11.1.9 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/event-emitter 3.1.0 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/jwt 11.0.2 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/passport 11.0.5 [2026-06-10T04:07:36.730Z] [DEPLOY] #19 13.84 + @nestjs/platform-express 11.1.9 [2026-06-10T04:07:36.736Z] [DEPLOY] #19 13.84 + @nestjs/schedule 6.1.0 [2026-06-10T04:07:36.736Z] [DEPLOY] #19 13.84 + @nestjs/serve-static 5.0.4 [2026-06-10T04:07:36.739Z] [DEPLOY] #19 13.84 + @nestjs/swagger 11.2.3 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @nestjs/throttler 6.5.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @prisma/client 5.22.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + @sendgrid/mail 8.1.6 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + adm-zip 0.5.16 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + argon2 0.44.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + axios 1.13.2 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + class-transformer 0.5.1 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + class-validator 0.14.3 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + compression 1.8.1 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + express 5.1.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + form-data 4.0.5 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + helmet 8.1.0 [2026-06-10T04:07:36.740Z] [DEPLOY] #19 13.84 + multer 2.0.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + passport 0.7.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + passport-jwt 4.0.1 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + pdf-parse 2.4.5 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + pdf2pic 3.2.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + prisma 5.22.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + reflect-metadata 0.2.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + rxjs 7.8.2 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + sharp 0.34.5 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + stripe 22.1.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + swagger-ui-express 5.0.1 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + uuid 13.0.0 [2026-06-10T04:07:36.741Z] [DEPLOY] #19 13.84 + web-push 3.6.7 [2026-06-10T04:07:36.773Z] [DEPLOY] #19 13.84 + xlsx 0.18.5 [2026-06-10T04:07:36.773Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.84 devDependencies: skipped [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.84 [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 ╭ Warning ─────────────────────────────────────────────────────────────────────╮ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ │ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ Ignored build scripts: @nestjs/core@11.1.9, @prisma/client@5.22.0, │ [2026-06-10T04:07:36.774Z] [DEPLOY] #19 13.91 │ @prisma/engines@5.22.0, @scarf/scarf@1.4.0, argon2@0.44.0, │ [2026-06-10T04:07:36.775Z] [DEPLOY] #19 13.91 │ prisma@5.22.0. │ [2026-06-10T04:07:36.775Z] [DEPLOY] #19 13.91 │ Run "pnpm approve-builds" to pick which dependencies should be allowed │ [2026-06-10T04:07:36.776Z] [DEPLOY] #19 13.91 │ to run scripts. │ [2026-06-10T04:07:36.776Z] [DEPLOY] #19 13.91 │ │ [2026-06-10T04:07:36.777Z] [DEPLOY] #19 13.91 ╰──────────────────────────────────────────────────────────────────────────────╯ [2026-06-10T04:07:36.778Z] [DEPLOY] #19 13.92 Done in 13.3s using pnpm v10.25.0 [2026-06-10T04:07:36.778Z] [DEPLOY] #19 DONE 14.1s [2026-06-10T04:07:36.905Z] [DEPLOY] #22 [backend production 9/12] RUN pnpm prisma generate [2026-06-10T04:07:39.839Z] [DEPLOY] #22 3.089 Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:07:45.852Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 ✔ Generated Prisma Client (v5.22.0) to ./node_modules/.pnpm/@prisma+client@5.22.0_prisma@5.22.0/node_modules/@prisma/client in 3.34s [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22 [2026-06-10T04:07:45.853Z] [DEPLOY] #22 9.101 [2026-06-10T04:07:46.236Z] [DEPLOY] #22 DONE 9.5s [2026-06-10T04:07:46.236Z] [DEPLOY] #21 [backend builder 9/10] RUN pnpm build 2>&1 || (echo "Build failed - checking files:" && ls -la && exit 1) [2026-06-10T04:08:19.530Z] [DEPLOY] #21 DONE 48.1s [2026-06-10T04:08:19.685Z] [DEPLOY] #23 [backend builder 10/10] RUN ls -la dist/src/ && test -f dist/src/main.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 total 80 [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 6 root root 4096 Jun 10 04:08 . [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 4 root root 4096 Jun 10 04:08 .. [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 3 root root 4096 Jun 10 04:08 __mocks__ [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 181 Jun 10 04:07 app.controller.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 1611 Jun 10 04:07 app.controller.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 436 Jun 10 04:07 app.controller.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 35 Jun 10 04:08 app.module.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 8972 Jun 10 04:08 app.module.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2525 Jun 10 04:08 app.module.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 60 Jun 10 04:07 app.service.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 981 Jun 10 04:07 app.service.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 281 Jun 10 04:07 app.service.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 4 root root 4096 Jun 10 04:07 common [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 11 Jun 10 04:08 main.d.ts [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2914 Jun 10 04:08 main.js [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 -rw-r--r-- 1 root root 2491 Jun 10 04:08 main.js.map [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 58 root root 4096 Jun 10 04:08 modules [2026-06-10T04:08:19.964Z] [DEPLOY] #23 0.429 drwxr-xr-x 2 root root 4096 Jun 10 04:07 prisma [2026-06-10T04:08:20.153Z] [DEPLOY] #23 DONE 0.5s [2026-06-10T04:08:22.441Z] [DEPLOY] #24 [backend production 10/12] COPY --from=builder /app/dist ./dist [2026-06-10T04:08:22.813Z] [DEPLOY] #24 DONE 0.4s [2026-06-10T04:08:22.969Z] [DEPLOY] #25 [backend production 11/12] RUN mkdir -p /app/uploads/platform /app/uploads/templates /app/uploads/instagram [2026-06-10T04:08:23.128Z] [DEPLOY] #25 DONE 0.3s [2026-06-10T04:08:23.283Z] [DEPLOY] #26 [backend production 12/12] RUN chown -R nestjs:nodejs /app [2026-06-10T04:08:59.135Z] [DEPLOY] #26 DONE 36.0s [2026-06-10T04:08:59.299Z] [DEPLOY] #27 [backend] exporting to image [2026-06-10T04:08:59.299Z] [DEPLOY] #27 exporting layers [2026-06-10T04:09:23.186Z] [DEPLOY] #27 exporting layers 24.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting manifest sha256:e52f4db96eb083cef476c24f057abb9d6e1723e6e44746d8a895aefbc3af40bc done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting config sha256:b55f1f29f1938f44147cfef5165e54c1534d21e8c26bad218a0becf434b98de4 done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting attestation manifest sha256:b363f784244cbc510fdbe22ef443acb08f2ceeb03d9f962c712c1f7bec166386 0.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 exporting manifest list sha256:9f977372dd0ed2b9b6208857565d80e5b44b3db6e6b2a0dad50caa78014efdcf 0.0s done [2026-06-10T04:09:23.410Z] [DEPLOY] #27 naming to docker.io/library/saas_crm-backend:latest done [2026-06-10T04:09:23.411Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest [2026-06-10T04:09:35.395Z] [DEPLOY] #27 unpacking to docker.io/library/saas_crm-backend:latest 12.1s done [2026-06-10T04:09:35.592Z] [DEPLOY] #27 DONE 36.3s [2026-06-10T04:09:35.660Z] [DEPLOY] #28 [backend] resolving provenance for metadata file [2026-06-10T04:09:35.771Z] [DEPLOY] #28 DONE 0.0s [2026-06-10T04:09:35.772Z] [DEPLOY] #29 [frontend internal] load build definition from Dockerfile [2026-06-10T04:09:35.772Z] [DEPLOY] #29 transferring dockerfile: 1.38kB done [2026-06-10T04:09:35.773Z] [DEPLOY] #29 DONE 0.0s [2026-06-10T04:09:35.773Z] [DEPLOY] #2 [frontend] resolve image config for docker-image://docker.io/docker/dockerfile:1 [2026-06-10T04:09:36.252Z] [DEPLOY] #2 DONE 1.3s [2026-06-10T04:09:36.395Z] [DEPLOY] #3 [frontend] docker-image://docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 [2026-06-10T04:09:36.395Z] [DEPLOY] #3 resolve docker.io/docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 0.0s done [2026-06-10T04:09:36.395Z] [DEPLOY] #3 CACHED [2026-06-10T04:09:36.395Z] [DEPLOY] #4 [frontend internal] load metadata for docker.io/library/node:20-alpine [2026-06-10T04:09:36.895Z] [DEPLOY] #4 DONE 1.2s [2026-06-10T04:09:36.895Z] [DEPLOY] #30 [frontend internal] load metadata for docker.io/library/nginx:alpine [2026-06-10T04:09:37.190Z] [DEPLOY] #30 DONE 0.8s [2026-06-10T04:09:37.354Z] [DEPLOY] #31 [frontend internal] load .dockerignore [2026-06-10T04:09:37.359Z] [DEPLOY] #31 transferring context: 194B done [2026-06-10T04:09:37.359Z] [DEPLOY] #31 DONE 0.0s [2026-06-10T04:09:37.966Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T04:09:37.966Z] [DEPLOY] #32 DONE 0.0s [2026-06-10T04:09:37.966Z] [DEPLOY] #7 [frontend builder 1/7] FROM docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 [2026-06-10T04:09:37.966Z] [DEPLOY] #7 resolve docker.io/library/node:20-alpine@sha256:fb4cd12c85ee03686f6af5362a0b0d56d50c58a04632e6c0fb8363f609372293 0.1s done [2026-06-10T04:09:37.966Z] [DEPLOY] #7 DONE 0.1s [2026-06-10T04:09:37.966Z] [DEPLOY] #33 [frontend production 1/4] FROM docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a [2026-06-10T04:09:37.966Z] [DEPLOY] #33 resolve docker.io/library/nginx:alpine@sha256:8b1e78743a03dbb2c95171cc58639fef29abc8816598e27fb910ed2e621e589a 0.1s done [2026-06-10T04:09:37.966Z] [DEPLOY] #33 DONE 0.1s [2026-06-10T04:09:37.997Z] [DEPLOY] #32 [frontend internal] load build context [2026-06-10T04:09:38.223Z] [DEPLOY] #32 transferring context: 214.91kB 0.1s done [2026-06-10T04:09:38.228Z] [DEPLOY] #32 DONE 0.2s [2026-06-10T04:09:38.401Z] [DEPLOY] #34 [frontend builder 3/7] RUN corepack enable && corepack prepare pnpm@10.25.0 --activate [2026-06-10T04:09:38.401Z] [DEPLOY] #34 CACHED [2026-06-10T04:09:38.401Z] [DEPLOY] #11 [frontend builder 2/7] WORKDIR /app [2026-06-10T04:09:38.401Z] [DEPLOY] #11 CACHED [2026-06-10T04:09:38.401Z] [DEPLOY] #35 [frontend builder 4/7] COPY package.json pnpm-lock.yaml ./ [2026-06-10T04:09:38.401Z] [DEPLOY] #35 CACHED [2026-06-10T04:09:38.401Z] [DEPLOY] #36 [frontend builder 5/7] RUN --mount=type=cache,id=clicknex-pnpm-web,target=/pnpm-store pnpm install --frozen-lockfile --store-dir /pnpm-store [2026-06-10T04:09:38.402Z] [DEPLOY] #36 CACHED [2026-06-10T04:09:38.402Z] [DEPLOY] #37 [frontend builder 6/7] COPY . . [2026-06-10T04:09:38.665Z] [DEPLOY] #37 DONE 0.4s [2026-06-10T04:09:38.820Z] [DEPLOY] #38 [frontend builder 7/7] RUN pnpm build [2026-06-10T04:09:39.585Z] [DEPLOY] #38 0.915 [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 > frontend@1.0.0 build /app [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 > tsc && vite build [2026-06-10T04:09:39.586Z] [DEPLOY] #38 0.915 [2026-06-10T04:10:35.134Z] [DEPLOY] #38 56.46 vite v5.4.21 building for production... [2026-06-10T04:10:35.798Z] [DEPLOY] #38 57.13 transforming... [2026-06-10T04:10:36.009Z] [DEPLOY] #38 57.19 Browserslist: browsers data (caniuse-lite) is 6 months old. Please run: [2026-06-10T04:10:36.010Z] [DEPLOY] #38 57.19 npx update-browserslist-db@latest [2026-06-10T04:10:36.010Z] [DEPLOY] #38 57.19 Why you should do it regularly: https://github.com/browserslist/update-db#readme [2026-06-10T04:10:59.435Z] [DEPLOY] #38 80.76 ✓ 4326 modules transformed. [2026-06-10T04:11:01.252Z] [DEPLOY] #38 82.58 rendering chunks... [2026-06-10T04:11:04.168Z] [DEPLOY] #38 85.50 computing gzip size... [2026-06-10T04:11:04.350Z] [DEPLOY] #38 85.68 dist/registerSW.js 0.13 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/manifest.webmanifest 0.54 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/index.html 2.06 kB │ gzip: 0.76 kB [2026-06-10T04:11:04.520Z] [DEPLOY] #38 85.68 dist/assets/index-BA0l_c52.css 163.60 kB │ gzip: 24.98 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/purify.es-dhnUglUx.js 24.29 kB │ gzip: 9.17 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/index.es-KQZj9-SK.js 150.69 kB │ gzip: 51.55 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/html2canvas.esm-CBrSDip1.js 201.42 kB │ gzip: 48.03 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 dist/assets/index-Bapclaxc.js 4,164.55 kB │ gzip: 1,081.38 kB [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 (!) Some chunks are larger than 500 kB after minification. Consider: [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Using dynamic import() to code-split the application [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.68 ✓ built in 29.18s [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 PWA v1.2.0 [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 Building src/sw.ts service worker ("es" format)... [2026-06-10T04:11:04.521Z] [DEPLOY] #38 85.70 vite v5.4.21 building for production... [2026-06-10T04:11:06.176Z] [DEPLOY] #38 87.51 transforming... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.51 ✓ 1 modules transformed. [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.52 rendering chunks... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.52 computing gzip size... [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.53 dist/sw.mjs 1.07 kB │ gzip: 0.58 kB [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.53 ✓ built in 1.83s [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 PWA v1.2.0 [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 mode injectManifest [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 format: es [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 precache 15 entries (4954.03 KiB) [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 files generated [2026-06-10T04:11:06.305Z] [DEPLOY] #38 87.64 dist/sw.js [2026-06-10T04:11:06.947Z] [DEPLOY] #38 DONE 88.3s [2026-06-10T04:11:09.254Z] [DEPLOY] #39 [frontend production 2/4] RUN apk add --no-cache wget [2026-06-10T04:11:09.255Z] [DEPLOY] #39 CACHED [2026-06-10T04:11:09.255Z] [DEPLOY] #40 [frontend production 3/4] COPY nginx.conf /etc/nginx/conf.d/default.conf [2026-06-10T04:11:09.356Z] [DEPLOY] #40 CACHED [2026-06-10T04:11:09.356Z] [DEPLOY] #41 [frontend production 4/4] COPY --from=builder /app/dist /usr/share/nginx/html [2026-06-10T04:11:09.356Z] [DEPLOY] #41 DONE 0.1s [2026-06-10T04:11:09.517Z] [DEPLOY] #42 [frontend] exporting to image [2026-06-10T04:11:09.518Z] [DEPLOY] #42 exporting layers [2026-06-10T04:11:09.630Z] [DEPLOY] #42 exporting layers 0.3s done [2026-06-10T04:11:09.630Z] [DEPLOY] #42 exporting manifest sha256:7e8d9105b032821c12cba473a0c5636882771d2faa092995540e5f52ba1e5e43 [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting manifest sha256:7e8d9105b032821c12cba473a0c5636882771d2faa092995540e5f52ba1e5e43 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting config sha256:44d75ba9931474716c0d5039ab5a85fe05a79222eb2962829af10b47677272c0 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting attestation manifest sha256:26a9559c57fa948cdcdadbf1f49f51111be0c2c585b1d59fe0af33e66aedaf9c 0.0s done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 exporting manifest list sha256:9f64ee7585b374fd31fb3907b096d4ae89c9eea6f901ca9a81e3255fccc8b9ed done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 naming to docker.io/library/saas_crm-frontend:latest done [2026-06-10T04:11:09.784Z] [DEPLOY] #42 unpacking to docker.io/library/saas_crm-frontend:latest 0.1s done [2026-06-10T04:11:09.960Z] [DEPLOY] #42 DONE 0.4s [2026-06-10T04:11:09.960Z] [DEPLOY] #43 [frontend] resolving provenance for metadata file [2026-06-10T04:11:09.971Z] [DEPLOY] #43 DONE 0.0s [2026-06-10T04:11:09.972Z] [STDERR] backend Built [2026-06-10T04:11:09.972Z] [STDERR] frontend Built [2026-06-10T04:11:09.987Z] [DEPLOY] [2026-06-10 04:11:09] ✓ New images built successfully [2026-06-10T04:11:09.988Z] [DEPLOY] [2026-06-10 04:11:09] STEP: Step 5/8: Running database migrations... [2026-06-10T04:11:09.989Z] [DEPLOY] [2026-06-10 04:11:09] Checking for pending migrations... [2026-06-10T04:11:09.991Z] [DEPLOY] [2026-06-10 04:11:09] Applying schema changes... [2026-06-10T04:11:12.777Z] [DEPLOY] Prisma schema loaded from prisma/schema.prisma [2026-06-10T04:11:12.820Z] [DEPLOY] Datasource "db": PostgreSQL database "saas_crm", schema "public" at "host.docker.internal:5432" [2026-06-10T04:11:13.518Z] [DEPLOY] The database is already in sync with the Prisma schema. [2026-06-10T04:11:13.621Z] [DEPLOY] npm notice [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice New major version of npm available! 10.8.2 -> 11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice To update run: npm install -g npm@11.16.0 [2026-06-10T04:11:13.622Z] [DEPLOY] npm notice [2026-06-10T04:11:13.989Z] [DEPLOY] [2026-06-10 04:11:13] ✓ Database schema already in sync [2026-06-10T04:11:13.990Z] [DEPLOY] [2026-06-10 04:11:13] STEP: Step 6/8: Starting new containers (Blue-Green deployment)... [2026-06-10T04:11:13.991Z] [DEPLOY] [2026-06-10 04:11:13] Updating backend container... [2026-06-10T04:11:14.211Z] [STDERR] Container clicknex-redis Running [2026-06-10T04:11:14.211Z] [STDERR] Container clicknex-backend Recreate [2026-06-10T04:11:24.723Z] [STDERR] Container clicknex-backend Recreated [2026-06-10T04:11:24.758Z] [STDERR] Container clicknex-redis Waiting [2026-06-10T04:11:25.264Z] [STDERR] Container clicknex-redis Healthy [2026-06-10T04:11:25.264Z] [STDERR] Container clicknex-backend Starting [2026-06-10T04:11:25.502Z] [STDERR] Container clicknex-backend Started [2026-06-10T04:11:30.587Z] [DEPLOY] Waiting for Backend... (1/30) [status: starting] [2026-06-10T04:11:32.647Z] [DEPLOY] [2026-06-10 04:11:32] ✓ Backend health check passed (healthy) [2026-06-10T04:11:32.649Z] [DEPLOY] [2026-06-10 04:11:32] Updating frontend container... [2026-06-10T04:11:32.831Z] [STDERR] Container clicknex-frontend Recreate [2026-06-10T04:11:33.345Z] [STDERR] Container clicknex-frontend Recreated [2026-06-10T04:11:33.393Z] [STDERR] Container clicknex-frontend Starting [2026-06-10T04:11:33.623Z] [STDERR] Container clicknex-frontend Started [2026-06-10T04:11:33.632Z] [DEPLOY] [2026-06-10 04:11:33] ✓ New containers started [2026-06-10T04:11:33.633Z] [DEPLOY] [2026-06-10 04:11:33] STEP: Step 7/8: Running health checks... [2026-06-10T04:11:33.683Z] [DEPLOY] [2026-06-10 04:11:33] ✓ Backend health check passed (healthy) [2026-06-10T04:11:33.731Z] [DEPLOY] Waiting for Frontend... (1/30) [status: starting] [2026-06-10T04:11:35.797Z] [DEPLOY] Waiting for Frontend... (2/30) [status: starting] [2026-06-10T04:11:37.846Z] [DEPLOY] Waiting for Frontend... (3/30) [status: starting] [2026-06-10T04:11:39.901Z] [DEPLOY] [2026-06-10 04:11:39] ✓ Frontend health check passed (healthy) [2026-06-10T04:11:39.904Z] [DEPLOY] [2026-06-10 04:11:39] ✓ All health checks passed [2026-06-10T04:11:39.905Z] [DEPLOY] [2026-06-10 04:11:39] STEP: Step 8/8: Cleaning up old resources... [2026-06-10T04:11:40.581Z] [DEPLOY] [2026-06-10 04:11:40] ✓ Cleanup completed (disco: ?%) [2026-06-10T04:11:40.587Z] [DEPLOY] ╔════════════════════════════════════════════════════════════╗ [2026-06-10T04:11:40.587Z] [DEPLOY] ║ Deployment Completed Successfully! ✓ ║ [2026-06-10T04:11:40.587Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T04:11:40.606Z] [DEPLOY] ║ Commit: fdc240b ║ [2026-06-10T04:11:40.610Z] [DEPLOY] ║ Time: 2026-06-10 04:11:40 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ╠════════════════════════════════════════════════════════════╣ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ Services: ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ - Backend: http://localhost:3021 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ║ - Frontend: http://localhost:3020 ║ [2026-06-10T04:11:40.612Z] [DEPLOY] ╚════════════════════════════════════════════════════════════╝ [2026-06-10T04:11:40.620Z] [INFO] Deploy script encerrado com código: 0 [2026-06-10T04:11:40.628Z] [INFO] ====================================================== [2026-06-10T04:11:40.628Z] [INFO] DEPLOY SUCESSO ✓ — v1.0.14 em 530s [2026-06-10T04:11:40.628Z] [INFO] ======================================================