-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Signup fails: null value in column "provider_id" of relation "identities" violates not-null constraint #19620
Comments
I have same issue. |
Hey folks, Thanks for flagging this! Could we trouble y'all to open a ticket here If you could state any relevant details as well as the framework(s)/tools you are using that would be great (e.g. nextjs with prisma, django with sqlalchemy, redwoodjs) Thanks! Upd: just realized this is local, please only open a ticket if you are facing this issue on the platform. |
@JunsikChoi Hmm... that's good information. We actually just finished releasing a version to all projects on prod, but CLI moves slightly faster than the prod deploys. Can you check again? I'll speak to the CLI team on making the releases synced. |
I just tried it again and it's the same issue on my side locally. |
I suspect this error is specific to projects on pg14. Please give Feel free to reopen if this issue still persists. |
Hi, the same issue persists on pg15. Problem persist even after running |
yea my build processes are all failing with the exact same errors /: |
I got the issue when running INSERT INTO auth.identities (id, user_id, identity_data, provider, last_sign_in_at, created_at, updated_at)
VALUES (...); Note how we provide the provider (which used to be a string) and the schema most likely changed to provider_id being a fk.
Not big deal for local dev, I'll simply downgrade to a CLI version that works |
@AndreMiras interesting, the auth team introduced a migration to the auth service which makes the following changes:
This seems to affect INSERT INTO auth.identities (id, user_id, identity_data, provider, last_sign_in_at, created_at, updated_at) to INSERT INTO auth.identities (provider_id, user_id, identity_data, provider, last_sign_in_at, created_at, updated_at) Note: The |
That did it @kangmingtay, thanks for the context |
@kangmingtay i don't have anything in seed.sql that inserts into identities table. Are there any other spots as well? 🤔 |
I have the issue that my local setup auth tables are not up to date with the new provider_id column in identities table. I have "major_version = 15" in supabase/config.toml. I have tried to run it with beta version of CLI and latest release version, no changes. BUT when I change major version to 14 "major_version = 14", it works as expected with the new provider_id column. It would seem the initial schemas on pg15 are not updated on the CLI. Hope this helps in some way. ◡̈ |
Are there plans to upgrade the initial schemas on pg15 for Supabase CLI soon? |
pg15 doesn't require initial schema because we run the migrations that came with gotrue docker image. It's possible that you have have outdated image versions in |
Thanks. This solved it for me! I was thinking all along that I had outdated images. Just didn't know it was the .temp folder that held that information. Tried deleting all images and containers without luck. But this did the trick! |
Is there a solution to this other than downgrading the CLI version? Using Supabase CLI v1.123.4 with pg15, removed
|
Signup fails w/ same error for me as well. I don't have anything under |
Using Supabase CLI v1.123.6 with pg15, removed supabase/.temp, reset the database and still getting the error (below) when signing up new users on local with supabase.auth.signUp.
I am able to use
I am using the Could this be a bug on the |
Closing this as it seems to be solved, confirmed working on v1.128.1 also. Please comment here (with system information) if this is still occurring and the fix mentioned here does not work and we will reopen! |
* chore: populate sql with dummy data * updated seed sql file * updates seed sql file * fix issue with provider_id supabase/supabase#19620 --------- Co-authored-by: Rotimi Best <best@classroomio.com>
Bug report
Describe the bug
As of today, whenever I try to sign up I see this error in my local development environment:
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
supabase db reset
signUp
functionExpected behavior
Registration with email and password should work without issues
Screenshots
n/a
System information
Additional context
My current workaround is to remove the null constraint:
The text was updated successfully, but these errors were encountered: