Hello, When I run the following command... $ samba-tool dns add dc3 mydomain.com V-INT A 130.130.0.202 ...I get the following error... ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 940, in run raise e ...I could have sworn that used to output a nicer looking line ('Record already exists') with no error. Ubuntu 18.04.4 LTS Python 2.7.17 Version 4.7.6-Ubuntu Thanks, Paully
On 02/03/2020 12:06, Paul Littlefield via samba wrote:> ...I get the following error... > > > ERROR(runtime): uncaught exception - (9711, > 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", > line 176, in _run > ??? return self.run(*args, **kwargs) > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line > 940, in run > ??? raise e > > > ...I could have sworn that used to output a nicer looking line > ('Record already exists') with no error.You are correct, the code that checked if a record already existed was removed at the end of 2016, I have no idea why. Rowland
On 02/03/2020 13:37, Rowland penny via samba wrote:> You are correct, the code that checked if a record already existed was removed at the end of 2016, I have no idea why....so... how much are you shaking your head at me now? :) Is it worth me checking my python setup or those files it mentions? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py" File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py" $ smbclient --version Version 4.7.6-Ubuntu $ apt-cache policy samba samba: Installed: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 Candidate: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 Version table: *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 100 /var/lib/dpkg/status 2:4.7.6+dfsg~ubuntu-0ubuntu2 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages $ python --version $ apt-cache policy python python: Installed: 2.7.15~rc1-1 Candidate: 2.7.15~rc1-1 Version table: *** 2.7.15~rc1-1 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages 100 /var/lib/dpkg/status $ apt-cache policy python3 python3: Installed: 3.6.7-1~18.04 Candidate: 3.6.7-1~18.04 Version table: *** 3.6.7-1~18.04 500 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages 100 /var/lib/dpkg/status 3.6.5-3 500 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages Paully
Your missing important IPV6 fixes samba 4.7x is just to old. You need to upgrade it really. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Paul > Littlefield via samba > Verzonden: maandag 2 maart 2020 14:47 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] DNS add - Python error when record exists > > On 02/03/2020 13:37, Rowland penny via samba wrote: > > You are correct, the code that checked if a record already > existed was removed at the end of 2016, I have no idea why. > > ...so... how much are you shaking your head at me now? :) > > Is it worth me checking my python setup or those files it mentions? > > File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py" > File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py" > > $ smbclient --version > Version 4.7.6-Ubuntu > > $ apt-cache policy samba > samba: > Installed: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 > Candidate: 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 > Version table: > *** 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 500 > 500 http://archive.ubuntu.com/ubuntu > bionic-updates/main amd64 Packages > 500 http://security.ubuntu.com/ubuntu > bionic-security/main amd64 Packages > 100 /var/lib/dpkg/status > 2:4.7.6+dfsg~ubuntu-0ubuntu2 500 > 500 http://archive.ubuntu.com/ubuntu bionic/main > amd64 Packages > > $ python --version > > $ apt-cache policy python > python: > Installed: 2.7.15~rc1-1 > Candidate: 2.7.15~rc1-1 > Version table: > *** 2.7.15~rc1-1 500 > 500 http://archive.ubuntu.com/ubuntu bionic/main > amd64 Packages > 100 /var/lib/dpkg/status > > $ apt-cache policy python3 > python3: > Installed: 3.6.7-1~18.04 > Candidate: 3.6.7-1~18.04 > Version table: > *** 3.6.7-1~18.04 500 > 500 http://archive.ubuntu.com/ubuntu > bionic-updates/main amd64 Packages > 100 /var/lib/dpkg/status > 3.6.5-3 500 > 500 http://archive.ubuntu.com/ubuntu bionic/main > amd64 Packages > > > Paully > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >