mckaywrigley / chatbot-ui

Come join the best place on the internet to learn AI skills. Use code "chatbotui" for an extra 20% off.
https://JoinTakeoff.com
MIT License
28.44k stars 7.91k forks source link

Vercel Deployment: Application error: a server-side exception has occurred (see the server logs for more information). Digest: 1249433048 #1616

Open devsusholding opened 6 months ago

devsusholding commented 6 months ago

Hello, I tried to deploy the Chatbot on Vercel following the instructions.

However once Vercel has compiled the code by browsing the page I get this error:

Application error: a server-side exception has occurred (see the server logs for more information). Digest: 1249433048

immagine

By browsing the logs on Vercel I see this error:

Error: relation "public.workspaces" does not exist
    at e_ (/var/task/.next/server/app/[locale]/login/page.js:1:36987)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:406
    at async rg (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:6309)
    at async rz (/var/task/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:24709)
    at async Y (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:16:25417)
    at async Q.responseCache.get.routeKind (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:1025)
    at async r3.renderToResponseWithComponentsImpl (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:507)
    at async r3.renderPageComponent (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:4780)
    at async r3.renderToResponseImpl (/var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:5363)
Am I missing something?
PixelVerseIT commented 6 months ago

same, don't know why

PixelVerseIT commented 6 months ago

I think it's related to #1617

devsusholding commented 6 months ago

I think it's related to #1617

Correct, I got the same behaviour

tim13246879 commented 5 months ago

If you're getting this error "Error: relation "public.workspaces" does not exist" it could be that your migrations have not been applied. Try running npm run db-push to apply the latest migrations. I ran into the same problem with a self-hosted instance and this resolved it.