Author Topic: Error joinin Zentyal 5 server to another Zentyal 5.0 domain  (Read 1262 times)

Pelle.Hanses

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Error joinin Zentyal 5 server to another Zentyal 5.0 domain
« on: March 13, 2018, 11:12:13 am »
Hi,
I'm trying to add a second Zentyal 5.0 server as additional domain controller to an existing Zentyal 5.0 server. I get the following error:
Quote
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/
The following modules failed while saving their changes, their state is unknown: samb
Some info:
The domain is pipos.eu
IP of primary existing Zentyal server 192.168.80.50
IP of the new additional Zentyal server 192.168.80.55

Here are some of the errors in /var/log/zentyal/zentyal.log
Code: [Select]
ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command samba-tool domain join pipos.eu DC  --username='administrator'  --workgroup='pipos'  --password=`cat /var/lib/zentyal/tmp/2N62OK`  --server='192.168.80.50'  --dns-backend=BIND9_DLZ  --realm='PIPOS.EU'  --site='Default-First-Site-Name'  failed.
Error output: GENSEC backend 'gssapi_spnego' registered
ERROR(ldb): uncaught exception - LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -  <Entry CN=DC01,OU=Domain Controllers,DC=pipos,DC=eu already exists> <>
Error output: GENSEC backend 'gssapi_spnego' registered
ERROR(ldb): uncaught exception - LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -  <Entry CN=DC01,OU=Domain Controllers,DC=pipos,DC=eu already exists> <>
Box::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/sMtZhApi9o.cmd 2> /var/lib/zentyal/tmp/stderr', 'samba-tool domain join pipos.eu DC  --username=\'administrator\'  --workgroup=\'pipos\'  --password=`cat /var/lib/zentyal/tmp/2N62OK`  --server=\'192.168.80.50\'  --dns-backend=BIND9_DLZ  --realm=\'PIPOS.EU\'  --site=\'Default-First-Site-Name\' ', 65280, 'ARRAY(0x87960b0)', 'ARRAY(0x3f08020)') called at /usr/share/perl5/EBox/Sudo.pm line 210
2018/03/13 11:06:14 ERROR> GlobalImpl.pm:661 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: root command samba-tool domain join pipos.eu DC  --username='administrator'  --workgroup='pipos'  --password=`cat /var/lib/zentyal/tmp/2N62OK`  --server='192.168.80.50'  --dns-backend=BIND9_DLZ  --realm='PIPOS.EU'  --site='Default-First-Site-Name'  failed.
2018/03/13 11:06:14 ERROR> GlobalImpl.pm:736 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at The following modules failed while saving their changes, their state is unknown: samba  at /usr/share/perl5/EBox/GlobalImpl.pm line 736

Can someone help me to add this second server to the domain?
/Pelle

Pelle.Hanses

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Error joinin Zentyal 5 server to another Zentyal 5.0 domain
« Reply #1 on: March 13, 2018, 04:09:26 pm »
I found the problem (I think so). I probably had set wrong Netbios name. I did set it to the existing servers Netbiosname. I reinstalled the new server and when joining the domain I set it to the new servers name and all worked well.