Re: Missing function error

2014-08-11 Thread Dave Cottlehuber
  > On 08/08/14 18:18, Luca Morandini wrote: > > Update on this issue: we dropped the database, recreated it (ant its views) on > CouchDB 1.5.1 and this apparently solved the issue. > > Next thing we are about to do is to add documents (one by one) from the old > database and see which one brea

[SOLVED] Re: Missing function error

2014-08-11 Thread Luca Morandini
On 11/08/14 11:18, Luca Morandini wrote: It turned out that this error is triggered when the string declaring the function does not contain a function, like in: "by_type": { "map": "function (doc) {\nif (doc.type) {\nemit(doc.org, doc);\n}\n}", "reduce": "" }

Re: Missing function error

2014-08-10 Thread Luca Morandini
On 08/08/14 18:18, Luca Morandini wrote: Update on this issue: we dropped the database, recreated it (ant its views) on CouchDB 1.5.1 and this apparently solved the issue. Next thing we are about to do is to add documents (one by one) from the old database and see which one breaks it. Regar

Re: Missing function error

2014-08-08 Thread Luca Morandini
On 08/08/14 18:57, Aurélien Bénel wrote: We tried from the admin interface as well. In Futon, can you see the view? Yes. If yes, what does it say when you select it? It spins for a few seconds, then: <> Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group De

Re: Missing function error

2014-08-08 Thread Luca Morandini
On 08/08/14 18:57, Aurélien Bénel wrote: We tried from the admin interface as well. In Futon, can you see the view? Yes. If yes, what does it say when you select it? It spins for a few seconds, then: <> Regards, Luca Morandini Data Architect - AURIN project Melbourne eResearch Group De

Re: Missing function error

2014-08-08 Thread Aurélien Bénel
> We tried from the admin interface as well. In Futon, can you see the view? If yes, what does it say when you select it? Regards, Aurélien

Re: Missing function error

2014-08-08 Thread Luca Morandini
On 08/08/14 18:24, Aurélien Bénel wrote: Hi Luca, ({"error":"not_found","reason":"missing function"}). Two questions: 1. Could you tell us the URI you tried? curl "http://db2.aurin.org.au:5984/myaurin-development/_design/persistence/_view/find_by_id"; We tried from the admin interface as

Re: Missing function error

2014-08-08 Thread Aurélien Bénel
Hi Luca, > ({"error":"not_found","reason":"missing function"}). Two questions: 1. Could you tell us the URI you tried? 2. Do you use the rewrite handler? If yes, could you send your `rewrites.json` file? Regards, Aurélien

Missing function error

2014-08-08 Thread Luca Morandini
Folks, we have been happily using CouchDB 1.2.0 some years now, but now we encountered a puzzling issue: in a otherwise correct design document, all of a sudden CouchDB is no longer able to find the views and list functions ({"error":"not_found","reason":"missing function"}). We tried to sol