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

Migrations stuck in "Add TokenRateLimit Tables" #3668

Open
marcelogdeandrade opened this issue Jan 13, 2025 · 1 comment
Open

Migrations stuck in "Add TokenRateLimit Tables" #3668

marcelogdeandrade opened this issue Jan 13, 2025 · 1 comment

Comments

@marcelogdeandrade
Copy link

I've been trying to deploy Onyx on Kubernetes using the Helm Chart, and the migrations seem to be stuck on Add TokenRateLimit Tables step. I don't see any other errors or logs, the api-deployment pod just stops logging at this point:

INFO  [alembic.runtime.migration] Running upgrade 7f726bad5367 -> dbaa756c2ccf, Embedding Models
INFO  [alembic.runtime.migration] Running upgrade dbaa756c2ccf -> ec3ec2eabf7b, Index From Beginning
INFO  [alembic.runtime.migration] Running upgrade ec3ec2eabf7b -> 8987770549c0, Add full exception stack trace
INFO  [alembic.runtime.migration] Running upgrade 8987770549c0 -> 5f4b8568a221, add removed documents to index_attempt
INFO  [alembic.runtime.migration] Running upgrade 5f4b8568a221 -> 0a2b51deb0b8, Add starter prompts
INFO  [alembic.runtime.migration] Running upgrade 0a2b51deb0b8 -> fcd135795f21, Add slack bot display type
INFO  [alembic.runtime.migration] Running upgrade fcd135795f21 -> e50154680a5c, No Source Enum
INFO  [alembic.runtime.migration] Running upgrade e50154680a5c -> 173cae5bba26, Port Config Store
INFO  [alembic.runtime.migration] Running upgrade 173cae5bba26 -> 91fd3b470d1a, Remove DocumentSource from Tag
INFO  [alembic.runtime.migration] Running upgrade 91fd3b470d1a -> e91df4e935ef, Private Personas DocumentSets
INFO  [alembic.runtime.migration] Running upgrade e91df4e935ef -> 4738e4b3bae1, PG File Store
INFO  [alembic.runtime.migration] Running upgrade 4738e4b3bae1 -> 776b3bbe9092, Remove Remaining Enums
INFO  [alembic.runtime.migration] Running upgrade 776b3bbe9092 -> 38eda64af7fe, Add chat session sharing
INFO  [alembic.runtime.migration] Running upgrade 38eda64af7fe -> ecab2b3f1a3b, Add overrides to the chat session
INFO  [alembic.runtime.migration] Running upgrade ecab2b3f1a3b -> 475fcefe8826, Add name to api_key
INFO  [alembic.runtime.migration] Running upgrade 475fcefe8826 -> 72bdc9929a46, Permission Auto Sync Framework
INFO  [alembic.runtime.migration] Running upgrade 72bdc9929a46 -> fad14119fb92, Delete Tags with wrong Enum
INFO  [alembic.runtime.migration] Running upgrade fad14119fb92 -> 703313b75876, Add TokenRateLimit Tables

I'm using Onyx release version 0.18.0 and using RDS as the postgres host.

@pablonyx
Copy link
Contributor

Hey Marcelo! This liekly has something to do with the call to Redis (our current key value store)- if you see that token_rate_limit and token_rate_limit__user_group are already created, I would go to the 703313b75876_add_tokenratelimit_tables.py file and comment out the whole migration and just pass instead.

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