Fw: samba_upgradedns - error

Suresh Kumar sureshkumar at pineapple-india.com
Thu Apr 5 00:47:21 MDT 2012


Dear Amitay,

I hope the replication not happening from Samba4 to Windows 2003, I have 
attached file for easy reference

thansk
Suresh
----- Original Message ----- 
From: "Suresh Kumar" <sureshkumar at pineapple-india.com>
To: <samba-technical at lists.samba.org>
Sent: Wednesday, April 04, 2012 10:38 AM
Subject: Re: Fw: samba_upgradedns - error


> Dear Amitay,
>
> "you can create the
> private/dns directory and the copy of samdb for running BIND by
> running samba_upgradedns."
>
> while running samba_upgradedns i get this error
>
> Traceback (most recent call last):
>>>>>>> File "/usr/local/samba/sbin/samba_upgradedns", line 406, in <module>
>>>>>>> "msDS-hasMasterNCs")
>>>>>>> _ldb.LdbError: (1, 'Operations error')
>
> Regards
> suresh
>
> ----- Original Message ----- 
> From: "Amitay Isaacs" <amitay at gmail.com>
> To: "Suresh Kumar" <sureshkumar at pineapple-india.com>
> Cc: <samba-technical at lists.samba.org>
> Sent: Wednesday, April 04, 2012 6:45 AM
> Subject: Re: Fw: samba_upgradedns - error
>
>
> Hi Suresh,
>
> On Wed, Apr 4, 2012 at 12:32 AM, Suresh Kumar
> <sureshkumar at pineapple-india.com> wrote:
>> Dear Michael,
>>
>> Pls find below, any suggestion pls
>>
>> [root at stgdc samba-master]# git log master ^origin/master
>> commit 081875da277e38dd4f78924fc0f73248be232b75
>> Merge: 03db15d c7a3b8a
>> Author: root <root at stgdc.(none)>
>> Date: Tue Apr 3 08:49:30 2012 +0530
>>
>> Merge branch 'master' of git://git.samba.org/samba
>>
>> commit 03db15dfde82881a7dca7c6d865e593acef1406b
>> Merge: 0aacdbf 7273715
>> Author: root <root at stgdc.(none)>
>> Date: Tue Apr 3 08:48:44 2012 +0530
>>
>> Merge branch 'dns-wip' of git://git.samba.org/amitay/samba
>>
>> commit 7273715773513e91ae9ce97939b5f1c3aa49f166
>> Author: Amitay Isaacs <amitay at gmail.com>
>> Date: Wed Mar 28 17:49:09 2012 +1100
>>
>> s4-upgradedns: Make sure the attribute exists before accessing it
>> [root at stgdc samba-master]# git remote -v
>> origin git://git.samba.org/samba.git (fetch)
>> origin git://git.samba.org/samba.git (push)
>
> Looks like you merged my dns-wip branch at some point. I would suggest
> you  reset your branch to the git master tree, since all my changes
> are already in the master tree.
>
> git reset --hard origin/master
>
>
>>
>>
>> ----- Original Message ----- From: "Michael Wood" <esiotrot at gmail.com>
>>
>> To: "Suresh Kumar" <sureshkumar at pineapple-india.com>
>> Cc: <samba-technical at lists.samba.org>
>> Sent: Tuesday, April 03, 2012 5:35 PM
>> Subject: Re: Fw: samba_upgradedns - error
>>
>>
>>
>>> Hi Suresh
>>>
>>> On 3 April 2012 13:49, Suresh Kumar <sureshkumar at pineapple-india.com>
>>> wrote:
>>>>
>>>> Dear Amitay,
>>>>
>>>> Pls find the verison samba-4.0.0alpha18-670-g081875d, and i want to run
>>>> as
>>>
>>>
>>> It seems you might have some locally patched version of Samba?
>>>
>>> Try this:
>>>
>>> git log master ^origin/master
>>>
>>> That should show any commits in your local tree that are not in the
>>> official Samba tree.
>>>
>>> If that shows nothing, then try:
>>>
>>> git remote -v
>>>
>>> That should show what remote repositories are defined which might give
>>> us a clue :)
>>>
>>>> backup dns server and the dns folder not created,
>>>> I hope once if run this samba_upgradedns command then only the folders
>>>> will
>>>> be created?
>>>>
>>>> regards
>>>> Suresh
>
> When you join a samba DC in existing domain, the DNS partitions will
> be created once the replication starts. Try to start samba with -d2
> (debug level 2) and check if the DNS data gets replicated to this DC.
> Once you know that the partitions are created, you can create the
> private/dns directory and the copy of samdb for running BIND by
> running samba_upgradedns.
>
>>>>
>>>>
>>>>>> ----- Original Message ----- From: "Amitay Isaacs" <amitay at gmail.com>
>>>>>> To: "Suresh Kumar" <sureshkumar at pineapple-india.com>
>>>>>> Cc: <samba-technical at lists.samba.org>
>>>>>> Sent: Tuesday, April 03, 2012 11:17 AM
>>>>>> Subject: Re: samba_upgradedns - error
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 3, 2012 at 2:23 PM, Suresh Kumar
>>>>>> <sureshkumar at pineapple-india.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Dear Amitay,
>>>>>>>
>>>>>>> I have
>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have git clone Version 4.0.0alpha19-GIT-081875d and git pull the
>>>>>>> latest update. Ihave successfully joined domain and when i run
>>>>>>> samba_upgradedns i get the following error:
>>>>>>>
>>>>>>> [root at stgdc samba-master]# samba_upgradedns -d5
>>>>>>> INFO: Current debug levels:
>>>>>>> all: 5
>>>>>>> tdb: 5
>>>>>>> printdrivers: 5
>>>>>>> lanman: 5
>>>>>>> smb: 5
>>>>>>> rpc_parse: 5
>>>>>>> rpc_srv: 5
>>>>>>> rpc_cli: 5
>>>>>>> passdb: 5
>>>>>>> sam: 5
>>>>>>> auth: 5
>>>>>>> winbind: 5
>>>>>>> vfs: 5
>>>>>>> idmap: 5
>>>>>>> quota: 5
>>>>>>> acls: 5
>>>>>>> locking: 5
>>>>>>> msdfs: 5
>>>>>>> dmapi: 5
>>>>>>> registry: 5
>>>>>>> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
>>>>>>> params.c:pm_process() - Processing configuration file
>>>>>>> "/usr/local/samba/etc/smb.conf"
>>>>>>> Processing section "[global]"
>>>>>>> Processing section "[netlogon]"
>>>>>>> Processing section "[sysvol]"
>>>>>>> pm_process() returned Yes
>>>>>>> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
>>>>>>> params.c:pm_process() - Processing configuration file
>>>>>>> "/usr/local/samba/etc/smb.conf"
>>>>>>> Processing section "[global]"
>>>>>>> Processing section "[netlogon]"
>>>>>>> Processing section "[sysvol]"
>>>>>>> pm_process() returned Yes
>>>>>>> Reading domain information
>>>>>>> lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
>>>>>>> params.c:pm_process() - Processing configuration file
>>>>>>> "/usr/local/samba/etc/smb.conf"
>>>>>>> Processing section "[global]"
>>>>>>> Processing section "[netlogon]"
>>>>>>> Processing section "[sysvol]"
>>>>>>> pm_process() returned Yes
>>>>>>> schema_fsmo_init: we are master[yes] updates allowed[no]
>>>>>>> Looking up IPv4 addresses
>>>>>>> added interface eth0 ip=fe80::a0c5:d5ff:fe2a:eb57%eth0
>>>>>>> bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
>>>>>>> added interface eth0 ip=192.168.16.27 bcast=192.168.16.255
>>>>>>> netmask=255.255.255.0
>>>>>>> Looking up IPv6 addresses
>>>>>>> added interface eth0 ip=fe80::a0c5:d5ff:fe2a:eb57%eth0
>>>>>>> bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
>>>>>>> added interface eth0 ip=192.168.16.27 bcast=192.168.16.255
>>>>>>> netmask=255.255.255.0
>>>>>>> DNS accounts already exist
>>>>>>> No zone file /usr/local/samba/private/dns/whbs.com.zone
>>>>>>> DNS records will be automatically created
>>>>>>> DNS partitions already exist
>>>>>>> Traceback (most recent call last):
>>>>>>> File "/usr/local/samba/sbin/samba_upgradedns", line 406, in <module>
>>>>>>> "msDS-hasMasterNCs")
>>>>>>> _ldb.LdbError: (1, 'Operations error')
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi Suresh,
>>>>>>
>>>>>> I cannot find the git version you have reported. Can you paste the
>>>>>> output of git describe?
>>>>>>
>>>>>> From the samba_upgradedns log it appears that the second DC already
>>>>>> has DNS partitions. Why are you running samba_upgradedns? Are you
>>>>>> planning to run a backup dns server?
>>>>>>
>>>>>> Amitay.
>>>
>>>
>>> --
>>> Michael Wood <esiotrot at gmail.com>
>>
>> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: replicate.txt
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120405/3a218c31/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: showrepl.txt
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120405/3a218c31/attachment-0001.txt>


More information about the samba-technical mailing list