[Samba] samba-tool issue
rpenny at samba.org
Tue Jun 1 15:05:15 UTC 2021
On 01/06/2021 15:40, Rommel Rodriguez Toirac via samba wrote:
> El 31 de mayo de 2021 13:02:42 GMT-04:00, Rowland penny via samba <samba at lists.samba.org> escribió:
>> On 31/05/2021 17:24, Rommel Rodriguez Toirac via samba wrote:
>>> El 31 de mayo de 2021 11:50:22 GMT-04:00, Rowland penny via samba
>> <samba at lists.samba.org> escribió:
>>>> On 31/05/2021 16:17, Rommel Rodriguez Toirac via samba wrote:
>>>>> Hello all;
>>>>> I have some issue with samba4 ADDC in my network. I realized of it
>>>>> When I run the samba- tool command I have this:
>>>>> root at gtmad1 samba]# samba-tool
>>>>> ERROR(<class 'ImportError'>): uncaught exception -
>>>> /usr/local/samba/lib/private/libcli-smb-common-samba4.so: version
>>>> `SAMBA_4.13.2' not found (required by
>>>>> File "/usr/local/samba/bin/samba-tool", line 45, in <module>
>>>>> retval = cmd._run("samba-tool", subcommand, *args)
>>>> line 259, in _run
>>>>> cmd = self.subcommands[cmd_name]
>>>> line 36, in getitem
>>>>> fromlist=['cmd_%s' % attr]),
>>>> line 23, in <module>
>>>>> from samba import provision
>>>> line 76, in <module>
>>>>> from samba.ntacls import setntacl, getntacl, dsacl2fsacl
>>>> 35, in <module>
>>>>> from samba.samba3 import libsmb_samba_internal as libsmb
>>>>> This Server run samba4.14.3
>>>> What red-hat version is this ?
>>>> How did you compile Samba ?
>>>> What packages did you install to compile Samba ?
>>> Thank for write me back;
>>> [root at gtmad1 private]# cat /etc/centos-release
>>> CentOS Linux release 8.3.2011
>>> ./configure --sbindir=/sbin/ --sysconfdir=/etc/samba/
>> --mandir=/usr/share/man/ --with-systemd --systemd-install-services
>> --enable-debug -p -j2
>>> make install
>> I can sort of understand putting the smb.conf in /etc/samba and the man
>> pages in the normal places, but I wouldn't have put some of the
>> in /sbin whilst retaining others under /usr/local/samba , but this is
>> your decision.
>>> dnf install flex
>>> dnf install docbook-style-xsl gcc gdb gnutls-devel gpgme-devel
>> jansson-devel keyutils-libs-devel krb5-workstation libacl-devel
>> libaio-devel libarchive-devel libattr-devel libblkid-devel libtasn1
>> libtasn1-tools libxml2-devel libxslt lmdb-devel openldap-devel
>> pam-devel perl perl-ExtUtils-MakeMaker perl-Parse-Yapp popt-devel
>> python3-cryptography python3-dns python3-gpg python36-devel
>> readline-devel rpcgen systemd-devel tar zlib-devel
>>> dnf install python3-markdown
>> You may not have all the required packages installed, I suggest you
>> download and run this script:
>>> The curious is that it worked well a few days ago.
>>> I think like an system updates broke something... but what?
>> As I do not use Centos, I can only suggest you find how to list all
>> recently installed package updates.
> finally can up to day the repository and run script; it install a lot of packages (looot of packages) and still the problem when run samba- tool command.
> [root at gtmad1 ~]# samba-tool
> ERROR(<class 'ImportError'>): uncaught exception - /usr/local/samba/lib/private/libcli-smb-common-samba4.so: version `SAMBA_4.13.2' not found (required by /usr/local/samba/lib64/python3.6/site-packages/samba/samba3/libsmb_samba_internal.cpython-36m-x86_64-linux-gnu.so)
> File "/usr/local/samba/bin/samba-tool", line 45, in <module>
> retval = cmd._run("samba-tool", subcommand, *args)
> File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/__init__.py", line 259, in _run
> cmd = self.subcommands[cmd_name]
> File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/main.py", line 36, in getitem
> fromlist=['cmd_%s' % attr]),
> File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/delegation.py", line 23, in <module>
> from samba import provision
> File "/usr/local/samba/lib64/python3.6/site-packages/samba/provision/__init__.py", line 76, in <module>
> from samba.ntacls import setntacl, getntacl, dsacl2fsacl
> File "/usr/local/samba/lib64/python3.6/site-packages/samba/ntacls.py", line 35, in <module>
> from samba.samba3 import libsmb_samba_internal as libsmb
> Now that samba4.14.5 is released I can update to this version following your sugection?
> Using the ./configure diferent now in the update than the one used in the installation is possible? (to put all binaries in /usr/local/samba)
If you had to install a lot of packages, then it is highly likely your
self compiled Samba wasn't compiled correctly.
I would set up a new computer, install the required packages to build
Samba and then compile Samba and join this as a new DC. Once you have
the DC running okay, I would then demote the original DC and just use
the new DC.
More information about the samba