Fw: samba_upgradedns - error

Suresh Kumar sureshkumar at pineapple-india.com
Thu Apr 5 22:02:07 MDT 2012


 Dear Amitay,

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

 thansk
Suresh

samba-tool drs showrepl -d2
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
Default-First-Site-Name\STGDC
DSA Options: 0x00000001
DSA object GUID: 78b0ed6b-430d-458b-87d1-d0450ed3cb94
DSA invocationId: cdc32bd2-39e4-4e73-be83-c600d974afde

==== INBOUND NEIGHBORS ====

DC=ForestDnsZones,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 12:12:40 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 12:12:40 2012 IST

DC=DomainDnsZones,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 12:12:40 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 12:12:40 2012 IST

CN=Schema,CN=Configuration,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 12:12:41 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 12:12:41 2012 IST

DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 12:12:41 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 12:12:41 2012 IST

CN=Configuration,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 12:12:41 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 12:12:41 2012 IST

==== OUTBOUND NEIGHBORS ====

CN=Schema,CN=Configuration,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 11:47:18 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 11:47:18 2012 IST

DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 11:47:18 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 11:47:18 2012 IST

CN=Configuration,DC=whbs,DC=com
        Default-First-Site-Name\STGAD via RPC
                DSA object GUID: f8549e13-497b-4eba-9354-392350c5ce0f
                Last attempt @ Thu Apr  5 11:47:19 2012 IST was successful
                0 consecutive failure(s).
                Last success @ Thu Apr  5 11:47:19 2012 IST

==== KCC CONNECTION OBJECTS ====

Connection --
        Connection name: ce9d58f5-7a9e-425f-bbe5-7d294343f42c
        Enabled        : TRUE
        Server DNS name : STGDC.whbs.com
        Server DN name  : CN=NTDS 
Settings,CN=STGAD,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=whbs,DC=com
                TransportType: RPC
                options: 0x00000001
Warning: No NC replicated for Connection!

XXXXX

[root at stgdc bin]# samba-tool drs replicate stgad.whbs.com stgdc.whbs.com 
'DC=DomainDnsZones,DC=whbs,DC=com' -d3
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file 
"/usr/local/samba/etc/smb.conf"
ldb_wrap open of secrets.ldb
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'sasl-DIGEST-MD5' registered
GENSEC backend 'schannel' registered
GENSEC backend 'spnego' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Using binding ncacn_ip_tcp:stgad.whbs.com[,seal]
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - 
drsException: DsReplicaSync failed (8452, 'WERR_DS_DRA_NO_REPLICA')
  File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/drs.py", 
line 331, in run
    drs_utils.sendDsReplicaSync(self.drsuapi, self.drsuapi_handle, 
source_dsa_guid, NC, req_options)
  File "/usr/local/samba/lib/python2.6/site-packages/samba/drs_utils.py", 
line 83, in sendDsReplicaSync
    raise drsException("DsReplicaSync failed %s" % estr)


[root at stgdc bin]# samba-tool drs replicate stgdc.whbs.com stgad.whbs.com 
'DC=DomainDnsZones,DC=whbs,DC=com' -d3
lpcfg_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file 
"/usr/local/samba/etc/smb.conf"
ldb_wrap open of secrets.ldb
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'sasl-DIGEST-MD5' registered
GENSEC backend 'schannel' registered
GENSEC backend 'spnego' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Using binding ncacn_ip_tcp:stgdc.whbs.com[,seal]
Replicate from stgad.whbs.com to stgdc.whbs.com was successful.


Thanks & regards
Suresh Kumar R

----- Original Message ----- > ----- 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>
>>>
>>>
> 



More information about the samba-technical mailing list