jzelinskie
08/24/2023, 5:25 PMjawnsyy
08/24/2023, 5:55 PM{
"level": "error",
"module": "pgx",
"pgx": {
"database": "spicedb",
"err": "failed to connect to `host=REDACTED_IP_ADDRESS user=spicedb database=spicedb`: failed SASL auth (write failed: write tcp REDACTED_IP_ADDRESS:54184->REDACTED_IP_ADDRESS:5432: i/o timeout)",
"host": "REDACTED_IP_ADDRESS",
"port": 5432,
"time": 35.729385
},
"time": "2023-08-24T17:52:47Z",
"message": "Connect"
}
jzelinskie
08/24/2023, 5:55 PMjzelinskie
08/24/2023, 5:57 PMjzelinskie
08/24/2023, 5:58 PMjawnsyy
08/24/2023, 6:33 PMjawnsyy
08/24/2023, 6:34 PMjawnsyy
08/24/2023, 6:34 PMjzelinskie
08/24/2023, 7:13 PMjawnsyy
08/24/2023, 8:33 PMsslmode=disable
and it seemed to be some kind of weird incompatibility between pgx and Cloud SQL, or maybe a database setting we've configured. The server was logging "connection refused" and the client was logging a timeout.
Changing from: postgres://spicedb:.....@xxx.xxx.xxx.xxx/spicedb?sslmode=disable
to remove sslmode=disable
fixed it
The server was logging: 2023-08-24 19:12:30.364 UTC [289145]: [1-1] db=spicedb,user=spicedb LOG: could not receive data from client: Connection reset by peer
jzelinskie
08/24/2023, 11:35 PM