Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1225

missing_named_view error on existing erlang design doc and view

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Erlang 1:14.b.3
      CouchDB 1.2.0a-f7cc8fa-git
      Ubuntu Lucid 10.04 64bit

      Description

      curl foo.bar:5984/cray_frame_11266/_design/admin/_view/regions_by_channel?limit=1

      {"error":"not_found","reason":"missing_named_view"}

      It worked some time ago but now there is constantly the error. If I restart CoucDB it will solve this issue. Updating the desing doc also solves the issue.

      With debug log level I get this messages:

      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] 'GET' /cray_frame_11266/_design/admin/_view/regions_by_channel?limit=1

      {1, 1}

      from "93.158.159.91"
      Headers: [

      {'Accept',"*/*"}

      ,

      {'Host',"foo.bar:5984"}

      ,

      {'User-Agent',"curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15"}

      ]
      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] OAuth Params: [

      {"limit","1"}

      ]
      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] request_group

      {Pid, Seq} {<0.6419.0>,311}
      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] request_group {Pid, Seq}

      {<0.6419.0>,311}

      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] Minor error in HTTP request:

      {not_found, missing_named_view}

      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] Stacktrace: [

      {io_lib_pretty,cind_tag_tuple,7}

      ,

      {io_lib_pretty,while_fail,3}

      ,

      {io_lib_pretty,print,6}

      ,

      {io_lib_format,build,3},
      {io_lib_format,build,3}

      ,

      {io_lib_format,build,3},
      {io_lib_format,build,3}

      ,

      {io_lib_format,build,3}

      ]
      [Sat, 16 Jul 2011 23:40:44 GMT] [info] [<0.898.3>] 0.0.0.0 - - GET /cray_frame_11266/_design/admin/_view/regions_by_channel?limit=1 404
      [Sat, 16 Jul 2011 23:40:44 GMT] [debug] [<0.898.3>] httpd 404 error response:

      {"error":"not_found","reason":"missing_named_view"}

      I've also tried to get _info about design doc and found that it have had zero data_size:

      > curl foo.bar:5984/cray_frame_11266/_design/admin/_info | python -mjson.tool
      {
      "name": "admin",
      "view_index":

      { "compact_running": false, "data_size": 0, "disk_size": 90241, "language": "erlang", "purge_seq": 0, "signature": "09b8b599cad584406b7aa5956b98a335", "update_seq": 311, "updater_running": false, "waiting_clients": 0, "waiting_commit": false }

      }
      In the same time another similar design doc works fine and has some data_size:
      > curl foo.bar:5984/cray_frame_11266/_design/web/_info | python -mjson.tool
      {
      "name": "web",
      "view_index":

      { "compact_running": false, "data_size": 7462075, "disk_size": 9138406, "language": "erlang", "purge_seq": 0, "signature": "7f01f0c843b3bbb79d00ec4ff8d43010", "update_seq": 311, "updater_running": false, "waiting_clients": 0, "waiting_commit": false }

      }

      Over the year ago Mark Anderson has asked similar questing in the thread called "Need help diagnosing couchdb view 404s" [1] but seams did not found any answer than.

      [1]: http://comments.gmane.org/gmane.comp.db.couchdb.user/8994

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                daevaorn Alex Koshelev
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: