You are not logged in.

#1 2013-04-22 03:40:45

ridley
Member
Registered: 2004-03-05
Posts: 19

I don't understand this error on the Samba upgrade tool

Upgrading to Samba 4 using the built-in tool (as per the Samba Wiki) and I got this error I don't understand:

[root@server ~]# /usr/bin/samba-tool domain classicupgrade --dbdir=/etc/samba/private/passdb.tdb --use-xattrs=yes /etc/samba/smb.conf
Reading smb.conf
Provisioning
ERROR(<class 'samba.provision.ProvisioningError'>): uncaught exception - ProvisioningError: Could not open '/etc/samba/private/passdb.tdb/secrets.tdb', the Samba3 secrets database: [Errno 20] Not a directory.  Perhaps you specified the incorrect smb.conf, --testparm or --dbdir option?
  File "/usr/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/samba/netcmd/domain.py", line 1318, in run
    useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)
  File "/usr/lib/python2.7/site-packages/samba/upgrade.py", line 575, in upgrade_from_samba3
    raise ProvisioningError("Could not open '%s', the Samba3 secrets database: %s.  Perhaps you specified the incorrect smb.conf, --testparm or --dbdir option?" % (samba3.privatedir_path("secrets.tdb"), str(e)))

Looks like it is trying to copy over my passwords and configuration. Maybe I should attempt this by hand..? It would be nice if I could get this tool to work.


this space for rent

Offline

#2 2013-04-22 03:56:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: I don't understand this error on the Samba upgrade tool

I just did it by hand.  I just readded users with pdbedit or whatever that tool is, and reconficured with the new sample config, and it all works fine.  But I don't use the new AD DC stuff, as it is a *nix only environment that it runs.

Offline

Board footer

Powered by FluxBB