baptisteArno / typebot.io

๐Ÿ’ฌ Typebot is a powerful chatbot builder that you can self-host.
https://typebot.io
Other
7.18k stars 1.96k forks source link

self hosting manual github oauth error "Try signing with a different account" #1662

Closed travmaxcloud closed 2 months ago

travmaxcloud commented 2 months ago

I am getting login error(github oauth "Try signing with a different account" ) on fresh install. I followed the instructions @https://docs.typebot.io/self-hosting/deploy/manual

Server Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-1062-kvm x86_64) Node js V20.10 Port 3001 and 3002 Listening or in working

Authorization callback URL(Github)

https://typebot.travbid.com/api/auth/callback/github

Env

ENCRYPTION_SECRET=523606346181452350341181226xxxxx

DATABASE_URL=postgresql://postgres.wmapoeqgXXXXukvtymrq:Vz7qNXXXXXaVmjRA@aws-0-ap-south-1.pooler.supabase.com:5432/postgres?pgbouncer=true

NEXTAUTH_URL=https://typebot.travbid.com NEXT_PUBLIC_VIEWER_URL=https://bot.travbid.com

GITHUB_CLIENT_ID=Ov23liSxxxxxxlh1D8Vh GITHUB_CLIENT_SECRET=480666c6a215108fbef5xxxxxxxxxf93d0b89d9f

DEBUG=true

For more configuration options check out: https://docs.typebot.io/self-hosting/configuration

pnpm install

root@cloud:/www/wwwroot/typebot.io# pnpm install Scope: all 46 workspace projects Lockfile is up to date, resolution step is skipped Packages: +2390 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ โ”‚ โ”‚ Update available! 9.5.0 โ†’ 9.6.0. โ”‚ โ”‚ Changelog: https://github.com/pnpm/pnpm/releases/tag/v9.6.0 โ”‚ โ”‚ Run "pnpm add -g pnpm" to update. โ”‚ โ”‚ โ”‚ โ”‚ Follow @pnpmjs for updates: https://x.com/pnpmjs โ”‚ โ”‚ โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Progress: resolved 2390, reused 2363, downloaded 1, added 2390, done

devDependencies:

. prepare$ husky install โ”‚ husky - Git hooks installed โ””โ”€ Done in 128ms Done in 14.8s

pnpm run build:apps

root@cloud:/www/wwwroot/typebot.io# pnpm run build:apps

typebot-os@2.27.0 build:apps /www/wwwroot/typebot.io turbo run build --filter=builder... --filter=viewer...

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ โ”‚ โ”‚ โ”‚ Update available v2.0.5 โ‰ซ v2.0.9 โ”‚ โ”‚ Changelog: https://github.com/vercel/turbo/releases/tag/v2.0.9 โ”‚ โ”‚ Run "npx @turbo/codemod@latest update" to update โ”‚ โ”‚ โ”‚ โ”‚ Follow @turborepo for updates: https://x.com/turborepo โ”‚ โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ€ข Packages in scope: @typebot.io/ai, @typebot.io/anthropic-block, @typebot.io/billing, @typebot.io/bot-engine, @typebot.io/cal-com-block, @typebot.io/chat-node-block, @typebot.io/db-rules, @typebot.io/dify-ai-block, @typebot.io/elevenlabs-block, @typebot.io/emails, @typebot.io/env, @typebot.io/forge, @typebot.io/forge-repository, @typebot.io/js, @typebot.io/lib, @typebot.io/logic, @typebot.io/migrations, @typebot.io/mistral-block, @typebot.io/nextjs, @typebot.io/nocodb-block, @typebot.io/open-router-block, @typebot.io/openai-block, @typebot.io/playwright, @typebot.io/prisma, @typebot.io/qrcode-block, @typebot.io/radar, @typebot.io/react, @typebot.io/results, @typebot.io/schemas, @typebot.io/telemetry, @typebot.io/theme, @typebot.io/together-ai-block, @typebot.io/tsconfig, @typebot.io/variables, bot-engine, builder, eslint-config-custom, typebot-js, viewer โ€ข Running build in 39 packages โ€ข Remote caching disabled @typebot.io/prisma:db:generate: cache bypass, force executing bb66dc89d1673835 @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: > @typebot.io/prisma@0.1.0 db:generate /www/wwwroot/typebot.io/packages/prisma @typebot.io/prisma:db:generate: > dotenv -e ./.env -e ../../.env -- tsx scripts/db-generate.ts @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: Executing for PostgreSQL schema @typebot.io/prisma:db:generate: Prisma schema loaded from postgresql/schema.prisma @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: โœ” Generated Prisma Client (v5.12.1) to ./../../node_modules/.pnpm/@prisma+client@5.12.1_prisma@5.12.1/node_modules/@prisma/client in 286ms @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: Start using Prisma Client in Node.js (See: https://pris.ly/d/client) @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: import { PrismaClient } from '@prisma/client' @typebot.io/prisma:db:generate: const prisma = new PrismaClient() @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate) @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: import { PrismaClient } from '@prisma/client/edge' @typebot.io/prisma:db:generate: const prisma = new PrismaClient() @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: See other ways of importing Prisma Client: http://pris.ly/d/importing-client @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” @typebot.io/prisma:db:generate: โ”‚ Supercharge your Prisma Client with global database caching, โ”‚ @typebot.io/prisma:db:generate: โ”‚ scalable connection pooling and real-time database events. โ”‚ @typebot.io/prisma:db:generate: โ”‚ Explore Prisma Accelerate: https://pris.ly/cli/-accelerate โ”‚ @typebot.io/prisma:db:generate: โ”‚ Explore Prisma Pulse: https://pris.ly/cli/-pulse โ”‚ @typebot.io/prisma:db:generate: โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ @typebot.io/prisma:db:generate: @typebot.io/prisma:db:generate: @typebot.io/env:build: cache miss, executing 0b6d1d6ef845c630 typebot-js:build: cache miss, executing a1627651e2ecb710 @typebot.io/env:build: @typebot.io/env:build: > @typebot.io/env@1.0.0 build /www/wwwroot/typebot.io/packages/env @typebot.io/env:build: > esbuild env.ts --bundle --packages=external --format=esm --outfile=dist/env.mjs @typebot.io/env:build: typebot-js:build: typebot-js:build: > typebot-js@2.2.17 build /www/wwwroot/typebot.io/packages/deprecated/typebot-js typebot-js:build: > tsup typebot-js:build: @typebot.io/env:build: @typebot.io/env:build: dist/env.mjs 13.6kb @typebot.io/env:build: @typebot.io/env:build: โšก Done in 5ms @typebot.io/js:build: cache miss, executing a24e5d822c3a1faf typebot-js:build: CLI Building entry: src/index.ts typebot-js:build: CLI Using tsconfig: tsconfig.json typebot-js:build: CLI tsup v6.5.0 typebot-js:build: CLI Using tsup config: /www/wwwroot/typebot.io/packages/deprecated/typebot-js/tsup.config.js typebot-js:build: CLI Target: node14 typebot-js:build: ESM Build start typebot-js:build: CJS Build start typebot-js:build: IIFE Build start typebot-js:build: IIFE dist/index.global.js 11.48 KB typebot-js:build: IIFE dist/index.global.js.map 36.89 KB typebot-js:build: IIFE โšก๏ธ Build success in 146ms typebot-js:build: ESM dist/index.mjs 10.99 KB typebot-js:build: ESM dist/index.mjs.map 36.51 KB typebot-js:build: ESM โšก๏ธ Build success in 167ms typebot-js:build: CJS dist/index.js 11.62 KB typebot-js:build: CJS dist/index.js.map 36.92 KB typebot-js:build: CJS โšก๏ธ Build success in 170ms @typebot.io/js:build: โ€‰WARNโ€‰ Issue while reading "/www/wwwroot/typebot.io/packages/embeds/js/.npmrc". Failed to replace env in config: ${NPM_TOKEN} @typebot.io/js:build: @typebot.io/js:build: > @typebot.io/js@0.3.6 build /www/wwwroot/typebot.io/packages/embeds/js @typebot.io/js:build: > rollup --config rollup.config.js @typebot.io/js:build: typebot-js:build: DTS Build start @typebot.io/js:build: @typebot.io/js:build: ./src/index.ts โ†’ dist/index.js... typebot-js:build: DTS โšก๏ธ Build success in 1432ms typebot-js:build: DTS dist/index.d.ts 2.95 KB bot-engine:build: cache miss, executing f74170138302bfc3 bot-engine:build: bot-engine:build: > bot-engine@0.1.0 build /www/wwwroot/typebot.io/packages/deprecated/bot-engine bot-engine:build: > tsup bot-engine:build: bot-engine:build: CLI Building entry: src/index.ts bot-engine:build: CLI Using tsconfig: tsconfig.json bot-engine:build: CLI tsup v6.5.0 bot-engine:build: CLI Using tsup config: /www/wwwroot/typebot.io/packages/deprecated/bot-engine/tsup.config.js bot-engine:build: CLI Target: es6 bot-engine:build: ESM Build start bot-engine:build: CJS Build start bot-engine:build: CJS dist/index.js 158.69 KB bot-engine:build: CJS dist/index.js.map 472.87 KB bot-engine:build: CJS โšก๏ธ Build success in 1396ms bot-engine:build: ESM dist/index.mjs 155.24 KB bot-engine:build: ESM dist/chunk-SGAXM4DC.mjs 1.43 KB bot-engine:build: ESM dist/gtag-37GMA4K6.mjs 129.00 B bot-engine:build: ESM dist/chunk-SGAXM4DC.mjs.map 2.02 KB bot-engine:build: ESM dist/gtag-37GMA4K6.mjs.map 71.00 B bot-engine:build: ESM dist/index.mjs.map 473.24 KB bot-engine:build: ESM โšก๏ธ Build success in 1401ms @typebot.io/js:build: created dist/index.js in 19.7s @typebot.io/js:build: @typebot.io/js:build: ./src/web.ts โ†’ dist/web.js... @typebot.io/js:build: created dist/web.js in 30.8s @typebot.io/react:build: cache miss, executing 6112498ddb3d2de7 @typebot.io/react:build: โ€‰WARNโ€‰ Issue while reading "/www/wwwroot/typebot.io/packages/embeds/react/.npmrc". Failed to replace env in config: ${NPM_TOKEN} @typebot.io/react:build: @typebot.io/react:build: > @typebot.io/react@0.3.6 build /www/wwwroot/typebot.io/packages/embeds/react @typebot.io/react:build: > rollup --config rollup.config.js @typebot.io/react:build: @typebot.io/react:build: @typebot.io/react:build: ./src/index.ts โ†’ ./dist/index.js... @typebot.io/react:build: (!) Unresolved dependencies @typebot.io/react:build: https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency @typebot.io/react:build: @typebot.io/js/dist/web (imported by "src/Bubble.tsx", "src/Standard.tsx" and "src/Popup.tsx") @typebot.io/react:build: created ./dist/index.js in 12.7s @typebot.io/nextjs:build: cache miss, executing 61474671b19e4942 @typebot.io/nextjs:build: โ€‰WARNโ€‰ Issue while reading "/www/wwwroot/typebot.io/packages/embeds/nextjs/.npmrc". Failed to replace env in config: ${NPM_TOKEN} @typebot.io/nextjs:build: @typebot.io/nextjs:build: > @typebot.io/nextjs@0.3.6 build /www/wwwroot/typebot.io/packages/embeds/nextjs @typebot.io/nextjs:build: > rollup --config rollup.config.js @typebot.io/nextjs:build: @typebot.io/nextjs:build: @typebot.io/nextjs:build: ./src/index.ts โ†’ ./dist... @typebot.io/nextjs:build: (!) Unresolved dependencies @typebot.io/nextjs:build: https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency @typebot.io/nextjs:build: @typebot.io/js/dist/web (imported by "../react/src/Standard.tsx", "../react/src/Popup.tsx" and "../react/src/Bubble.tsx") @typebot.io/nextjs:build: created ./dist in 12.7s viewer:build: cache miss, executing 71240e254c57b733 builder:build: cache miss, executing 92b10baa3de878a9 viewer:build: viewer:build: > viewer@0.1.0 build /www/wwwroot/typebot.io/apps/viewer viewer:build: > dotenv -e ./.env -e ../../.env -- next build viewer:build: builder:build: builder:build: > builder@0.1.0 build /www/wwwroot/typebot.io/apps/builder builder:build: > dotenv -e ./.env -e ../../.env -- next build builder:build: builder:build: - event [next-runtime-env] read environment variables prefixed with 'NEXTPUBLIC' from process.env. builder:build: - ready [next-runtime-env] wrote browser runtime environment variables to '/www/wwwroot/typebot.io/apps/builder/public/ENV.js'. viewer:build: - event [next-runtime-env] read environment variables prefixed with 'NEXTPUBLIC' from process.env. viewer:build: - ready [next-runtime-env] wrote browser runtime environment variables to '/www/wwwroot/typebot.io/apps/viewer/public/ENV.js'. viewer:build: โ–ฒ Next.js 14.1.0 viewer:build: - Experiments (use at your own risk): viewer:build: ยท outputFileTracingRoot viewer:build: builder:build: โ–ฒ Next.js 14.1.0 builder:build: - Experiments (use at your own risk): builder:build: ยท outputFileTracingRoot builder:build: viewer:build: Creating an optimized production build ... viewer:build: โœ“ Compiled successfully builder:build: โœ“ Linting and checking validity of types builder:build: Creating an optimized production build ... viewer:build: โœ“ Linting and checking validity of types viewer:build: โœ“ Collecting page data viewer:build: โœ“ Collecting build traces viewer:build: โœ“ Finalizing page optimization viewer:build: viewer:build: Route (app) Size First Load JS viewer:build: โ”Œ ฮป /api/integrations/openai/streamer 0 B 0 B viewer:build: โ”œ ฮป /api/v1/sessions/[sessionId]/streamMessage 0 B 0 B viewer:build: โ”” ฮป /api/v2/sessions/[sessionId]/streamMessage 0 B 0 B viewer:build: + First Load JS shared by all 0 B viewer:build: viewer:build: Route (pages) Size First Load JS viewer:build: โ”Œ /_app 0 B 83.8 kB viewer:build: โ”œ ฮป /[[...publicId]] 3.14 kB 218 kB viewer:build: โ”œ ฮป /404 6.29 kB 90.1 kB viewer:build: โ”œ ฮป /api/[...trpc] 0 B 83.8 kB viewer:build: โ”œ ฮป /api/health 0 B 83.8 kB viewer:build: โ”œ ฮป /api/integrations/google-sheets/spreadsheets/[spreadsheetId]/sheets/[sheetId] 0 B 83.8 kB viewer:build: โ”œ ฮป /api/integrations/stripe/createPaymentIntent 0 B 83.8 kB viewer:build: โ”œ ฮป /api/mock/fail 0 B 83.8 kB viewer:build: โ”œ ฮป /api/mock/success 0 B 83.8 kB viewer:build: โ”œ ฮป /api/publicTypebots/[typebotId] 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/blocks/[blockId]/executeWebhook 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/integrations/email 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/results 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/results/[resultId] 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/results/[resultId]/answers 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/webhookBlocks 0 B 83.8 kB viewer:build: โ”œ ฮป /api/typebots/[typebotId]/webhookSteps 0 B 83.8 kB viewer:build: โ”œ ฮป /api/users/me 0 B 83.8 kB viewer:build: โ”” ฮป /old/[[...publicId]] 382 B 215 kB viewer:build: + First Load JS shared by all 83.9 kB viewer:build: โ”œ chunks/framework-544e890f2f568b75.js 45.2 kB viewer:build: โ”œ chunks/main-3646e5a6b0f65e02.js 36.4 kB viewer:build: โ”” other shared chunks (total) 2.28 kB viewer:build: viewer:build: ฮป (Dynamic) server-rendered on demand using Node.js viewer:build: viewer:build: builder:build: โœ“ Compiled successfully builder:build: โœ“ Collecting page data builder:build: โœ“ Generating static pages (130/130) builder:build: โœ“ Collecting build traces builder:build: โœ“ Finalizing page optimization builder:build: builder:build: Route (pages) Size First Load JS builder:build: โ”Œ ฮป / 245 B 1.12 MB builder:build: โ”œ /_app 0 B 1.12 MB builder:build: โ”œ ฮป /404 610 B 1.12 MB builder:build: โ”œ ฮป /api/[...trpc] 0 B 1.12 MB builder:build: โ”œ ฮป /api/auth/[...nextauth] 0 B 1.12 MB builder:build: โ”œ ฮป /api/credentials 0 B 1.12 MB builder:build: โ”œ ฮป /api/credentials/[credentialsId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/credentials/google-sheets/callback 0 B 1.12 MB builder:build: โ”œ ฮป /api/credentials/google-sheets/consent-url 0 B 1.12 MB builder:build: โ”œ ฮป /api/customDomains/[domain] 0 B 1.12 MB builder:build: โ”œ ฮป /api/folders 0 B 1.12 MB builder:build: โ”œ ฮป /api/folders/[id] 0 B 1.12 MB builder:build: โ”œ ฮป /api/health 0 B 1.12 MB builder:build: โ”œ ฮป /api/integrations/email/test-config 0 B 1.12 MB builder:build: โ”œ ฮป /api/integrations/google-sheets/spreadsheets 0 B 1.12 MB builder:build: โ”œ ฮป /api/integrations/google-sheets/spreadsheets/[id]/sheets 0 B 1.12 MB builder:build: โ”œ ฮป /api/mock/webhook 0 B 1.12 MB builder:build: โ”œ ฮป /api/mock/webhook-easy-config 0 B 1.12 MB builder:build: โ”œ ฮป /api/publicIdAvailable 0 B 1.12 MB builder:build: โ”œ ฮป /api/storage/upload-url 0 B 1.12 MB builder:build: โ”œ ฮป /api/stripe/webhook 0 B 1.12 MB builder:build: โ”œ ฮป /api/test 0 B 1.12 MB builder:build: โ”œ ฮป /api/trpc/[trpc] 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/analytics/stats 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/blocks 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/blocks/[blockId]/testWebhook 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/collaborators 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/collaborators/[userId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/invitations 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/invitations/[email] 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/results/[resultId]/[fileName] 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/whatsapp/media/[mediaId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/typebots/[typebotId]/whatsapp/media/preview/[mediaId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/users/[userId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/users/[userId]/api-tokens 0 B 1.12 MB builder:build: โ”œ ฮป /api/users/[userId]/api-tokens/[tokenId] 0 B 1.12 MB builder:build: โ”œ ฮป /api/workspaces/[workspaceId]/invitations 0 B 1.12 MB builder:build: โ”œ ฮป /api/workspaces/[workspaceId]/invitations/[id] 0 B 1.12 MB builder:build: โ”œ ฮป /api/workspaces/[workspaceId]/members 0 B 1.12 MB builder:build: โ”œ ฮป /api/workspaces/[workspaceId]/members/[id] 0 B 1.12 MB builder:build: โ”œ ฮป /feedback 251 B 1.12 MB builder:build: โ”œ ฮป /feedback/[feedbackId] 258 B 1.12 MB builder:build: โ”œ โ—‹ /onboarding 4.55 kB 1.13 MB builder:build: โ”œ โ—‹ /past-due 652 B 1.37 MB builder:build: โ”œ โ—‹ /register 280 B 1.14 MB builder:build: โ”œ โ—‹ /signin 278 B 1.14 MB builder:build: โ”œ โ—‹ /suspended 636 B 1.37 MB builder:build: โ”œ ฮป /typebots 1.02 kB 1.38 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/duplicate 4.73 kB 1.13 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/edit 11.3 kB 1.77 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/results 242 B 1.59 MB builder:build: โ”œ ฮป /typebots/[typebotId]/results/analytics 314 B 1.59 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/settings 6.23 kB 1.31 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/share 79.1 kB 1.6 MB builder:build: โ”œ โ—‹ /typebots/[typebotId]/theme 12.8 kB 1.32 MB builder:build: โ”œ โ—‹ /typebots/create 4.01 kB 1.37 MB builder:build: โ”” โ—‹ /typebots/folders/[id] 707 B 1.38 MB builder:build: + First Load JS shared by all 1.12 MB builder:build: โ”œ chunks/framework-2224397ff1138491.js 45.2 kB builder:build: โ”œ chunks/main-7279b8361fb72de3.js 37.3 kB builder:build: โ”œ chunks/pages/_app-7c151148c4067948.js 1.04 MB builder:build: โ”” other shared chunks (total) 2.88 kB builder:build: builder:build: โ—‹ (Static) prerendered as static content builder:build: ฮป (Dynamic) server-rendered on demand using Node.js builder:build: builder:build:

Tasks: 9 successful, 9 total Cached: 0 cached, 9 total Time: 5m44.497s

Deploy the builder with PM2

root@cloud:/www/wwwroot/typebot.io/apps/builder# pm2 start --name=typebot pnpm -- start -p 3001 [PM2] Starting /www/server/nodejs/v20.10.0/bin/pnpm in fork_mode (1 instance) [PM2] Done.

typebot โ”‚ fork โ”‚ 0 โ”‚ online โ”‚ 0% โ”‚ 16.7mb โ”‚

Deploy the viewer with PM2

root@cloud:/www/wwwroot/typebot.io/apps/viewer# pm2 start --name=typebot pnpm -- start -p 3002 [PM2] Starting /www/server/nodejs/v20.10.0/bin/pnpm in fork_mode (1 instance) [PM2] Done.

typebot โ”‚ fork โ”‚ 0 โ”‚ online โ”‚ 0% โ”‚ 16.8mb

Am I doing something wrong ???

travmaxcloud commented 2 months ago

Site configuration "https://typebot.travbid.com"

server { listen 80; server_name typebot.travbid.com www.typebot.travbid.com; return 301 https://typebot.travbid.com$request_uri; }

server { listen 443 ssl; server_name typebot.travbid.com www.typebot.travbid.com;

#SSL-START SSL related configuration, do NOT delete or modify the next line of commented-out 404 rules
#error_page 404/404.html;
ssl_certificate    /www/server/panel/vhost/cert/typebot.travbid.com/fullchain.pem;
ssl_certificate_key    /www/server/panel/vhost/cert/typebot.travbid.com/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497  https://$host$request_uri;
    #SSL-END

location ^~ / {
     proxy_pass http://127.0.0.1:3001;
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection 'upgrade';
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_cache_bypass $http_upgrade;
}

}

Site configuration "https://bot.travbid.com"

server { listen 80; server_name bot.travbid.com www.bot.travbid.com; return 301 https://bot.travbid.com$request_uri; }

server { listen 443 ssl; server_name bot.travbid.com www.bot.travbid.com;

SSL-START SSL related configuration, do NOT delete or modify the next line of commented-out 404 rules

#error_page 404/404.html;
ssl_certificate    /www/server/panel/vhost/cert/bot.travbid.com/fullchain.pem;
ssl_certificate_key    /www/server/panel/vhost/cert/bot.travbid.com/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497  https://$host$request_uri;
    #SSL-END

location ^~ / {
     proxy_pass http://127.0.0.1:3002;
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection 'upgrade';
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_cache_bypass $http_upgrade;
}

}

travmaxcloud commented 2 months ago

pm2 log

|typebot | prisma:error |typebot | Invalid prisma.account.findUnique() invocation: |typebot | |typebot | |typebot | The table public.Account does not exist in the current database. |typebot | [DEBUG] host: 195.35.20.252 |typebot | [DEBUG] forwardedHost: 195.35.20.252 |typebot | [DEBUG] Request protocol: http |typebot | [DEBUG] viewerUrls: https://bot.travbid.com |typebot | [DEBUG] isMatchingViewerUrl: false |typebot | prisma:error |typebot | Invalid prisma.publicTypebot.findFirst() invocation: |typebot | |typebot | |typebot | The table public.PublicTypebot does not exist in the current database.

/root/.pm2/logs/typebot-error.log last 15 lines: |typebot | The table public.PublicTypebot does not exist in the current database. |typebot | at In.handleRequestError (/www/wwwroot/typebot.io/node_modules/.pnpm/@prisma+client@5.12.1_prisma@5.12.1/node_modules/@prisma/client/runtime/library.js:122:6854) |typebot | at In.handleAndLogRequestError (/www/wwwroot/typebot.io/node_modules/.pnpm/@prisma+client@5.12.1_prisma@5.12.1/node_modules/@prisma/client/runtime/library.js:122:6188) |typebot | at In.request (/www/wwwroot/typebot.io/node_modules/.pnpm/@prisma+client@5.12.1_prisma@5.12.1/node_modules/@prisma/client/runtime/library.js:122:5896) |typebot | at async l (/www/wwwroot/typebot.io/node_modules/.pnpm/@prisma+client@5.12.1_prisma@5.12.1/node_modules/@prisma/client/runtime/library.js:127:11167) |typebot | at async f (/www/wwwroot/typebot.io/apps/viewer/.next/server/pages/[[...publicId]].js:1:3692) |typebot | at async y (/www/wwwroot/typebot.io/apps/viewer/.next/server/pages/[[...publicId]].js:1:2948) |typebot | at async e6 (/www/wwwroot/typebot.io/nodemodules/.pnpm/next@14.1.0@babel+core@7.22.9_@opentelemetry+api@1.9.0_react-dom@18.2.0_react@18.2.0react@18.2.0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:31:593) |typebot | at async doRender (/www/wwwroot/typebot.io/nodemodules/.pnpm/next@14.1.0@babel+core@7.22.9_@opentelemetry+api@1.9.0_react-dom@18.2.0_react@18.2.0react@18.2.0/node_modules/next/dist/server/base-server.js:1381:30) |typebot | at async cacheEntry.responseCache.get.routeKind (/www/wwwroot/typebot.io/nodemodules/.pnpm/next@14.1.0@babel+core@7.22.9_@opentelemetry+api@1.9.0_react-dom@18.2.0_react@18.2.0react@18.2.0/node_modules/next/dist/server/base-server.js:1555:28) |typebot | at async NextNodeServer.renderToResponseWithComponentsImpl (/www/wwwroot/typebot.io/nodemodules/.pnpm/next@14.1.0@babel+core@7.22.9_@opentelemetry+api@1.9.0_react-dom@18.2.0_react@18.2.0react@18.2.0/node_modules/next/dist/server/base-server.js:1463:28) { |typebot | code: 'P2021', |typebot | clientVersion: '5.12.1', |typebot | meta: { modelName: 'PublicTypebot', table: 'public.PublicTypebot' } |typebot | }

baptisteArno commented 2 months ago

You probably forgot to run the database migration?

jwalsh-vori commented 2 months ago

You need to add the DIRECT_URL to your prisma schema file for your supabase connection to allow migrations to run. Read the details here: https://supabase.com/partners/integrations/prisma

in schema.prisma:

datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") }

The env value for direct URL should look something like this: postgres://[db-user].[project-ref]:[db-password]@aws-0-[aws-region].pooler.supabase.com:5432/[db-name]

It's important that the port is 5432. your db url port should not change.

travmaxcloud commented 2 months ago

database migration

pnpm db:migrate

The following migration(s) have been applied:

migrations/ โ””โ”€ 20220214162352_initial_schema/ โ””โ”€ migration.sql โ””โ”€ 20220217161047_add_prefilled_variables/ โ””โ”€ migration.sql โ””โ”€ 20220218135618_add_custom_domains/ โ””โ”€ migration.sql โ””โ”€ 20220218171811_add_unique_constraints/ โ””โ”€ migration.sql โ””โ”€ 20220221055630_add_api_token/ โ””โ”€ migration.sql โ””โ”€ 20220222091415_add_updated_at_fields/ โ””โ”€ migration.sql โ””โ”€ 20220224101209_add_collaboration/ โ””โ”€ migration.sql โ””โ”€ 20220224135151_add_created_at_and_updated_at_fields/ โ””โ”€ migration.sql โ””โ”€ 20220301060138_add_webhook_table/ โ””โ”€ migration.sql โ”€ 20220301103112_add_logs/ โ””โ”€ migration.sql โ””โ”€ 20220322064218_add_custom_domain_primary_key/ โ””โ”€ migration.sql โ””โ”€ 20220322143206_add_company_and_categories/ โ””โ”€ migration.sql โ””โ”€ 20220328144519_rename_prefilled_variables/ โ””โ”€ migration.sql โ””โ”€ 20220401140029_add_icon_on_typebot/ โ””โ”€ migration.sql โ””โ”€ 20220408192635_add_editor_navigation/ โ””โ”€ migration.sql โ””โ”€ 20220513223344_add_workspaces/ โ””โ”€ migration.sql โ””โ”€ 20220514235014_remove_owner_id/ โ””โ”€ migration.sql โ””โ”€ 20220603074700_add_tokens/ โ””โ”€ migration.sql โ””โ”€ 20220604084638_remove_public_typebot_duplicates/ โ””โ”€ migration.sql โ””โ”€ 20220607063609_required_workspace/ โ””โ”€ migration.sql โ””โ”€ 20220609085335_rename_block_to_group/ โ””โ”€ migration.sql โ””โ”€ 20220621144946_add_usage_fields/ โ””โ”€ migration.sql โ””โ”€ 20220624090915_add_result_fk_indices/ โ””โ”€ migration.sql โ””โ”€ 20220624120243_add_is_archived_on_result/ โ””โ”€ migration.sql โ””โ”€ 20220701154116_add_table_preferences/ โ””โ”€ migration.sql โ””โ”€ 20220713061342_switch_block_group_id_on_old_answers/ โ””โ”€ migration.sql โ””โ”€ 20220918083055_add_usage_based_pricing/ โ””โ”€ migration.sql โ””โ”€ 20220925181003_remove_cascade_delete_on_result/ โ””โ”€ migration.sql โ””โ”€ 20221001063449_add_is_archive_to_typebot/ โ””โ”€ migration.sql โ””โ”€ 20221006063227_add_is_closed_to_typebot/ โ””โ”€ migration.sql โ””โ”€ 20221020070814_remove_duplicate_answer_index/ โ””โ”€ migration.sql โ””โ”€ 20221020070833_add_typebot_id_index_in_result/ โ””โ”€ migration.sql โ””โ”€ 20221028145148_add_claimable_custom_plan/ โ””โ”€ migration.sql โ””โ”€ 20221123121854_test/ โ””โ”€ migration.sql โ””โ”€ 20221129090341_add_chat_session/ โ””โ”€ migration.sql โ””โ”€ 20221206182055_add_workspace_id_index_in_typebot_table/ โ””โ”€ migration.sql โ””โ”€ 20221206182113_add_created_at_index_in_result/ โ””โ”€ migration.sql โ””โ”€ 20221206182126_add_has_started_index_in_result/ โ””โ”€ migration.sql โ””โ”€ 20221207070502_optimize_result_indexes/ โ””โ”€ migration.sql โ””โ”€ 20221208094821_add_typebot_id_index_in_result/ โ””โ”€ migration.sql โ””โ”€ 20221219142712_add_app_appearance_preference/ โ””โ”€ migration.sql โ””โ”€ 20230124131622_migrate_default_background_color/ โ””โ”€ migration.sql โ””โ”€ 20230127133558_add_unlimited_plan/ โ””โ”€ migration.sql โ””โ”€ 20230127153202_remove_useless_published_typebot_id/ โ””โ”€ migration.sql โ””โ”€ 20230201082042_remove_scalar_list_types/ โ””โ”€ migration.sql โ””โ”€ 20230201100009_set_not_null/ โ””โ”€ migration.sql โ””โ”€ 20230203065215_add_missing_updated_at_fields/ โ””โ”€ migration.sql โ””โ”€ 20230220085522_add_version_fields/ โ””โ”€ migration.sql โ””โ”€ 20230307144424_remove_updated_at_on_result/ โ””โ”€ migration.sql โ””โ”€ 20230328123237_add_theme_templates/ โ””โ”€ migration.sql โ””โ”€ 20230420143512_add_quarantined_field/ โ””โ”€ migration.sql โ””โ”€ 20230428084840_add_more_fiel_d_in_custom_claimable_plan/ โ””โ”€ migration.sql โ””โ”€ 20230630095152_add_item_id_in_answer/ โ””โ”€ migration.sql โ””โ”€ 20230704125011_add_is_suspended_prop/ โ””โ”€ migration.sql โ””โ”€ 20230828075658_add_whatsapp_phone_id_in_typebot/ โ””โ”€ migration.sql โ””โ”€ 20230922081540_add_whatsapp_credentials_id/ โ””โ”€ migration.sql โ””โ”€ 20230925135118_remove_whatsapp_phone_number_idfield/ โ””โ”€ migration.sql โ””โ”€ 20231108111118/ โ””โ”€ migration.sql โ””โ”€ 20231121154057_add_is_past_due_field/ โ””โ”€ migration.sql โ””โ”€ 20231208172001_add_risk_level/ โ””โ”€ migration.sql โ””โ”€ 20231211122755_add_banned_ip_table/ โ””โ”€ migration.sql โ””โ”€ 20231219130423_add_is_verified_flag_on_workspace/ โ””โ”€ migration.sql โ””โ”€ 20240124090203_add_displayed_inapp_notifications/ โ””โ”€ migration.sql โ””โ”€ 20240201142317_add_referral_field_in_user/ โ””โ”€ migration.sql โ””โ”€ 20240418062443_add_is_replying_in_chat_session/ โ””โ”€ migration.sql โ””โ”€ 20240515062409_add_answerv2_table/ โ””โ”€ migration.sql โ””โ”€ 20240522133715_add_created_at_in_answerv2/ โ””โ”€ migration.sql โ””โ”€ 20240626074841_add_attachedfileurls_field_in_answerv2/ โ””โ”€ migration.sql

All migrations have been successfully applied.

and now it is working thanx

travmaxcloud commented 2 months ago

You need to add the DIRECT_URL to your prisma schema file for your supabase connection to allow migrations to run. Read the details here: https://supabase.com/partners/integrations/prisma

in schema.prisma:

datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") }

The env value for direct URL should look something like this: postgres://[db-user].[project-ref]:[db-password]@aws-0-[aws-region].pooler.supabase.com:5432/[db-name]

It's important that the port is 5432. your db url port should not change.

thanx now typebot is working

travmaxcloud commented 2 months ago

thanx guys

ricardolucena commented 6 days ago

Hi, im get ting same error, but running docker installation, following the documentations steps:

https://docs.typebot.io/self-hosting/deploy/docker