Author Topic: DNS - restart from Interface not working  (Read 3813 times)

trvaa

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
DNS - restart from Interface not working
« on: February 06, 2017, 10:26:02 am »
Zentyal Development Edition

I have upgraded from 4.X to 5.0.4 from the Dashboard.

The option to Restart DNS from Module Status in the Dashboard no longer works - giving the following message at the top of the page:

"Error restarting service DNS. See /var/log/zentyal/zentyal.log for more information."

The tail of the logs say:

/var/log/zentyal/zentyal.log <==
2017/02/06 09:02:58 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Text::DHCPLeases::Object::parse Error: Statement not recognized: 'set vendor-class-identifier = "dhcpcd-5.5.6";'
 at /usr/share/perl5/Text/DHCPLeases.pm line 148.
2017/02/06 09:02:58 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Text::DHCPLeases::Object::parse Error: Statement not recognized: 'set vendor-class-identifier = "MSFT 5.0";'
 at /usr/share/perl5/Text/DHCPLeases.pm line 148.
2017/02/06 09:02:58 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Text::DHCPLeases::Object::parse Error: Statement not recognized: 'set vendor-class-identifier = "dhcpcd-5.5.6";'
 at /usr/share/perl5/Text/DHCPLeases.pm line 148.
2017/02/06 09:02:58 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Text::DHCPLeases::Object::parse Error: Statement not recognized: 'set vendor-class-identifier = "MSFT 5.0";'
 at /usr/share/perl5/Text/DHCPLeases.pm line 148.
2017/02/06 09:02:58 WARN> zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Text::DHCPLeases::Object::parse Error: Statement not recognized: 'set vendor-class-identifier = "dhcpcd-5.5.6";'
 at /usr/share/perl5/Text/DHCPLeases.pm line 148.
/usr/share/perl5/Text/DHCPLeases.pm

Any thoughts?

Thanks
« Last Edit: February 06, 2017, 10:34:35 am by trvaa »

sanjay.vyas

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #1 on: February 08, 2017, 04:23:24 pm »
do a tail -30 /var/log/zentyal/zentyal.log
you will find nsupdate -g -t 10 .... which must be failing. Its not DHCP failure but failure to do dynamic dns update.

kuldippchavan

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #2 on: February 07, 2019, 08:48:29 am »
i am also facing same issue. any one solved this.
Command output: .
Exit value: 2
2019/02/07 12:11:11 ERROR> Service.pm:971 EBox::Module::Service::restartService - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DWps3ui3nU failed.
2019/02/07 12:11:11 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of DNS from dashboard failed: root command nsupdate -g -t 10 /var/lib/zentyal/tmp/DWps3ui3nU failed.
Error output: update failed: REFUSED

 tail -30 /var/log/zentyal/zentyal.log output is:-
zentyal.psgi:43 Plack::Sandbox::_2fusr_2fshare_2fzentyal_2fpsgi_2fzentyal_2epsgi::__ANON__ - Use of uninitialized value $line in split at /usr/share/perl5/EBox/Util/Software.pm line 79.

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #3 on: February 07, 2019, 11:16:26 am »
Hi!

Same issue in my system:

root command nsupdate -g -t 10 /var/lib/zentyal/tmp/XXXXXXXX failed.
Error output: update failed: REFUSED

What happened if you run this command manualy:

nsupdate -g -t 10 /var/lib/zentyal/tmp/DWps3ui3n

If you got same error message, please try this command:
sudo samba-tool group addmembers DnsAdmins dns-${hostname}

Regards Gábor

realzenu

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #4 on: February 11, 2019, 03:21:37 am »
Hello - same issues here.

Ver. 6

confirmed that dns-hostname is in the dnsadmin group.

2019/02/10 17:08:31 ERROR> Service.pm:971 EBox::Module::Service::restartService - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/eY6xed3jbr failed.
2019/02/10 17:08:31 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of DNS from dashboard failed: root command nsupdate -l -t 10 /var/lib/zentyal/tmp/eY6xed3jbr failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
« Last Edit: February 11, 2019, 11:59:24 pm by realzenu »

sangamc

  • Zen Monk
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #5 on: August 29, 2019, 02:52:17 pm »
Anyone managed to solve this issue? I have the same error message.

2019/08/29 08:49:02 INFO> Service.pm:961 EBox::Module::Service::restartService - Restarting service for module: dns
2019/08/29 08:49:02 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2019/08/29 08:49:05 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/SIHGz1746S failed.
2019/08/29 08:49:05 ERROR> Service.pm:965 EBox::Module::Service::restartService - Error restarting service: root command nsupdate -l -t 10 /var/lib/zentyal/tmp/SIHGz1746S failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2
2019/08/29 08:49:05 ERROR> Service.pm:967 EBox::Module::Service::restartService - root command nsupdate -l -t 10 /var/lib/zentyal/tmp/SIHGz1746S failed.
2019/08/29 08:49:05 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of DNS from dashboard failed: root command nsupdate -l -t 10 /var/lib/zentyal/tmp/SIHGz1746S failed.
Error output: update failed: REFUSED

Command output: .
Exit value: 2

gabor.strama

  • Zen Monk
  • **
  • Posts: 51
  • Karma: +5/-0
    • View Profile
Re: DNS - restart from Interface not working
« Reply #6 on: November 23, 2019, 11:53:34 pm »
Hi!

This article has been solve my problem: https://forum.zentyal.org/index.php/topic,33117.msg110068/topicseen.html#msg110068

Please use it high attention, I miss one row the first time.

BR Gabor