./server.c:3881: unexpected error: when issuing rndc reload or reconfig
Summary
When issuing an rndc reload or reconfig command to two of my BIND instances, I receive this error: "rndc: 'reload' failed: unexpected error" The syslog logs show this: "Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.038 general: error: ./server.c:3881: unexpected error:"
BIND version used
cozbdns001# /opt/named/sbin/named -V BIND 9.11.23 (Extended Support Version) id:4f70056 running on Linux x86_64 3.10.0-1160.2.1.el7.x86_64 #1 SMP Mon Sep 21 21:00:09 EDT 2020 built by make with '--prefix=/opt/bind-9.11.23' compiled by GCC 4.8.5 20150623 (Red Hat 4.8.5-39) compiled with OpenSSL version: OpenSSL 1.0.2k 26 Jan 2017 linked to OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017 compiled with libxml2 version: 2.9.1 linked to libxml2 version: 20901 compiled with zlib version: 1.2.7 linked to zlib version: 1.2.7 threads support is enabled
default paths: named configuration: /opt/bind-9.11.23/etc/named.conf rndc configuration: /opt/bind-9.11.23/etc/rndc.conf DNSSEC root key: /opt/bind-9.11.23/etc/bind.keys nsupdate session key: /opt/bind-9.11.23/var/run/named/session.key named PID file: /opt/bind-9.11.23/var/run/named/named.pid named lock file: /opt/bind-9.11.23/var/run/named/named.lock
Steps to reproduce
Any rndc reload or reconfig after a successful start up causes the issue. I copied the full BIND deployment and configuration to a lab server and the issue does not occur.
What is the current bug behavior?
The server does not appear to actually reload its configuration. A full restart is required.
What is the expected correct behavior?
rndc reconfig and reload should succeed. Also, "Unexpected error" is a useless message that does not help identify the cause of the issue.
Relevant configuration files
(Paste any relevant configuration files - please use code blocks (```)
to format console output. If submitting the contents of your
configuration file in a non-confidential Issue, it is advisable to
obscure key secrets: this can be done automatically by using
named-checkconf -px
.)
Relevant logs and/or screenshots
' Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.603 general: info: received control channel command 'reload' Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.603 general: info: loading configuration from '/etc/named.conf' Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.610 general: info: reading built-in trust anchors from file '/opt/bind-9.11.23/etc/bind.keys' Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.611 general: info: using default UDP/IPv4 port range: [1024, 65535] Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.611 general: info: using default UDP/IPv6 port range: [1024, 65535] Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.611 network: info: no IPv6 interfaces found Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.616 general: info: sizing zone task pool based on 462 zones Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.617 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.624 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.631 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.638 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.645 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.652 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.659 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.666 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.674 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.681 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.688 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.695 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.703 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.710 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.717 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.725 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.732 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.739 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.747 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.754 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.761 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.768 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.775 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.783 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.790 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.797 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.804 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.812 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.819 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.826 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.834 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.841 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.848 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.855 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.863 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.870 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.877 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.884 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.892 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.899 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.907 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.914 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.921 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.929 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.936 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.943 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.950 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.958 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.965 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.972 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.980 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.987 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:06 cozbdns001 named[18342]: 18-Nov-2020 16:48:06.994 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.002 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.009 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.016 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.024 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.031 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.038 config: info: none:100: 'max-cache-size 90%' - setting to 175921860444MB (out of 17592186044415MB) Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.038 general: error: ./server.c:3881: unexpected error: Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.038 general: error: unable to obtain neither an IPv4 nor an IPv6 dispatch Nov 18 16:48:07 cozbdns001 named[18342]: 18-Nov-2020 16:48:07.042 general: error: reloading configuration failed: unexpected error ' Note: Ommitted many "general: info: automatic empty zone: view : XXX" messages.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem.)