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

how can i solve this problem? #112

Open
xiaobai0102 opened this issue Apr 29, 2023 · 1 comment
Open

how can i solve this problem? #112

xiaobai0102 opened this issue Apr 29, 2023 · 1 comment

Comments

@xiaobai0102
Copy link

python3 -m p4runtime_sh --grpc-addr 172.17.0.1
CRITICAL:root:StreamChannel error, closing stream
CRITICAL:root:P4Runtime RPC error (UNAVAILABLE): failed to connect to all addresses
CRITICAL:root:Failed to establish session with server

@jafingerhut
Copy link
Collaborator

As the last error message says "Failed to establish session with server", I would guess that the p4runtime_sh process attempted to open a TCP connection to the P4Runtime API server on the host with IPv4 address 172.17.0.1, and something caused that connection attempt to fail. Possible causes (but there are many more possibilities, which it would take experimentation and/or looking at your setup to determine which it might be):

  • There is no process listening on the default TCP port running on the host with IPv4 address 172.17.0.1 (the default TCP port for P4Runtime API servers to listen on, and for clients to connect to, is 9559)
  • There is such a listening process, but L2 switches, and/or IP routers between the host where you ran the p4runtime_sh command and the host where the process listening for incoming connections are not configured correct to forward IP packets between them, or a firewall is actively blocking these packets

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