Giter Site home page Giter Site logo

Comments (9)

ensonic avatar ensonic commented on June 22, 2024

Okay, this is not an issue in the zed util. Also tried the go-lang version of the tutorial and get the same error in this step too.

from zed.

ensonic avatar ensonic commented on June 22, 2024

t tries to connect to a second port:

kubectl port-forward deployment/dev-spicedb 50051:50051
# in the example "localhost:50051"
go run check.go
2022/11/17 12:51:41 failed to check permission: rpc error: code = Unavailable desc = last connection error: connection error: desc = "transport: Error while dialing dial tcp 192.168.9.1:50053: connect: connection refused"

notice the 192.168.9.1:50053. Checking the serivice shows: grpc:50051►0 dispatch:50053►0 so that's dispatch. Now alos kubectl port-forwarding it, does not help though (tried kubectl port-forward deployment/dev-spicedb 50051:50051 50053:50053)

I've tried running the same code from within the cluster, but run into the same problem.

go build -o app -ldflags "-X main.address=dev:50051" check.go
docker build -t spicedb_test .
docker save -o spicedb_test.tar spicedb_test
ctr -n=k8s.io image import spicedb_test.tar
kubectl run -i --tty spicedb-test --image=docker.io/library/spicedb_test:latest --restart=Never --image-pull-policy=Never

I've found the relevant code
https://github.com/authzed/spicedb/blob/5009a53ac4ecb2f57ef7f6d9ed2444d166a6fa1d/internal/services/v1/permissions.go#L36
but not where it connects to port 50053 yet.

from zed.

josephschorr avatar josephschorr commented on June 22, 2024

The error around port 50053 indicates that the system is trying to dispatch to other nodes within the cluster, but is failing to do so. I suspect your cluster is misconfigured for dispatch. How are you deploying the nodes within Kub?

from zed.

ensonic avatar ensonic commented on June 22, 2024

I used the spicedb-operator according to the instructions from
https://docs.authzed.com/spicedb/operator
It is a single node cluster (minikube)

on discord it sound I should disable dispatch, but since
https://docs.authzed.com/spicedb/operator#flags does not link to the docs of the cli, I am still hunting down how the flag might be called.

from zed.

ensonic avatar ensonic commented on June 22, 2024

With some help from discord, I updated to 1.15.0 and still get the same error. Next we disabled dispatch in the config:

spec:
  config:
    datastoreEngine: memory
    image: authzed/spicedb:v1.15.0
    dispatchUpstreamAddr: ""

but still get the error.

from zed.

ensonic avatar ensonic commented on June 22, 2024

See authzed/spicedb-operator#111

from zed.

vroldanbet avatar vroldanbet commented on June 22, 2024

@ensonic I'd suggest closing this issue as it's not a problem specific to zed, but a problem with the operator.

from zed.

ensonic avatar ensonic commented on June 22, 2024

Makes sense.

from zed.

vroldanbet avatar vroldanbet commented on June 22, 2024

Fix for problem here reported at authzed/spicedb-operator#112

from zed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.