supabase db diff `Error: Address already in use (os error 98)`

Recently I'm facing this error. I attach the complete debug log. Gess It's an incompatible Deno version with the CLI. Anyone can confirm or deny my assumption? Here is my configuration:
$ supabase --version
2.61.1

$ deno --version
deno 2.5.6 (stable, release, x86_64-unknown-linux-gnu)
v8 14.0.365.5-rusty
typescript 5.9.2
$ supabase --version
2.61.1

$ deno --version
deno 2.5.6 (stable, release, x86_64-unknown-linux-gnu)
v8 14.0.365.5-rusty
typescript 5.9.2
3 Replies
ibrahim
ibrahim5d ago
I'm not sure that an issues with supabase db diff would be related to an issue with deno The logs you dont't seem to have errors what is the error that you were actually seeing (without --debug) note also that if you are creating schema files with db diff then, you should be using --local flag
skipperino
skipperinoOP4d ago
Thanks for your reply @ibrahim I supposed It was a deno related issue because I saw a reference to deno at the end of the whole log (need to download it), right before the error.
DEBUG Opening cache /root/.cache/deno/node_analysis_cache_v2...
Error: Address already in use (os error 98)
DEBUG Opening cache /root/.cache/deno/node_analysis_cache_v2...
Error: Address already in use (os error 98)
Running the diff command with no --debug flag, with or without --local flag, in both cases the error is:
$ supabase db diff -f drop_price_column_boats --local
Creating shadow database...
Initialising schema...
Seeding globals from roles.sql...
Applying migration 20251021131627_initial_structure.sql...
Applying migration 20251022082757_trigger_new_captain.sql...
Applying migration 20251023101556_bucket_images_policies.sql...
Applying migration 20251030111844_new_table_legal_forms.sql...
Applying migration 20251030115338_new_table_boat_models.sql...
Applying migration 20251031105157_new_table_tours_catalogue.sql...
Applying migration 20251112173326_add_set_default_tour_function.sql...
Diffing schemas...
error diffing schema: error running container: exit 1:
Error: Address already in use (os error 98)
$ supabase db diff -f drop_price_column_boats --local
Creating shadow database...
Initialising schema...
Seeding globals from roles.sql...
Applying migration 20251021131627_initial_structure.sql...
Applying migration 20251022082757_trigger_new_captain.sql...
Applying migration 20251023101556_bucket_images_policies.sql...
Applying migration 20251030111844_new_table_legal_forms.sql...
Applying migration 20251030115338_new_table_boat_models.sql...
Applying migration 20251031105157_new_table_tours_catalogue.sql...
Applying migration 20251112173326_add_set_default_tour_function.sql...
Diffing schemas...
error diffing schema: error running container: exit 1:
Error: Address already in use (os error 98)
ibrahim
ibrahim4d ago
The search results to Address already in use (os error 98) all mention that this happens when a port is already being used try running supabase stop --all (note this might case your cli to lose data about file changes). I would also suggest checking your cli to see if it is out of date

Did you find this page helpful?