T
Typebot•9mo ago
JohnSmith

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/@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 | }
7 Replies
Baptiste
Baptiste•9mo ago
It means the builder container can't reach your database. The hostname localhost:5432 looks strange, are you sure about your DATABASE_URL value?
JohnSmith
JohnSmith•9mo ago
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?
Baptiste
Baptiste•9mo ago
What deployment guide are you following? I recommend deploying with Docker
JohnSmith
JohnSmith•9mo ago
I'm deploying it with docker on digital ocean
Baptiste
Baptiste•9mo ago
Then I don't understand, by default you should not have to modify the DATABASE_URL value Pleas follow thoroughly the guide
JohnSmith
JohnSmith•9mo ago
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!
Want results from more Discord servers?
Add your server