Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:54 am


Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

Author Message
mandrei99
Post  Post subject: Quagga: Exiting: failed to connect to any daemons.  |  Posted: Mon Jul 01, 2013 4:44 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

Quagga: Exiting: failed to connect to any daemons.

Quagga can fail with following error due to pid directory permission errors:
Code:
# /etc/init.d/quagga restart                                   
Stopping Quagga daemons (prio:0): (ospfd) (zebra) (bgpd) (ripd) (ripngd) (ospf6d) (isisd).
Removing all routes made by zebra.
Loading capability module if not yet done.
Starting Quagga daemons (prio:10): zebra ospfd.
Exiting: failed to connect to any daemons.

Code:
# strace /usr/lib/quagga/ospfd -- --daemon -A 127.0.0.1
...
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff6981c4000
read(4, "MemTotal:         507764 kB\nMemF"..., 1024) = 1024
close(4)                                = 0
munmap(0x7ff6981c4000, 4096)            = 0
stat("/etc/quagga/Quagga.conf", {st_mode=S_IFREG|0640, st_size=812, ...}) = 0
umask(0133)                             = 027
open("/var/run/quagga/ospfd.pid", O_RDWR|O_CREAT, 0644) = -1 EACCES (Permission denied)
umask(027)                              = 0133
exit_group(1)                           = ?


In my case, I had wrong ownership on "/var/run/quagga" directory:
Code:
# ls -ld /var/run/quagga/
drwxr-xr-x 2 sshd quagga 4096 Jul  1 20:40 /var/run/quagga/


Fix is obvious: set "quagga" as the owner of "/var/run/quagga".





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Quagga: Exiting: failed to connect to any daemons."
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Quagga ospf neighbour stuck in ExStart/DROther state

debuser

0

1309

Mon Dec 12, 2011 4:12 pm

debuser View the latest post

There are no new unread posts for this topic. "OSPF not enabled on this interface" FreeBSD Quagga ospfd interface status

debuser

1

2450

Thu Apr 01, 2010 5:55 am

debuser View the latest post

 

Who is online
Users browsing this forum: Majestic-12 [Bot] and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO