Displaying 10 results from an estimated 10 matches for "transaction_cancel".
2024 Jun 25
2
Error when raising Samba 4.19 Functional Level
...at .
./../lib/ldb/ldb_mdb/ldb_mdb.c:203
File "/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/__init__.py",
line 279, in _run
return self. run(*args, **kwargs)
File
"/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/domain/functional_prep.py",
line 137, in run
samdb.transaction_cancel()
*O DC And CN I put X just to not expose the company I work for.
Thanks
Felipe Ribeiro de Oliveira
feliperibeiro.ti at gmail.com
2024 Nov 20
1
samba-tool computer delete does not work
...39;t work like that in python -- they are not transactions,
just a kind of goto-on-error. So the deletion of the original object is
never going to be rolled back, control-C or not.
We *could* make it a transaction, by sprinkling
`samdb.transaction_start()`, `samdb.transaction_commit()`,
`samdb.transaction_cancel()` around in the right places (which could let
control-C cancel the whole thing, but ).
In any case, DNS still looks like the problem.
Douglas
2024 Jun 21
1
Error when raising Samba 4.19 Functional Level
...at .
./../lib/ldb/ldb_mdb/ldb_mdb.c:203
File "/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/__init__.py",
line 279, in _run
return self. run(*args, **kwargs)
File
"/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/domain/functional_prep.py",
line 137, in run
samdb.transaction_cancel()
*O DC And CN I put X just to not expose the company I work for.
Felipe Ribeiro de Oliveira
feliperibeiro.ti at gmail.com
2024 Nov 22
1
samba-tool computer delete does not work
...n -- they are not
> transactions, just a kind of goto-on-error. So the deletion of the
> original object is never going to be rolled back, control-C or not.
>
> We *could* make it a transaction, by sprinkling
> `samdb.transaction_start()`, `samdb.transaction_commit()`,
> `samdb.transaction_cancel()` around in the right places (which could
> let control-C cancel the whole thing, but ).
>
> In any case, DNS still looks like the problem.
>
> Douglas
>
>
Hi Douglas,
Yes, now I stop and really think about it, using 'try' requires
transactions to back out, so I...
2019 Nov 13
2
"samba-tool backup offline" stuck
On 2019-11-13 09:30, Andrew Bartlett wrote:
> Regarding your problem, on linux I use lslocks to debug from here, you
> can normally work out which process is holding the lock, which lock it
> is waiting on (if any, marked with a *) and gdb that to work out what
> is the matter with it, and perhaps why it is in that situation.
Hmm...
I have no lslocks on FreeBSD; will lsof do?
In
2019 Nov 21
0
"samba-tool backup offline" stuck
...#39;.ldb', lp=lp)
> logger.info('Starting transaction on ' + secrets_path)
> secrets_obj.transaction_start()
> self.offline_tdb_copy(secrets_path + '.ldb')
> self.offline_tdb_copy(secrets_path + '.tdb')
> secrets_obj.transaction_cancel()
Could the problem be here?
I'm not attempting to alter this, before understanding it fully, though.
bye & Thanks
av.
2019 Nov 21
1
"samba-tool backup offline" stuck
...; > logger.info('Starting transaction on ' + secrets_path)
> > secrets_obj.transaction_start()
> > self.offline_tdb_copy(secrets_path + '.ldb')
> > self.offline_tdb_copy(secrets_path + '.tdb')
> > secrets_obj.transaction_cancel()
>
> Could the problem be here?
> I'm not attempting to alter this, before understanding it fully, though.
Is tdbbackup the one provided by the Samba build, or an earlier
(system) version?
We had to change the lock behaviour in tdb to make this work, if you
ran an older version it...
2010 May 26
1
Samba4 Patch: newuseradv and newgroupadv scripts for net cmd utlity
Hi all,
As per Jelmer's request - in response to bug #7455 attached diff file.
Please let me know what you think and if any modificationes need to be
performed
Regards
Luk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newusergroupadv.diff
URL:
2024 Jun 26
1
Error when raising Samba 4.19 Functional Level
...c:203
> File "/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/__init__.py",
> line 279, in _run
> return self. run(*args, **kwargs)
> File
> "/usr/lib64/python3.6/site-packages/sernet/samba/netcmd/domain/functional_prep.py",
> line 137, in run
> samdb.transaction_cancel()
we have had this issue at another client earlier and Andr?as here digged
into this issue [1]. There is a compile time constant in LMDB lib that
is too low for large samba Domain.
I think you just have to upgrade LMDB. Looking at your python 3.6 I
guess you are still on CentOS7, then you can...
2024 Nov 20
2
samba-tool computer delete does not work
On Wed, 20 Nov 2024 10:34:39 +0000
Rowland Penny via samba <samba at lists.samba.org> wrote:
> On Wed, 20 Nov 2024 10:35:40 +1300
> Douglas Bagnall via samba <samba at lists.samba.org> wrote:
>
> > On 19/11/24 02:40, Heinz H?lzl via samba wrote:
> > > hi,
> > >
> > > I have to delete about 6000 old machine accounts.
> > >
> >