[Samba] uncaught exception - 'NoneType' object has no attribute 'get'

Andrew Bartlett abartlet at samba.org
Mon Jun 4 18:01:12 MDT 2012


On Mon, 2012-06-04 at 15:40 +0200, Marc Muehlfeld wrote:
> Hi,
> 
> I started with a fresh testing environment for s4 and when I do the migration, 
> it breaks:
> 
> 
> # /usr/local/samba/bin/samba-tool domain samba3upgrade --dbdir=/usr/var/locks/ 
> --use-xattrs=yes --realm=MUC.medizinische-genetik.de /etc/samba/smb3.conf
> no talloc stackframe around, leaking memory
> Reading smb.conf
> Provisioning
> Exporting account policy
> Exporting groups
> Exporting users
> Next rid = 17062
> ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'NoneType' 
> object has no attribute 'get'
>    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 675, in upgrade_from_samba3
>      useeadb=useeadb, dns_backend=dns_backend)
>    File 
> "/usr/local/samba/lib64/python2.6/site-packages/samba/provision/__init__.py", 
> line 1666, in provision
>      file = 
> tempfile.NamedTemporaryFile(dir=os.path.abspath(os.path.dirname(lp.get("private dir"))))
> 
> 
> I used the latest git version (4.0.0alpha22-GIT-0110623).
> 
> Any idea what's wrong?

Try these patches, which should make it into beta1.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-provision-Place-xattr.tdb-in-the-actual-state-dir.patch
Type: text/x-patch
Size: 2801 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20120605/07baf403/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s4-provision-Test-for-posix-ACLs-in-the-actual-sysvo.patch
Type: text/x-patch
Size: 2494 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba/attachments/20120605/07baf403/attachment-0001.bin>


More information about the samba mailing list