Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Create a Typebot: Error Shown on Main Page #1869

Open
simpsss opened this issue Nov 1, 2024 · 4 comments
Open

Unable to Create a Typebot: Error Shown on Main Page #1869

simpsss opened this issue Nov 1, 2024 · 4 comments

Comments

@simpsss
Copy link

simpsss commented Nov 1, 2024

Describe the bug
When I click on "Create a Typebot" on the main page, an error occurs, as shown in the attached screenshots. This prevents the creation of a new Typebot and disrupts the workflow.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the main page of Typebot.
  2. Click on the "Create a Typebot" button.
  3. See error

Expected behavior
I expected to be able to create a new Typebot without encountering any error messages, and for the process to complete smoothly.

Screen recording
image
image
image

@baptisteArno
Copy link
Owner

Can you provide the server logs? There should be a clear error there.

If you are self-hosting it with docker. Type this command in your terminal:

docker-compose logs

Paste all the logs here so that we can help you properly!

@simpsss
Copy link
Author

simpsss commented Nov 5, 2024

root@sp ~ ✔ # docker logs typebot_typebot_builder.1.rea0qgczhgbqmq1u4zvs9fdjv

  • event [next-runtime-env] read environment variables prefixed with 'NEXT_PUBLIC_' from process.env.
  • ready [next-runtime-env] wrote browser runtime environment variables to '/app/apps/builder/public/__ENV.js'.
    Prisma schema loaded from packages/prisma/postgresql/schema.prisma
    Datasource "db": PostgreSQL database "typebot", schema "public" at "postgres:5432"

68 migrations found in prisma/migrations

No pending migrations to apply.
▲ Next.js 14.2.13

✓ Starting...
✓ Ready in 2.9s


root@sp ~ ✔ # docker logs typebot_typebot_viewer.1.s11a14i1nldv3wle6jr27yr8j

  • event [next-runtime-env] read environment variables prefixed with 'NEXT_PUBLIC_' from process.env.
  • ready [next-runtime-env] wrote browser runtime environment variables to '/app/apps/viewer/public/__ENV.js'.
    ▲ Next.js 14.2.13

✓ Starting...
✓ Ready in 966ms

@baptisteArno
Copy link
Owner

Is that all? 🤔

I don't really know what's happening then...

@simpsss
Copy link
Author

simpsss commented Nov 10, 2024

my docker-compose.yml:

version: "3.7"
services:

typebot_builder:
image: baptistearno/typebot-builder:latest
networks:
- XXXXXXXXX
environment:
- DATABASE_URL=postgresql://postgres:@postgres:5432/typebot
- ENCRYPTION_SECRET=
- DEFAULT_WORKSPACE_PLAN=UNLIMITED
- NEXTAUTH_URL=https://XXXXXXXXXX
- NEXT_PUBLIC_VIEWER_URL=https://XXXXXXXXXX
- NEXTAUTH_URL_INTERNAL=http://localhost:3000
- DISABLE_SIGNUP=false
- ADMIN_EMAIL=XXXXXXXXXX
- NEXT_PUBLIC_SMTP_FROM='Suporte'
- SMTP_AUTH_DISABLED=false
- SMTP_USERNAME=XXXXXXXXXX
- SMTP_PASSWORD=
- SMTP_HOST=smtp.office365.com
- SMTP_PORT=587
- SMTP_SECURE=false
- S3_ACCESS_KEY=
- S3_SECRET_KEY=
- S3_BUCKET=typebot
- S3_ENDPOINT=s3.XXXXXXXXXX
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "1"
memory: 1024M
labels:
- io.portainer.accesscontrol.users=admin
- traefik.enable=true
- traefik.http.routers.typebot_builder.rule=Host(XXXXXXXXXX)
- traefik.http.routers.typebot_builder.entrypoints=websecure
- traefik.http.routers.typebot_builder.tls.certresolver=letsencryptresolver
- traefik.http.services.typebot_builder.loadbalancer.server.port=3000
- traefik.http.services.typebot_builder.loadbalancer.passHostHeader=true
- traefik.http.routers.typebot_builder.service=typebot_builder

typebot_viewer:
image: baptistearno/typebot-viewer:latest
networks:
- XXXXXXXXX
environment:
- DATABASE_URL=postgresql://postgres:@postgres:5432/typebot
- ENCRYPTION_SECRET=
- DEFAULT_WORKSPACE_PLAN=UNLIMITED
- NEXTAUTH_URL=https://XXXXXXXXXX
- NEXT_PUBLIC_VIEWER_URL=https://XXXXXXXXXX
- NEXTAUTH_URL_INTERNAL=http://localhost:3000
- DISABLE_SIGNUP=false
- ADMIN_EMAIL=XXXXXXXXXX
- NEXT_PUBLIC_SMTP_FROM='Suporte'
- SMTP_AUTH_DISABLED=false
- SMTP_USERNAME=XXXXXXXXXX
- SMTP_PASSWORD=
- SMTP_HOST=smtp.office365.com
- SMTP_PORT=587
- SMTP_SECURE=false
- S3_ACCESS_KEY=
- S3_SECRET_KEY=
- S3_BUCKET=typebot
- S3_ENDPOINT=s3.XXXXXXXXXX
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: "1"
memory: 1024M
labels:
- io.portainer.accesscontrol.users=admin
- traefik.enable=true
- traefik.http.routers.typebot_viewer.rule=Host(XXXXXXXXXX)
- traefik.http.routers.typebot_viewer.entrypoints=websecure
- traefik.http.routers.typebot_viewer.tls.certresolver=letsencryptresolver
- traefik.http.services.typebot_viewer.loadbalancer.server.port=3000
- traefik.http.services.typebot_viewer.loadbalancer.passHostHeader=true
- traefik.http.routers.typebot_viewer.service=typebot_viewer

networks:
XXXXXXXXXX:
external: true
name: XXXXXXXXXXXX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants