Rowland Penny
2018-Sep-16 15:22 UTC
[Samba] ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
On Sun, 16 Sep 2018 10:51:25 -0400 Bill Baird via samba <samba at lists.samba.org> wrote:> I ran the same thing with 4.8.5 and it work without any issues: > > Adding groups > Importing groups > Committing 'add groups' transaction to disk > Adding users > Importing users > Committing 'add users' transaction to disk > Adding users to groups > Committing 'add users to groups' transaction to disk > > > On Sun, Sep 16, 2018 at 10:29 AM Bill Baird <Bill.Baird at phoenixmi.com> > wrote: > > > Hi All, > > > > Attempting to do a classicupgrade and getting this error: > > > > *Adding groups* > > *Importing groups* > > *Committing 'add groups' transaction to disk* > > *Adding users* > > *Importing users* > > *Adding users to groups* > > *Committing 'add users to groups' transaction to disk* > > *ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero > > length field name in format* > > * File > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", > > line 177, in _run* > > * return self.run(*args, **kwargs)* > > * File > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", > > line 1681, in run* > > * useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)* > > * File > > "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py", > > line 845, in upgrade_from_samba3* > > * result.names.domaindn, result.lp, use_ntvfs)* > > * File > > "/usr/local/samba/lib64/python2.6/site-packages/samba/provision/__init__.py", > > line 1693, in setsysvolacl* > > * userdn = '<SID={}-{}>'.format(domainsid, > > security.DOMAIN_RID_ADMINISTRATOR)* > >The answer is staring you in the face ;-) python2.6 isn't new enough for: '<SID={}-{}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) It would have to be: '<SID={0}-{1}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) Or: '<SID=%s-%s>' % (domainsid,security.DOMAIN_RID_ADMINISTRATOR) What is your OS ? Rowland
Bill Baird
2018-Sep-16 15:28 UTC
[Samba] ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
Python is 2.6, but why wouldn't it throw an error during configure/make? I'm using Amazon Linux. On Sun, Sep 16, 2018 at 11:22 AM Rowland Penny via samba < samba at lists.samba.org> wrote:> On Sun, 16 Sep 2018 10:51:25 -0400 > Bill Baird via samba <samba at lists.samba.org> wrote: > > > I ran the same thing with 4.8.5 and it work without any issues: > > > > Adding groups > > Importing groups > > Committing 'add groups' transaction to disk > > Adding users > > Importing users > > Committing 'add users' transaction to disk > > Adding users to groups > > Committing 'add users to groups' transaction to disk > > > > > > On Sun, Sep 16, 2018 at 10:29 AM Bill Baird <Bill.Baird at phoenixmi.com> > > wrote: > > > > > Hi All, > > > > > > Attempting to do a classicupgrade and getting this error: > > > > > > *Adding groups* > > > *Importing groups* > > > *Committing 'add groups' transaction to disk* > > > *Adding users* > > > *Importing users* > > > *Adding users to groups* > > > *Committing 'add users to groups' transaction to disk* > > > *ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero > > > length field name in format* > > > * File > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", > > > line 177, in _run* > > > * return self.run(*args, **kwargs)* > > > * File > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", > > > line 1681, in run* > > > * useeadb=eadb, dns_backend=dns_backend, use_ntvfs=use_ntvfs)* > > > * File > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py", > > > line 845, in upgrade_from_samba3* > > > * result.names.domaindn, result.lp, use_ntvfs)* > > > * File > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/provision/__init__.py", > > > line 1693, in setsysvolacl* > > > * userdn = '<SID={}-{}>'.format(domainsid, > > > security.DOMAIN_RID_ADMINISTRATOR)* > > > > > The answer is staring you in the face ;-) > > python2.6 isn't new enough for: > > '<SID={}-{}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > It would have to be: > > '<SID={0}-{1}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > Or: > > '<SID=%s-%s>' % (domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > What is your OS ? > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- *Bill Baird* Chief Technology Officer Office: 845-876-8228 x311 Mobile: 203-545-0437 www.phoenixmi.com *To create an IT ticket, please email itsupport at phoenixmi.com <itsupport at phoenixmi.com> or call 845-943-4222.* -- -- This electronic message, including its attachments (if any), is CONFIDENTIAL and may contain PROPRIETARY or LEGALLY PRIVILEGED information. If you are not the intended recipient, you are hereby notified that any use, disclosure, copying, or distribution of this message, its attachments, or any of the information included therein, is unauthorized and strictly prohibited. If you have received this message in error, please immediately notify the sender by reply e-mail and permanently delete this message and its attachments, along with any copies thereof.
Rowland Penny
2018-Sep-16 15:36 UTC
[Samba] ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
On Sun, 16 Sep 2018 11:28:56 -0400 Bill Baird <Bill.Baird at phoenixmi.com> wrote:> Python is 2.6, but why wouldn't it throw an error during > configure/make?No, the python code isn't compiled.> > I'm using Amazon Linux.Would you like to raise a bug report ? Here: https://bugzilla.samba.org/ Rowland> > On Sun, Sep 16, 2018 at 11:22 AM Rowland Penny via samba < > samba at lists.samba.org> wrote: > > > On Sun, 16 Sep 2018 10:51:25 -0400 > > Bill Baird via samba <samba at lists.samba.org> wrote: > > > > > I ran the same thing with 4.8.5 and it work without any issues: > > > > > > Adding groups > > > Importing groups > > > Committing 'add groups' transaction to disk > > > Adding users > > > Importing users > > > Committing 'add users' transaction to disk > > > Adding users to groups > > > Committing 'add users to groups' transaction to disk > > > > > > > > > On Sun, Sep 16, 2018 at 10:29 AM Bill Baird > > > <Bill.Baird at phoenixmi.com> wrote: > > > > > > > Hi All, > > > > > > > > Attempting to do a classicupgrade and getting this error: > > > > > > > > *Adding groups* > > > > *Importing groups* > > > > *Committing 'add groups' transaction to disk* > > > > *Adding users* > > > > *Importing users* > > > > *Adding users to groups* > > > > *Committing 'add users to groups' transaction to disk* > > > > *ERROR(<type 'exceptions.ValueError'>): uncaught exception - > > > > zero length field name in format* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", > > > > line 177, in _run* > > > > * return self.run(*args, **kwargs)* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", > > > > line 1681, in run* > > > > * useeadb=eadb, dns_backend=dns_backend, > > > > use_ntvfs=use_ntvfs)* > > > > * File > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/upgrade.py", > > > > line 845, in upgrade_from_samba3* > > > > * result.names.domaindn, result.lp, use_ntvfs)* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site-packages/samba/provision/__init__.py", > > > > line 1693, in setsysvolacl* > > > > * userdn = '<SID={}-{}>'.format(domainsid, > > > > security.DOMAIN_RID_ADMINISTRATOR)* > > > > > > > > The answer is staring you in the face ;-) > > > > python2.6 isn't new enough for: > > > > '<SID={}-{}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > It would have to be: > > > > '<SID={0}-{1}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > Or: > > > > '<SID=%s-%s>' % (domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > What is your OS ? > > > > Rowland > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > >
Samba's declared minimum python version in 2.6, and we have in the past made great efforts to continue to support Python 2.6. However, Python 2.6 is very old, and neither developers nor our CI infrastructure (Ubuntu 14.04) runs it, so things like this happen without us noticing the consequences. Sadly this isn't the first major release we had made that contained such an incompatibility. So, while this is likely to be fixed in a patch version, the next major version of Samba will likely formally require Python 2.7, or if I can get consensus, 3.6. (As the whole Python2 suite is going unsupported in less than two years). Andrew Bartlett On Sun, 2018-09-16 at 11:28 -0400, Bill Baird via samba wrote:> Python is 2.6, but why wouldn't it throw an error during > configure/make? > > I'm using Amazon Linux. > > On Sun, Sep 16, 2018 at 11:22 AM Rowland Penny via samba < > samba at lists.samba.org> wrote: > > > > > On Sun, 16 Sep 2018 10:51:25 -0400 > > Bill Baird via samba <samba at lists.samba.org> wrote: > > > > > > > > I ran the same thing with 4.8.5 and it work without any issues: > > > > > > Adding groups > > > Importing groups > > > Committing 'add groups' transaction to disk > > > Adding users > > > Importing users > > > Committing 'add users' transaction to disk > > > Adding users to groups > > > Committing 'add users to groups' transaction to disk > > > > > > > > > On Sun, Sep 16, 2018 at 10:29 AM Bill Baird <Bill.Baird at phoenixmi > > > .com> > > > wrote: > > > > > > > > > > > Hi All, > > > > > > > > Attempting to do a classicupgrade and getting this error: > > > > > > > > *Adding groups* > > > > *Importing groups* > > > > *Committing 'add groups' transaction to disk* > > > > *Adding users* > > > > *Importing users* > > > > *Adding users to groups* > > > > *Committing 'add users to groups' transaction to disk* > > > > *ERROR(<type 'exceptions.ValueError'>): uncaught exception - > > > > zero > > > > length field name in format* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site- > > packages/samba/netcmd/__init__.py", > > > > > > > > > > > line 177, in _run* > > > > * return self.run(*args, **kwargs)* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site- > > packages/samba/netcmd/domain.py", > > > > > > > > > > > line 1681, in run* > > > > * useeadb=eadb, dns_backend=dns_backend, > > > > use_ntvfs=use_ntvfs)* > > > > * File > > > > "/usr/local/samba/lib64/python2.6/site- > > > > packages/samba/upgrade.py", > > > > line 845, in upgrade_from_samba3* > > > > * result.names.domaindn, result.lp, use_ntvfs)* > > > > * File > > > > > > "/usr/local/samba/lib64/python2.6/site- > > packages/samba/provision/__init__.py", > > > > > > > > > > > line 1693, in setsysvolacl* > > > > * userdn = '<SID={}-{}>'.format(domainsid, > > > > security.DOMAIN_RID_ADMINISTRATOR)* > > > > > > The answer is staring you in the face ;-) > > > > python2.6 isn't new enough for: > > > > '<SID={}-{}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > It would have to be: > > > > '<SID={0}-{1}>'.format(domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > Or: > > > > '<SID=%s-%s>' % (domainsid,security.DOMAIN_RID_ADMINISTRATOR) > > > > What is your OS ? > > > > Rowland > > > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > > > -- > *Bill Baird* > Chief Technology Officer > Office: 845-876-8228 x311 > Mobile: 203-545-0437 > www.phoenixmi.com > *To create an IT ticket, please email itsupport at phoenixmi.com > <itsupport at phoenixmi.com> or call 845-943-4222.* > > -- > -- > This electronic message, including its attachments (if any), is > CONFIDENTIAL and may contain PROPRIETARY or LEGALLY PRIVILEGED > information. > If you are not the intended recipient, you are hereby notified that > any > use, disclosure, copying, or distribution of this message, its > attachments, > or any of the information included therein, is unauthorized and > strictly > prohibited. If you have received this message in error, please > immediately > notify the sender by reply e-mail and permanently delete this message > and > its attachments, along with any copies thereof. > >-- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Possibly Parallel Threads
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- ClassicUpgrade: ERROR(<type 'exceptions.ValueError'>): uncaught exception - zero length field name in format
- kpasswd_samdb_set_password: domain\user (S-...) is changing password of user@domain