Share feedback, ideas and get community help

Updated 11 months ago

Builder is looking for database on localhost

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/@[email protected][email protected]/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 | }
B
J
11 comments
It means the builder container can't reach your database. The hostname localhost:5432 looks strange, are you sure about your DATABASE_URL value?
Wow so simple when you know how πŸ™‚ Missed that setting haha
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?
What deployment guide are you following?
I recommend deploying with Docker
I'm deploying it with docker on digital ocean
Then I don't understand, by default you should not have to modify the DATABASE_URL value
Pleas follow thoroughly the guide
The only part I've not done is the S3 set up, assuming that is for storing uploads
Tired eyes + code isn't the best, was just overlooking the url for the database all solved thank you!
Add a reply
Sign up and join the conversation on Discord