R2R
R2R copied to clipboard
Token payload is not valid JSON when base64 decoded and 2 containers exit
Describe the bug
docker compose -f compose.full.yaml up
OpenAI
OPENAI_API_KEY=empty OPENAI_API_BASE=http://host.docker.internal:11434/v1
hatchet-create-db-1 | Waiting for PostgreSQL to be ready... hatchet-create-db-1 | hatchet-postgres:5432 - accepting connections hatchet-create-db-1 | PostgreSQL is ready, checking if database exists... hatchet-create-db-1 | Database already exists, skipping creation. hatchet-create-db-1 exited with code 0 hatchet-migration-1 | Waiting for database to be ready... hatchet-migration-1 | DATABASE_URL: postgres://hatchet_user:hatchet_password@hatchet-postgres:5432/hatchet?sslmode=disable hatchet-postgres-1 | 2025-03-14 00:39:20.502 UTC [365] ERROR: relation "_prisma_migrations" does not exist at character 28 hatchet-postgres-1 | 2025-03-14 00:39:20.502 UTC [365] STATEMENT: SELECT migration_name FROM _prisma_migrations ORDER BY started_at DESC LIMIT 1; hatchet-migration-1 | Migration name: hatchet-migration-1 | No prisma migration found. Applying migrations via atlas... hatchet-migration-1 | No migration files to execute hatchet-migration-1 exited with code 0 hatchet-setup-config-1 | Generating encryption keys for Hatchet server hatchet-setup-config-1 | Generating config files /hatchet/config hatchet-setup-config-1 exited with code 0 setup-token-1 | Starting token creation process... setup-token-1 | Token created and saved to /tmp/hatchet_api_key setup-token-1 | Token copied to /hatchet_api_key/api_key.txt setup-token-1 | Hatchet API key has been saved successfully setup-token-1 | Token length: 538 setup-token-1 | Token (first 20 chars): eyJhbGciOiJFUzI1NiIs setup-token-1 | Token structure: 2 parts setup-token-1 | Part 1 length: 40 setup-token-1 | Part 1 base64 check: Valid setup-token-1 | Part 2 length: 410 setup-token-1 | Part 2 base64 check: Invalid setup-token-1 | Part 3 length: 86 setup-token-1 | Part 3 base64 check: Invalid setup-token-1 | Warning: Token payload is not valid JSON when base64 decoded
4d975ecac25b postgres:latest "docker-entrypoint.s…" 20 minutes ago Exited (0) 4 minutes ago docker-hatchet-create-db-1 46a1660c7ce4 ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15 "/hatchet/hatchet-ad…" 20 minutes ago Exited (0) 4 minutes ago docker-hatchet-setup-config-1 c42de9cbc325 ghcr.io/hatchet-dev/hatchet/hatchet-migrate:v0.53.15 "./atlas-apply.sh" 20 minutes ago Exited (0) 4 minutes ago docker-hatchet-migration-1 e6784985b759 ghcr.io/hatchet-dev/hatchet/hatchet-admin:v0.53.15 "sh /scripts/setup-t…" 7 minutes ago Exited (1) 4 minutes ago docker-setup-token-1
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS] ubuntu22
- Browser [e.g. chrome, safari] edge
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.