On Mar 6, 2014, at 3:33 PM, Todd Freese <[email protected]> wrote:

> curl -X PUT localhost:4985/$DB/_user/GUEST --data '{"disabled":false, 
> "admin_channels":["public"]}' 
> 
> And I get this log from the sync_gateway: 
> 
> 16:13:29.827065 HTTP:  #001: PUT //_user/GUEST  (ADMIN) 
> 16:13:29.827130 HTTP:  #001:     --> 404 unknown URL 

Looks like you typed "$DB" literally on the command line. That's supposed to be 
a placeholder for the actual database name.

Also, it's easier to enable guest access by using a config file with a 'user' 
dictionary. Here's one I often use:

{
        "databases": {
                "db": {
                        "server": "walrus:",
                        "users": {
                                "GUEST": {"disabled": false, "admin_channels": 
["*"] }
                        }
                }
        }
}

Then you just run "sync_gateway $CONFIG_FILE"
where $CONFIG_FILE is the path to the config file ;-)

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1E75F8C9-3395-47C6-B997-2D637A31906F%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to