Author Topic: Zentyal 6.2  (Read 1236 times)

a.chirkov

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Zentyal 6.2
« on: October 13, 2021, 08:34:40 am »
Hi, i configure 2 mouth ago zentyal 6.2 with ad+dns+dhcp. Today after reboot server freeze on this:
Code: [Select]
EBox::DNS::appArmorProfiles - Setting DNS apparmor profilein systemctl status bind9 i see error:
Code: [Select]
окт 13 14:27:25 zentyal named[31555]: samba_dlz: Failed to configure zone '_msdcs.EP.LOC'
окт 13 14:27:25 zentyal named[31555]: loading configuration: already exists
окт 13 14:27:25 zentyal named[31555]: exiting (due to fatal error)
How i can fix it?
/var/lib/bind/db.0.168.192:
Code: [Select]
$ORIGIN .
$TTL 259200 ; 3 days
0.168.192.in-addr.arpa IN SOA zentyal.ep.loc. hostmaster.ep.loc. (
2021080519 ; serial
28800      ; refresh (8 hours)
7200       ; retry (2 hours)
2419200    ; expire (4 weeks)
86400      ; minimum (1 day)
)
NS zentyal.ep.loc.
$ORIGIN 0.168.192.in-addr.arpa.
11 PTR pc1.ep.loc.
110 PTR pc2.ep.loc.
« Last Edit: October 13, 2021, 11:52:41 am by a.chirkov »

a.chirkov

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Zentyal 6.2
« Reply #1 on: October 20, 2021, 07:55:06 am »
Find how to fix bug, but i dont now right now how fix it automatically:
Run command when server freeze on Setting DNS apparmor profile:

Code: [Select]
chgrp bind /var/lib/samba/private/
chmod 750 /var/lib/samba/private/
chgrp bind /var/lib/samba/private/dns.keytab
chmod 640 /var/lib/samba/private/dns.keytab

This problem refer to any fresh install additional DC with version 6.2 or 7.0. Need run this commands after every reboot or zs dns restart!
P.S. Not fixed all. In zentyal.log:
DEBUG> Ldap.pm:219 EBox::Ldap::safeConnect - FATAL: Could not connect to samba LDAP server: connect: Permission denied at FATAL: Could not connect to samba LDAP server: connect: Permission denied at /usr/share/perl5/EBox/Ldap.pm line 219

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: Zentyal 6.2
« Reply #2 on: October 20, 2021, 04:16:44 pm »
Hi,

You could try to reconfigure your DLZ back-end as the below link explains:

* https://wiki.samba.org/index.php/BIND9_DLZ_DNS_Back_End#Reconfiguring_the_BIND9_DLZ_Back_End

If that doesn't fix the issue, paste me the result of the following commands:

Code: [Select]
ls -lad /var/lib/samba/
ls -la /var/lib/samba/

Also, did you analyze the following log files?

* /var/log/syslog
* /var/log/zentyal/zentyal.log

Hope it helps you.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

a.chirkov

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Zentyal 6.2
« Reply #3 on: October 28, 2021, 01:23:19 pm »
Hi,
reconfigure DLZ not help me.
I analyze syslog and zentyal.log all error from first message of them. There are no more helpful messages in this logs.
Code: [Select]
$ ls -lad /var/lib/samba/
drwxr-xr-x 9 root root 4096 окт 13 14:10 /var/lib/samba/
Code: [Select]
ls -la /var/lib/samba/
total 1444
drwxr-xr-x  9 root root            4096 окт 13 14:10 .
drwxr-xr-x 47 root root            4096 сен  8 12:36 ..
-rw-------  1 root root          421888 июл 21 13:46 account_policy.tdb
drwxr-xr-x  2 root root            4096 июл 23 10:24 etc
-rw-------  1 root root             696 июл 21 13:46 group_mapping.tdb
drwxr-x---  2 root ntp             4096 окт 13 14:10 ntp_signd
drwxr-xr-x 10 root root            4096 июл 21 13:44 printers
drwxr-xr-x  8 root root            4096 окт 28 16:19 private
-rw-------  1 root root          528384 июл 21 13:46 registry.tdb
-rw-------  1 root root          421888 июл 21 13:46 share_info.tdb
drwxr-xr-x  3 root root            4096 июл 21 13:53 sysvol
drwxrwx--T  2 root sambashare      4096 июл 21 13:46 usershares
-rw-------  1 root root           65536 окт 28 16:18 winbindd_cache.tdb
drwxr-x---  2 root winbindd_priv   4096 окт 13 14:10 winbindd_privileged
Thanks!