couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Moritz (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-814) Improve error logging
Date Sun, 04 Jul 2010 09:42:50 GMT
Improve error logging
---------------------

                 Key: COUCHDB-814
                 URL: https://issues.apache.org/jira/browse/COUCHDB-814
             Project: CouchDB
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 0.10
         Environment: Ubuntu Lucid Lynx
            Reporter: Julian Moritz
            Priority: Minor


When defining the path to a view server and using a non-existing target, the error message
in my case was

[Sun, 04 Jul 2010 08:48:06 GMT] [error] [<0.108.0>] ** Generic server
<0.108.0> terminating 
** Last message in was {'EXIT',<0.111.0>,epipe}
** When Server state == {group_state,undefined,<<"web">>,
                         {"/var/lib/couchdb/0.10.0",<<"web">>,
                          {group,

<<54,48,77,50,3,129,147,16,223,202,27,98,9,139,74,
                             233>>,

{db,<0.71.0>,<0.72.0>,nil,<<"1278233277155316">>,
                            <0.69.0>,<0.75.0>,
                            {db_header,4,16,0,
                             {738330,{8,1}},
                             {739403,9},
                             nil,0,nil,nil,1000},
                            16,
                            {btree,<0.69.0>,
                             {738330,{8,1}},
                             #Fun<couch_db_updater.8.117532479>,
                             #Fun<couch_db_updater.9.105507025>,
                             #Fun<couch_db_updater.7.32442936>,
                             #Fun<couch_db_updater.10.43662179>},
                            {btree,<0.69.0>,
                             {739403,9},
                             #Fun<couch_db_updater.11.41695917>,
                             #Fun<couch_db_updater.12.6934644>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.13.28245598>},

{btree,<0.69.0>,nil,#Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},

16,<<"web">>,"/var/lib/couchdb/0.10.0/web.couch",
                            [],[],nil,
                            {user_ctx,null,[]},
                            nil,1000,
                            [before_header,after_header,on_file_open]},
                           nil,<<"_temp">>,<<"python">>,[],
                           [{view,0,
                             [<<"_temp">>],
                             <<"def fun(doc):\n  yield None,
doc">>,nil,[]}],
                           nil,0,0,nil,nil}},
                         {group,

<<54,48,77,50,3,129,147,16,223,202,27,98,9,139,74,233>>,

{db,<0.71.0>,<0.72.0>,nil,<<"1278233277155316">>,
                           <0.69.0>,<0.75.0>,
                           {db_header,4,16,0,
                            {738330,{8,1}},
                            {739403,9},
                            nil,0,nil,nil,1000},
                           16,
                           {btree,<0.69.0>,
                            {738330,{8,1}},
                            #Fun<couch_db_updater.8.117532479>,
                            #Fun<couch_db_updater.9.105507025>,
                            #Fun<couch_db_updater.7.32442936>,
                            #Fun<couch_db_updater.10.43662179>},
                           {btree,<0.69.0>,
                            {739403,9},
                            #Fun<couch_db_updater.11.41695917>,
                            #Fun<couch_db_updater.12.6934644>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.13.28245598>},

{btree,<0.69.0>,nil,#Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},

16,<<"web">>,"/var/lib/couchdb/0.10.0/web.couch",
                           [],[],nil,
                           {user_ctx,null,[]},
                           nil,1000,
                           [before_header,after_header,on_file_open]},
                          <0.109.0>,<<"_temp">>,<<"python">>,[],
                          [{view,0,
                            [<<"_temp">>],
                            <<"def fun(doc):\n  yield None, doc">>,
                            {btree,<0.109.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_keys.2>,
                             #Fun<couch_view_group.11.46347864>},
                            []}],

{btree,<0.109.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
                         <0.111.0>,nil,false,
                         [{{<0.74.0>,#Ref<0.0.0.673>},16}],
                         <0.112.0>}
** Reason for termination == 
** epipe

Why not just printing a message like "ERROR: Path not found: /path/fo/file" ?

The way above makes it hard to guess the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message