-
Notifications
You must be signed in to change notification settings - Fork 334
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
postgres in docker: column "limits_overrides" does not exist at character 142 #1756
Comments
There's a migration script that needs to be run, there should some warnings that were raised, but you'll need to run |
Thank you! Because I am running r2r on docker, postgres starts with r2r inside docker. If I run r2r db upgrade without r2r serve --docker, it says postgres is not running. After I do r2r serve --docker, the log says, Running command for schema: r2r_default I checked r2r.toml and project_name is set to "r2r-default" (I cloned from git without change), so I am confused what goes wrong. Thank you for your help! |
This process sounds correct—you'll want to start the docker as you have, and it's ok that the R2R container is failing for now. You'll just need to export an environment variable equal to that which is in your config file. 'export R2R_PROJECT_NAME=r2r_default' And then run the migration command again. There might be another variable you have the set, but the process is the same. Once the migration runs, the server will launch successfully. Let me know if that works! |
Describe the bug
I was running the newest version (built from the current source code), and the log in r2r postgres docker container says "column "limits_overrides" does not exist at character 142".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successfully start the r2r server
Log
2025-01-04 19:01:23 2025-01-04 11:01:23.163 UTC [6626] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:01:23 2025-01-04 11:01:23.163 UTC [6626] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:01:59 2025-01-04 11:01:59.394 UTC [6661] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:01:59 2025-01-04 11:01:59.394 UTC [6661] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:02:52 2025-01-04 11:02:52.469 UTC [6712] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:02:52 2025-01-04 11:02:52.469 UTC [6712] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:10:51 2025-01-04 11:10:51.003 UTC [6772] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:10:51 2025-01-04 11:10:51.003 UTC [6772] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:11:35 2025-01-04 11:11:35.287 UTC [6824] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:11:35 2025-01-04 11:11:35.287 UTC [6824] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:12:15 2025-01-04 11:12:15.255 UTC [6858] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:12:15 2025-01-04 11:12:15.255 UTC [6858] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:12:55 2025-01-04 11:12:55.246 UTC [6901] ERROR: column "limits_overrides" does not exist at character 142
2025-01-04 19:12:55 2025-01-04 11:12:55.246 UTC [6901] STATEMENT: SELECT id, email, hashed_password, is_superuser, is_active, is_verified, created_at, updated_at, name, profile_picture, bio, collection_ids, limits_overrides FROM r2r_default.users WHERE email = $1
2025-01-04 19:13:20 2025-01-04 11:13:20.767 UTC [27] LOG: checkpoint starting: time
2025-01-04 19:13:22 2025-01-04 11:13:22.428 UTC [27] LOG: checkpoint complete: wrote 17 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.610 s, sync=0.012 s, total=1.661 s; sync files=10, longest=0.007 s, average=0.002 s; distance=106 kB, estimate=149 kB; lsn=0/4FEC2320, redo lsn=0/4FEC22E8
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: