GithubHelp home page GithubHelp logo

Comments (3)

remirobichet avatar remirobichet commented on September 22, 2024 1

With further investigation I managed to make my local supabase works again.
Turns out a migration was missing from supabase/realtime in my local instance (supabase/realtime@58c8155#diff-43c8d181ef38c9eea9ac1d54c04aacebb23fc36409951092c14e60877d74eef9)

Here are the steps :

  • stop your supabase local containers (supabase stop)
  • start your supabase local containers with --ignore-health-check option (supabase start --ignore-health-check) (because error is triggered during the health-check step)

From this step I have used DBeaver as SQL client

  • connect to local postgres DB as admin (default user/passwd is supabase_admin/postgres)
  • find the _realtime schema and the tenants table
  • manually create column jwt_jwks::jsonb (jsonb is the data type of the colum here)
  • retart supabase without health check ignore flag

🎉

from supabase.

slashv avatar slashv commented on September 22, 2024

Similar issue. Existing project:

Request: HEAD /api/tenants/realtime-dev/health                                                                                                                                      
** (exit) an exception was raised:                                                                                                                                                  
    ** (CaseClauseError) no case clause matching: {:error, "ERROR 42703 (undefined_column) column t0.jwt_jwks does not exist\n\n    query: SELECT t0.\"id\", t0.\"name\", t0.\"exter
nal_id\", t0.\"jwt_secret\", t0.\"jwt_jwks\", t0.\"postgres_cdc_default\", t0.\"max_concurrent_users\", t0.\"max_events_per_second\", t0.\"max_bytes_per_second\", t0.\"max_channels
_per_client\", t0.\"max_joins_per_second\", t0.\"suspend\", t0.\"inserted_at\", t0.\"updated_at\" FROM \"tenants\" AS t0 WHERE (t0.\"external_id\" = $1)"}                          
        (realtime 2.28.23) lib/realtime/context_cache.ex:12: Realtime.ContextCache.apply_fun/3                                                                                      
        (realtime 2.28.23) lib/realtime/tenants.ex:59: Realtime.Tenants.health_check/1                                                                                              
        (realtime 2.28.23) lib/realtime_web/controllers/tenant_controller.ex:270: RealtimeWeb.TenantController.health/2                                                             
        (realtime 2.28.23) lib/realtime_web/controllers/tenant_controller.ex:1: RealtimeWeb.TenantController.action/2                                                               
        (realtime 2.28.23) lib/realtime_web/controllers/tenant_controller.ex:1: RealtimeWeb.TenantController.phoenix_controller_pipeline/2                                          
        (phoenix 1.7.7) lib/phoenix/router.ex:430: Phoenix.Router.__call__/5                                                                                                        
        (realtime 2.28.23) lib/realtime_web/endpoint.ex:1: RealtimeWeb.Endpoint.plug_builder_call/2                                                                                 
        (realtime 2.28.23) lib/realtime_web/endpoint.ex:1: RealtimeWeb.Endpoint.call/2                                                                                               

OS: MacOS
Version of CLI: 1.61.0

from supabase.

remirobichet avatar remirobichet commented on September 22, 2024

Experimenting same issue with self hosted supabase.
Maybe fixes from supabase/realtime fix the install (supabase/realtime@v2.28.23...v2.28.29) 🤞
So the docker-compose.yml needs to be updated with the lastest version of supabase/realtime.

from supabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.