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

cbdocloader on Windows 10 fails to load JSON files using "::" in type::id key pattern file names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 5.0.0
    • 4.0.0
    • tools
    • Security Level: Public
    • None
    • CB 4.0.0-4051 on Windows 10
    • No

    Description

      cbdocloader on Windows 10 fails processing file names which include "::" in the file name. Unfortunately, this is a common key pattern for CB documents: doc-type::id , and cbdocloader defines document keys based on file names.

      Windows gives the following error text when attempting to load the attached JSON document archive.

      C:\Program Files\Couchbase\Server\bin>cbdocloader -u Administrator -p password -b customer360 customer360.zip
      [2015-11-17 11:57:49,816] - [rest_client] [6820] - INFO - existing buckets : [u'customer360', u'default']
      [2015-11-17 11:57:49,822] - [rest_client] [6820] - INFO - found bucket customer360
      bucket creation is successful
      Exception in thread w0:
      Traceback (most recent call last):
      File "threading.pyc", line 551, in __bootstrap_inner
      File "threading.pyc", line 504, in run
      File "pump.pyc", line 302, in run_worker
      File "pump.pyc", line 360, in run
      File "pump_json.pyc", line 201, in provide_batch
      File "pump_json.pyc", line 57, in extractall
      IOError: [Errno 22] invalid mode ('wb') or filename: u'c:\\users\\tony\\appdata\\local\\temp\\tmpl5apzc
      customer::briesmarble1'

      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)
              leo@couchbase.com leo@couchbase.com
              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