errors/issues when trying to migrate

Charles Tryon charles.tryon at gmail.com
Fri May 25 11:42:28 MDT 2012


I'm working on a similar issue with groups, only my S3 domain used the tdb
back end, and the /etc/passwd and /etc/group files.  I'm getting similar
error messages with my groups.  My script completes to the end, but there
are no groups created.

On Fri, May 25, 2012 at 10:43 AM, Marc Muehlfeld <
Marc.Muehlfeld at medizinische-genetik.de> wrote:

> Hi,
>
> I'm playing in my test environment with a migration from s3 to the latest
> git version. My s3 is in LDAP and I followed the HowTo.
>
> But I'm having the following issues/errors when running
> # /usr/local/samba/bin/samba-**tool domain samba3upgrade
> --dbdir=/usr/var/locks3/ --use-xattrs=yes --realm=MUC.medizinische-**
> genetik.de <http://MUC.medizinische-genetik.de> /etc/samba/smb3.conf
>
>
>
>
> 1.) 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
>
> It's nothing serious. The script just continues.
>
>
>
>
>
> 2.) Exporting groups
> Ignoring group 'Print Operators' S-1-5-32-550 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring group 'Backup Operators' S-1-5-32-551 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring group 'Replicator' S-1-5-32-552 listed but then not found: Unable
> to enumerate members for alias, (-1073741487,NT_STATUS_NO_**SUCH_ALIAS)
> Ignoring group 'Administrators' S-1-5-32-544 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring 'well known' group 'Guests' (should already be in AD, and have no
> members)
> Ignoring group 'Account Operators' S-1-5-32-548 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring group 'Server Operators' S-1-5-32-549 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring group 'Power Users' S-1-5-32-547 listed but then not found:
> Unable to enumerate members for alias, (-1073741487,NT_STATUS_NO_**
> SUCH_ALIAS)
> Ignoring group 'Users' S-1-5-32-545 listed but then not found: Unable to
> enumerate members for alias, (-1073741487,NT_STATUS_NO_**SUCH_ALIAS)
>
> The script continues, but this groups are all ignored. Any idea why?
>
>
>
>
> 3.) 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 160, in _run
>    return self.run(*args, **kwargs)
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**netcmd/domain.py",
> line 926, in run
>    useeadb=eadb)
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**upgrade.py",
> line 683, 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)
>
> Here the script crashes and stops. The only way to continue, is to delete
> wins.dat. Maybe the script can continue, if the WINS import failes.
>
>
>
>
> 4.) Adding users to groups
> ERROR(<class 'samba.provision.**ProvisioningError'>): uncaught exception
> - ProvisioningError: Could not add member 'S-1-5-21-1362721961-**1801182073-732966438-2996'
> to group 'S-1-5-21-1362721961-**1801182073-732966438-512' as either group
> or user record doesn't exist: Unable to find GUID for DN
>
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**netcmd/__init__.py",
> line 160, in _run
>    return self.run(*args, **kwargs)
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**netcmd/domain.py",
> line 926, in run
>    useeadb=eadb)
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**upgrade.py",
> line 728, in upgrade_from_samba3
>    add_users_to_group(result.**samdb, g, groupmembers[str(g.sid)], logger)
>  File "/usr/local/samba/lib64/**python2.6/site-packages/samba/**upgrade.py",
> line 242, in add_users_to_group
>    raise ProvisioningError("Could not add member '%s' to group '%s' as
> either group or user record doesn't exist: %s" % (member_sid, group.sid,
> emsg))
>
> Here the script crash and stop again.
> S-1-5-21-1362721961-**1801182073-732966438-2996 in LDAP = Administrator
> S-1-5-21-1362721961-**1801182073-732966438-512 in LDAP = Group "Domain
> Admins"
>
> If I delete the user Administator from LDAP, the script run up to the end.
>
>
>
> Regards,
> Marc
>



-- 
    Charles Tryon
_________________________________________________________________________
  “Risks are not to be evaluated in terms of the probability of success,
but in terms of the value of the goal.”
                - Ralph D. Winter


More information about the samba-technical mailing list