Exa-Networks / exabgp

The BGP swiss army knife of networking
Other
2.09k stars 447 forks source link

closing connection during run fullroutebgp2.py #1017

Closed mahmutaydin1 closed 3 years ago

mahmutaydin1 commented 3 years ago

Dear All,

I have converted latest-update.gz file of RIPE to fullroutebgp2.py via mrtparser with python. After that I configured exabgp config file as below:

fullroutebgp.conf

 process test  {
            run    fullroutebgp2.py;
            encoder json;
        }

    neighbor 10.90.90.2 {
        router-id 10.90.90.1;
        local-address 10.90.90.1;
        local-as 100;
        peer-as 200;

       api {
        processes  [test];
    }
    }

then I run this command: [root@centos exabgp-git]# ./sbin/exabgp etc/exabgp/fullroutebgp.conf

I recevied below error:

[root@centos exabgp-git]# ./sbin/exabgp etc/exabgp/fullroutebgp.conf

welcome       Thank you for using ExaBGP
advice        environment file missing
advice        generate it using "exabgp env --fi > /root/exabgp-git/etc/exabgp/exabgp.env"
cli           could not find the named pipes (exabgp.in and exabgp.out) required for the cli
cli           we scanned the following folders (the number is your PID):
cli control    - /run/exabgp/
cli control    - /run/0/
cli control    - /run/
cli control    - /var/run/exabgp/
cli control    - /var/run/0/
cli control    - /var/run/
cli control    - /root/exabgp-git/run/exabgp/
cli control    - /root/exabgp-git/run/0/
cli control    - /root/exabgp-git/run/
cli control    - /root/exabgp-git/var/run/exabgp/
cli control    - /root/exabgp-git/var/run/0/
cli control    - /root/exabgp-git/var/run/
cli control   please make them in one of the folder with the following commands:
cli control   > mkfifo /root/exabgp-git/run/exabgp.{in,out}
cli control   > chmod 600 /root/exabgp-git/run/exabgp.{in,out}
configuration performing reload of exabgp master-d2c7c074134ca6015bf112076604110439bfcf4c
reactor       loaded new configuration successfully
/usr/bin/env: ‘python\r’: No such file or directory
/usr/bin/env: ‘python\r’: No such file or directory
/usr/bin/env: ‘python\r’: No such file or directory
/usr/bin/env: ‘python\r’: No such file or directory
/usr/bin/env: ‘python\r’: No such file or directory
outgoing-1    --------------------------------------------------------------------
outgoing-1    the connection can not carry the following family/families
outgoing-1     - peer is not configured for ipv4/multicast
outgoing-1     - peer is not configured for bgp-ls/bgp-ls
outgoing-1     - peer is not configured for ipv6/flow-vpn
outgoing-1     - peer is not configured for bgp-ls/bgp-ls-vpn
outgoing-1     - peer is not configured for ipv6/multicast
outgoing-1     - peer is not configured for l2vpn/evpn
outgoing-1     - peer is not configured for ipv4/rtc
outgoing-1     - peer is not configured for ipv4/nlri-mpls
outgoing-1     - peer is not configured for ipv6/unicast
outgoing-1     - peer is not configured for ipv4/flow
outgoing-1     - peer is not configured for ipv6/mpls-vpn
outgoing-1     - peer is not configured for ipv4/flow-vpn
outgoing-1     - peer is not configured for l2vpn/vpls
outgoing-1     - peer is not configured for ipv6/nlri-mpls
outgoing-1     - peer is not configured for ipv4/mpls-vpn
outgoing-1     - peer is not configured for ipv6/flow
outgoing-1    therefore no routes of this kind can be announced on the connection
outgoing-1    --------------------------------------------------------------------
process       Too many death for test (5) terminating program
reactor       Problem when sending message(s) to helper program, stopping
/usr/bin/env: ‘python\r’: No such file or directory
reactor       performing shutdown
outgoing-1    outgoing-1 10.90.90.1-10.90.90.2, closing connection

Could you please help me for this problem? Thank you

mahmutaydin1 commented 3 years ago

Hello

Is there any update for this problem thank you

thomas-mangin commented 3 years ago

Hello Mahmut. Assigning me an issue does not mean that I will start to work on it. I also do not provide any SLA on my response time and I am currently quite busy. Also this does not look like a bug with ExaBGP but an configuration/usage issue.

/usr/bin/env: ‘python\r’: No such file or directory seems to indicate that you are not calling the script correctly. This looks like a Unix understanding issue. Good luck looking into it.

mahmutaydin1 commented 3 years ago

thank you .

Thomas Mangin notifications@github.com, 12 Oca 2021 Sal, 15:18 tarihinde şunu yazdı:

Hello Mahmut. Assigning me an issue does not mean that I will start to work on it. I also do not provide any SLA on my response time and I am currently quite busy. Also this does not look like a bug with ExaBGP but an configuration/usage issue.

/usr/bin/env: ‘python\r’: No such file or directory seems to indicate that you are not calling the script correctly. This looks like a Unix understanding issue. Good luck looking into it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Exa-Networks/exabgp/issues/1017#issuecomment-758619087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZCGRYSZEBZEV3LI4TX2WLSZQ4XRANCNFSM4VQUHWOA .

thomas-mangin commented 3 years ago

You are welcome. I know the documentation is light and therefore understanding how to use the program can be hard.