Author Topic: DNS server error when restarting  (Read 1504 times)

kcurtis

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
DNS server error when restarting
« on: April 21, 2021, 03:29:21 pm »
When I click on the [Restart] in the GUI for DNS it will error out. The log files is showing;
Code: [Select]
2021/04/21 08:08:19 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: dhcp
2021/04/21 08:08:19 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $dir_path in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Tools.pm line 114.
2021/04/21 08:08:19 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - readdir() attempted on invalid dirhandle $dirHandle at /usr/share/zentyal/stubs/dhcp/includes.mas line 17.
2021/04/21 08:08:19 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - closedir() attempted on invalid dirhandle $dirHandle at /usr/share/zentyal/stubs/dhcp/includes.mas line 21.
2021/04/21 08:08:22 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1

Code: [Select]
Command output: .
Exit value: 2
2021/04/21 08:12:02 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1
2021/04/21 08:22:12 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: dns
2021/04/21 08:22:14 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2021/04/21 08:22:21 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/dPpKIkTmYg failed.
2021/04/21 08:22:21 ERROR> Service.pm:969 EBox::Module::Service::restartService - Error restarting service: root command nsupdate -g -t 10 /var/lib/zentyal/tmp/dPpKIkTmYg fai$
Error output: tkey query failed: GSSAPI error: Major = Unspecified GSS failure.  Minor code may provide more information, Minor = No Kerberos credentials available (default c$

Command output: .
Exit value: 2
2021/04/21 08:22:21 ERROR> Service.pm:971 EBox::Module::Service::restartService - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/dPpKIkTmYg failed.
2021/04/21 08:22:21 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of DNS from dashboard failed: root command nsupdate -g -t 10 /var/lib/z$
Error output: tkey query failed: GSSAPI error: Major = Unspecified GSS failure.  Minor code may provide more information, Minor = No Kerberos credentials available (default c$

Command output: .
Exit value: 2
2021/04/21 08:22:22 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1


Can anyone point me in the direction to getting this fixed?

kcurtis

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
Re: DNS server error when restarting
« Reply #1 on: April 26, 2021, 07:57:48 pm »
No ideas how to fix the server?

kcurtis

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
Re: DNS server error when restarting
« Reply #2 on: April 27, 2021, 06:58:49 pm »
I still can not get this to work right.
It is right now on version 6.2.9 and a vHost running as the live PDC

Here is the debug log
https://paste.ubuntu.com/p/39HBd8Bnpx/


And still It has errors, a lot of "ticket expired" errors
Code: [Select]
2021/04/27 11:27:59 INFO> GlobalImpl.pm:617 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall dns
2021/04/27 11:27:59 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2021/04/27 11:27:59 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2021/04/27 11:28:07 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2021/04/27 11:28:14 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG failed.
Error output: tkey query failed: GSSAPI error: Major = Unspecified GSS failure.  Minor code may provide more information, Minor = Ticket expired.

Command output: .
Exit value: 2 at root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG failed.
Error output: tkey query failed: GSSAPI error: Major = Unspecified GSS failure.  Minor code may provide more information, Minor = Ticket expired.

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/BdmAVVuBGy.cmd 2> /var/lib/zentyal/tmp/stderr', 'nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG', 512, 'ARRAY(0x55660f98f720)', 'ARRAY(0x55660ad1e418)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG') called at /usr/share/perl5/EBox/DNS.pm line 967
EBox::DNS::_postServiceHook('EBox::DNS=HASH(0x55660e1581e8)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 948
EBox::Module::Service::_regenConfig('EBox::DNS=HASH(0x55660e1581e8)') 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(0x55660e1581e8)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55660d00e810)', 'progress', 'EBox::ProgressIndicator=HASH(0x556608de6698)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55660cfbe6f8)', 'progress', 'EBox::ProgressIndicator=HASH(0x556608de6698)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2021/04/27 11:28:14 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module dns: root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DuAaP1ndwG failed.
Error output: tkey query failed: GSSAPI error: Major = Unspecified GSS failure.  Minor code may provide more information, Minor = Ticket expired.

Command output: .
Exit value: 2
2021/04/27 11:28:14 ERROR> GlobalImpl.pm:728 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 728
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55660d00e810)', 'progress', 'EBox::ProgressIndicator=HASH(0x556608de6698)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55660cfbe6f8)', 'progress', 'EBox::ProgressIndicator=HASH(0x556608de6698)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30

kcurtis

  • Zen Apprentice
  • *
  • Posts: 48
  • Karma: +5/-0
    • View Profile
Re: DNS server error when restarting
« Reply #3 on: May 04, 2021, 02:47:14 pm »
No one has any idea?