Author Topic: Configuration backup error. samba  (Read 627 times)

AxetNord

  • Zen Monk
  • **
  • Posts: 78
  • Karma: +1/-0
    • View Profile
Configuration backup error. samba
« on: August 03, 2018, 03:57:56 pm »
hi.
I get an error when I try to make a backup configuration.

Zentyal ver. 5.1.1
Domain Controller and File Sharing ver. 5.1.2
Quote
Some error has happened in Zentyal:

root command set -e
rm '/var/lib/samba/private/hklm.ldb.bak'
rm '/var/lib/samba/private/idmap.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.bak'
rm '/var/lib/samba/private/share.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/privilege.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak'
rm '/var/lib/samba/private/secrets.ldb.bak'
rm '/var/lib/samba/private/sam.ldb.d/metadata.tdb.bak'
tdbbackup '/var/lib/samba/private/secrets.ldb' chown 0:0 /var/lib/samba/private/secrets.ldb.bak chmod 0600 /var/lib/samba/private/secrets.ldb.bak
tdbbackup '/var/lib/samba/private/privilege.ldb' chown 0:0 /var/lib/samba/private/privilege.ldb.bak chmod 0600 /var/lib/samba/private/privilege.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/idmap.ldb' chown 0:0 /var/lib/samba/private/idmap.ldb.bak chmod 0600 /var/lib/samba/private/idmap.ldb.bak
tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=MAILNOVO,DC=LOCAL.ldb.bak
tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=MAILNOVO,DC=LOCAL.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.bak
tdbbackup '/var/lib/samba/private/share.ldb' chown 0:0 /var/lib/samba/private/share.ldb.bak chmod 0600 /var/lib/samba/private/share.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.bak
tdbbackup '/var/lib/samba/private/hklm.ldb' chown 0:0 /var/lib/samba/private/hklm.ldb.bak chmod 0600 /var/lib/samba/private/hklm.ldb.bak
tdbbackup '/var/lib/samba/private/sam.ldb.d/metadata.tdb' chown 0:119 /var/lib/samba/private/sam.ldb.d/metadata.tdb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/metadata.tdb.bak
tdbbackup '/var/lib/samba/private/netlogon_creds_cli.tdb' chown 0:0 /var/lib/samba/private/netlogon_creds_cli.tdb.bak chmod 0606 /var/lib/samba/private/netlogon_creds_cli.tdb.bak
tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/metadata.tdb' chown 0:119 /var/lib/samba/private/dns/sam.ldb.d/metadata.tdb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/metadata.tdb.bak
tdbbackup '/var/lib/samba/private/secrets.tdb' chown 0:0 /var/lib/samba/private/secrets.tdb.bak chmod 0600 /var/lib/samba/private/secrets.tdb.bak
tdbbackup '/var/lib/samba/private/schannel_store.tdb' chown 0:0 /var/lib/samba/private/schannel_store.tdb.bak chmod 0600 /var/lib/samba/private/schannel_store.tdb.bak
rm -rf /var/lib/zentyal/tmp//samba.backup mkdir -p /var/lib/zentyal/tmp//samba.backup/private rsync -HAXavz /var/lib/samba/private// --exclude=*.tdb --exclude=*.ldb --exclude=ldap_priv --exclude=smbd.tmp --exclude=ldapi /var/lib/zentyal/tmp//samba.backup/private tar pcjf /var/lib/zentyal/conf//backup.JyeMdW/aux/samba.bak/private.tar.bz2 --hard-dereference -C /var/lib/zentyal/tmp//samba.backup private
rm -rf /var/lib/zentyal/tmp//samba.backup mkdir -p /var/lib/zentyal/tmp//samba.backup/sysvol rsync -HAXavz /var/lib/samba/sysvol/ /var/lib/zentyal/tmp//samba.backup/sysvol tar pcjf /var/lib/zentyal/conf//backup.JyeMdW/aux/samba.bak/sysvol.tar.bz2 --hard-dereference -C /var/lib/zentyal/tmp//samba.backup sysvol failed. Error output: Command output: tdb_mutex_open_ok[/var/lib/samba/private/netlogon_creds_cli.tdb]: Can use mutexes only with MUTEX_LOCKING or NOLOCK Failed to open /var/lib/samba/private/netlogon_creds_cli.tdb . Exit value: 1

How i can fix this?

Еhank you in advance.
« Last Edit: August 03, 2018, 04:04:38 pm by AxetNord »