couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego Medina <di...@fmpwizard.com>
Subject Re: Compaction doesn't work on big db - unknown_error, reason: function_clause
Date Sat, 14 Mar 2015 13:20:15 GMT
Can you read individual documents from this couch database?
If you do, then you don't really need to fetch the data from wikipedia
again, you can just crawl your own database. and maybe run compaction as
you load the new database, instead of waiting until the end.






On Sat, Mar 14, 2015 at 9:03 AM, Frank Röhm <francwalter@gmx.net> wrote:

> Am 14.03.2015 um 12:41 schrieb Alexander Shorin:
> > That's not good sign, imho. Have you tried to replicate it to another
> > db to swap them after?
>
> Neither this works, I get errors as well.
> I created a new database de-m-wikipedia-org-new and try to replicate with:
>
> curl -H 'Content-Type: application/json' -X POST
> http://localhost:5984/_replicate -d ' {"source":
> "http://localhost:5984/de-m-wikipedia-org", "target":
> "de-m-wikipedia-org-new", "create_target": false, "continuous": false} '
>
> But I get as response:
> {"error":"changes_reader_died"}
>
> And in the log there are plenty errors, like:
>
> ...
> [error] [<0.129.0>] httpd 500 error response:
>  {"error":"changes_reader_died"}
> ...
> [error] [<0.135.0>] function_clause error in HTTP request
> ...
> [error] [<0.135.0>] httpd 500 error response:
>  {"error":"unknown_error","reason":"function_clause"}
> ...
> ** Last message in was {tcp,#Port<0.3135>,
>                             <<"HTTP/1.1 500 Internal Server
> Error\r\nServer: CouchDB/1.6.1 (Erlang OTP/R14B04)\r\nDate:
> Sat, 14 Mar 2015 12:38:25 GMT\r\nContent-Type:
> application/json\r\nContent-Length: 53\r\nCache-Control: must-revalidate\
> r\n\r\n">>}
> ** When Server state == {state,"localhost",5984,infinity,#Ref<0.0.0.1746>,
>                             false,undefined,undefined,undefined,undefined,
>                             undefined,[],false,#Port<0.3135>,false,[],
>                             {[{request,
>                                   {url,
>
> "
> http://localhost:5984/de-m-wikipedia-org/_changes?feed=normal&style=all_docs&sinc
> e=317&heartbeat=10000",
> ...
>
>
> I yet see only one way: to delete the corrupt database and scratch it
> new from wikipedia :(
>
> Or any other last possibilities to repair it?
>
> Thank
> frank
>
>


-- 
Diego Medina
Lift/Scala consultant
diego@fmpwizard.com
http://fmpwizard.telegr.am

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message