[dev] Error when running frr from source code
Xiaodong Xu
stid.smth at gmail.com
Thu Jun 30 15:28:44 UTC 2022
Did you add the user/group for frr, and create the configuration files and
daemon file before starting the service?
You may also try to start the zebra daemon manually to see if it works.
On Thu, Jun 30, 2022 at 4:46 AM <hieunt562 at viettel.com.vn> wrote:
> Hi all.
>
> I want to install FRR 8.2.2 release from source code for ospfd running on
> CenOS 7. So, I followed the guide line from
> http://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-centos7.html.
>
>
> - First, when I run:
>
> ./configure --bindir=/usr/bin --sbindir=/usr/lib/frr
> --sysconfdir=/etc/frr --libdir=/usr/lib/frr --libexecdir=/usr/lib/frr
> --localstatedir=/var/run/frr --with-moduledir=/usr/lib/frr/modules
> --enable-snmp=agentx --enable-multipath=64 --enable-user=frr
> --enable-group=frr --enable-vty-group=frrvty --disable-ldpd --enable-fpm
> --with-pkg-git-version --with-pkg-extra-version=-MyOwnFRRVersion
> SPHINXBUILD=/usr/bin/sphinx-build
>
>
>
> I got two warnings:
>
> configure: WARNING: sphinx is missing but required to build documentation
> configure: WARNING: pytest is missing, unit tests cannot be performed
>
>
>
> - After compile source and install I run sudo systemctl start
> frr I got error message like below:
>
>
> *[root at localhost frr]# sudo systemctl start frr*Job for frr.service
> failed. See "systemctl status frr.service" and "journalctl -xe" for details.
>
> *[root at localhost frr]# systemctl status frr.service*● frr.service -
> FRRouting
> Loaded: loaded (/etc/systemd/system/frr.service; enabled; vendor preset:
> disabled)
> Active: activating (start) since Wed 2022-06-22 23:10:24 EDT; 16s ago
> Docs: https://frrouting.readthedocs.io/en/latest/setup.html
> Control: 10242 (frrinit.sh)
> Status: "restarting all"
> Tasks: 3
> CGroup: /system.slice/frr.service
> ├─10242 /bin/bash /usr/lib/frr/frrinit.sh start
> ├─10246 /usr/lib/frr/watchfrr -d -F traditional zebra ospfd staticd
> └─10247 /usr/lib/frr/watchfrr -d -F traditional zebra ospfd staticd
>
> Jun 22 23:10:24 localhost.localdomain systemd[1]: Starting FRRouting...
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [T83RR-8SM5G]
> watchfrr 8.2.2-MyOwnFRRVersion starting: vty at 0
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S] zebra
> state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S] ospfd
> state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S]
> staticd state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [YFT0P-5Q5YX]
> Forked background command [pid 10248]: /usr/lib/frr/watchfrr.sh restart all
>
> *[root at localhost frr]# journalctl -xe*-- Subject: Unit frr.service has
> finished shutting down
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
> -- Unit frr.service has finished shutting down.
> Jun 22 23:10:24 localhost.localdomain systemd[1]: Starting FRRouting...
> -- Subject: Unit frr.service has begun start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
> -- Unit frr.service has begun starting up.
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [T83RR-8SM5G]
> watchfrr 8.2.2-MyOwnFRRVersion starting: vty at 0
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S] zebra
> state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S] ospfd
> state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [ZCJ3S-SPH5S]
> staticd state -> down : initial connection attempt failed
> Jun 22 23:10:24 localhost.localdomain watchfrr[10247]: [YFT0P-5Q5YX]
> Forked background command [pid 10248]: /usr/lib/frr/watchfrr.sh restart all
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10260]: Cannot stop
> zebra: pid file not found
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10256]: Cannot stop
> staticd: pid file not found
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10259]: Cannot stop
> ospfd: pid file not found
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10263]: Failed to start
> zebra!
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10266]: Failed to start
> ospfd!
> Jun 22 23:10:24 localhost.localdomain watchfrr.sh[10269]: Failed to start
> staticd!
>
> Do you know why I got these errors, please help me to fix them.
>
>
>
> Thanks and best regards!
>
> HieuNT
>
>
> _______________________________________________
> dev mailing list
> dev at lists.frrouting.org
> https://lists.frrouting.org/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frrouting.org/pipermail/dev/attachments/20220630/c6d07799/attachment.htm>
More information about the dev
mailing list