You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Clare Walsh <cl...@autonomy.com> on 2011/06/15 13:17:57 UTC

Design docs not copying in 1.1

Hey,

Am having some teething problems using 1.1 and the new persistent 
replication and was hoping someone could tell me which trivial newbie 
mistake I have encountered  :)

I set up the replication by adding a doc to the new _replicator database 
(not using the Futon replicator UI or POSTing to the replicator as for 
old replication).

My design docs aren't replicating but everything else replicates fine . 
I'm in Admin Party.

My document looks like this (with db names redacted):

|{
    "|_id|":|"42b66dba7b6b01ec0cb753ecc2030890"|,
    "|_rev|":|"2-02ef8d7f5690b219852b4a9a18cf869e"|,
    "|source|":|"source_db"|,
    "|target|":|"dest_db"|,
    "|continuous|":|true|,
    "|_replication_state|":|"triggered"|,
    "|_replication_state_time|":|"2011-06-09T16:13:08+01:00"|,
    "|_replication_id|":|"e813dc162386baa09d5a0f317c52ddf2"|
}

|

Thanks
Clare

Re: Design docs not copying in 1.1

Posted by Clare Walsh <cl...@autonomy.com>.
Okay, thanks very much :)

On 15/06/11 12:51, Filipe David Manana wrote:
> On Wed, Jun 15, 2011 at 12:48 PM, Clare Walsh<cl...@autonomy.com>  wrote:
>> Ah, thank you, that worked.
>>
>> I had looked here:
>> http://docs.couchbase.org/couchdb-release-1.1/index.html#couchb-release-1.1-replicatordb
>>   which said that if no user_ctx is defined it defaults to
>>
>> {
>>      "name": null,
>>      "roles": ["_admin"]
>> }
>>
>> Has this been changed? Is the link you posted the location of the up to date
>> docs (for next time I look for info)?
> Yep, that was a very recent change. Another recent change was the
> timestamp format, from unix timestamps to rfc3339 timestamps (human
> readable).
> The couchbase documentation will be updated soon.
>
>> Thank you again
>> Clare
>>
>> On 15/06/11 12:29, Filipe David Manana wrote:
>>> On Wed, Jun 15, 2011 at 12:17 PM, Clare Walsh<cl...@autonomy.com>    wrote:
>>>> Hey,
>>>>
>>>> Am having some teething problems using 1.1 and the new persistent
>>>> replication and was hoping someone could tell me which trivial newbie
>>>> mistake I have encountered  :)
>>>>
>>>> I set up the replication by adding a doc to the new _replicator database
>>>> (not using the Futon replicator UI or POSTing to the replicator as for
>>>> old
>>>> replication).
>>>>
>>>> My design docs aren't replicating but everything else replicates fine .
>>>> I'm
>>>> in Admin Party.
>>> Add a user_ctx property to it:
>>>
>>> "user_ctx": {
>>>       "roles": ["_admin"]
>>> }
>>>
>>> You can learn more at   https://gist.github.com/832610
>>>
>>>
>>>> My document looks like this (with db names redacted):
>>>>
>>>> |{
>>>>    "|_id|":|"42b66dba7b6b01ec0cb753ecc2030890"|,
>>>>    "|_rev|":|"2-02ef8d7f5690b219852b4a9a18cf869e"|,
>>>>    "|source|":|"source_db"|,
>>>>    "|target|":|"dest_db"|,
>>>>    "|continuous|":|true|,
>>>>    "|_replication_state|":|"triggered"|,
>>>>    "|_replication_state_time|":|"2011-06-09T16:13:08+01:00"|,
>>>>    "|_replication_id|":|"e813dc162386baa09d5a0f317c52ddf2"|
>>>> }
>>>>
>>>> |
>>>>
>>>> Thanks
>>>> Clare
>>>>
>>>
>>
>
>


Re: Design docs not copying in 1.1

Posted by Filipe David Manana <fd...@apache.org>.
On Wed, Jun 15, 2011 at 12:48 PM, Clare Walsh <cl...@autonomy.com> wrote:
> Ah, thank you, that worked.
>
> I had looked here:
> http://docs.couchbase.org/couchdb-release-1.1/index.html#couchb-release-1.1-replicatordb
>  which said that if no user_ctx is defined it defaults to
>
> {
>     "name": null,
>     "roles": ["_admin"]
> }
>
> Has this been changed? Is the link you posted the location of the up to date
> docs (for next time I look for info)?

Yep, that was a very recent change. Another recent change was the
timestamp format, from unix timestamps to rfc3339 timestamps (human
readable).
The couchbase documentation will be updated soon.

>
> Thank you again
> Clare
>
> On 15/06/11 12:29, Filipe David Manana wrote:
>>
>> On Wed, Jun 15, 2011 at 12:17 PM, Clare Walsh<cl...@autonomy.com>  wrote:
>>>
>>> Hey,
>>>
>>> Am having some teething problems using 1.1 and the new persistent
>>> replication and was hoping someone could tell me which trivial newbie
>>> mistake I have encountered  :)
>>>
>>> I set up the replication by adding a doc to the new _replicator database
>>> (not using the Futon replicator UI or POSTing to the replicator as for
>>> old
>>> replication).
>>>
>>> My design docs aren't replicating but everything else replicates fine .
>>> I'm
>>> in Admin Party.
>>
>> Add a user_ctx property to it:
>>
>> "user_ctx": {
>>      "roles": ["_admin"]
>> }
>>
>> You can learn more at   https://gist.github.com/832610
>>
>>
>>> My document looks like this (with db names redacted):
>>>
>>> |{
>>>   "|_id|":|"42b66dba7b6b01ec0cb753ecc2030890"|,
>>>   "|_rev|":|"2-02ef8d7f5690b219852b4a9a18cf869e"|,
>>>   "|source|":|"source_db"|,
>>>   "|target|":|"dest_db"|,
>>>   "|continuous|":|true|,
>>>   "|_replication_state|":|"triggered"|,
>>>   "|_replication_state_time|":|"2011-06-09T16:13:08+01:00"|,
>>>   "|_replication_id|":|"e813dc162386baa09d5a0f317c52ddf2"|
>>> }
>>>
>>> |
>>>
>>> Thanks
>>> Clare
>>>
>>
>>
>
>



-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

Re: Design docs not copying in 1.1

Posted by Clare Walsh <cl...@autonomy.com>.
Ah, thank you, that worked.

I had looked here: 
http://docs.couchbase.org/couchdb-release-1.1/index.html#couchb-release-1.1-replicatordb  
which said that if no user_ctx is defined it defaults to

{
      "name": null,
      "roles": ["_admin"]
}

Has this been changed? Is the link you posted the location of the up to 
date docs (for next time I look for info)?

Thank you again
Clare

On 15/06/11 12:29, Filipe David Manana wrote:
> On Wed, Jun 15, 2011 at 12:17 PM, Clare Walsh<cl...@autonomy.com>  wrote:
>> Hey,
>>
>> Am having some teething problems using 1.1 and the new persistent
>> replication and was hoping someone could tell me which trivial newbie
>> mistake I have encountered  :)
>>
>> I set up the replication by adding a doc to the new _replicator database
>> (not using the Futon replicator UI or POSTing to the replicator as for old
>> replication).
>>
>> My design docs aren't replicating but everything else replicates fine . I'm
>> in Admin Party.
> Add a user_ctx property to it:
>
> "user_ctx": {
>       "roles": ["_admin"]
> }
>
> You can learn more at   https://gist.github.com/832610
>
>
>> My document looks like this (with db names redacted):
>>
>> |{
>>    "|_id|":|"42b66dba7b6b01ec0cb753ecc2030890"|,
>>    "|_rev|":|"2-02ef8d7f5690b219852b4a9a18cf869e"|,
>>    "|source|":|"source_db"|,
>>    "|target|":|"dest_db"|,
>>    "|continuous|":|true|,
>>    "|_replication_state|":|"triggered"|,
>>    "|_replication_state_time|":|"2011-06-09T16:13:08+01:00"|,
>>    "|_replication_id|":|"e813dc162386baa09d5a0f317c52ddf2"|
>> }
>>
>> |
>>
>> Thanks
>> Clare
>>
>
>


Re: Design docs not copying in 1.1

Posted by Filipe David Manana <fd...@apache.org>.
On Wed, Jun 15, 2011 at 12:17 PM, Clare Walsh <cl...@autonomy.com> wrote:
> Hey,
>
> Am having some teething problems using 1.1 and the new persistent
> replication and was hoping someone could tell me which trivial newbie
> mistake I have encountered  :)
>
> I set up the replication by adding a doc to the new _replicator database
> (not using the Futon replicator UI or POSTing to the replicator as for old
> replication).
>
> My design docs aren't replicating but everything else replicates fine . I'm
> in Admin Party.

Add a user_ctx property to it:

"user_ctx": {
     "roles": ["_admin"]
}

You can learn more at   https://gist.github.com/832610


>
> My document looks like this (with db names redacted):
>
> |{
>   "|_id|":|"42b66dba7b6b01ec0cb753ecc2030890"|,
>   "|_rev|":|"2-02ef8d7f5690b219852b4a9a18cf869e"|,
>   "|source|":|"source_db"|,
>   "|target|":|"dest_db"|,
>   "|continuous|":|true|,
>   "|_replication_state|":|"triggered"|,
>   "|_replication_state_time|":|"2011-06-09T16:13:08+01:00"|,
>   "|_replication_id|":|"e813dc162386baa09d5a0f317c52ddf2"|
> }
>
> |
>
> Thanks
> Clare
>



-- 
Filipe David Manana,
fdmanana@gmail.com, fdmanana@apache.org

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."