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

StreamChannel error and P4Runtime RPC error #64

Open
Benature opened this issue Apr 9, 2021 · 4 comments
Open

StreamChannel error and P4Runtime RPC error #64

Benature opened this issue Apr 9, 2021 · 4 comments

Comments

@Benature
Copy link

Benature commented Apr 9, 2021

hello, I pull the docker from dockerhub docker pull p4lang/p4runtime-sh, and run with the instruction of P4-OVS

> ./p4runtime-sh-docker --grpc-addr 172.17.0.1:50051 --device-id 0 --config demo.p4info.txt,demo.o
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

I use VM Ubuntu18.04.5 LTS run on VirtualBox.

@antoninbas
Copy link
Member

Is 172.17.0.1 the actual address of your Docker bridge?

@Benature
Copy link
Author

Benature commented Apr 9, 2021

I think it is

> ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:cdff:fe5e:40bb  prefixlen 64  scopeid 0x20<link>

@antoninbas
Copy link
Member

You may want to try with the IANA assigned port for P4Runtime (9559).
I would also recommend trying to open a telnet TCP session to the gRPC address. If it doesn't work, then you have to figure out why first.

@HAIYAA
Copy link

HAIYAA commented Jun 7, 2021

hello, I pull the docker from dockerhub docker pull p4lang/p4runtime-sh, and run with the instruction of P4-OVS

> ./p4runtime-sh-docker --grpc-addr 172.17.0.1:50051 --device-id 0 --config demo.p4info.txt,demo.o
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

I use VM Ubuntu18.04.5 LTS run on VirtualBox.

hi, have you solved this problem now? I have the same problem and I don't know how to solve it. If you have the solution please tell me, thank you

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

3 participants