You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Hendrik Jan van Meerveld <ha...@gmail.com> on 2011/09/04 17:03:44 UTC
couchdb-load error: You are not a server admin
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
Re: couchdb-load error: You are not a server admin
Posted by Hendrik Jan van Meerveld <ha...@gmail.com>.
Hello Alexander,
Thank you for the reply.
I did try and got another error message:
"Unable to find the server at
"http://admin:password@127.0.0.1:5984<http://admin:password@127.0.0.1:5984/databasename>
"
I opened a ticket
Kind regards,
Hendrik
On 4 September 2011 17:43, Alexander Shorin <kx...@gmail.com> wrote:
> 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
> <ha...@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
> >>
> >>
> >
>
Re: couchdb-load error: You are not a server admin
Posted by Alexander Shorin <kx...@gmail.com>.
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
<ha...@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 <ha...@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
>>
>>
>
Re: couchdb-load error: You are not a server admin
Posted by Hendrik Jan van Meerveld <ha...@gmail.com>.
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 <ha...@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
>
>