Kavita Nambissan
04/06/2023, 3:02 PMyarn install works completely fine in the calcom repo when run locally.. docker container also builds fine locally. Only failing on an EC2 and VercelColin - Krumware
04/06/2023, 4:05 PMKavita Nambissan
04/06/2023, 6:50 PMt2.large it has a 16GB EBS volume attached, 8 GB ram. It built the previous version of the calcom docker image successfully.Kavita Nambissan
04/06/2023, 6:51 PMlscpu output in case that helps
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
Stepping: 2
CPU MHz: 2394.320
BogoMIPS: 4788.95
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 30720KKavita Nambissan
04/06/2023, 7:14 PM@calcom/web:start: ERROR: command finished with error: command (/calcom/apps/web) yarn run start exited (129)
command (/calcom/apps/web) yarn run start exited (129)
ERROR run failed: command exited (129)Kavita Nambissan
04/06/2023, 9:33 PMColin - Krumware
04/06/2023, 9:44 PMColin - Krumware
04/06/2023, 9:56 PMKavita Nambissan
04/06/2023, 10:16 PMCOPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh ./
COPY calcom/.yarn ./.yarn
COPY calcom/apps/web ./apps/web
COPY calcom/packages ./packages
RUN yarn config set httpTimeout 1200000 && \
npx turbo prune --scope=@calcom/web --docker && \
yarn install && \
yarn db-deploy && \
yarn --cwd packages/prisma seed-app-store <----- This is where the build fails
RUN yarn turbo run build --filter=@calcom/web
I'm running docker-compose up --build with docker-compose.yaml
services:
calcom:
image: calendso/calendso:latest
build:
context: .
dockerfile: Dockerfile
args:
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
CALCOM_TELEMETRY_DISABLED: 1
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
DATABASE_URL: ${DATABASE_URL}
restart: always
networks:
- ba-calcom
ports:
- 3000:3000
env_file: .env
environment:
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
DATABASE_URL: ${DATABASE_URL}
VIRTUAL_HOST: my_domain // This is for my https-portal service
VIRTUAL_PORT: 3000Colin - Krumware
04/06/2023, 10:41 PMKavita Nambissan
04/06/2023, 11:16 PMdocker system prune before this.
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 4059516 0 4059516 0% /dev
tmpfs 4068308 0 4068308 0% /dev/shm
tmpfs 4068308 444 4067864 1% /run
tmpfs 4068308 0 4068308 0% /sys/fs/cgroup
/dev/xvda1 16764908 7707752 9057156 46% /
tmpfs 10240 0 10240 0% /tmp
tmpfs 813664 0 813664 0% /run/user/1000Colin - Krumware
04/06/2023, 11:35 PMColin - Krumware
04/06/2023, 11:36 PMColin - Krumware
04/06/2023, 11:36 PMKavita Nambissan
04/07/2023, 12:09 AMyarn install.
ERROR [builder 11/13] RUN yarn --cwd packages/prisma seed-app-store
I'll try running this locally to see if I can replicate and maybe see the error outputColin - Krumware
04/07/2023, 12:31 AMKavita Nambissan
04/07/2023, 12:45 AM.env.appStore and moving the app store related creds there. This step now runs successfully, but I now have an error at yarn turbo run build --filter=@calcom/web
#0 420.5 @calcom/web:build: > Build error occurred
#0 420.5 @calcom/web:build: Error: Collecting page data for [object Object] is still timing out after 2 attempts. See more info here <https://nextjs.org/docs/messages/page-data-collection-timeout>
#0 420.5 @calcom/web:build: at onRestart (/calcom/node_modules/next/dist/build/index.js:601:35)
#0 420.5 @calcom/web:build: at Worker.isPageStatic (/calcom/node_modules/next/dist/lib/worker.js:48:40)
#0 420.5 @calcom/web:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
#0 420.5 @calcom/web:build: at async Span.traceAsyncFn (/calcom/node_modules/next/dist/trace/trace.js:79:20)
#0 420.5 @calcom/web:build: at async /calcom/node_modules/next/dist/build/index.js:725:52
#0 420.5 @calcom/web:build: at async Span.traceAsyncFn (/calcom/node_modules/next/dist/trace/trace.js:79:20)
#0 420.5 @calcom/web:build: at async Promise.all (index 49)
#0 420.5 @calcom/web:build: at async /calcom/node_modules/next/dist/build/index.js:664:17
#0 420.5 @calcom/web:build: at async Span.traceAsyncFn (/calcom/node_modules/next/dist/trace/trace.js:79:20)
#0 420.5 @calcom/web:build: at async /calcom/node_modules/next/dist/build/index.js:625:170Ayush
04/10/2023, 5:45 AMKavita Nambissan
04/10/2023, 10:20 PM<< query #1 viewer.features.list {
input: undefined,
result: TRPCClientError: request to <http://https//mynextpublic_url/api/trpc/viewer.features.list?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D> failed, reason: getaddrinfo ENOTFOUND httpsAyush
04/10/2023, 10:39 PMAyush
04/10/2023, 10:39 PMKavita Nambissan
04/10/2023, 10:48 PMKavita Nambissan
04/11/2023, 12:43 AMCollecting page data... error on my Mac locally as well now. Updated calcom sub module to the latest main, ran yarn once and then the docker compose up --build command..
#0 102.3 @calcom/web:build: info - Collecting page data...
#0 104.1 @calcom/web:build: prisma:query BEGIN
#0 104.1 @calcom/web:build: prisma:query DEALLOCATE ALL
#0 104.2 @calcom/web:build: prisma:query SELECT "public"."App"."slug" FROM "public"."App" WHERE 1=1 OFFSET $1
#0 104.2 @calcom/web:build: prisma:query COMMIT
#0 108.7 @calcom/web:build: ERROR: command finished with error: command (/calcom/apps/web) yarn run build exited (129)
#0 108.7 command (/calcom/apps/web) yarn run build exited (129)
#0 108.7
#0 108.7 Tasks: 5 successful, 6 total
#0 108.7 Cached: 0 cached, 6 total
#0 108.7 Time: 1m47.901s
Vercel deployment went through successfully