hey folks I'm just getting started with authzed/sp...
# spicedb
l
hey folks I'm just getting started with authzed/spicedb. I'm encountering an issue setting up a local spicedb instance with a spanner db instance (over an emulator). I've got a spanner emulator container mapped to localhost:$port that I wanna use as the datastore. When I start
spicedb
I'm getting a lot of context timeout errors, persumably from the spanner client spicedb creates. I've confirmed that the spanner instance is up and running and my own spanner clients are able to connect to it. How I'm running spicedb:
Copy code
docker run -p 50051:50051 -v /home/leaks/testing/certs:/certs authzed/spicedb serve --grpc-preshared-key "somerandomkeyhere" --grpc-log-requests-enabled --grpc-tls-cert-path /certs/cert.pem --grpc-tls-key-path /certs/key.pem \
 --datastore-engine spanner --datastore-conn-uri projects/test-project/instances/dev2/databases/spicedb --datastore-spanner-emulator-host ${SPANNER_EMULATOR_HOST} --log-level=trace --telemetry-endpoint=""


initial errors:
{"level":"warn","error":"spanner: code = \"DeadlineExceeded\", desc = \"timeout / context canceled during getting session.\\nEnable SessionPoolConfig.TrackSessionHandles if you suspect a session leak to get more information about the checked out sessions.\"","time":"2023-11-27T19:25:24Z","message":"could not check if the datastore was ready"}
{"level":"warn","datastoreReady":false,"time":"2023-11-27T19:25:24Z","message":"datastore failed readiness checks: "}
7 Views