-
Notifications
You must be signed in to change notification settings - Fork 68
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
gNMI fails with timeout error #33
Comments
The most common issue is that the control-plane firewall on the device is blocking your connection. Is port 5909 open? In addition you can run "show management api gnmi" to see if the gnmi server started successfully. |
Thanks for you reply, Yes, the gNMI is running on 5909. Acturally, I am running two server, the regular gNMI is on 5909 that grabs the tree subsribed from switch.
I am trying to remove the second command (All codes related to second one), shutdown the daemon on swith, and only running regular gNMI on 5909. Unfortunatly I am still getting timeout error. I am also trying to stop the go channel when I get an error from response but I am really new to GO language and I did not find a way to stop the go channel or called go process. the CPU usage will increase from 100% to 300% or more. I believe that the subscriton still running on the backend until I terminate the GO. |
In my code, I set a schedule to dial in to arista switch. if the connection is not set up successfully, it will dial in again until the connection is setup. I notice after 3 or 5 times trying to connect the switch, it will build the connection successfully. However, the CPU usage will be 300 or 500% on Ubuntu system. It seems all processes before success still exist in backend. |
The first time OpenConfig is configured on the switch after restart it takes a few minutes to start up. You can check in the agent logs ( |
Thanks Aaron, I did not restart the switch, the switch is keeping running, only the go client is restarted. and I think the OpenConfig is running when the go client tried to dial in the switch. |
Please contact our support for further assistance. |
Hello, I am currently getting an issue.
When I try to dial into Arista switch and subcribe a path to grab data from swith. I got an error:
rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: timed out waiting for server handshake.
Does it mean too many connection requests to the switch? I am not sure why it returns timeout. Is it the issue about my code or something wrong on the switch side. Thanks
The text was updated successfully, but these errors were encountered: