Fails at command “/etc/e-smith/events/pre-backup-config/S40nethserver-dc-pre-backup”
Failed to insert into /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MYDOMAIN,DC=LAN.ldb.bak.tmp
failed to copy /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MYDOMAIN,DC=LAN.ldb
The /var/lib/samba/private/sam.ldb.d, I tried creating it and no difference
I think it’s /var/lib/samba/private/sam.ldb.d in the NethServer DC container so please check /var/lib/machines/nsdc/var/lib/samba/private/sam.ldb.d, here’s an example of my server:
[root@server2 ~]# ls -l /var/lib/machines/nsdc/var/lib/samba/private/sam.ldb.d/
total 57132
-rw------- 1 root root 18923520 Oct 8 22:30 CN=CONFIGURATION,DC=AD,DC=MRMARKUZ,DC=DOMAIN,DC=EU.ldb
-rw------- 1 root root 21942272 Oct 8 22:30 CN=SCHEMA,CN=CONFIGURATION,DC=AD,DC=MRMARKUZ,DC=DOMAIN,DC=EU.ldb
-rw------- 1 root root 6750208 Dec 3 18:26 DC=AD,DC=MRMARKUZ,DC=DOMAIN,DC=EU.ldb
-rw------- 1 root root 6737920 Nov 28 10:57 DC=DOMAINDNSZONES,DC=AD,DC=MRMARKUZ,DC=DOMAIN,DC=EU.ldb
-rw------- 1 root root 3317760 Nov 28 10:57 DC=FORESTDNSZONES,DC=AD,DC=MRMARKUZ,DC=DOMAIN,DC=EU.ldb
-rw-r----- 1 root root 831488 Dec 2 13:07 metadata.tdb
EDIT:
Did you already test the config backup on command line:
I have not updated nethserver-dc, as if I do, it deletes all of my users and groups.
I reverted my VM and have tried a couple of times to update, always deletes the users and groups.
I was going to try and do a config backup, then update nethserver-dc and then restore, and that is when I noticed it was not working.
I opened a seperate issue for nethserver-dc udpate here;
Just if you missed it (like I did), take into account that it’s reporting a path inside the container (that means you have to look for it using nsdc-run command, systemd-run -M nsdc -t /bin/bash or at /var/lib/machines/nsdc/var/lib/samba/private/sam.ldb.d/...).
EDIT: nevermind, I see Markus already reported the same.
What happens after running (check for your *.ldb.bak and logs):
nethserver-backup-config fixes an error with the new nethserver-dc so maybe you need to downgrade nethserver-backup-config to make it work with the old nethserver-dc.