samba4 migration problems
Marc Muehlfeld
Marc.Muehlfeld at medizinische-genetik.de
Tue Apr 10 05:14:00 MDT 2012
Hi,
I try to setup samba4 in my test environment and currently do the samba3->4
migration by following
http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO. But I'm having
trouble at the "samba-tool domain samba3upgrade..." command:
First it crashes here:
tdb(/usr/var/locks3/gencache.tdb):Corrupt database: Record offset 696 has
incorrect hash
gencache_init: tdb_check(/usr/var/locks3/gencache.tdb) failed - retry after
truncate
To workaround this, I removed the gencache.tdb. Is this file required to migrate?
Then it crashes on every well known SID
(http://support.microsoft.com/kb/243330) starting with SID S-1-5-32-* like
"Print Operators", "Users", etc:
ERROR(<class 'passdb.error'>): uncaught exception - Unable to enumerate
members for alias, (-1073741487,NT_STATUS_NO_SUCH_ALIAS)
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py",
line 162, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", line
925, in run
useeadb=eadb)
File "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py",
line 552, in upgrade_from_samba3
members = s3db.enum_aliasmem(group.sid)
To temp. ship around this problem, I removed all groups starting with
S-1-5-32-*. Now it continues, but finally breaks on wins.dat:
Importing WINS database
ERROR(<type 'exceptions.ValueError'>): uncaught exception - invalid literal
for int() with base 16: ''
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py",
line 162, in _run
return self.run(*args, **kwargs)
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", line
925, in run
useeadb=eadb)
File "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py",
line 653, in upgrade_from_samba3
samba3_winsdb = samba3.get_wins_db()
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/samba3/__init__.py",
line 399, in get_wins_db
return WinsDatabase(self.statedir_path("wins.dat"))
File
"/usr/local/samba/lib64/python2.6/site-packages/samba/samba3/__init__.py",
line 333, in __init__
nb_flags = int(entries[i][:-1], 16)
I tried alpha18 and the git version from 04/09/2012.
Any idea what is wrong and how I can fix it?
Regards,
Marc
More information about the samba-technical
mailing list