Comments (3)
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 thetenants
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.
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.
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)
- Site URL and Redirect URLs not saving when adding in the URL Configuration section HOT 1
- Analytics docker image unhealthy when self-hosting due to migration issue (`sources` not found) HOT 36
- SSE streaming no longer working? HOT 1
- JSONB columns make supabase studio tables unusable. HOT 1
- [Studio] Policies search term is not fluidly updated resulting in a broken UI
- Phone update does not require an otp locally HOT 5
- Studio and docs manifest not loading HOT 2
- Installability criteria not met
- Password recovery does not work HOT 1
- Fails to start in freshly initialized project when ipv6 is disabled HOT 2
- Self-hosted Supabase with Docker. API docs page is not available. http://localhost:8000/api/projects/default/api/rest | 500 Internal Server Error HOT 7
- when Initializing, get: 【SyntaxError: Cannot use import statement outside a module】
- Google OAuth on Chrome Extension returns inconsistent session objects.
- Bug Report: UI Error - Data Displayed Incorrectly in Supabase Table HOT 6
- Forgot password issue HOT 1
- Error: Cookies can only be modified in a Server Action or Route Handler HOT 4
- Unable to import CSV, even though the file is correct HOT 1
- Function Search Path Mutable (Security Advisor) issue with pgvector HOT 2
- Error running Supabase with a local Postgres instance with custom SQL ( self-host docker ) HOT 2
- Angular Tutorial
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase.