S
Supabase•2mo ago
Fabian B.

`supabase start` errors with `Invalid Compact JWS`

Hi there! I upgraded my remote DB from pg 15 -> 17 a while ago. I noticed that my local supabase CLI DB docker container were still running pg 15. This was causing issues trying to run supabase db dump. So I updated the CLI and re-generated all local containers: - Updated [db] major_version = 17 in supabase/config.toml - Stopped everything with supabase stop --no-backup - Updated supabase cli with brew upgrade supabase - Now trying to start with supabase start first downloaded all new versions of the images, but after that, the command errors with:
(...)
WARN: no files matched pattern: supabase/seed.sql
Starting containers...
Waiting for health checks...
Stopping containers...
Error status 400: {"statusCode":"403","error":"Unauthorized","message":"Invalid Compact JWS"}
Try rerunning the command with --debug to troubleshoot the error.
(...)
WARN: no files matched pattern: supabase/seed.sql
Starting containers...
Waiting for health checks...
Stopping containers...
Error status 400: {"statusCode":"403","error":"Unauthorized","message":"Invalid Compact JWS"}
Try rerunning the command with --debug to troubleshoot the error.
Rerunning with --debug returns nothing relevant I think:
(...)
WARN: no files matched pattern: supabase/seed.sql
2025/09/03 09:46:55 PG Send: {"Type":"Terminate"}
Starting containers...
Waiting for health checks...
2025/09/03 09:47:06 HTTP GET: http://127.0.0.1:54321/storage/v1/bucket
Stopping containers...
Pruned containers: [fefe4520089f5...(long list of some keys ...)]
Pruned volumes: [supabase_db_MY_PROJECT-web supabase_config_MY_PROJECT-web supabase_storage_MY_PROJECT-web]
Pruned network: [supabase_network_MY_PROJECT-web]
Error status 400: {"statusCode":"403","error":"Unauthorized","message":"Invalid Compact JWS"}
(...)
WARN: no files matched pattern: supabase/seed.sql
2025/09/03 09:46:55 PG Send: {"Type":"Terminate"}
Starting containers...
Waiting for health checks...
2025/09/03 09:47:06 HTTP GET: http://127.0.0.1:54321/storage/v1/bucket
Stopping containers...
Pruned containers: [fefe4520089f5...(long list of some keys ...)]
Pruned volumes: [supabase_db_MY_PROJECT-web supabase_config_MY_PROJECT-web supabase_storage_MY_PROJECT-web]
Pruned network: [supabase_network_MY_PROJECT-web]
Error status 400: {"statusCode":"403","error":"Unauthorized","message":"Invalid Compact JWS"}
I already deleted everything again with supabase stop --no-backup and ran supabase secrets set JWT_SECRET=$(openssl rand -hex 32) (same for ANON_KEY, SERVICE_ROLE_KEY) and then ran supabase start, no luck. In fact, I only need the local db, and nothing else, no auth etc. But I guess it's not possible to only run the db & studio, right?
Supabase CLI | Supabase Docs
The Supabase CLI provides tools to develop your project locally, deploy to the Supabase Platform, and set up CI/CD workflows.
6 Replies
silentworks
silentworks•2mo ago
You can disable the other services by turning them off in the config.toml, they should be an enabled setting under most of them. Or you can use the -x flag when doing supabase start to exclude services.
Fabian B.
Fabian B.OP•2mo ago
@silentworks Thanks, yeah I have disabled most of them in the config.toml, but they still seem to be running inside the docker container. I just tried to run supabase start and now it works?! 😄 Tried it for more than an hour haha.
silentworks
silentworks•2mo ago
What version of the CLI are you using?
Fabian B.
Fabian B.OP•2mo ago
Used an older version, and upgraded to the latest one in the process So currently using 2.39.2
silentworks
silentworks•2mo ago
Yeah It's always ideal to update to the latest version. I will also suggest it's better to use npx than brew. With npx, you can pin a version in your package.json using npm install -D supabase, this way if you should upgrade and something is broken you can easily rollback to a previous version. Whereas with brew it's a bit harder to go back to previous versions.
Fabian B.
Fabian B.OP•5w ago
Yeah, makes sense, thanks for pointing out! Happened again today while I was trying to supabase db reset . (made a few local changes that I want to reset/undo since it was for testing only) So maybe my migration files aren't quite right or something But supabase start still works and seems like my changes are un-done in the local studio

Did you find this page helpful?