Supabase not working in Linux Ubuntu

I try run supabase start in linux ubuntu, the procces I follow was initializing the docker container and then entering supabase start but it breaks down returning an error of a suppouse query that is not there. I try running with the same steps and same commands in MacOS and it works perfectly. Is there anyway I'm missing something in Linux? (Supabase CLI 1.127.4) . Any help would be great!!!
No description
11 Replies
vick
vick2y ago
Recently there were some updates to the auth schema. The seed file your project uses is trying to add some rows to the auth.identiies table based on the old schema. You need to update the seed file. The most likely change is to just delete those inserts. I haven't been able to figure out what that table is used for and missing those entries doesn't seem to cause any problems in development. Also, learn to take a screenshot or just copy/paste the text in a code-block. Posting an oblique photo is really not the optimal way to get help.
Germán
GermánOP2y ago
but what would it be that the problem when it works on MacOS, it should throw the same error if it's something about the schema. Sorry for the picture !
silentworks
silentworks2y ago
And are you using the same version of the CLI on both operating systems?
Germán
GermánOP2y ago
Yes, I'm using the same
silentworks
silentworks2y ago
Can you check that it's the same version of postgres and gotrue images is being used on both OSes?
Germán
GermánOP2y ago
Yes they are both the same One of my coworkers is using supabase cli 1.106 with ubuntu and it works for him it might be then the cli
vick
vick2y ago
The change happened sometime between cli version 1.123.4 and 1.127.4. I did not update between these versions. My strategy is to not install the supabase CLI globally. It is versioned with my project code, and all use of it is via npx supabase ... so it uses the version matching the app. I use this strategy with all utilities needed by my app.
silentworks
silentworks2y ago
Yes this is exactly how I make use of it too
Germán
GermánOP2y ago
Oh got it ! how do you pick the supabase version, npx supabase 1.123.4 or how is it ? Or you just do npx supabase start for example ?
vick
vick2y ago
to pick the version, npm install [email protected] For the latest, npm install supabase@latest. Then you just run npx supabase start. It is probably best to uninstall the globally installed version so you don't accidentally run that. When you have a package-lock.json file, npm will install that version when you set up the project with npm install
Germán
GermánOP2y ago
Perfect I got it running the way it should now. Thank you so much!!! Really helpful!

Did you find this page helpful?