Athens: Cannot use Aliyun OSS storage

Created on 18 Jul 2019  路  5Comments  路  Source: gomods/athens

Describe the bug
When I use aliyun oss, the pull package fails

Error Message


time="2019-07-18T06:19:38Z" level=error msg="Aws MultiChunkedEncoding is not supported." http-method=GET http-path=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info http-url=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info kind="Internal Server Error" module=github.com/athens-artifacts/samplelib operation=download.InfoHandler ops="[download.InfoHandler pool.Info protocol.Info protocol.processDownload stash.Pool stasher.Stash storage.minio.Save]" version=v1.0.0

Environment (please complete the following information):

  • OS: The official docker
  • Go version : go version go1.12.4 darwin/amd64
  • Proxy version : gomods/athens:v0.5.0
  • Storage (fs/mongodb/s3 etc.) : aliyun oss

configuration

StorageType = "minio"
[Storage]
    [Storage.Minio]
        #Endpoint = "oss-cn-hangzhou-internal.aliyuncs.com"
        Endpoint = "oss-cn-hangzhou.aliyuncs.com"
        Key = "xxxx"
        Secret = "xxxx"
        EnableSSL = false
        Bucket = "athens"
        Region = ""

Most helpful comment

@t-tomalak Yes, I also tried to use v0.3.0 or v0.2.0 also failed

athens version: gomods/athens:v0.3.0 or gomods/athens:v0.2.0

logs:

time="2019-07-18T08:01:40Z" level=error msg="Aws MultiChunkedEncoding is not supported." http-method=GET http-path=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info http-url=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info kind="Internal Server Error" module=github.com/athens-artifacts/samplelib operation=download.InfoHandler ops="[download.InfoHandler pool.Info protocol.Info stash.Pool stasher.Stash storage.minio.Save]" version=v1.0.0

All 5 comments

Hi, it seems like it same issue as here #1296 . Could you try version proposed in that issue, to check if it works?

@t-tomalak Yes, I also tried to use v0.3.0 or v0.2.0 also failed

athens version: gomods/athens:v0.3.0 or gomods/athens:v0.2.0

logs:

time="2019-07-18T08:01:40Z" level=error msg="Aws MultiChunkedEncoding is not supported." http-method=GET http-path=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info http-url=/github.com/athens-artifacts/samplelib/@v/v1.0.0.info kind="Internal Server Error" module=github.com/athens-artifacts/samplelib operation=download.InfoHandler ops="[download.InfoHandler pool.Info protocol.Info stash.Pool stasher.Stash storage.minio.Save]" version=v1.0.0

you should set EnableSSL = true, just try it !

because aliyun oss has not support Aws MultiChunkedEncoding yet銆俿o just use https to get around it.

@opinionsDazzle Thanks

Was this page helpful?
0 / 5 - 0 ratings