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

cbdocloader, cbimport both fail with sample data sets in 5.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.1.0
    • 5.0.0
    • tools
    • None

    Description

      Couchbase classes have sample data in the old cbdocloader format: a zipped directory with one document per file, with the file name being the document's key.

      The attached file is from CD210.

      This file can be correctly loaded into a 5.0 server with the 4.6.3 version of cbdocloader. However, with the 5.0 versions of both cbdocloader and cbimport, both fail to load the file.

       

       

      cbdocloader fails on each document with an HTTP 405 error:

      eben$ "/Users/eben/Downloads/couchbase-server-enterprise_5.0.0-3519GA/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbdocloader" -v -c couchbase://127.0.0.1:8091 -u Administrator -p bluehorse -b couchmusic1 -m 512 -d /Users/eben/CouchbaseClasses/cd210/data/couchmusic2-countries.zip

      2017/11/07 12:17:52 Bucket `couchmusic1` already exists, skipping creation

      2017/11/07 12:17:52 Reading view definitions from country::AQ.json

      2017/11/07 12:17:52 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/couchmusic1/" – docloader.(*jsonSampleImporter).Views() at sample_importer.go:129

      2017/11/07 12:17:52 Reading view definitions from country::AE.json

      2017/11/07 12:17:52 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/couchmusic1/" – docloader.(*jsonSampleImporter).Views() at sample_importer.go:129

      2017/11/07 12:17:52 Reading view definitions from country::AG.json

      2017/11/07 12:17:52 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/couchmusic1/" – docloader.(*jsonSampleImporter).Views() at sample_importer.go:129

      2017/11/07 12:17:52 Reading view definitions from country::AI.json

      2017/11/07 12:17:52 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/couchmusic1/" – docloader.(*jsonSampleImporter).Views() at sample_importer.go:129

      ...

       

       

       

      cbimport runs without error, but no documents are loaded in to the bucket:

      eben$ "/Users/eben/Downloads/couchbase-server-enterprise_5.0.0-3519GA/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbimport" json -v -c couchbase://127.0.0.1:8091 -u Administrator -p bluehorse -b couchmusic2 -f sample -d /Users/eben/CouchbaseClasses/cd210/data/couchmusic2-countries.zip

      2017-11-07T12:20:47.548-08:00 (Rest) GET http://127.0.0.1:8091/pools 200

      2017-11-07T12:20:47.549-08:00 (Plan) Executing transfer plan

      2017-11-07T12:20:47.549-08:00 (Plan) Checking for data movement restrictions between couchmusic2 and couchmusic2

      2017-11-07T12:20:47.549-08:00 (Plan) Transfering bucket configuration for couchmusic2 to couchmusic2

      2017-11-07T12:20:47.553-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/buckets 200

      2017-11-07T12:20:47.553-08:00 Editing bucket to conform with settings provided

      2017-11-07T12:20:47.557-08:00 (Rest) POST http://127.0.0.1:8091/pools/default/buckets/couchmusic2 200

      2017-11-07T12:20:47.559-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/buckets/couchmusic2 200

      2017-11-07T12:20:47.560-08:00 (Plan) Transfering views definitions for couchmusic2 to couchmusic2

      2017-11-07T12:20:47.560-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/nodeServices 200

      2017-11-07T12:20:47.560-08:00 (Plan) Executing queries against couchmusic2 to couchmusic2

      2017-11-07T12:20:47.561-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/nodeServices 200

      2017-11-07T12:20:47.564-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/buckets 200

      2017-11-07T12:20:47.564-08:00 (Plan) Transfering full text index definitions for couchmusic2 to couchmusic2

      2017-11-07T12:20:47.564-08:00 (Plan) Deciding which key value data to transfer for couchmusic2

      2017-11-07T12:20:47.564-08:00 (Plan) Transfering new key value data for couchmusic2 to couchmusic2

      2017-11-07T12:20:47.567-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/buckets 200

      2017-11-07T12:20:47.569-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/nodeServices 200

      2017-11-07T12:20:47.573-08:00 (Rest) GET http://127.0.0.1:8091/pools/default/buckets 200

      2017-11-07T12:20:47.576-08:00 (Plan) Data transfer completed after 50.258µs

      2017-11-07T12:20:47.576-08:00 (Plan) Transfer of all data complete 

      2017-11-07T12:20:47.576-08:00 (Plan) Transfer plan finished successfully

      Json `/Users/eben/CouchbaseClasses/cd210/data/couchmusic2-countries.zip` imported to `http://127.0.0.1:8091` successfully

       

      Attachments

        Issue Links

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

          Activity

            People

              mikew Mike Wiederhold [X] (Inactive)
              eben Eben Haber
              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