Hello! Any idea? Em 11-06-2016 16:13, Carlos A. P. Cunha escreveu:> > Hello! > > Any idea? > > > Em 10-06-2016 14:29, Carlos A. P. Cunha escreveu: >> Hello! >> >> I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC >> 1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol >> reset", for correct ids, but now is a one error this process: >> >> samba-tool ntacl sysvolreset >> open: error=2 (No such file or directory) >> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error') >> File >> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >> line 175, in _run >> return self.run(*args, **kwargs) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line >> 239, in run >> lp, use_ntvfs=use_ntvfs) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1618, in setsysvolacl >> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >> use_ntvfs, passdb=s4_passdb) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1523, in set_gpos_acl >> passdb=passdb) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1486, in set_dir_acl >> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >> skip_invalid_chown=True, passdb=passdb, service=service) >> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line >> 162, in setntacl >> smbd.set_nt_acl(file, security.SECINFO_OWNER | >> security.SECINFO_GROUP | security.SECINFO_DACL | >> security.SECINFO_SACL, sd, service=service) >> >> One DC 1, is erro in process >> >> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined error') >> File >> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >> line 175, in _run >> return self.run(*args, **kwargs) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line >> 239, in run >> lp, use_ntvfs=use_ntvfs) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1618, in setsysvolacl >> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >> use_ntvfs, passdb=s4_passdb) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1523, in set_gpos_acl >> passdb=passdb) >> File >> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >> line 1486, in set_dir_acl >> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >> skip_invalid_chown=True, passdb=passdb, service=service) >> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", line >> 162, in setntacl >> smbd.set_nt_acl(file, security.SECINFO_OWNER | >> security.SECINFO_GROUP | security.SECINFO_DACL | >> security.SECINFO_SACL, sd, service=service) >> >> >> >> >> >
On 6/14/2016 9:53 AM, Carlos A. P. Cunha wrote:> Hello! > > Any idea? > > > Em 11-06-2016 16:13, Carlos A. P. Cunha escreveu: >> >> Hello! >> >> Any idea? >> >> >> Em 10-06-2016 14:29, Carlos A. P. Cunha escreveu: >>> Hello! >>> >>> I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC >>> 1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol >>> reset", for correct ids, but now is a one error this process: >>> >>> samba-tool ntacl sysvolreset >>> open: error=2 (No such file or directory) >>> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined >>> error') >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >>> line 175, in _run >>> return self.run(*args, **kwargs) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line >>> 239, in run >>> lp, use_ntvfs=use_ntvfs) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1618, in setsysvolacl >>> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >>> use_ntvfs, passdb=s4_passdb) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1523, in set_gpos_acl >>> passdb=passdb) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1486, in set_dir_acl >>> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >>> skip_invalid_chown=True, passdb=passdb, service=service) >>> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", >>> line 162, in setntacl >>> smbd.set_nt_acl(file, security.SECINFO_OWNER | >>> security.SECINFO_GROUP | security.SECINFO_DACL | >>> security.SECINFO_SACL, sd, service=service) >>> >>> One DC 1, is erro in process >>> >>> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined >>> error') >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >>> line 175, in _run >>> return self.run(*args, **kwargs) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", line >>> 239, in run >>> lp, use_ntvfs=use_ntvfs) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1618, in setsysvolacl >>> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >>> use_ntvfs, passdb=s4_passdb) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1523, in set_gpos_acl >>> passdb=passdb) >>> File >>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>> line 1486, in set_dir_acl >>> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >>> skip_invalid_chown=True, passdb=passdb, service=service) >>> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", >>> line 162, in setntacl >>> smbd.set_nt_acl(file, security.SECINFO_OWNER | >>> security.SECINFO_GROUP | security.SECINFO_DACL | >>> security.SECINFO_SACL, sd, service=service) >>> >>> >>> >>> >>> >> >I think you have a issue with your rsync command. Can you post the command you are using? Did you make a backup of your sysvol folder before using rysnc? -- -James
Hello! Rsync: DC1 to DC2 rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/ root at sambadc-02:/opt/samba/var/locks/sysvol &> /dev/null ; ssh root at sambadc-02 '/opt/samba/bin/samba-tool ntacl sysvolreset &> /dev/null' I do not have backup ...... Thanks Em 14-06-2016 11:39, lingpanda101 at gmail.com escreveu:> On 6/14/2016 9:53 AM, Carlos A. P. Cunha wrote: >> Hello! >> >> Any idea? >> >> >> Em 11-06-2016 16:13, Carlos A. P. Cunha escreveu: >>> >>> Hello! >>> >>> Any idea? >>> >>> >>> Em 10-06-2016 14:29, Carlos A. P. Cunha escreveu: >>>> Hello! >>>> >>>> I have two Dcs Samba 4 version 4.4.0, the DC 2 received rsync to DC >>>> 1, ok this SYSVOL, but necessary execute "samba-tool ntacl sysvol >>>> reset", for correct ids, but now is a one error this process: >>>> >>>> samba-tool ntacl sysvolreset >>>> open: error=2 (No such file or directory) >>>> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined >>>> error') >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >>>> line 175, in _run >>>> return self.run(*args, **kwargs) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", >>>> line 239, in run >>>> lp, use_ntvfs=use_ntvfs) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1618, in setsysvolacl >>>> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >>>> use_ntvfs, passdb=s4_passdb) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1523, in set_gpos_acl >>>> passdb=passdb) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1486, in set_dir_acl >>>> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >>>> skip_invalid_chown=True, passdb=passdb, service=service) >>>> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", >>>> line 162, in setntacl >>>> smbd.set_nt_acl(file, security.SECINFO_OWNER | >>>> security.SECINFO_GROUP | security.SECINFO_DACL | >>>> security.SECINFO_SACL, sd, service=service) >>>> >>>> One DC 1, is erro in process >>>> >>>> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined >>>> error') >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >>>> line 175, in _run >>>> return self.run(*args, **kwargs) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/netcmd/ntacl.py", >>>> line 239, in run >>>> lp, use_ntvfs=use_ntvfs) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1618, in setsysvolacl >>>> set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp, >>>> use_ntvfs, passdb=s4_passdb) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1523, in set_gpos_acl >>>> passdb=passdb) >>>> File >>>> "/opt/samba/lib/python2.7/site-packages/samba/provision/__init__.py", >>>> line 1486, in set_dir_acl >>>> setntacl(lp, path, acl, domsid, use_ntvfs=use_ntvfs, >>>> skip_invalid_chown=True, passdb=passdb, service=service) >>>> File "/opt/samba/lib/python2.7/site-packages/samba/ntacls.py", >>>> line 162, in setntacl >>>> smbd.set_nt_acl(file, security.SECINFO_OWNER | >>>> security.SECINFO_GROUP | security.SECINFO_DACL | >>>> security.SECINFO_SACL, sd, service=service) >>>> >>>> >>>> >>>> >>>> >>> >> > > I think you have a issue with your rsync command. Can you post the > command you are using? Did you make a backup of your sysvol folder > before using rysnc? >
On 6/14/2016 10:47 AM, Carlos A. P. Cunha wrote:> > Hello! > > Rsync: > > DC1 to DC2 > > rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/ > root at sambadc-02:/opt/samba/var/locks/sysvol &> /dev/null ; ssh > root at sambadc-02 '/opt/samba/bin/samba-tool ntacl sysvolreset &> /dev/null' > > I do not have backup ...... > > Thanks > > > Em 14-06-2016 11:39, lingpanda101 at gmail.com escreveu: >> I think you have a issue with your rsync command. Can you post the >> command you are using? Did you make a backup of your sysvol folder >> before using rysnc? >On your DC2 can you see if you have the following folder structure? "/opt/samba/var/locks/sysvol/sysvol" Notice the two sysvol folders mentioned above? On DC1 do you have contents in your sysvol folder? -- -James
DC 1 -> ls -l /opt/samba/var/locks/sysvol/sysvol/ ls: cannot access /opt/samba/var/locks/sysvol/sysvol/: No such file or directory ls -l /opt/samba/var/locks/sysvol/ total 8 drwxrwx---+ 4 root 3000000 4096 Jan 4 17:34 mydominio.local DC 2 -> ls -l /opt/samba/var/locks/sysvol/sysvol/ ls: cannot access /opt/samba/var/locks/sysvol/sysvol/: No such file or directory ls -l /opt/samba/var/locks/sysvol/ total 8 drwxrwx---+ 4 root 3000000 4096 Jan 4 17:34 mydominio.local Thanks Em 14-06-2016 12:13, lingpanda101 at gmail.com escreveu:> On 6/14/2016 10:47 AM, Carlos A. P. Cunha wrote: >> >> Hello! >> >> Rsync: >> >> DC1 to DC2 >> >> rsync -XAaz --delete-after /opt/samba/var/locks/sysvol/ >> root at sambadc-02:/opt/samba/var/locks/sysvol &> /dev/null ; ssh >> root at sambadc-02 '/opt/samba/bin/samba-tool ntacl sysvolreset &> >> /dev/null' >> >> I do not have backup ...... >> >> Thanks >> >> >> Em 14-06-2016 11:39, lingpanda101 at gmail.com escreveu: >>> I think you have a issue with your rsync command. Can you post the >>> command you are using? Did you make a backup of your sysvol folder >>> before using rysnc? >> > > On your DC2 can you see if you have the following folder structure? > > "/opt/samba/var/locks/sysvol/sysvol" > > Notice the two sysvol folders mentioned above? > > On DC1 do you have contents in your sysvol folder? > > -- > -James