Error when starting exabgp due to namedpipe files

2,768 views
Skip to first unread message

Bala Venkata

unread,
Dec 27, 2017, 3:46:02 PM12/27/17
to exabgp-users
Hello

A basic question w.r.t namedpipes used by exabgp. I downloaded 4.0 version onto my Ubuntu host, configured exabgp.conf as follows and tried to bring it up

root@ubuntu-21-150:~# cat /opt/exabgp/exabgp-4.0.2/etc/exabgp/exabgp.conf
neighbor 192.0.2.1 {
router-id 192.0.2.2;
local-as 64496;
peer-as 64497;
}
root@ubuntu-21-150:~#

Seeing following errors; any idea ?

root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/sbin# ./exabgp ../etc/exabgp/exabgp.conf
12:31:51 | 1621 | welcome | Thank you for using ExaBGP
12:31:51 | 1621 | version | 4.0.2-1c737d99
12:31:51 | 1621 | interpreter | 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
12:31:51 | 1621 | os | Linux ubuntu-21-150 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64
12:31:51 | 1621 | installation | /opt/exabgp/exabgp-4.0.2
12:31:51 | 1621 | cli control | named pipes for the cli are:
12:31:51 | 1621 | cli control | to send commands /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:51 | 1621 | cli control | to read responses /opt/exabgp/exabgp-4.0.2/run/exabgp.out
12:31:51 | 1621 | configuration | performing reload of exabgp 4.0.2-1c737d99
12:31:51 | 1621 | reactor | loaded new configuration successfully
12:31:52 | 1621 | api | command from process not understood : error: could not create the named pipe /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:52 | 1621 | api | command from process not understood : error: could not create the named pipe /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:52 | 1621 | api | command from process not understood : error: could not create the named pipe /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:52 | 1621 | api | command from process not understood : error: could not create the named pipe /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:53 | 1621 | api | command from process not understood : error: could not create the named pipe /opt/exabgp/exabgp-4.0.2/run/exabgp.in
12:31:53 | 1621 | process | Too many death for api-internal-cli-d0bc1736 (5) terminating program
12:31:53 | 1621 | reactor | Problem when sending message(s) to helper program, stopping
12:31:53 | 1621 | reactor | performing shutdown
12:31:53 | 1621 | network | stopped listening on 127.0.0.1:179
root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/sbin#


Deleting and recreating the named pipe files didn't help. Without those pipes, exabgp comes up but gives this message


root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/sbin# ./exabgp ../etc/exabgp/exabgp.conf
12:13:18 | 18885 | welcome | Thank you for using ExaBGP
12:13:18 | 18885 | version | 4.0.2-1c737d99
12:13:18 | 18885 | interpreter | 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
12:13:18 | 18885 | os | Linux ubuntu-21-150 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64
12:13:18 | 18885 | installation | /opt/exabgp/exabgp-4.0.2
12:13:18 | 18885 | cli | could not find the named pipes (exabgp.in and exabgp.out) required for the cli
12:13:18 | 18885 | cli | we scanned the following folders (the number is your PID):
12:13:18 | 18885 | cli control | - /run/0/
12:13:18 | 18885 | cli control | - /run/
12:13:18 | 18885 | cli control | - /var/run/0/
12:13:18 | 18885 | cli control | - /var/run/
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-104-generic x86_64)

Thomas Mangin

unread,
Dec 27, 2017, 5:37:05 PM12/27/17
to exabgp...@googlegroups.com
It is a most likely a permission issue with the folder .. ExaBGP does not have the right to access the folder (once it dropped privileges to nobody - or whatever is configured).

Bala Venkata

unread,
Dec 28, 2017, 11:19:17 PM12/28/17
to exabgp-users
yes that was it indeed !  Thanks Thomas:

root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/bin# ls -lart /opt/exabgp/exabgp-4.0.2/run/*
prwxrwxrwx 1 root root 0 Dec 29 09:46 /opt/exabgp/exabgp-4.0.2/run/exabgp.out
prwxrwxrwx 1 root root 0 Dec 29 09:46 /opt/exabgp/exabgp-4.0.2/run/exabgp.in
root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/bin# ls -lart /opt/exabgp/exabgp-4.0.2 | grep run
drwxrwxrwx  2 root root  4096 Dec 27 12:27 run
root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/bin# 
root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/bin# ./exabgpcli show neighbor summary
Peer            AS        up/down state       |     #sent     #recvd
192.0.2.1       64497     0:06:03 active                0          0
root@ubuntu-21-150:/opt/exabgp/exabgp-4.0.2/bin# ./exabgpcli show neighbor configuration
neighbor 192.0.2.1 {
  description "";
  router-id 192.0.2.2;
  host-name ubuntu-21-150;
  domain-name ubuntu-21-150;
  local-address auto;
Reply all
Reply to author
Forward
0 new messages