You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Anand Chitipothu <an...@gmail.com> on 2009/03/17 14:23:57 UTC
Error in executing views
I created a view in couchdb and when tried to access it gave the
following error.
{"error":"not_found","reason":"Document is missing attachment"}
Thinking that I might have done some mistake, i tried installing sofa
using couchapp.
$ git clone git://github.com/jchris/sofa.git
$ cd sofa
$ couchapp push . http://localhost:5984/blog
Pushing CouchApp in /Users/anand/work/play/sofa to design doc:
http://localhost:5984/blog/_design/sofa
Visit your CouchApp here:
http://localhost:5984/blog/_/sofa/l
Even its views give the same error.
$ curl http://localhost:5984/blogdb/_design/sofa/_view/comments
{"error":"not_found","reason":"Document is missing attachment"}
Am I doing anything stupid?
The version of couchdb that I'm using is 0.9.0a735520-incubating.
Thanks,
Anand
Re: Error in executing views
Posted by Anand Chitipothu <an...@gmail.com>.
> I'm guessing that you are on too old of a CouchDB version. Current
> trunk is r755205
>
> The database file format has changed recently
Thanks. Upgrading to new version fixed the problem.
Re: Error in executing views
Posted by Chris Anderson <jc...@apache.org>.
On Tue, Mar 17, 2009 at 9:12 AM, Anand Chitipothu <an...@gmail.com> wrote:
>>>
>>> Am I doing anything stupid?
>>
>> The only thing I see in this mail is that you are pushing to a db
>> called "blog" and querying from "blogdb"
>
> hmm, looks like I created both of them.
>
>> What do you get for
>>
>> curl http://localhost:5984/blog/_design/sofa/_view/comments
>
> same error. :(
>
I'm guessing that you are on too old of a CouchDB version. Current
trunk is r755205
The database file format has changed recently so if you have important
data you'll need to follow the upgrade proceedure outlined here:
http://wiki.apache.org/couchdb/BreakingChangesUpdateTrunkTo0Dot9
--
Chris Anderson
http://jchris.mfdz.com
Re: Error in executing views
Posted by Anand Chitipothu <an...@gmail.com>.
>>
>> Am I doing anything stupid?
>
> The only thing I see in this mail is that you are pushing to a db
> called "blog" and querying from "blogdb"
hmm, looks like I created both of them.
> What do you get for
>
> curl http://localhost:5984/blog/_design/sofa/_view/comments
same error. :(
Re: Error in executing views
Posted by Chris Anderson <jc...@apache.org>.
On Tue, Mar 17, 2009 at 6:23 AM, Anand Chitipothu <an...@gmail.com> wrote:
> I created a view in couchdb and when tried to access it gave the
> following error.
>
> {"error":"not_found","reason":"Document is missing attachment"}
>
> Thinking that I might have done some mistake, i tried installing sofa
> using couchapp.
>
> $ git clone git://github.com/jchris/sofa.git
> $ cd sofa
> $ couchapp push . http://localhost:5984/blog
> Pushing CouchApp in /Users/anand/work/play/sofa to design doc:
> http://localhost:5984/blog/_design/sofa
> Visit your CouchApp here:
> http://localhost:5984/blog/_/sofa/l
>
> Even its views give the same error.
>
> $ curl http://localhost:5984/blogdb/_design/sofa/_view/comments
> {"error":"not_found","reason":"Document is missing attachment"}
>
> Am I doing anything stupid?
The only thing I see in this mail is that you are pushing to a db
called "blog" and querying from "blogdb"
What do you get for
curl http://localhost:5984/blog/_design/sofa/_view/comments
Chris
--
Chris Anderson
http://jchris.mfdz.com