couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <fdman...@apache.org>
Subject Issues using 1.1's replication
Date Tue, 30 Aug 2011 17:12:22 GMT
Scott,

Try "roles" (plural) and not "role".

On Tuesday, August 30, 2011, Scott Feinberg <feinberg.scott@gmail.com>
wrote:
> "user_ctx": {
>       "name": "adminuser",
>       "role": "[\"_admin\"]"
>   },
>   "_replication_state": "error",
>   "_replication_state_time": "2011-08-30T15:09:03+00:00",
>   "_replication_id": "08fd9d6dcc5a0882fc9fd0d971b05938"
> }
>
> I've tried with user_ctx formatted the following ways-but haven't found
the
> magic combo.
>
> "user_ctx": {
>       "name": "adminuser",
>       "role": "[\"_admin\"]"
>   },
>
> "user_ctx": {
>       "name": "adminuser",
>       "role": "["_admin"]"
>   },
> "user_ctx": {
>       "name": "adminuser",
>       "role": ["_admin"]
>   },
>
> "user_ctx": {
>       "role": ["_admin"]
>   },
>
> For some reason, I can't get my replicator to work. The log continues to
show
> "unauthorized to access database", referring to my localhost. I know I
need to
> have user_ctx set, but for some reason it just doesn't like to work. I
copied
> the info out of my source. I even created new admin users to try and fix
the
> problem, none worked. Do I need to specify more roles for the user?
>
> The other has a good resource https://gist.github.com/832610, but the
user_ctx
> he set's in the example isn't the admin user, the appear to just be random
> roles.
>
> Anyone have any experience with the CouchDB replicating to the localhost?
>
> Thanks,
>
> --Scott
>
>
>

-- 
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."

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message