Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc error: code = DeadlineExceeded desc = context deadline exceeded #333

Open
nskalis opened this issue Apr 26, 2023 · 1 comment
Open

Comments

@nskalis
Copy link

nskalis commented Apr 26, 2023

Hi, and thank you for making the gnxi utilities available.

The binaries have been built and installed without any errors using golang go1.17.13. But,

I am failing to contact a router using gnmi_capabilities (or gnmi_get). The error message is as follows:

~/go/bin/gnmi_capabilities -target_name "prod-lab03a-rd1" -target_addr x.x.x.x:57400 -username xxx -password xxx -alsologtostderr -logtostderr -v 1 -insecure true -notls true 
F0426 11:26:02.260135    6501 gnmi_capabilities.go:59] error in getting capabilities: rpc error: code = DeadlineExceeded desc = context deadline exceeded

while there is connectivity:

> nc -vz x.x.x.x 57400
Connection to x.x.x.x 57400 port [tcp/*] succeeded!

Using another grpc client, it succeeds as well:

/usr/local/sbin/gnmic --address x.x.x.x:57400 --username xxx --password xxx --insecure capabilities

Do you have perhaps any idea what might be going wrong here?

@JoseIgnacioTamayo
Copy link
Contributor

" gnmi_capabilities -notls -insecure " == This tells gnmic_capabilities to do a non-TLS connection and at the same time, to do a non-verified TLS connection. I think you should use only --notls.

  • gnmi_target, without TLS support:
    go run gnmi_target --target_address lalala -notls --target_addr 127.0.0.1:9336

  • gnmi_capabilities without TLS support
    go run gnmi_capabilities --target_name lalala -notls --target_addr 127.0.0.1:9336

  • gnmic call to Capabilities without TLS support
    gnmic -a 127.0.0.1:9336 --insecure capabilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants