You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by svilen <az...@svilendobrev.com> on 2012/10/15 12:49:12 UTC

how to recreate _users database?

hi
the _users db is deleted on me filesystem. 
And now restarting couchdb fails
with ..illegal_database_name, ensure_users_db_exists

reinstalling didnt help..
any idea?

svilen

Re: how to recreate _users database?

Posted by Noah Slater <ns...@tumbolia.org>.
Nice turnaround!

On Mon, Oct 15, 2012 at 3:19 PM, Jan Lehnardt <ja...@apache.org> wrote:

>
> On Oct 15, 2012, at 13:35 , svilen <az...@svilendobrev.com> wrote:
>
> >
> >>> i was playing with replacing users-db
> >>> via /_config/couch_httpd_auth/authentication_db and an error in the
> >>> request has left some messy name in the /etc/couchdb/local.ini -
> >>> and that survives even reinstall
> >>
> >> Yeah, that is intentional, we don't want to override any
> >> customisations when you upgrade. The installer just doesn’t copy over
> >> a new local.ini when it sees an existing one. If you end up with a
> >> bad config value, that persists. Uninstalling / deleting local.ini
> >> prior to the reinstall would get you restarted cleanly.
> >
> > that's fine. Though i didnt find anywhere that touching /_config would
> > actualy rewrite local.ini.
> >
> > and it would be helpful if the wrong-name causing the trouble was
> > printed in the error-log..
>
> I agree. I committed
> http://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=66529378
>
> It should be in the upcoming 1.3.0 release.
>
> Cheers
> Jan
> --
>
> >
> > anyway, have fun
> > svilen
> >
> >>> On Mon, 15 Oct 2012 13:00:36 +0200
> >>> Jan Lehnardt <ja...@apache.org> wrote:
> >>>
> >>>> That sounds odd, which CouchDB version are you running?
> >>>>
> >>>> On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:
> >>>>
> >>>>> hi
> >>>>> the _users db is deleted on me filesystem.
> >>>>> And now restarting couchdb fails
> >>>>> with ..illegal_database_name, ensure_users_db_exists
> >>>>>
> >>>>> reinstalling didnt help..
> >>>>> any idea?
> >>>>>
> >>>>> svilen
> >>>>
> >>
>
>


-- 
NS

Re: how to recreate _users database?

Posted by Jan Lehnardt <ja...@apache.org>.
On Oct 15, 2012, at 13:35 , svilen <az...@svilendobrev.com> wrote:

> 
>>> i was playing with replacing users-db
>>> via /_config/couch_httpd_auth/authentication_db and an error in the
>>> request has left some messy name in the /etc/couchdb/local.ini -
>>> and that survives even reinstall
>> 
>> Yeah, that is intentional, we don't want to override any
>> customisations when you upgrade. The installer just doesn’t copy over
>> a new local.ini when it sees an existing one. If you end up with a
>> bad config value, that persists. Uninstalling / deleting local.ini
>> prior to the reinstall would get you restarted cleanly.
> 
> that's fine. Though i didnt find anywhere that touching /_config would
> actualy rewrite local.ini.
> 
> and it would be helpful if the wrong-name causing the trouble was
> printed in the error-log.. 

I agree. I committed http://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=66529378

It should be in the upcoming 1.3.0 release.

Cheers
Jan
-- 

> 
> anyway, have fun
> svilen
> 
>>> On Mon, 15 Oct 2012 13:00:36 +0200
>>> Jan Lehnardt <ja...@apache.org> wrote:
>>> 
>>>> That sounds odd, which CouchDB version are you running?
>>>> 
>>>> On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:
>>>> 
>>>>> hi
>>>>> the _users db is deleted on me filesystem. 
>>>>> And now restarting couchdb fails
>>>>> with ..illegal_database_name, ensure_users_db_exists
>>>>> 
>>>>> reinstalling didnt help..
>>>>> any idea?
>>>>> 
>>>>> svilen
>>>> 
>> 


Re: how to recreate _users database?

Posted by svilen <az...@svilendobrev.com>.
 
> > i was playing with replacing users-db
> > via /_config/couch_httpd_auth/authentication_db and an error in the
> > request has left some messy name in the /etc/couchdb/local.ini -
> > and that survives even reinstall
> 
> Yeah, that is intentional, we don't want to override any
> customisations when you upgrade. The installer just doesn’t copy over
> a new local.ini when it sees an existing one. If you end up with a
> bad config value, that persists. Uninstalling / deleting local.ini
> prior to the reinstall would get you restarted cleanly.

that's fine. Though i didnt find anywhere that touching /_config would
actualy rewrite local.ini.

and it would be helpful if the wrong-name causing the trouble was
printed in the error-log.. 

anyway, have fun
svilen

> > On Mon, 15 Oct 2012 13:00:36 +0200
> > Jan Lehnardt <ja...@apache.org> wrote:
> > 
> >> That sounds odd, which CouchDB version are you running?
> >> 
> >> On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:
> >> 
> >>> hi
> >>> the _users db is deleted on me filesystem. 
> >>> And now restarting couchdb fails
> >>> with ..illegal_database_name, ensure_users_db_exists
> >>> 
> >>> reinstalling didnt help..
> >>> any idea?
> >>> 
> >>> svilen
> >> 
> 

Re: how to recreate _users database?

Posted by Jan Lehnardt <ja...@apache.org>.
On Oct 15, 2012, at 13:14 , svilen <az...@svilendobrev.com> wrote:

> 1.2.0 but i found it.

Cool!

> i was playing with replacing users-db via /_config/couch_httpd_auth/authentication_db
> and an error in the request has left some messy name in
> the /etc/couchdb/local.ini - and that survives even reinstall

Yeah, that is intentional, we don't want to override any customisations when you upgrade. The installer just doesn’t copy over a new local.ini when it sees an existing one. If you end up with a bad config value, that persists. Uninstalling / deleting local.ini prior to the reinstall would get you restarted cleanly.

Cheers
Jan
-- 

> 
> have fun
> svilen
> 
> On Mon, 15 Oct 2012 13:00:36 +0200
> Jan Lehnardt <ja...@apache.org> wrote:
> 
>> That sounds odd, which CouchDB version are you running?
>> 
>> On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:
>> 
>>> hi
>>> the _users db is deleted on me filesystem. 
>>> And now restarting couchdb fails
>>> with ..illegal_database_name, ensure_users_db_exists
>>> 
>>> reinstalling didnt help..
>>> any idea?
>>> 
>>> svilen
>> 


Re: how to recreate _users database?

Posted by svilen <az...@svilendobrev.com>.
1.2.0 but i found it.
i was playing with replacing users-db via /_config/couch_httpd_auth/authentication_db
and an error in the request has left some messy name in
the /etc/couchdb/local.ini - and that survives even reinstall

have fun
svilen

On Mon, 15 Oct 2012 13:00:36 +0200
Jan Lehnardt <ja...@apache.org> wrote:

> That sounds odd, which CouchDB version are you running?
> 
> On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:
> 
> > hi
> > the _users db is deleted on me filesystem. 
> > And now restarting couchdb fails
> > with ..illegal_database_name, ensure_users_db_exists
> > 
> > reinstalling didnt help..
> > any idea?
> > 
> > svilen
> 

Re: how to recreate _users database?

Posted by Jan Lehnardt <ja...@apache.org>.
That sounds odd, which CouchDB version are you running?

On Oct 15, 2012, at 12:49 , svilen <az...@svilendobrev.com> wrote:

> hi
> the _users db is deleted on me filesystem. 
> And now restarting couchdb fails
> with ..illegal_database_name, ensure_users_db_exists
> 
> reinstalling didnt help..
> any idea?
> 
> svilen