Andreas Oster
2018-Oct-19 08:23 UTC
[Samba] after samba update to 4.9 GIT issue with samba-tool dbcheck
Hi all,
I have tried to update one of our samba servers from the currently
installed version 4.8.6 to the latest 4.9git release.
Compilation and installation went through without any errors but when I
do a dbcheck before the initial start of the new version I do get the
following error:
/usr/local/samba/bin/samba-tool dbcheck --cross-ncs --verbose
.......
ERROR(<type 'exceptions.UnicodeEncodeError'>): uncaught exception
-
'ascii' codec can't encode character u'\xfc' in position
302: ordinal
not in range(128)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
line 177, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dbcheck.py",
line 157, in run
controls=controls, attrs=attrs)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
line
221, in check_database
error_count += self.check_object(object.dn, attrs=attrs)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
line
2230, in check_object
error_count += self.check_dn(obj, attrname, syntax_oid)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
line
1139, in check_dn
self.check_duplicate_links(obj, attrname, syntax_oid, linkID,
reverse_link_name)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py",
line
947, in check_duplicate_links
dsdb_dn = dsdb_Dn(self.samdb, val.decode('utf8'), forward_syntax)
File
"/usr/local/samba/lib/python2.7/site-packages/samba/common.py",
line 101, in __init__
self.dn = ldb.Dn(samdb, self.dnstring)
Does anyone have an idea how to fix this ? Is this a bug or a problem
with my linux/python environment ?
Thank you for your kind help.
best regards
Andreas
Rowland Penny
2018-Oct-19 09:06 UTC
[Samba] after samba update to 4.9 GIT issue with samba-tool dbcheck
On Fri, 19 Oct 2018 10:23:09 +0200 Andreas Oster via samba <samba at lists.samba.org> wrote:> Hi all, > > I have tried to update one of our samba servers from the currently > installed version 4.8.6 to the latest 4.9git release. > Compilation and installation went through without any errors but when > I do a dbcheck before the initial start of the new version I do get > the following error: > > /usr/local/samba/bin/samba-tool dbcheck --cross-ncs --verbose > > ....... > ERROR(<type 'exceptions.UnicodeEncodeError'>): uncaught exception - > 'ascii' codec can't encode character u'\xfc' in position 302: ordinal > not in range(128)There is a bug for this: https://bugzilla.samba.org/show_bug.cgi?id=13616 Rowland