[
https://issues.apache.org/jira/browse/COUCHDB-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431769#comment-13431769
]
Robert Newson commented on COUCHDB-1444:
----------------------------------------
The full group_state for other devs;
([email protected])9> io:format("~p~n", [sys:get_status(pid(0,266,0))]).
{status,<4665.266.0>,
{module,gen_server},
[[{'$ancestors',[<4665.265.0>]},
{'$initial_call',{couch_view_group,init,1}}],
running,<4665.265.0>,[],
[{header,"Status for generic server <0.266.0>"},
{data,[{"Status",running},{"Parent",<4665.265.0>},{"Logged events",[]}]},
{data,
[{"State",
{group_state,undefined,<<"mygpo">>,
{"/var/lib/couchdb",<<"mygpo">>,
{group,
<<191,164,86,206,176,78,160,77,123,154,251,56,80,36,128,
157>>,
nil,<<"_design/podcastlists">>,<<"javascript">>,[],
[{view,0,0,0,
[<<"by_user_slug">>],
<<"function(doc)\n{\n if(doc.doc_type ==
\"PodcastList\")\n {\n emit([doc.user, doc.slug], null);\n }\n}">>,
nil,[],[]},
{view,1,0,0,
[<<"by_rating">>],
<<"function(doc)\n{\n if(doc.doc_type ==
\"PodcastList\")\n {\n if(doc.podcasts == null || doc.podcasts.length
== 0)\n {\n return;\n }\n\n var rating = 0;\n
for(var n in doc.ratings)\n {\n rating +=
doc.ratings[n].rating;\n }\n\n if (rating >= 0)\n {\n
emit(rating, null);\n }\n }\n}">>,
nil,[],[]}],
{[]},
nil,0,0,nil,nil}},
{group,
<<42,63,93,206,0,242,69,90,79,8,224,111,56,142,84,60>>,
<4665.213.0>,<<"_design/chapters">>,<<"javascript">>,[],
[{view,0,0,0,
[<<"by_episode">>],
<<"function(doc)\n{\n if(doc.doc_type ==
\"EpisodeUserState\")\n {\n for(var n in doc.chapters)\n {\n
var chapter = doc.chapters[n];\n emit([doc.episode,
doc.user], chapter);\n }\n }\n}">>,
{btree,<4665.213.0>,
{18823,{253,[]},13861},
#Fun<couch_btree.3.133731799>,
#Fun<couch_btree.4.133731799>,
#Fun<couch_view.less_json_ids.2>,
#Fun<couch_view_group.10.26766604>,snappy},
[],[]}],
{[]},
{btree,<4665.213.0>,
{4921,[],5317},
#Fun<couch_btree.3.133731799>,
#Fun<couch_btree.4.133731799>,
#Fun<couch_btree.5.133731799>,nil,snappy},
180079624,0,nil,nil},
nil,nil,false,[],<4665.269.0>,false}}]}]]}
ok
> missing_named_view error on existing javascript design doc and view
> -------------------------------------------------------------------
>
> Key: COUCHDB-1444
> URL: https://issues.apache.org/jira/browse/COUCHDB-1444
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core
> Affects Versions: 1.1.1
> Environment: Ubuntu 11.01 64 bit Erlang R13B03
> Reporter: Sam Lown
> Priority: Critical
> Labels: 404, bug, missing_named_view
> Attachments: couchdb-missing-view.log
>
>
> Moved over from issue: https://issues.apache.org/jira/browse/COUCHDB-1225
> which has similar symptoms but the view is written in Erlang.
> On our production server for no apparent reason, one of our views just
> suddenly stopped responding to requests. The design document was still
> visible in Futon and the "all" view did provide a list of documents. All
> other views in the ddoc responded with a 404
> {"error":"not_found","reason":"missing_named_view"}.
> Restarting the couchdb server resolved the issue, and I've as yet been unable
> to reproduce the problem.
> Here is the last successful log entry for the view:
> [Fri, 16 Mar 2012 13:14:19 GMT] [info] [<0.831.531>] 192.168.163.3 - -
> 'GET'
> /maxi/_design/Payment/_view/by_journey_id_and_sequence?startkey=%5B%229bd1647eb09fca1634a8a6129a8cff46%22%2C%7B%7D%5D&endkey=%5B%229bd1647eb09fca1634a8a6129a8cff46%22%5D&limit=1&descending=true&include_docs=true&reduce=false
> 200
> Many requests later to other documents and views, here is when requests
> stopped working, some 6 minutes later:
> [Fri, 16 Mar 2012 13:20:29 GMT] [info] [<0.4510.531>] 192.168.163.3 - -
> 'GET'
> /maxi/_design/Payment/_view/by_user_id_and_created_at?startkey=%5B%22a0d0912e031b8fd28c2f89f828eebb12%22%5D&endkey=%5B%22a0d0912e031b8fd28c2f89f828eebb12%22%2C%7B%7D%5D&reduce=true&skip=0&limit=1
> 404
> Here is the design document in question: https://gist.github.com/2050446
> I could see nothing in the logs out of the ordinary.
> Obviously, this problem is very alarming indeed and not something I've come
> across before in CouchDB. As you can see the view in question is related to
> Payments, which is something we really do not want to go wrong.
> Please let me know if I can provide more information.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira