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

trvaa

  • Zen Apprentice
  • *
  • Posts: 21
  • 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: +0/-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 Apprentice
  • *
  • Posts: 19
  • Karma: +2/-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 »