Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error messages when rebooting frr 9.1 with default configuration of bgp #15494

Closed
2 tasks done
anfedotov opened this issue Mar 6, 2024 · 3 comments
Closed
2 tasks done
Labels
triage Needs further investigation

Comments

@anfedotov
Copy link

Description

When running systemctl restart frr.service and default configuration bgp, I get an error messages in syslog and journald.

If string log syslog informational is deleted from default config, messages will be not appear. Help me please to understand why these error messages are appear.

Version

FRRouting 9.1 (Core-router) on Linux(6.1.0-17-amd64).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--with-vtysh-pager=/usr/bin/pager' '--libdir=/usr/lib/x86_64-linux-gnu/frr' '--with-moduledir=/usr/lib/x86_64-linux-gnu/frr/modules' '--disable-dependency-tracking' '--enable-rpki' '--disable-scripting' '--enable-pim6d' '--with-libpam' '--enable-doc' '--enable-doc-html' '--enable-snmp' '--enable-fpm' '--disable-protobuf' '--disable-zeromq' '--enable-ospfapi' '--enable-bgp-vnc' '--enable-multipath=256' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' 'build_alias=x86_64-linux-gnu' 'PYTHON=python3'
Core-router#

How to reproduce

When running systemctl restart frr.service or systemctl stop frr.service and default configuration bgp

Expected behavior

no error messages in during shutdown frr.service with default configuration bgp

Actual behavior

When running systemctl restart frr.service and default configuration bgp, I get an error messages in syslog and journald:

root@Core-router:~# journalctl -u frr.service
...
Mar 06 00:57:01 Core-router systemd[1]: Stopping frr.service - FRRouting...
Mar 06 00:57:01 Core-router watchfrr[3159]: [NG1AJ-FP2TQ] Terminating on signal
...
Mar 06 00:57:01 Core-router mgmtd[3174]: [X3G8F-PM93W] BE-adapter: mgmt_msg_read: got EOF/disconnect
Mar 06 00:57:01 Core-router zebra[3169]: [N5M5Y-J5BPG][EC 4043309121] Client 'static' (session id 0) encountered an error and is shutting down.
Mar 06 00:57:01 Core-router zebra[3169]: [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1333 failed to find process pid registration
....

Additional context

I have following versions and configs:

Core-router# sh run
Building configuration...

Current configuration:
!
frr version 9.1
frr defaults traditional
hostname Core-router
log syslog informational
service integrated-vtysh-config
!
end
Core-router#
...
root@Core-router:~# uname -a
Linux Core-router 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
root@Core-router:~# dpkg -l | grep "liby\|frr"
ii  frr                           9.1-0~deb12u1                  amd64        FRRouting suite of internet protocols (BGP, OSPF, IS-IS, ...)
ii  frr-pythontools               9.1-0~deb12u1                  all          FRRouting suite - Python tools
ii  libyang2:amd64                2.1.128+b1+sterra1             amd64        parser toolkit for IETF YANG data modeling - runtime

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@anfedotov anfedotov added the triage Needs further investigation label Mar 6, 2024
@ton31337
Copy link
Member

ton31337 commented Mar 7, 2024

Are you able to start the daemons without systemd? Like running first /usr/lib/frr/mgmtd and see if you have any other issues?

@anfedotov
Copy link
Author

Thanks for your answer. If start deamons without systemd, error messages will be not appear.

root@Hub1:~# /usr/lib/frr/mgmtd -d
root@Hub1:~# /usr/lib/frr/zebra -d
root@Hub1:~# /usr/lib/frr/bgpd -d
....
root@Hub1:~# pkill zebra
root@Hub1:~# pkill bgpd
root@Hub1:~# pkill mgmtd

But if start => stop watchfrr.sh (/usr/lib/frr/watchfrr.sh start usr/lib/frr/watchfrr.sh stop), errors messages will appear int the journalctl.

@ton31337
Copy link
Member

Can you show show logging? It would tell the logging level and explain why you see those logs. Syslog is disabled in your case, that's why you don't see error/warning/etc. messages until log syslog ... is not enabled.

@FRRouting FRRouting locked and limited conversation to collaborators Mar 12, 2024
@ton31337 ton31337 converted this issue into discussion #15530 Mar 12, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants