Comments (9)
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.
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.
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.
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.
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.
See authzed/spicedb-operator#111
from zed.
@ensonic I'd suggest closing this issue as it's not a problem specific to zed, but a problem with the operator.
from zed.
Makes sense.
from zed.
Fix for problem here reported at authzed/spicedb-operator#112
from zed.
Related Issues (20)
- zed permission lookup-subjects is causing a segfault HOT 3
- Exporting schema and relationships in a format that is compatible with zed import HOT 1
- Print "success" if error code is 0 HOT 2
- Make docs for cli
- Add a curl-like command that uses the zed context
- Make documentation and error more clear when trying to execute zed without context HOT 2
- --certificate-path flag is not respected
- Store backup snapshot timestamp in the backupfile
- zed backup to stdout or existing file HOT 2
- Proper signal handling for backup and restore operations
- Validate `.zaml` file should support sourcing schema from a file HOT 2
- Add argument to zed validate to auto-create playground link
- The context token doesn't appear to be using the stored NoVerifyCA and CACert
- zed command relationship read, could not use the subject option without giving the relation option HOT 1
- zed backup create to existing file
- Package shell completion into DEB and RPM
- add retries on serialization errors for write operations
- Some errors seem to always be in json, even if using an interactive shell
- zed import ignores value of --schema-definition-prefix when referencing caveats
- Support command shorthands HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zed.