Author Topic: [SOLVED] Adding Z as an additional DC fails, Provision.pm and dns related  (Read 2329 times)

Kallisti

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hello,

I have been unsuccessfully been trying to add Zentyal 4.2.2 to my existing test domain.

At the moment i am stuck at resolving the Domain controller FQDN. /var/log/zentyal/zentyal.log throws these errors:
Code: [Select]
INFO> Provision.pm:810 EBox::Samba::Provision::checkAddress - Resolving silver.mydomain.local to an IP address
DEBUG> Provision.pm:823 EBox::Samba::Provision::checkAddress - The DC silver.mydomain.local could not be resolved to its IP address. Please check the specified server name and DNS server. at The DC silver.mydomain.local could not be resolved to its IP address. Please check the specified server name and DNS server. at /usr/share/perl5/EBox/Samba/Provision.pm line 823
EBox::Samba::Provision::checkAddress('EBox::Samba::Provision=HASH(0x6c387d0)', 192.168.178.5, 'silver.mydomain.local') called at /usr/share/perl5/EBox/Samba/Provision.pm line 1242
EBox::Samba::Provision::provisionADC('EBox::Samba::Provision=HASH(0x6c387d0)') called at /usr/share/perl5/EBox/Samba/Provision.pm line 372
EBox::Samba::Provision::provision('EBox::Samba::Provision=HASH(0x6c387d0)') called at /usr/share/perl5/EBox/Samba.pm line 722
EBox::Samba::_setConf('EBox::Samba=HASH(0x521c610)') called at /usr/share/perl5/EBox/Module/Base.pm line 995
EBox::Module::Base::_regenConfig('EBox::Samba=HASH(0x521c610)') called at /usr/share/perl5/EBox/Module/Service.pm line 972
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x521c610)') called at /usr/share/perl5/EBox/Samba.pm line 688
EBox::Samba::_regenConfig('EBox::Samba=HASH(0x521c610)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Samba=HASH(0x521c610)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 656
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 655
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x435f990)', 'progress', 'EBox::ProgressIndicator=HASH(0x1d25978)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x4389a48)', 'progress', 'EBox::ProgressIndicator=HASH(0x1d25978)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30

Problem is that is does resolve, in the web UI and using dig.
Code: [Select]
dc-admin@zentyal:/var/log/zentyal$ dig silver.mydomain.local @192.168.178.5

; <<>> DiG 9.9.5-3+zentyal-Ubuntu <<>> silver.mydomain.local @192.168.178.5
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10582
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;silver.mydomain.local.            IN      A

;; ANSWER SECTION:
silver.mydomain.local.     3600    IN      A       192.168.178.5

;; Query time: 7 msec
;; SERVER: 192.168.178.5#53(192.168.178.5)
;; WHEN: Mon Apr 25 23:25:04 CEST 2016
;; MSG SIZE  rcvd: 63

How can I fix an error that doesn't seem to exist?
« Last Edit: April 25, 2016, 11:57:05 pm by Kallisti »

Kallisti

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Adding Z as an additional DC fails, Provision.pm and dns related
« Reply #1 on: April 25, 2016, 11:56:51 pm »
Located the problem. My DC DNS apparently took too long to reply at 7msec, Zentyal provisioning times out after 5 msec.

I changed the following lines around row 839, from 5 to 50.
Code: [Select]
       $resolver->tcp_timeout(50);
        $resolver->udp_timeout(50);

Subsequently, I also had to follow the nsupdate fix in https://forum.zentyal.org/index.php/topic,23895.15.html by removing -l. Now I have a joined domain.