[Pkg-samba-maint] Bug#963242: samba-tool:uncaught exception - max_update_size() method:bad call flags

Roy Eastwood spindles7-three at yahoo.com
Sun Jun 21 11:36:53 BST 2020


Package: samba
Version: 2:4.11.5+dfsg-1+b1
Severity: important

Dear Maintainer,

A fresh install of Debian Bullseye Alpha 2, no Desktop, 
just ssh server and common tools.   Installed samba and other supporting
packages as follows:

apt-get install acl attr samba samba-dsdb-modules samba-vfs-modules winbind \
krb5-config krb5-user smbclient bind9utils ldb-tools cifs-utils libnss-winbind \
libpam-winbind dnsutils

After editing /etc/hosts, /etc/resolv.conf and /etc/network/interfaces to 
allocate a static IP address and removing the distribution-supplied
/etc/samba/smb.conf, I attempted to provision a new Active Directory DC
using the following command:

samba-tool domain provision --use-rfc2307 --interactive

Instead of prompting with a number of questions to provision the DC,
it produces the error:

ERROR(<class 'SystemError'>): uncaught exception - max_update_size() method:
 bad call flags
  File "/usr/bin/samba-tool", line 44, in <module>
    retval = cmd._run("samba-tool", subcommand, *args)
  File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 235, 
in _run
    return self.subcommands[subcommand]._run(
  File "/usr/lib/python3/dist-packages/samba/netcmd/main.py", line 35, 
in __getitem__
    self[attr] = getattr(__import__('samba.netcmd.%s' % package,
  File "/usr/lib/python3/dist-packages/samba/netcmd/domain.py", line 44, 
in <module>
    from samba.join import join_RODC, join_DC, join_subdomain
  File "/usr/lib/python3/dist-packages/samba/join.py", line 24, in <module>
    from samba import gensec, Ldb, drs_utils, arcfour_encrypt, 
string_to_byte_array

This is reproducable every time.    Just entering samba-tool on a line on
its own produces the above error message.

It is worth noting that after this error I started again and instead of
installing the debian package, I downloaded the source code, installed all 
the dependencies and compiled the latest version of samba (4.12.3)
and it worked OK.

Built in a VM using Oracle's VirtualBox running on Windows 10.

Thanks,

Roy
-- Package-specific info:
* /etc/samba/smb.conf not present
* /var/lib/samba/dhcp.conf not present

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba depends on:
ii  adduser              3.118
ii  dpkg                 1.19.7
ii  init-system-helpers  1.57
ii  libbsd0              0.10.0-1
ii  libc6                2.30-8
ii  libgnutls30          3.6.14-2
ii  libldb2              2:2.0.8-2
ii  libpam-modules       1.3.1-5
ii  libpam-runtime       1.3.1-5
ii  libpopt0             1.16-14
ii  libpython3.8         3.8.3-1
ii  libtalloc2           2.3.0-5
ii  libtasn1-6           4.16.0-2
ii  libtdb1              1.4.2-3+b1
ii  libtevent0           0.10.1-4
ii  libwbclient0         2:4.11.5+dfsg-1+b1
ii  lsb-base             11.1.0
ii  procps               2:3.3.16-5
ii  python3              3.8.2-3
ii  python3-dnspython    1.16.0-2
ii  python3-samba        2:4.11.5+dfsg-1+b1
ii  samba-common         2:4.11.5+dfsg-1
ii  samba-common-bin     2:4.11.5+dfsg-1+b1
ii  samba-libs           2:4.11.5+dfsg-1+b1
ii  tdb-tools            1.4.2-3+b1

Versions of packages samba recommends:
ii  attr                1:2.4.48-5
ii  logrotate           3.16.0-3
ii  python3-markdown    3.2.2-1
ii  samba-dsdb-modules  2:4.11.5+dfsg-1+b1
ii  samba-vfs-modules   2:4.11.5+dfsg-1+b1

Versions of packages samba suggests:
pn  bind9                     <none>
ii  bind9-utils [bind9utils]  1:9.16.4-1
ii  bind9utils                1:9.16.4-1
pn  ctdb                      <none>
ii  ldb-tools                 2:2.0.8-2
pn  ntp | chrony              <none>
pn  smbldap-tools             <none>
pn  ufw                       <none>
ii  winbind                   2:4.11.5+dfsg-1+b1

-- no debconf information



More information about the Pkg-samba-maint mailing list