Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-6781

creating and querying one spatial index on mac returns error,system_limit because mac file descriptor limit is not reset to 10k

    XMLWordPrintable

Details

    Description

      I am on Mac OS X - Mountain Lion. So I hadn't really played with spatial yet, so I went to docs and put in the reduce and it's causing my Couchbase Server 2.0 Beta to crash. The docs I followed: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writing-geo-views.html

      I attached a Diag Report as well... Chris says it might be because of Erlang + open file limits.

      My Document (there are only 3 docs in bucket)

      { "type": "test", "timestamp": "2012-09-28 23:37:14 -0700", "dog": "Pug", "loc": [ 2, 3 ] }

      Map (Spatial)

      function(doc, meta) {
      if (doc.loc) {
      emit(

      { type: "Point", coordinates: [doc.loc[0], doc.loc[1]], }

      ,
      [meta.id, doc.loc]);
      }
      };

      Dev SetResult (only shown when I go directly to link in new tab)
      URL: http://127.0.0.1:8092/default/_design/dev_spatial/_spatial/points?bbox=-180%2C-90%2C180%2C90&connection_timeout=60000

      {
      error: "case_clause",
      reason: "{error,{exit,{aborted,{no_exists,['stats_archiver-default-minute']}}}}"
      }

      In Published View I get this:
      URL: http://127.0.0.1:8092/default/_design/spatial/_spatial/points?bbox=-180%2C-90%2C180%2C90&stale=update_after&connection_timeout=60000

      {
      total_rows: 0,
      rows: [ ],
      errors: [
      {
      from: "local",
      reason: "

      {error,system_limit}"
      },
      {
      from: "local",
      reason: "{error,system_limit}

      "
      },
      {
      from: "local",
      reason: "

      {error,system_limit}"
      },
      {
      from: "local",
      reason: "{error,system_limit}

      "
      },
      [... repeated 1000's of times ...]
      {
      from: "local",
      reason: "

      {error,system_limit}

      "
      }
      ]
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            iryna iryna
            farshid Farshid Ghods (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty