On 01/27/2015 8:11 am, dweimer wrote: > On 01/27/2015 6:40 am, Cejka Rudolf wrote: >> dweimer wrote (2015/01/26): >>> I did find a work around, but not sure where the problem is for sure, >>> going to post on FreeBSD list as well. the fix, convert all my >>> hostnames >>> in configuration files from fully qualified DNS to IP addresses. I >>> just >>> did this on a hunch, but apparently something somehow has broken in >>> the >>> Bacula name resolution on FreeBSD or at least suddenly on my system. >> >> Hello, maybe DNS server or DNS service is down? Please check >> /etc/resolv.conf and availability of DNS service. There is also >> one important thing when upgrading from FreeBSD 9.x to 10.x, where >> bind (named) is removed from the base system. Since 10.x, there is >> just caching DNS resolver (unbound) and if you had local DNS server, >> after upgrade to 10.x you have to install bind from ports. >> >> -- >> Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar >> Brno University of Technology, Faculty of Information Technology >> Bozetechova 2, 612 66 Brno, Czech Republic >> > > The system is FreeBSD 10.1-RELEASE-p4, verifying DNS was actually the > first thing I tried. My DNS services are handled by a pfSense firewall, > with entries added into its DNS Masquerade service for the local > servers. I have Bind DNS Tools installed on the bacula server, nslookup > correctly resolves all the DNS host names. The host command also > resolves all the host names. > My webacula installation is actually on a separate machine also running > FreeBSD 10.1-RELEASE-p4, its bconsole application is still resolving > the > server by DNS host name, but was returning only some data very slowly > due to the Bacula server being unable to resolve the client host names. > The bconole application on the Bacula server couldn't even resolve the > server host name which is also in its hosts file. I have tried with > debugging all the way up to 300, I still only get a timeout on the > connect, no information about it attempting to resolve host names to > IP. > Does anyone know what debugging level I need to set in order to get it > to show me the host name resolution process so I can possibly find out > why its failing? >
OK, this is just strange, I rebuilt all the ports on my FreeBSD server, then changed just the bconsole.conf file back to the DNS name using bconsole -d 500, it resolves the name then hangs, it will timeout if I wait long enough. root@bacula:/usr/local/etc/bacula # bconsole -d 500 bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf Connecting to Director bacula.dweimer.local:9101 bconsole: bsock.c:208-0 Current 192.168.1.4:9101 All 192.168.1.4:9101 ^C it appears to already have determined the IP prior to it hanging. Putting it back to IP instantly connects. root@bacula:/usr/local/etc/bacula # bconsole -d 500 bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf Connecting to Director 192.168.5.4:9101 bconsole: bsock.c:208-0 Current 192.168.5.4:9101 All 192.168.5.4:9101 bconsole: bsock.c:137-0 who=Director daemon host=192.168.5.4 port=9101 bconsole: bsock.c:310-0 OK connected to server Director daemon 192.168.5.4:9101. [SNIP] If I jump it upto 900 on the debug level I finally get an error, however it just states interrupted system call. bconsole -d 900 bconsole: parse_conf.c:889-0 Enter parse_config() bconsole: parse_conf.c:891-0 parse_config pass 1 bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf bconsole: parse_conf.c:915-0 parse state=0 pass=1 got token=T_IDENTIFIER bconsole: parse_conf.c:189-0 Item=name def=no defval=0 bconsole: parse_conf.c:189-0 Item=description def=no defval=0 bconsole: parse_conf.c:189-0 Item=dirport def=yes defval=9101 bconsole: parse_conf.c:189-0 Item=address def=no defval=0 bconsole: parse_conf.c:189-0 Item=password def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlsauthenticate def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlsenable def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlsrequire def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscacertificatefile def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscacertificatedir def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscertificate def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlskey def=no defval=0 bconsole: parse_conf.c:189-0 Item=heartbeatinterval def=yes defval=0 bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_BOB bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_EOL bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for name bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for dirport bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for address bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_EOL bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for password bconsole: parse_conf.c:915-0 parse state=1 pass=1 got token=T_EOB bconsole: parse_conf.c:989-0 T_EOB => define new resource bconsole: parse_conf.c:915-0 parse state=0 pass=1 got token=T_EOL bconsole: parse_conf.c:891-0 parse_config pass 2 bconsole: lex.c:178-0 Open config file: /usr/local/etc/bacula/bconsole.conf bconsole: parse_conf.c:915-0 parse state=0 pass=2 got token=T_IDENTIFIER bconsole: parse_conf.c:189-0 Item=name def=no defval=0 bconsole: parse_conf.c:189-0 Item=description def=no defval=0 bconsole: parse_conf.c:189-0 Item=dirport def=yes defval=9101 bconsole: parse_conf.c:189-0 Item=address def=no defval=0 bconsole: parse_conf.c:189-0 Item=password def=no defval=0 onsole: parse_conf.c:189-0 Item=tlsauthenticate def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlsenable def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlsrequire def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscacertificatefile def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscacertificatedir def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlscertificate def=no defval=0 bconsole: parse_conf.c:189-0 Item=tlskey def=no defval=0 bconsole: parse_conf.c:189-0 Item=heartbeatinterval def=yes defval=0 bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_BOB bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_EOL bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for name bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for dirport bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for address bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_EOL bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_IDENTIFIER bconsole: parse_conf.c:964-0 in T_IDENT got token=T_EQUALS bconsole: parse_conf.c:970-0 calling handler for password bconsole: parse_conf.c:915-0 parse state=1 pass=2 got token=T_EOB bconsole: parse_conf.c:989-0 T_EOB => define new resource bconsole: parse_conf.c:915-0 parse state=0 pass=2 got token=T_EOL No record for 1001 console Director: name=bacula-dir address=bacula.dweimer.local DIRport=9101 bconsole: parse_conf.c:1023-0 Leave parse_config() bconsole: watchdog.c:79-0 Initialising NicB-hacked watchdog thread Connecting to Director bacula.dweimer.local:9101 bconsole: watchdog.c:194-0 Registered watchdog 803445118, interval 15 one shot bconsole: watchdog.c:251-0 NicB-reworked watchdog thread entered bconsole: btimers.c:143-0 Start thread timer 8034c10a8 tid 803406400 for 15 secs. bconsole: bsock.c:208-0 Current 192.168.1.4:9101 All 192.168.1.4:9101 bconsole: btimers.c:221-0 thread timer 803445118 kill thread tid=803406400 at 1422389348. bconsole: signal.c:132-0 sig=31 User-defined signal 2 bconsole: bsock.c:283-0 Could not connect to server Director daemon bacula.dweimer.local:9101. ERR=Interrupted system call bconsole: bsock.c:106-0 Unable to connect to Director daemon on bacula.dweimer.local:9101. ERR=Interrupted system call bconsole: btimers.c:203-0 Stop thread timer 8034c10a8 tid=803406400. bconsole: watchdog.c:223-0 Unregistered inactive watchdog 803445118 bconsole: watchdog.c:313-0 NicB-reworked watchdog thread exited -- Thanks, Dean E. Weimer http://www.dweimer.net/ ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users