Mario Codeniera
2018-Jul-26 03:33 UTC
[Samba] passdb.error: uncaught exception - requested file lock
Hi Can someone give insights please on this issue or solution... ... Importing users ERROR(<class 'passdb.error'>): uncaught exception - Unable to add sam account 'mmcarter', (-1073741739,A requested file lock cannot be granted due to other existing locks.) File "/usr/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 1636, in run useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs) File "/usr/lib64/python2.7/site-packages/samba/upgrade.py", line 803, in upgrade_from_samba3 s4_passdb.add_sam_account(userdata[username]) ldb: A transaction is still active in ldb context [0x555d563d0180] on /var/lib/samba/private/sam.ldb Background: I tried to upgrade our existing server using classicupgrade previously working before with the previous version but because it was pending in a couple of months as working with other projects. Currently using with Samba 4.8.3 in Fedora 28, I don't know if it relates to the previous version (4.7.x, which I used before) as I upgrade the distro. I tried to delete the said account, then another account or machine will appear with the same error up to 10 tries, I stop as kept appearing. As Fedora 28 don't have samba 4.7.x version, will try to recreate the server on a separate machine if this will resolve the issue. Thanks.
Andrew Bartlett
2018-Jul-26 03:49 UTC
[Samba] passdb.error: uncaught exception - requested file lock
On Thu, 2018-07-26 at 15:33 +1200, Mario Codeniera via samba wrote:> > Background: > I tried to upgrade our existing server using classicupgrade previously > working before with the previous version but because it was pending in a > couple of months as working with other projects. > Currently using with Samba 4.8.3 in Fedora 28, I don't know if it relates > to the previous version (4.7.x, which I used before) as I upgrade the > distro. I tried to delete the said account, then another account or machine > will appear with the same error up to 10 tries, I stop as kept appearing. > > As Fedora 28 don't have samba 4.7.x version, will try to recreate the > server on a separate machine if this will resolve the issue.Samba 4.8.3 is fine, but Fedora packaged Ldb 1.4.0 which breaks Samba. ldb 1.4.1 will prevent this from happening at build time, but in the meantime we have an unfortunate situation. Sorry, Andrew Bartlett> Thanks.-- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Development and Support, Catalyst IT https://catalyst.net.nz/services/samba
Mario Codeniera
2018-Jul-26 04:22 UTC
[Samba] passdb.error: uncaught exception - requested file lock
No worries and thank you Andrew, for very informative feedback. At least I know where I will be going. On Thu, Jul 26, 2018 at 3:49 PM, Andrew Bartlett <abartlet at samba.org> wrote:> On Thu, 2018-07-26 at 15:33 +1200, Mario Codeniera via samba wrote: > > > > Background: > > I tried to upgrade our existing server using classicupgrade previously > > working before with the previous version but because it was pending in a > > couple of months as working with other projects. > > Currently using with Samba 4.8.3 in Fedora 28, I don't know if it relates > > to the previous version (4.7.x, which I used before) as I upgrade the > > distro. I tried to delete the said account, then another account or > machine > > will appear with the same error up to 10 tries, I stop as kept appearing. > > > > As Fedora 28 don't have samba 4.7.x version, will try to recreate the > > server on a separate machine if this will resolve the issue. > > Samba 4.8.3 is fine, but Fedora packaged Ldb 1.4.0 which breaks Samba. > > ldb 1.4.1 will prevent this from happening at build time, but in the > meantime we have an unfortunate situation. > > Sorry, > > Andrew Bartlett > > > Thanks. > -- > Andrew Bartlett > https://samba.org/~abartlet/ > Authentication Developer, Samba Team https://samba.org > Samba Development and Support, Catalyst IT > https://catalyst.net.nz/services/samba > > > > >
Seemingly Similar Threads
- classic upgrade error "uncaught exception - Unable to add sam account 'guest', "
- passdb.error: uncaught exception - requested file lock
- samba4 - classicupgrade - problem - passdb.error uncaught exception - Cannot load backend methods for 'ldapsam:ldap://localhost' backend NT_STATUS_CANT_ACCESS_DOMAIN_INFO
- uncaught exception - Unable to get id for sid in classicupgrade
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format