Jake
04/27/2022, 11:43 AMspicedb migrate
romil
04/28/2022, 11:13 AM{
"level": "error",
"module": "pgx",
"args": [
"relation_tuple"
],
"err": "can't scan into dest[0]: -1 is less than zero for uint64",
"pid": 90447,
"sql": "SELECT reltuples FROM pg_class WHERE relname = $1",
"time": "2022-04-28T11:08:59Z",
"message": "Query"
}
I have dispatcher enabled, 3 replicas with external db and port forwarding enabled on 8443 on deploymet to test rest end point Check/ Expand / Lookup which still failsJake
04/28/2022, 11:14 AMromil
04/28/2022, 11:14 AMJake
04/28/2022, 11:15 AMJake
04/28/2022, 11:15 AMromil
04/28/2022, 11:15 AMromil
04/28/2022, 11:16 AMJake
04/28/2022, 11:16 AMromil
04/28/2022, 11:17 AMromil
04/28/2022, 11:18 AMJake
04/28/2022, 11:18 AMJake
04/28/2022, 11:20 AMromil
04/28/2022, 11:20 AMromil
04/28/2022, 11:32 AMJake
04/28/2022, 1:10 PMauthz
as the namespace for the spicedb service as well, right?Jake
04/28/2022, 1:15 PMargs:
for --dispatch-cluster-enabled
Jake
04/28/2022, 1:16 PM9:15AM INF grpc server started listening addr=:50053 network=tcp prefix=dispatch-cluster workers=0
Jake
04/28/2022, 2:34 PMromil
04/28/2022, 7:10 PMromil
04/28/2022, 7:16 PMkubectl port-forward deployment/spicedb 8443:8443
After this observation is still the. same the Check api fails , but others pass
Since I have a local postgres running , created a postgres service to externalize the endpoint
kind: Service
apiVersion: v1
metadata:
name: postgres
namespace: default
spec:
type: ExternalName
externalName: host.docker.internal
ports:
- name: port
port: 5432
and connection URI is : "postgres://postgres:passw0rd@host.docker.internal:5432/postgres?sslmode=disable"
Wondering why only check / expand still failingJake
04/28/2022, 7:17 PMromil
04/28/2022, 7:26 PMromil
04/28/2022, 7:26 PMJake
04/28/2022, 7:27 PMromil
04/28/2022, 7:28 PMromil
04/28/2022, 7:29 PMromil
04/28/2022, 7:29 PMcurl --location --request POST 'http://localhost:8443/v1/permissions/check' \
--header 'Authorization: Bearer graphToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"consistency": {
"minimizeLatency": true
},
"resource": {
"objectType": "document",
"objectId": "topsecret9"
},
"permission": "view",
"subject": {
"object": {
"objectType": "user",
"objectId": "alice"
}
}
}
'
romil
04/28/2022, 7:30 PMromil
04/28/2022, 7:45 PM{"level":"error","module":"pgx","args":["relation_tuple"],"err":"can't scan into dest[0]: -1 is less than zero for uint64","pid":54025,"sql":"SELECT reltuples FROM pg_class WHERE relname = $1","time":"2022-04-28T19:44:35Z","message":"Query"}
{"level":"warn","error":"unable to query DB stats: unable to read relationship count: can't scan into dest[0]: -1 is less than zero for uint64","time":"2022-04-28T19:44:35Z","message":"unable to initialize telemetry collector"}
romil
04/28/2022, 7:46 PMromil
04/29/2022, 4:26 AMJake
04/29/2022, 2:34 PMJake
04/29/2022, 2:34 PMJake
04/29/2022, 2:35 PMJake
04/29/2022, 2:38 PMJake
04/29/2022, 2:38 PMromil
05/02/2022, 10:26 AMkubectl port-forward deployment/spicedb 8443:8443 50051:50051
Run above api via rest or via Zed , observation is either they timeout or sometimes fails with below atach logs
zed permission check document:topsecret9 view user:alice
romil
05/02/2022, 10:27 AM