You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Joey Samonte <cs...@hotmail.com> on 2016/09/14 04:23:16 UTC

Shards database name error in logs

Good day,


I am getting a lot of error like this one in the logs (Windows):


{"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)


Why is this so?


Regards,

Joey





Re: Shards database name error in logs

Posted by Paul J Davis <pa...@gmail.com>.
Doh! Forgot about cassim. 

> On Sep 14, 2016, at 12:17 PM, Alexander Shorin <kx...@gmail.com> wrote:
> 
> Paul,
> 
> _metadata is our special database which is valid.
> https://github.com/apache/couchdb-cassim/blob/master/src/cassim_metadata_cache.erl#L63-L64
> --
> ,,,^..^,,,
> 
> 
>> On Wed, Sep 14, 2016 at 7:15 PM, Paul Davis <pa...@gmail.com> wrote:
>> I'm pretty sure its saying that you're trying to create a database
>> named _metadata which isn't a valid database name for two reasons.
>> First, we require db names to start with a letter for file system
>> compatibility and to avoid surprises (ie, if someone tried to name a
>> database "../foo"). Second, we generally reserve the _ prefix in all
>> API places for CouchDB internal use.
>> 
>> On Tue, Sep 13, 2016 at 11:23 PM, Joey Samonte
>> <cs...@hotmail.com> wrote:
>>> Good day,
>>> 
>>> 
>>> I am getting a lot of error like this one in the logs (Windows):
>>> 
>>> 
>>> {"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)
>>> 
>>> 
>>> Why is this so?
>>> 
>>> 
>>> Regards,
>>> 
>>> Joey
>>> 
>>> 
>>> 
>>> 

Re: Shards database name error in logs

Posted by Jan Lehnardt <ja...@apache.org>.
> On 15 Sep 2016, at 00:00, Robert Samuel Newson <rn...@apache.org> wrote:
> 
> cassim was removed from the 2.0 release though. I guess we forgot to tell the setup application not to try creating it.

That one is on me, since I did both the setup and the cassim remove, sorry about that. We’ll list that in the known issues for 2.0.0. I’ve already committed a fix to couchdb-setup: https://git-wip-us.apache.org/repos/asf?p=couchdb-setup.git;h=e8d1e32 — issue filed here, so it shows up for people on 2.0.0 looking for “known issues” (https://s.apache.org/couchdb-2.0-known-issues): https://issues.apache.org/jira/browse/COUCHDB-3148

Best
Jan
--

> 
> B.
> 
>> On 14 Sep 2016, at 18:17, Alexander Shorin <kx...@gmail.com> wrote:
>> 
>> Paul,
>> 
>> _metadata is our special database which is valid.
>> https://github.com/apache/couchdb-cassim/blob/master/src/cassim_metadata_cache.erl#L63-L64
>> --
>> ,,,^..^,,,
>> 
>> 
>> On Wed, Sep 14, 2016 at 7:15 PM, Paul Davis <pa...@gmail.com> wrote:
>>> I'm pretty sure its saying that you're trying to create a database
>>> named _metadata which isn't a valid database name for two reasons.
>>> First, we require db names to start with a letter for file system
>>> compatibility and to avoid surprises (ie, if someone tried to name a
>>> database "../foo"). Second, we generally reserve the _ prefix in all
>>> API places for CouchDB internal use.
>>> 
>>> On Tue, Sep 13, 2016 at 11:23 PM, Joey Samonte
>>> <cs...@hotmail.com> wrote:
>>>> Good day,
>>>> 
>>>> 
>>>> I am getting a lot of error like this one in the logs (Windows):
>>>> 
>>>> 
>>>> {"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)
>>>> 
>>>> 
>>>> Why is this so?
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Joey
>>>> 
>>>> 
>>>> 
>>>> 
> 

-- 
Professional Support for Apache CouchDB:
https://neighbourhood.ie/couchdb-support/


Re: Shards database name error in logs

Posted by Robert Samuel Newson <rn...@apache.org>.
cassim was removed from the 2.0 release though. I guess we forgot to tell the setup application not to try creating it.

B.

> On 14 Sep 2016, at 18:17, Alexander Shorin <kx...@gmail.com> wrote:
> 
> Paul,
> 
> _metadata is our special database which is valid.
> https://github.com/apache/couchdb-cassim/blob/master/src/cassim_metadata_cache.erl#L63-L64
> --
> ,,,^..^,,,
> 
> 
> On Wed, Sep 14, 2016 at 7:15 PM, Paul Davis <pa...@gmail.com> wrote:
>> I'm pretty sure its saying that you're trying to create a database
>> named _metadata which isn't a valid database name for two reasons.
>> First, we require db names to start with a letter for file system
>> compatibility and to avoid surprises (ie, if someone tried to name a
>> database "../foo"). Second, we generally reserve the _ prefix in all
>> API places for CouchDB internal use.
>> 
>> On Tue, Sep 13, 2016 at 11:23 PM, Joey Samonte
>> <cs...@hotmail.com> wrote:
>>> Good day,
>>> 
>>> 
>>> I am getting a lot of error like this one in the logs (Windows):
>>> 
>>> 
>>> {"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)
>>> 
>>> 
>>> Why is this so?
>>> 
>>> 
>>> Regards,
>>> 
>>> Joey
>>> 
>>> 
>>> 
>>> 


Re: Shards database name error in logs

Posted by Alexander Shorin <kx...@gmail.com>.
Paul,

_metadata is our special database which is valid.
https://github.com/apache/couchdb-cassim/blob/master/src/cassim_metadata_cache.erl#L63-L64
--
,,,^..^,,,


On Wed, Sep 14, 2016 at 7:15 PM, Paul Davis <pa...@gmail.com> wrote:
> I'm pretty sure its saying that you're trying to create a database
> named _metadata which isn't a valid database name for two reasons.
> First, we require db names to start with a letter for file system
> compatibility and to avoid surprises (ie, if someone tried to name a
> database "../foo"). Second, we generally reserve the _ prefix in all
> API places for CouchDB internal use.
>
> On Tue, Sep 13, 2016 at 11:23 PM, Joey Samonte
> <cs...@hotmail.com> wrote:
>> Good day,
>>
>>
>> I am getting a lot of error like this one in the logs (Windows):
>>
>>
>> {"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)
>>
>>
>> Why is this so?
>>
>>
>> Regards,
>>
>> Joey
>>
>>
>>
>>

Re: Shards database name error in logs

Posted by Paul Davis <pa...@gmail.com>.
I'm pretty sure its saying that you're trying to create a database
named _metadata which isn't a valid database name for two reasons.
First, we require db names to start with a letter for file system
compatibility and to avoid surprises (ie, if someone tried to name a
database "../foo"). Second, we generally reserve the _ prefix in all
API places for CouchDB internal use.

On Tue, Sep 13, 2016 at 11:23 PM, Joey Samonte
<cs...@hotmail.com> wrote:
> Good day,
>
>
> I am getting a lot of error like this one in the logs (Windows):
>
>
> {"error":"illegal_database_name","reason":"Name: 'shards%2F00000000-1fffffff%2F_metadata.1473815830'. Only lowercase characters (a-z)
>
>
> Why is this so?
>
>
> Regards,
>
> Joey
>
>
>
>