Author Topic: DNS Module error  (Read 885 times)

Skyrant

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
DNS Module error
« on: September 30, 2017, 01:30:43 pm »
This just recently started. it also complained about a user called dns-gateway password expiored. I fixed it by setting it to noexpire

Why is this suddenly happening?

Code: [Select]
2017/09/30 13:21:45 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2017/09/30 13:21:48 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2017/09/30 13:21:53 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/EsTfOe7RUd failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at root command nsupdate -g -t 10 /var/lib/zentyal/tmp/EsTfOe7RUd failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/CdFPYBGxWL.cmd 2> /var/lib/zentyal/tmp/stderr', 'nsupdate -g -t 10 /var/lib/zentyal/tmp/EsTfOe7RUd', 512, 'ARRAY(0x80ae860)', 'ARRAY(0x34681c8)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'nsupdate -g -t 10 /var/lib/zentyal/tmp/EsTfOe7RUd') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('nsupdate -g -t 10 /var/lib/zentyal/tmp/EsTfOe7RUd') called at /usr/share/perl5/EBox/DNS.pm line 927
EBox::DNS::_postServiceHook('EBox::DNS=HASH(0x6323260)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 941
EBox::Module::Service::_regenConfig('EBox::DNS=HASH(0x6323260)') 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::DNS=HASH(0x6323260)') called at /usr/share/perl5/EBox/DNS.pm line 1855
EBox::DNS::externalDhcpIfaceAddressChangedDone('EBox::DNS=HASH(0x6323260)', 'eth0', undef, undef, 192.168.0.101, 255.255.255.0) called at /usr/share/perl5/EBox/Network.pm line 3974
EBox::Network::setDHCPAddress('EBox::Network=HASH(0x575c280)', 'eth0', 192.168.0.101, 255.255.255.0) called at /usr/share/zentyal-network/dhcp-address.pl line 40
eval {...} at /usr/share/zentyal-network/dhcp-address.pl line 39
2017/09/30 13:21:53 ERROR> dhcp-address.pl:42 main:: - Call to setDHCPAddress for eth0 failed
2017/09/30 13:21:58 INFO> Service.pm:958 EBox::Module::Service::restartService - Restarting service for module: firewall
2017/09/30 13:22:00 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dhcp
2017/09/30 13:22:00 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2017/09/30 13:22:03 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2017/09/30 13:22:08 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/bLeLChpBRN.cmd 2> /var/lib/zentyal/tmp/stderr', 'nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE', 512, 'ARRAY(0x8d342a8)', 'ARRAY(0x3958188)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE') called at /usr/share/perl5/EBox/DNS.pm line 927
EBox::DNS::_postServiceHook('EBox::DNS=HASH(0x7253e88)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 941
EBox::Module::Service::_regenConfig('EBox::DNS=HASH(0x7253e88)') 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::DNS=HASH(0x7253e88)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 657
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 656
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x5c6ccc0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5ba0530)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x18c1548)', 'progress', 'EBox::ProgressIndicator=HASH(0x5ba0530)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2017/09/30 13:22:08 ERROR> GlobalImpl.pm:661 EBox::GlobalImpl::saveAllModules - Failed to save changes in module dns: root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DYzPRV6RLE failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
2017/09/30 13:22:08 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: openvpn
2017/09/30 13:22:08 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2017/09/30 13:22:08 ERROR> GlobalImpl.pm:736 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: dns  at The following modules failed while saving their changes, their state is unknown: dns  at /usr/share/perl5/EBox/GlobalImpl.pm line 736
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x5c6ccc0)', 'progress', 'EBox::ProgressIndicator=HASH(0x5ba0530)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x18c1548)', 'progress', 'EBox::ProgressIndicator=HASH(0x5ba0530)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +4/-0
    • View Profile
    • Gecka
Re: DNS Module error
« Reply #1 on: March 13, 2018, 05:30:17 am »
Laurent

glennholt

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: DNS Module error
« Reply #2 on: January 10, 2019, 07:50:11 am »
I have this issue and the link is dead.  Can someone provide an active link to bug #5257?

Thanks,
   Glenn

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +4/-0
    • View Profile
    • Gecka
Re: DNS Module error
« Reply #3 on: January 10, 2019, 11:06:52 am »
Found it in the Internet Archives: https://web.archive.org/web/20171125075459/https://tracker.zentyal.org/issues/5257
Quote
by José Antonio Calvo

Hi,

Could you please check if the user dns-$HOSTNAME belongs to the DnsAdmins group?

If not you can try adding it with: sudo samba-tool group addmembers DnsAdmins "dns-$HOSTNAME"

Thanks!
Laurent