Sebastian Neustein
2023-Aug-25 12:10 UTC
[Samba] Crash on "samba-tool domain level raise --domain-level=2016 --forest-level=2016"
> the third instead failed: > >> samba-tool domain level raise --domain-level=2016 --forest-level=2016 >> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' >> object has no attribute 'startswith' >> ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", >> line 279, in _run >> ??? return self.run(*args, **kwargs) >> ?????????? ^^^^^^^^^^^^^^^^^^^^^^^^^ >> ? File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py", >> line 72, in run >> ??? if subcommand == "raise" and not H.startswith("ldap"): >> ???????????????????????????????????? ^^^^^^^^^^^^ > I tried with to take more information with gdb but failed: > > gdb --args /usr/bin/python3 /usr/bin/samba-tool domain level raise > --domain-level=2016 --forest-level=2016 > >> (gdb) run >> Starting program: /usr/bin/python3 /usr/bin/samba-tool domain level >> raise --domain-level=2016 --forest-level=2016 >> [Thread debugging using libthread_db enabled] >> Using host libthread_db library >> "/lib/x86_64-linux-gnu/libthread_db.so.1". >> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType' >> object has no attribute 'startswith' >> ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", >> line 279, in _run >> ??? return self.run(*args, **kwargs) >> ?????????? ^^^^^^^^^^^^^^^^^^^^^^^^^ >> ? File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py", >> line 72, in run >> ??? if subcommand == "raise" and not H.startswith("ldap"): >> ???????????????????????????????????? ^^^^^^^^^^^^ >> [Inferior 1 (process 14932) exited with code 0377] >> (gdb) bt full >> No stack. > If you need more information and I did it wrong? can you tell me what > I need to do please? > > Thanks for any reply and sorry for my bad englishHave you tried doing it step by step: first raise domain level and after that raising the forest level?
Rowland Penny
2023-Aug-25 12:26 UTC
[Samba] Crash on "samba-tool domain level raise --domain-level=2016 --forest-level=2016"
On Fri, 25 Aug 2023 14:10:13 +0200 Sebastian Neustein via samba <samba at lists.samba.org> wrote:> Have you tried doing it step by step: first raise domain level and > after that raising the forest level? >An MR as been opened about this: https://gitlab.com/samba-team/samba/-/merge_requests/3237 Seems someone is reading the list. Rowland