Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

iptables test: "listen tcp :50051: bind: address already in use" #35

Open
gdimopoulos opened this issue Feb 1, 2018 · 1 comment
Open

Comments

@gdimopoulos
Copy link

uname -a
Linux c 3.16.0-77-generic #99~14.04.1-Ubuntu SMP Tue Jun 28 19:17:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I had to change goplaned to goplane inside goplane/test/iptables/demo.py, otherwise prepare fails.
Similar in goplane/test/iptables/Dockerfile I changed goplane/goplaned to goplane.

sudo ./demo.py prepare and sudo ./demo.py are completed without errors, but in the logs I see "address already in use" errors

cat /tmp/goplane/g1/goplane.log
time="2018-02-01T14:02:37Z" level=error msg="Invalid dataplane type(). dataplane engine can't be started"
time="2018-02-01T14:02:37Z" level=warning msg="listen failed" Error="listen tcp :50051: bind: address already in use" Key=":50051" Topic=grpc
time="2018-02-01T14:02:37Z" level=info msg="cleared iptables chain: FORWARD, table: filter"

cat /tmp/goplane/g1/gobgpd.log
time="2018-02-01T14:02:37Z" level=info msg="gobgpd started"
time="2018-02-01T14:02:37Z" level=warning msg="listen failed" Error="listen tcp :50051: bind: address already in use" Key=":50051" Topic=grpc
time="2018-02-01T14:02:37Z" level=info msg="listen tcp 127.0.0.1:6060: bind: address already in use"
time="2018-02-01T14:02:37Z" level=info msg="Finished reading the config file" Topic=Config
time="2018-02-01T14:02:37Z" level=fatal msg="failed to set global config: listen tcp4 0.0.0.0:179: bind: address already in use"
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_OPENSENT old=BGP_FSM_ACTIVE reason=new-connection
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_OPENCONFIRM old=BGP_FSM_OPENSENT reason=open-msg-received
time="2018-02-01T14:02:54Z" level=info msg="Peer Up" Key=192.168.10.3 State=BGP_FSM_OPENCONFIRM Topic=Peer
time="2018-02-01T14:02:54Z" level=debug msg="state changed" Key=192.168.10.3 Topic=Peer new=BGP_FSM_ESTABLISHED old=BGP_FSM_OPENCONFIRM reason=open-msg-negotiated
time="2018-02-01T14:03:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:03:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:04:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:04:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:05:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:05:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:06:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:06:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:07:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:07:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:08:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:08:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:09:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:09:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:10:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:10:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:11:24Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"
time="2018-02-01T14:11:54Z" level=debug msg=sent Key=192.168.10.3 State=BGP_FSM_ESTABLISHED Topic=Peer data="&{{[] 19 4} 0x10e34f8}"

@Dan81067
Copy link

did you solve it?

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

No branches or pull requests

2 participants