Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3887

[3.1.5 Backport] 3.1.4 sgcollect_info fails to upload to s3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.5
    • 3.1.4
    • SyncGateway
    • Security Level: Public
    • None

    Description

      S3 (the default CB support upload URL) returns "501 Not Implemented" after the changes made in CBG-3591 resulting in failed uploads.
      Workaround: Get sgcollect_info to write the zip file to disk instead of uploading it (keep --upload-host empty), and then manually upload to s3 with curl.

      A missing Content-Length header is causing S3 to return the 501 error.

      The do_upload code changes have been isolated to be the cause of this regression

      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: Traceback (most recent call last):
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "tasks.py", line 1087, in do_upload
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "urllib/request.py", line 523, in open
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "urllib/request.py", line 632, in http_response
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "urllib/request.py", line 561, in error
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "urllib/request.py", line 494, in _call_chain
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info:   File "urllib/request.py", line 641, in http_error_default
      2024-04-10T09:44:52.476Z [INF] c:SGCollect-6592 sgcollect_info: urllib.error.HTTPError: HTTP Error 501: Not Implemented 

      Attachments

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

        Activity

          People

            tor.colvin Tor Colvin
            ben.brooks Ben Brooks
            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