T
Typebot•2mo ago
Jathin

Self Hosted | Getting the "Error! Could not reach server. Check your connection." message

Hey community! 👋 I'm setting up a new self-hosted Typebot instance using Docker Compose and I'm consistently getting an "Error! Could not reach server. Check your connection." on most pages, especially when I try to load or use a template (see attached screenshot). My setup includes the standard services (typebot-builder, viewer, db, redis) and I've also added a minio service for S3-compatible storage. I think the issue might be a misconfiguration in my .env file or how the services are communicating. Has anyone run into a similar issue or see something obviously wrong with my approach? I'm happy to share my docker-compose.yml and redacted .env file. Redacted .env file
ENCRYPTION_SECRET=<REDACTED_RANDOM_32_CHARACTER_STRING>
DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
NODE_OPTIONS=--no-node-snapshot
NEXTAUTH_URL=http://localhost:8080
NEXT_PUBLIC_VIEWER_URL=http://localhost:8081
NEXT_PUBLIC_API_URL=http://localhost:8080

MINIO_ROOT_USER=<REDACTED_MINIO_USER>
MINIO_ROOT_PASSWORD=<REDACTED_MINIO_PASSWORD>

S3_ACCESS_KEY=<REDACTED_S3_ACCESS_KEY>
S3_SECRET_KEY=<REDACTED_S3_SECRET_KEY>
S3_BUCKET=typebot-s3-bucket
S3_ENDPOINT=minio
S3_PORT=9000
S3_SSL=false

GOOGLE_AUTH_CLIENT_ID=<REDACTED_GOOGLE_CLIENT_ID>
GOOGLE_AUTH_CLIENT_SECRET=<REDACTED_GOOGLE_CLIENT_SECRET>

ADMIN_EMAIL=<REDACTED_ADMIN_EMAIL>
ENCRYPTION_SECRET=<REDACTED_RANDOM_32_CHARACTER_STRING>
DATABASE_URL=postgresql://postgres:typebot@typebot-db:5432/typebot
NODE_OPTIONS=--no-node-snapshot
NEXTAUTH_URL=http://localhost:8080
NEXT_PUBLIC_VIEWER_URL=http://localhost:8081
NEXT_PUBLIC_API_URL=http://localhost:8080

MINIO_ROOT_USER=<REDACTED_MINIO_USER>
MINIO_ROOT_PASSWORD=<REDACTED_MINIO_PASSWORD>

S3_ACCESS_KEY=<REDACTED_S3_ACCESS_KEY>
S3_SECRET_KEY=<REDACTED_S3_SECRET_KEY>
S3_BUCKET=typebot-s3-bucket
S3_ENDPOINT=minio
S3_PORT=9000
S3_SSL=false

GOOGLE_AUTH_CLIENT_ID=<REDACTED_GOOGLE_CLIENT_ID>
GOOGLE_AUTH_CLIENT_SECRET=<REDACTED_GOOGLE_CLIENT_SECRET>

ADMIN_EMAIL=<REDACTED_ADMIN_EMAIL>
Thanks for any help you can offer!
6 Replies
Baptiste
Baptiste•2mo ago
Please provide server logs
Jathin
JathinOP•2mo ago
I have attached the typebot-viewer logs and the typebot-builder logs along with this message. Thanks again!
Baptiste
Baptiste•2mo ago
What's the value of NEXT_PUBLIC_VIEWER_URL in your .env file?
Jathin
JathinOP•2mo ago
This is what I had configured : http://localhost:8081 for the NEXT_PUBLIC_VIEWER_URL
Baptiste
Baptiste•2mo ago
That's why, localhost:8081 is not reachable from builder container

Did you find this page helpful?