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

cbdocloader - "Errors occurred during the view creation phase. See logs for details." thrown while loading simple json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.1.0
    • 5.0.0
    • tools
    • None
    • Triaged
    • MacOSX 64-bit
    • No
    • CBSS Sprint Dec-08-2017

    Description

      1. Download 5.0 Community edition for mac os 64bit
      2. Install server on mac 10.12.6
      3. Initialize single node cluster with all services enabled
      4. Create a simple json doc:

      {
          "glossary": {
              "title": "example glossary",
                      "GlossDiv": {
                  "title": "S",
                              "GlossList": {
                      "GlossEntry": {
                          "ID": "SGML",
                                              "SortAs": "SGML",
                                              "GlossTerm": "Standard Generalized Markup Language",
                                              "Acronym": "SGML",
                                              "Abbrev": "ISO 8879:1986",
                                              "GlossDef": {
                              "para": "A meta-markup language, used to create markup languages such as DocBook.",
                                                      "GlossSeeAlso": ["GML", "XML"]
                          },
                                              "GlossSee": "markup"
                      }
                  }
              }
          }
      }
      

      5. Load this json using cbdocloader - error thrown:

      Couchbases-MacBook-Pro-17:bin a.senthilnathan$ ./cbdocloader -c 127.0.0.1:8091 -u Administrator -p password -b default -d ~/Desktop/data.json -m 512 -v
      2017/10/26 19:25:02 Creating `default` bucket
      2017/10/26 19:25:08 Bucket `default` created
      2017/10/26 19:25:08 Reading view definitions from /Users/a.senthilnathan/Desktop/data.json
      2017/10/26 19:25:08 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/default/" -- docloader.(*jsonSampleImporter).Views() at sample_importer.go:129
      2017/10/26 19:25:08 Loading data into the default bucket
      2017/10/26 19:25:08 Loaded 1 items into the default bucket
      Errors occurred during the view creation phase. See logs for details.
      

      6. Document created in the bucket though - screenshot attached

      Attachments

        Issue Links

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

          Activity

            People

              thuan Thuan Nguyen
              arunkumar Arunkumar Senthilnathan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty