auth icon indicating copy to clipboard operation
auth copied to clipboard

Bad migration crashing server

Open lhotwll217 opened this issue 1 year ago • 1 comments

Bug report

Gettign this error on my hosted instance. This is a bit puzzling. Server keeps trying to reinitialize and failing here.

{"level":"fatal","msg":"running db migrations: error executing migrations/20221208132122_backfill_email_last_sign_in_at.up.sql, sql: -- previous backfill migration left last_sign_in_at to be null, which broke some projects\n\ndo $$\nbegin\nupdate auth.identities\n set last_sign_in_at = '2022-11-25'\n where\n last_sign_in_at is null and\n created_at = '2022-11-25' and\n updated_at = '2022-11-25' and\n provider = 'email' and\n id = user_id::text;\nend $$;\n: ERROR: operator does not exist: uuid = text (SQLSTATE 42883)","time":"2024-05-04T20:06:01Z"}

  • [ ] I confirm this is a bug with Supabase, not with my own application.
  • [ ] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. 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.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

lhotwll217 avatar May 04 '24 20:05 lhotwll217

https://github.com/orgs/supabase/discussions/20722

GaryAustin1 avatar May 05 '24 03:05 GaryAustin1

closing because it's been addressed in the discussion

kangmingtay avatar May 09 '24 10:05 kangmingtay

I have the same issue

Tananga avatar May 13 '24 13:05 Tananga

I have the same issue This happened after the first user registered via email and password. Until that moment, we had no users who were registered via email and password

VitaliyHula avatar Jun 18 '24 10:06 VitaliyHula