incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: couchdb-load error: You are not a server admin
Date Sun, 04 Sep 2011 15:43:30 GMT
Hi!

Have you try this one:
couchdb-load --input=backup20110530.bin
http://admin:password@127.0.0.1:5984/databasename

If it still wouldn't work as expected feel free to open ticket at
http://code.google.com/p/couchdb-python/issues


------------------
,,,^..^,,,



On Sun, Sep 4, 2011 at 7:20 PM, Hendrik Jan van Meerveld
<haaiee@gmail.com> wrote:
> Hello All,
>
> I did find one solution, which is to delete all admins:
>  "curl -X DELETE http://admin:password@127.0.0.1:5984/_config/admins/admin"
>
> After this, the line
>  "couchdb-load --input=backup20110530.bin
> http://127.0.0.1:5984/databasename"
> worked like a charm.
>
>
> The above doesn't feel like the right action, so if anybody knows of a
> better solution, I'm very much interested to hear it.
>
> Kind regards,
> Hendrik Jan
>
>
>
>
> On 4 September 2011 17:03, Hendrik Jan van Meerveld <haaiee@gmail.com>wrote:
>
>> Hello,
>>
>> I'm trying to restore a database backup but having a problem.
>>
>> The command I use is:
>>   "couchdb-load -u serveradminusername -p serveradminpassword
>> --input=backup20110530.bin http://127.0.0.1:5984/databasename"
>> Which gives me the error:
>>   "couchdb.client.ServerError: (401, ('unauthorized', 'You are not a server
>> admin.'))"
>>
>>
>> But I am sure the username and password are correct, because I was able to
>> create the database using Futon with this username and password.
>>
>> Kind regards and thanks for any advise,
>> Hendrik Jan
>>
>>
>

Mime
View raw message