supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.07k stars 209 forks source link

"database not healthy" when running `db diff` #1894

Open probablykasper opened 9 months ago

probablykasper commented 9 months ago

Describe the bug I get the below error whenever I run supabase db diff. Even removing all images and containers doesn't fix it.

Other commands work fine, such as start, stop and reset.

Connecting to local database...
Creating shadow database...
Failed to remove container: e672a047315cd867543cde6ae1ce037b4a69e761116e5ce7621483468a182075 Error response from daemon: No such container: e672a047315cd867543cde6ae1ce037b4a69e761116e5ce7621483468a182075
database is not healthy
Try rerunning the command with --debug to troubleshoot the error.
Logs with --debug` ``` Supabase CLI 1.136.3 Connecting to local database... 2024/01/30 09:40:11 Connect Start: tcp 127.0.0.1:54322 2024/01/30 09:40:11 Connect Done: tcp 127.0.0.1:54322 2024/01/30 09:40:11 PG Send: {"Type":"StartupMessage","ProtocolVersion":196608,"Parameters":{"database":"postgres","user":"postgres"}} 2024/01/30 09:40:11 PG Recv: {"Type":"AuthenticationSASL","AuthMechanisms":["SCRAM-SHA-256"]} 2024/01/30 09:40:11 PG Send: {"Type":"SASLInitialResponse","AuthMechanism":"SCRAM-SHA-256","Data":"n,,n=,r=GLRIk8WY+aEYM9cvggJKRLws"} 2024/01/30 09:40:11 PG Recv: {"Type":"AuthenticationSASLContinue","Data":"r=GLRIk8WY+aEYM9cvggJKRLwsHjj2XhMitmA3njoB9Ur/qEEu,s=Flsuj2nZzUpCA2ZSVHVmQA==,i=4096"} 2024/01/30 09:40:11 PG Send: {"Type":"SASLResponse","Data":"c=biws,r=GLRIk8WY+aEYM9cvggJKRLwsHjj2XhMitmA3njoB9Ur/qEEu,p=z+powyfZHSeNEBzmSp7s8OO0sk24OXDyzo66pzZ4BZ0="} 2024/01/30 09:40:11 PG Recv: {"Type":"AuthenticationSASLFinal","Data":"v=JvkNWprPCDi5PM6a7ZFP4aru26gBveySZ0HnfT8tuhY="} 2024/01/30 09:40:11 PG Recv: {"Type":"AuthenticationOK"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"application_name","Value":""} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"client_encoding","Value":"UTF8"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"DateStyle","Value":"ISO, MDY"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"default_transaction_read_only","Value":"off"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"in_hot_standby","Value":"off"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"integer_datetimes","Value":"on"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"IntervalStyle","Value":"postgres"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"is_superuser","Value":"off"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"server_encoding","Value":"UTF8"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"server_version","Value":"15.1 (Debian 15.1-1.pgdg110+1)"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"session_authorization","Value":"postgres"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"standard_conforming_strings","Value":"on"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterStatus","Name":"TimeZone","Value":"UTC"} 2024/01/30 09:40:11 PG Recv: {"Type":"BackendKeyData","ProcessID":381,"SecretKey":1690926189} 2024/01/30 09:40:11 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"} 2024/01/30 09:40:11 PG Send: {"Type":"Parse","Name":"lrupsc_1_0","Query":"SELECT schema_name FROM information_schema.schemata WHERE NOT schema_name LIKE ANY($1) ORDER BY schema_name","ParameterOIDs":null} 2024/01/30 09:40:11 PG Send: {"Type":"Describe","ObjectType":"S","Name":"lrupsc_1_0"} 2024/01/30 09:40:11 PG Send: {"Type":"Sync"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParseComplete"} 2024/01/30 09:40:11 PG Recv: {"Type":"ParameterDescription","ParameterOIDs":[1009]} 2024/01/30 09:40:11 PG Recv: {"Type":"RowDescription","Fields":[{"Name":"schema_name","TableOID":13361,"TableAttributeNumber":2,"DataTypeOID":19,"DataTypeSize":64,"TypeModifier":-1,"Format":0}]} 2024/01/30 09:40:11 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"} 2024/01/30 09:40:11 PG Send: {"Type":"Bind","DestinationPortal":"","PreparedStatement":"lrupsc_1_0","ParameterFormatCodes":[1],"Parameters":[{"binary":"00000001000000000000001900000018000000010000000461757468000000097067626f756e636572000000087265616c74696d650000000a5c5f7265616c74696d650000000773746f726167650000000b5c5f616e616c79746963730000001373757061626173655c5f66756e6374696f6e730000001473757061626173655c5f6d6967726174696f6e7300000013696e666f726d6174696f6e5c5f736368656d610000000570675c5f250000000463726f6e000000076772617068716c0000000f6772617068716c5c5f7075626c6963000000036e6574000000087067736f6469756d0000000f7067736f6469756d5c5f6d61736b73000000057067746c650000000672657061636b0000000574696765720000000b74696765725c5f646174610000000e74696d657363616c6564625c5f25000000105c5f74696d657363616c6564625c5f2500000008746f706f6c6f6779000000057661756c74"}],"ResultFormatCodes":[1]} 2024/01/30 09:40:11 PG Send: {"Type":"Describe","ObjectType":"P","Name":""} 2024/01/30 09:40:11 PG Send: {"Type":"Execute","Portal":"","MaxRows":0} 2024/01/30 09:40:11 PG Send: {"Type":"Sync"} 2024/01/30 09:40:11 PG Recv: {"Type":"BindComplete"} 2024/01/30 09:40:11 PG Recv: {"Type":"RowDescription","Fields":[{"Name":"schema_name","TableOID":13361,"TableAttributeNumber":2,"DataTypeOID":19,"DataTypeSize":64,"TypeModifier":-1,"Format":1}]} 2024/01/30 09:40:11 PG Recv: {"Type":"DataRow","Values":[{"text":"extensions"}]} 2024/01/30 09:40:11 PG Recv: {"Type":"DataRow","Values":[{"text":"public"}]} 2024/01/30 09:40:11 PG Recv: {"Type":"CommandComplete","CommandTag":"SELECT 2"} 2024/01/30 09:40:11 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"} Creating shadow database... 2024/01/30 09:40:11 PG Send: {"Type":"Terminate"} 2024/01/30 09:40:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:11 Send Done 2024/01/30 09:40:11 Recv First Byte 2024/01/30 09:40:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:11 Sent Header: Content-Length [298] 2024/01/30 09:40:11 Sent Header: Content-Type [application/json] 2024/01/30 09:40:11 Send Done 2024/01/30 09:40:11 Recv First Byte 2024/01/30 09:40:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:11 Sent Header: Content-Length [11854] 2024/01/30 09:40:11 Sent Header: Content-Type [application/json] 2024/01/30 09:40:11 Send Done 2024/01/30 09:40:11 Recv First Byte 2024/01/30 09:40:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:11 Sent Header: Content-Length [0] 2024/01/30 09:40:11 Sent Header: Content-Type [text/plain] 2024/01/30 09:40:11 Send Done 2024/01/30 09:40:11 Recv First Byte 2024/01/30 09:40:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:11 Send Done 2024/01/30 09:40:11 Recv First Byte 2024/01/30 09:40:12 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:12 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:12 Send Done 2024/01/30 09:40:12 Recv First Byte 2024/01/30 09:40:13 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:13 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:13 Send Done 2024/01/30 09:40:13 Recv First Byte 2024/01/30 09:40:14 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:14 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:14 Send Done 2024/01/30 09:40:14 Recv First Byte 2024/01/30 09:40:15 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:15 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:15 Send Done 2024/01/30 09:40:15 Recv First Byte 2024/01/30 09:40:16 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:16 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:16 Send Done 2024/01/30 09:40:16 Recv First Byte 2024/01/30 09:40:17 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:17 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:17 Send Done 2024/01/30 09:40:17 Recv First Byte 2024/01/30 09:40:18 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:18 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:18 Send Done 2024/01/30 09:40:18 Recv First Byte 2024/01/30 09:40:19 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:19 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:19 Send Done 2024/01/30 09:40:19 Recv First Byte 2024/01/30 09:40:20 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:20 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:20 Send Done 2024/01/30 09:40:20 Recv First Byte 2024/01/30 09:40:21 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:21 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:21 Send Done 2024/01/30 09:40:21 Recv First Byte 2024/01/30 09:40:22 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:22 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:22 Send Done 2024/01/30 09:40:22 Recv First Byte 2024/01/30 09:40:23 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:23 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:23 Send Done 2024/01/30 09:40:23 Recv First Byte 2024/01/30 09:40:24 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:24 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:24 Send Done 2024/01/30 09:40:24 Recv First Byte 2024/01/30 09:40:25 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:25 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:25 Send Done 2024/01/30 09:40:25 Recv First Byte 2024/01/30 09:40:26 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:26 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:26 Send Done 2024/01/30 09:40:26 Recv First Byte 2024/01/30 09:40:27 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:27 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:27 Send Done 2024/01/30 09:40:27 Recv First Byte 2024/01/30 09:40:28 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:28 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:28 Send Done 2024/01/30 09:40:28 Recv First Byte 2024/01/30 09:40:29 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:29 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:29 Send Done 2024/01/30 09:40:29 Recv First Byte 2024/01/30 09:40:30 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:30 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:30 Send Done 2024/01/30 09:40:30 Recv First Byte 2024/01/30 09:40:31 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:31 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:31 Send Done 2024/01/30 09:40:31 Recv First Byte 2024/01/30 09:40:32 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:32 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:32 Send Done 2024/01/30 09:40:32 Recv First Byte 2024/01/30 09:40:33 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:33 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:33 Send Done 2024/01/30 09:40:33 Recv First Byte 2024/01/30 09:40:34 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:34 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:34 Send Done 2024/01/30 09:40:34 Recv First Byte 2024/01/30 09:40:35 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:35 Send Done 2024/01/30 09:40:35 Recv First Byte 2024/01/30 09:40:36 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:36 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:36 Send Done 2024/01/30 09:40:36 Recv First Byte 2024/01/30 09:40:37 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:37 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:37 Send Done 2024/01/30 09:40:37 Recv First Byte 2024/01/30 09:40:38 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:38 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:38 Send Done 2024/01/30 09:40:38 Recv First Byte 2024/01/30 09:40:39 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:39 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:39 Send Done 2024/01/30 09:40:39 Recv First Byte 2024/01/30 09:40:40 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:40 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:40 Send Done 2024/01/30 09:40:40 Recv First Byte 2024/01/30 09:40:41 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:41 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:41 Send Done 2024/01/30 09:40:41 Recv First Byte 2024/01/30 09:40:42 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:42 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:42 Send Done 2024/01/30 09:40:42 Recv First Byte 2024/01/30 09:40:43 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:43 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:43 Send Done 2024/01/30 09:40:43 Recv First Byte 2024/01/30 09:40:44 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:44 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:44 Send Done 2024/01/30 09:40:44 Recv First Byte 2024/01/30 09:40:45 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:45 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:45 Send Done 2024/01/30 09:40:45 Recv First Byte 2024/01/30 09:40:46 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:46 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:46 Send Done 2024/01/30 09:40:46 Recv First Byte 2024/01/30 09:40:47 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:47 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:47 Send Done 2024/01/30 09:40:47 Recv First Byte 2024/01/30 09:40:48 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:48 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:48 Send Done 2024/01/30 09:40:48 Recv First Byte 2024/01/30 09:40:49 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:49 Send Done 2024/01/30 09:40:49 Recv First Byte 2024/01/30 09:40:50 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:50 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:50 Send Done 2024/01/30 09:40:50 Recv First Byte 2024/01/30 09:40:51 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:51 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:51 Send Done 2024/01/30 09:40:51 Recv First Byte 2024/01/30 09:40:52 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:52 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:52 Send Done 2024/01/30 09:40:52 Recv First Byte 2024/01/30 09:40:53 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:53 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:53 Send Done 2024/01/30 09:40:53 Recv First Byte 2024/01/30 09:40:54 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:54 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:54 Send Done 2024/01/30 09:40:54 Recv First Byte 2024/01/30 09:40:55 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:55 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:55 Send Done 2024/01/30 09:40:55 Recv First Byte 2024/01/30 09:40:56 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:56 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:56 Send Done 2024/01/30 09:40:56 Recv First Byte 2024/01/30 09:40:57 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:57 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:57 Send Done 2024/01/30 09:40:57 Recv First Byte 2024/01/30 09:40:58 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:58 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:58 Send Done 2024/01/30 09:40:58 Recv First Byte 2024/01/30 09:40:59 Sent Header: Host [api.moby.localhost] 2024/01/30 09:40:59 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:40:59 Send Done 2024/01/30 09:40:59 Recv First Byte 2024/01/30 09:41:00 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:00 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:00 Send Done 2024/01/30 09:41:00 Recv First Byte 2024/01/30 09:41:01 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:01 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:01 Send Done 2024/01/30 09:41:01 Recv First Byte 2024/01/30 09:41:02 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:02 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:02 Send Done 2024/01/30 09:41:02 Recv First Byte 2024/01/30 09:41:03 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:03 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:03 Send Done 2024/01/30 09:41:03 Recv First Byte 2024/01/30 09:41:04 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:04 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:04 Send Done 2024/01/30 09:41:04 Recv First Byte 2024/01/30 09:41:05 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:05 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:05 Send Done 2024/01/30 09:41:05 Recv First Byte 2024/01/30 09:41:06 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:06 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:06 Send Done 2024/01/30 09:41:06 Recv First Byte 2024/01/30 09:41:07 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:07 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:07 Send Done 2024/01/30 09:41:07 Recv First Byte 2024/01/30 09:41:08 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:08 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:08 Send Done 2024/01/30 09:41:08 Recv First Byte 2024/01/30 09:41:09 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:09 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:09 Send Done 2024/01/30 09:41:09 Recv First Byte 2024/01/30 09:41:10 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:10 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:10 Send Done 2024/01/30 09:41:10 Recv First Byte 2024/01/30 09:41:11 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:11 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:11 Send Done 2024/01/30 09:41:11 Recv First Byte 2024/01/30 09:41:12 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:12 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:12 Send Done 2024/01/30 09:41:12 Recv First Byte 2024/01/30 09:41:13 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:13 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:13 Send Done 2024/01/30 09:41:13 Recv First Byte 2024/01/30 09:41:14 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:14 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:14 Send Done 2024/01/30 09:41:14 Recv First Byte 2024/01/30 09:41:15 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:15 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:15 Send Done 2024/01/30 09:41:15 Recv First Byte 2024/01/30 09:41:16 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:16 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:16 Send Done 2024/01/30 09:41:16 Recv First Byte 2024/01/30 09:41:17 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:17 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:17 Send Done 2024/01/30 09:41:17 Recv First Byte 2024/01/30 09:41:18 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:18 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:18 Send Done 2024/01/30 09:41:18 Recv First Byte 2024/01/30 09:41:19 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:19 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:19 Send Done 2024/01/30 09:41:19 Recv First Byte 2024/01/30 09:41:20 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:20 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:20 Send Done 2024/01/30 09:41:20 Recv First Byte 2024/01/30 09:41:21 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:21 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:21 Send Done 2024/01/30 09:41:21 Recv First Byte 2024/01/30 09:41:22 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:22 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:22 Send Done 2024/01/30 09:41:22 Recv First Byte 2024/01/30 09:41:23 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:23 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:23 Send Done 2024/01/30 09:41:23 Recv First Byte 2024/01/30 09:41:24 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:24 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:24 Send Done 2024/01/30 09:41:24 Recv First Byte 2024/01/30 09:41:25 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:25 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:25 Send Done 2024/01/30 09:41:25 Recv First Byte 2024/01/30 09:41:26 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:26 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:26 Send Done 2024/01/30 09:41:26 Recv First Byte 2024/01/30 09:41:27 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:27 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:27 Send Done 2024/01/30 09:41:27 Recv First Byte 2024/01/30 09:41:28 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:28 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:28 Send Done 2024/01/30 09:41:28 Recv First Byte 2024/01/30 09:41:29 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:29 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:29 Send Done 2024/01/30 09:41:29 Recv First Byte 2024/01/30 09:41:30 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:30 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:30 Send Done 2024/01/30 09:41:30 Recv First Byte 2024/01/30 09:41:31 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:31 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:31 Send Done 2024/01/30 09:41:31 Recv First Byte 2024/01/30 09:41:32 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:32 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:32 Send Done 2024/01/30 09:41:32 Recv First Byte 2024/01/30 09:41:33 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:33 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:33 Send Done 2024/01/30 09:41:33 Recv First Byte 2024/01/30 09:41:34 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:34 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:34 Send Done 2024/01/30 09:41:34 Recv First Byte 2024/01/30 09:41:35 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:35 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:35 Send Done 2024/01/30 09:41:35 Recv First Byte 2024/01/30 09:41:36 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:36 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:36 Send Done 2024/01/30 09:41:36 Recv First Byte 2024/01/30 09:41:37 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:37 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:37 Send Done 2024/01/30 09:41:37 Recv First Byte 2024/01/30 09:41:38 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:38 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:38 Send Done 2024/01/30 09:41:38 Recv First Byte 2024/01/30 09:41:39 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:39 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:39 Send Done 2024/01/30 09:41:39 Recv First Byte 2024/01/30 09:41:40 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:40 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:40 Send Done 2024/01/30 09:41:40 Recv First Byte 2024/01/30 09:41:41 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:41 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:41 Send Done 2024/01/30 09:41:41 Recv First Byte 2024/01/30 09:41:42 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:42 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:42 Send Done 2024/01/30 09:41:42 Recv First Byte 2024/01/30 09:41:43 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:43 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:43 Send Done 2024/01/30 09:41:43 Recv First Byte 2024/01/30 09:41:44 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:44 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:44 Send Done 2024/01/30 09:41:44 Recv First Byte 2024/01/30 09:41:45 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:45 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:45 Send Done 2024/01/30 09:41:45 Recv First Byte 2024/01/30 09:41:46 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:46 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:46 Send Done 2024/01/30 09:41:46 Recv First Byte 2024/01/30 09:41:47 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:47 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:47 Send Done 2024/01/30 09:41:47 Recv First Byte 2024/01/30 09:41:48 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:48 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:48 Send Done 2024/01/30 09:41:48 Recv First Byte 2024/01/30 09:41:49 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:49 Send Done 2024/01/30 09:41:49 Recv First Byte 2024/01/30 09:41:50 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:50 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:50 Send Done 2024/01/30 09:41:50 Recv First Byte 2024/01/30 09:41:51 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:51 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:51 Send Done 2024/01/30 09:41:51 Recv First Byte 2024/01/30 09:41:52 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:52 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:52 Send Done 2024/01/30 09:41:52 Recv First Byte 2024/01/30 09:41:53 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:53 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:53 Send Done 2024/01/30 09:41:53 Recv First Byte 2024/01/30 09:41:54 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:54 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:54 Send Done 2024/01/30 09:41:54 Recv First Byte 2024/01/30 09:41:55 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:55 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:55 Send Done 2024/01/30 09:41:55 Recv First Byte 2024/01/30 09:41:56 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:56 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:56 Send Done 2024/01/30 09:41:56 Recv First Byte 2024/01/30 09:41:57 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:57 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:57 Send Done 2024/01/30 09:41:57 Recv First Byte 2024/01/30 09:41:58 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:58 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:58 Send Done 2024/01/30 09:41:58 Recv First Byte 2024/01/30 09:41:59 Sent Header: Host [api.moby.localhost] 2024/01/30 09:41:59 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:41:59 Send Done 2024/01/30 09:41:59 Recv First Byte 2024/01/30 09:42:00 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:00 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:00 Send Done 2024/01/30 09:42:00 Recv First Byte 2024/01/30 09:42:01 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:01 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:01 Send Done 2024/01/30 09:42:01 Recv First Byte 2024/01/30 09:42:02 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:02 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:02 Send Done 2024/01/30 09:42:02 Recv First Byte 2024/01/30 09:42:03 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:03 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:03 Send Done 2024/01/30 09:42:03 Recv First Byte 2024/01/30 09:42:04 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:04 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:04 Send Done 2024/01/30 09:42:04 Recv First Byte 2024/01/30 09:42:05 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:05 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:05 Send Done 2024/01/30 09:42:05 Recv First Byte 2024/01/30 09:42:06 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:06 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:06 Send Done 2024/01/30 09:42:06 Recv First Byte 2024/01/30 09:42:07 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:07 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:07 Send Done 2024/01/30 09:42:07 Recv First Byte 2024/01/30 09:42:08 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:08 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:08 Send Done 2024/01/30 09:42:08 Recv First Byte 2024/01/30 09:42:09 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:09 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:09 Send Done 2024/01/30 09:42:09 Recv First Byte 2024/01/30 09:42:10 Sent Header: Host [api.moby.localhost] 2024/01/30 09:42:10 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)] 2024/01/30 09:42:10 Send Done 2024/01/30 09:42:10 Recv First Byte Failed to remove container: d0590ed2b4a9084a5ddbb1d79f5b17e185dacfaedac871f7271e2eb40dc31345 Error response from daemon: No such container: d0590ed2b4a9084a5ddbb1d79f5b17e185dacfaedac871f7271e2eb40dc31345 database is not healthy ```

To Reproduce Run subabase db diff

Desktop (please complete the following information):

sweatybridge commented 9 months ago

Could you also report the versions from supabase services command to help me reproduce?

probablykasper commented 9 months ago

Sure thing:

        SERVICE IMAGE      │        LOCAL         │ LINKED
  ─────────────────────────┼──────────────────────┼─────────
    supabase/postgres      │ 15.1.0.147           │ -
    supabase/gotrue        │ v2.132.3             │ -
    postgrest/postgrest    │ v12.0.1              │ -
    supabase/realtime      │ v2.25.50             │ -
    supabase/storage-api   │ v0.43.11             │ -
    supabase/edge-runtime  │ v1.32.0              │ -
    supabase/studio        │ 20240101-8e4a094     │ -
    supabase/postgres-meta │ v0.75.0              │ -
    supabase/logflare      │ 1.4.0                │ -
    bitnami/pgbouncer      │ 1.20.1-debian-11-r39 │ -
    darthsim/imgproxy      │ v3.8.0               │ -
dosht commented 8 months ago

I have the same problem. I removed all containers and volumes. The full log is here:

❯ supabase db diff --debug
Supabase CLI 1.148.6
Connecting to local database...
2024/03/16 13:02:49 Connect Start: tcp 127.0.0.1:54322
2024/03/16 13:02:49 Connect Done: tcp 127.0.0.1:54322
2024/03/16 13:02:49 PG Send: {"Type":"StartupMessage","ProtocolVersion":196608,"Parameters":{"database":"postgres","user":"postgres"}}
2024/03/16 13:02:49 PG Recv: {"Type":"AuthenticationSASL","AuthMechanisms":["SCRAM-SHA-256"]}
2024/03/16 13:02:49 PG Send: {"Type":"SASLInitialResponse","AuthMechanism":"SCRAM-SHA-256","Data":"n,,n=,r=YqSsUs154CigSGeTM1ON/uDM"}
2024/03/16 13:02:49 PG Recv: {"Type":"AuthenticationSASLContinue","Data":"r=YqSsUs154CigSGeTM1ON/uDM1A4jMrEClAaPCeCn27qK3NAK,s=1L9M5swKj4JC9XSkeDnGYg==,i=4096"}
2024/03/16 13:02:49 PG Send: {"Type":"SASLResponse","Data":"c=biws,r=YqSsUs154CigSGeTM1ON/uDM1A4jMrEClAaPCeCn27qK3NAK,p=xpsdH8f3O2UIfwJFmNbJ03exUcEJabNNHjuHD1P7M38="}
2024/03/16 13:02:49 PG Recv: {"Type":"AuthenticationSASLFinal","Data":"v=vi+LUAtyPAKCy+QNivaYIGlkGIXyQet9PZ6fjN8bIjU="}
2024/03/16 13:02:49 PG Recv: {"Type":"AuthenticationOK"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"application_name","Value":""}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"client_encoding","Value":"UTF8"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"DateStyle","Value":"ISO, MDY"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"default_transaction_read_only","Value":"off"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"in_hot_standby","Value":"off"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"integer_datetimes","Value":"on"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"IntervalStyle","Value":"postgres"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"is_superuser","Value":"off"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"server_encoding","Value":"UTF8"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"server_version","Value":"15.1 (Debian 15.1-1.pgdg110+1)"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"session_authorization","Value":"postgres"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"standard_conforming_strings","Value":"on"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterStatus","Name":"TimeZone","Value":"UTC"}
2024/03/16 13:02:49 PG Recv: {"Type":"BackendKeyData","ProcessID":566,"SecretKey":1512039429}
2024/03/16 13:02:49 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}
2024/03/16 13:02:49 PG Send: {"Type":"Parse","Name":"lrupsc_1_0","Query":"SELECT schema_name FROM information_schema.schemata WHERE NOT schema_name LIKE ANY($1) ORDER BY schema_name","ParameterOIDs":null}
2024/03/16 13:02:49 PG Send: {"Type":"Describe","ObjectType":"S","Name":"lrupsc_1_0"}
2024/03/16 13:02:49 PG Send: {"Type":"Sync"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParseComplete"}
2024/03/16 13:02:49 PG Recv: {"Type":"ParameterDescription","ParameterOIDs":[1009]}
2024/03/16 13:02:49 PG Recv: {"Type":"RowDescription","Fields":[{"Name":"schema_name","TableOID":13361,"TableAttributeNumber":2,"DataTypeOID":19,"DataTypeSize":64,"TypeModifier":-1,"Format":0}]}
2024/03/16 13:02:49 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}
2024/03/16 13:02:49 PG Send: {"Type":"Bind","DestinationPortal":"","PreparedStatement":"lrupsc_1_0","ParameterFormatCodes":[1],"Parameters":[{"binary":"00000001000000000000001900000018000000010000000461757468000000097067626f756e636572000000087265616c74696d650000000a5c5f7265616c74696d650000000773746f726167650000000b5c5f616e616c79746963730000001373757061626173655c5f66756e6374696f6e730000001473757061626173655c5f6d6967726174696f6e7300000013696e666f726d6174696f6e5c5f736368656d610000000570675c5f250000000463726f6e000000076772617068716c0000000f6772617068716c5c5f7075626c6963000000036e6574000000087067736f6469756d0000000f7067736f6469756d5c5f6d61736b73000000057067746c650000000672657061636b0000000574696765720000000b74696765725c5f646174610000000e74696d657363616c6564625c5f25000000105c5f74696d657363616c6564625c5f2500000008746f706f6c6f6779000000057661756c74"}],"ResultFormatCodes":[1]}
2024/03/16 13:02:49 PG Send: {"Type":"Describe","ObjectType":"P","Name":""}
2024/03/16 13:02:49 PG Send: {"Type":"Execute","Portal":"","MaxRows":0}
2024/03/16 13:02:49 PG Send: {"Type":"Sync"}
2024/03/16 13:02:49 PG Recv: {"Type":"BindComplete"}
2024/03/16 13:02:49 PG Recv: {"Type":"RowDescription","Fields":[{"Name":"schema_name","TableOID":13361,"TableAttributeNumber":2,"DataTypeOID":19,"DataTypeSize":64,"TypeModifier":-1,"Format":1}]}
2024/03/16 13:02:49 PG Recv: {"Type":"DataRow","Values":[{"text":"anayltics"}]}
2024/03/16 13:02:49 PG Recv: {"Type":"DataRow","Values":[{"text":"extensions"}]}
2024/03/16 13:02:49 PG Recv: {"Type":"DataRow","Values":[{"text":"public"}]}
2024/03/16 13:02:49 PG Recv: {"Type":"CommandComplete","CommandTag":"SELECT 3"}
2024/03/16 13:02:49 PG Recv: {"Type":"ReadyForQuery","TxStatus":"I"}
Creating shadow database...
2024/03/16 13:02:49 PG Send: {"Type":"Terminate"}
2024/03/16 13:02:49 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:49 Send Done
2024/03/16 13:02:49 Recv First Byte
2024/03/16 13:02:49 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:49 Sent Header: Content-Length [307]
2024/03/16 13:02:49 Sent Header: Content-Type [application/json]
2024/03/16 13:02:49 Send Done
2024/03/16 13:02:49 Recv First Byte
2024/03/16 13:02:49 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:49 Sent Header: Content-Length [11863]
2024/03/16 13:02:49 Sent Header: Content-Type [application/json]
2024/03/16 13:02:49 Send Done
2024/03/16 13:02:49 Recv First Byte
2024/03/16 13:02:49 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:49 Sent Header: Content-Length [0]
2024/03/16 13:02:49 Sent Header: Content-Type [text/plain]
2024/03/16 13:02:49 Send Done
2024/03/16 13:02:49 Recv First Byte
2024/03/16 13:02:49 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:49 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:49 Send Done
2024/03/16 13:02:49 Recv First Byte
2024/03/16 13:02:50 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:50 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:50 Send Done
2024/03/16 13:02:50 Recv First Byte
2024/03/16 13:02:51 Sent Header: Host [api.moby.localhost]
2024/03/16 13:02:51 Sent Header: User-Agent [Docker-Client/unknown-version (darwin)]
2024/03/16 13:02:51 Send Done
2024/03/16 13:02:51 Recv First Byte
^CFailed to remove container: 3dd4fab54fa618d45ab1a2d17a78a492b5d004fcef4040dfa10d5eda3332a281 Error response from daemon: No such container: 3dd4fab54fa618d45ab1a2d17a78a492b5d004fcef4040dfa10d5eda3332a281
database is not healthy
sweatybridge commented 5 months ago

Is this still reproducible with npx supabase@beta db diff? I've added additional container logs when health check fails for shadow db.

probablykasper commented 5 months ago

It's only happened twice for me, I fixed it by deleting the .supabase folder iirc. I'll let you know when it happens again, in the meantime I'll close the issue

jkaczmarek1 commented 4 months ago

@sweatybridge Same thing happens for me, a container with the shadow database is created, but after a few seconds it is deleted.

https://github.com/supabase/cli/assets/87004332/89c00eb8-59d7-4453-a8cd-018759de6dd9

image

Services output: image