Your VPS Server!

Tuesday, February 17, 2015

Solution to quagga vtysh "Exiting: failed to connect to any daemons."

   When you run the command in the linux shell vtysh to connect to the quagga daemons (such as bgpd, ospfd, etc) returns  the following error "Exiting: failed to connect to any daemons"

Just like this:

alejandro @ miserver: ~ $ vtysh -d bgpd
Exiting: failed to connect to any daemons.

alejandro @ miserver: ~ $ vtysh
Exiting: failed to connect to any daemons.

   The solution is to add the user that is executing vtysh to the quagga group. To do this edit the /etc/group file.
   After editing /etc/group should be something like:


You can specify multiple users doing:

quagga:x:1003:alejandro, john

   This is necessary because vtysh tries to connect to the daemons using UNIX domain sockets and not all users (for security reasons) have access to these sockets.

Another solution:
   Another solution might be during the compilation phase where you can specify the linux/unix group for sockets mentioned above. Example:

./configure --enable-vty-group = group

   Good luck, I hope this helped,


  1. Hi,

    I applied your procedure, but didn't resolve the issue :/

    I resolved it by giving privileges to all files inside the directory : /var/run/quagga/

  2. Comment 1 is successful. For example;

    [email protected]:/var/run/quagga# chown quagga.quaggavty /var/run/quagga/*
    [email protected]:/var/run/quagga# chmod 640 /var/run/quagga/*

  3. Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. router

  4. This comment has been removed by a blog administrator.

  5. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. chicago med season 5

  6. Just pure classic stuff from you here. I have never seen such a brilliantly written article in a long time. I am thankful to you that you produced this! Aegean College