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

cbcollect_info failing to upload logs to s3 - AttributeError: 'tuple' object has no attribute 'decode'

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      Build : 6.5.0-2640

      cbcollect_info collects the logs, but fails to upload them to s3.

      adding: /tmp/tmp86g3cgtm/stats_archives.json -> cbcollect_info_ns_1@172.23.109.181_20190315-165126/stats_archives.json
      adding: /tmp/tmp86g3cgtm/kv_trace.json -> cbcollect_info_ns_1@172.23.109.181_20190315-165126/kv_trace.json
      adding: /tmp/tmp86g3cgtm/cbcollect_info.log -> cbcollect_info_ns_1@172.23.109.181_20190315-165126/cbcollect_info.log
      Traceback (most recent call last):
        File "/opt/couchbase/lib/python/cbcollect_info", line 1592, in <module>
          main()
        File "/opt/couchbase/lib/python/cbcollect_info", line 1567, in main
          do_upload_and_exit(zip_filename, upload_url, options.upload_proxy)
        File "/opt/couchbase/lib/python/cbcollect_info", line 1311, in do_upload_and_exit
          stdout, _ = p.communicate().decode()
      AttributeError: 'tuple' object has no attribute 'decode'
      Killing curl...
      

      This is probably related to the recent Python3 changes.
      cc Couchbase Build Team

      Command used to do a cbcollect on a single node cluster :
      ./cbcollect_info output_file.zip --upload-host=s3.amazonaws.com/bugdb/jira --customer=cbcollectinfo_error_test_0315

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-33379
          # Subject Branch Project Status CR V

          Activity

            People

              mihir.kamdar Mihir Kamdar (Inactive)
              mihir.kamdar Mihir Kamdar (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