The community member is trying to deploy Typebot to a server, but is encountering an issue where they are unable to log in due to a "Can't reach database server at localhost:5432" error. The comments suggest that the issue is likely related to the database configuration, with the community members discussing how to properly format the DATABASE_URL value. One community member recommends following the deployment guide for Docker, which is provided in a link. Eventually, the community member resolves the issue by overlooking the URL for the database.
I'm trying to deploy typebot to a server, I've managed to set up the reverse proxy and have access to the site. I'm going through the login options then it fails to log in.
I'm getting this error from my builder when I try to login:
Can't reach database server at localhost:5432
nextconvo-typebot-builder-1 |
nextconvo-typebot-builder-1 | Please make sure your database server is running at localhost:5432.
nextconvo-typebot-builder-1 | at zr.handleRequestError (/app/node_modules/.pnpm/@prisma+client@5.0.0_prisma@5.0.0/node_modules/@prisma/client/runtime/library.js:122:8581) nextconvo-typebot-builder-1 | at zr.handleAndLogRequestError (/app/node_modules/.pnpm/@prisma+client@5.0.0_prisma@5.0.0/node_modules/@prisma/client/runtime/library.js:122:7697) nextconvo-typebot-builder-1 | at zr.request (/app/node_modules/.pnpm/@prisma+client@5.0.0_prisma@5.0.0/node_modules/@prisma/client/runtime/library.js:122:7307) nextconvo-typebot-builder-1 | at async getUserByAccount (/app/apps/builder/.next/server/chunks/162.js:1:1378) { nextconvo-typebot-builder-1 | name: 'GetUserByAccountError', nextconvo-typebot-builder-1 | code: undefined nextconvo-typebot-builder-1 | }
Hmmm still struggling how should I format the new DATABASE_URL: DATABASE_URL=postgresql://postgres:typebot@mydomain.com:5432/typebot or should I be using the IP address of my server?