代码之家  ›  专栏  ›  技术社区  ›  muehsi

Concourse:上载到artifactory失败,出现curl错误(剩余未完成的读取数据)

  •  2
  • muehsi  · 技术社区  · 7 年前

    我想在pivnet上自动发现新的stemcell版本,请从 pivotal network 并将其上传到本地人工制品厂。 但是,上载(到artifactory)任务失败,出现以下错误:

    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
    
    100  410M    0     0  100  410M      0   439M --:--:-- --:--:-- --:--:--  440M
    
    curl: (18) transfer closed with outstanding read data remaining
    

    我在上传任何版本和stemcell时都会遇到这个错误。

    我的管道配置如下所示:

    ---
    resource_types:
      - name: artifactory
        type: docker-image
        source:
          repository: pivotalservices/artifactory-resource
      - name: pivnet
        type: docker-image
        source:
          repository: pivotalcf/pivnet-resource
          tag: latest-final    
    
    resources:
    - name: git-repository
      type: git
      source:
        uri: ssh://<git-repository>
        private_key: ((ssh_key))
    
    - name: stemcell
      type: pivnet
      check_every: 1m
      source:
        api_token: ((pivnet-api-token))
        product_slug: stemcells    
    
    - name: artifactory
      type: artifactory
      source:
        endpoint: https://((artifactory_domain)):443/artifactory
        repository: "/<path>/stemcells/bosh-vsphere-esxi-ubuntu-trusty-go_agent"
        regex: "bosh-vsphere-esxi-ubuntu-trusty-go_agent-(?<version>.*).tgz"
        username: ((artifactory_username))
        password: ((artifactory_password))    
    
    jobs:
    - name: download-and-upload
      plan:
      - get: <git-repository>
      - get: stemcell
        trigger: true
        version: every
      - task: rename-files
        file: <git-repository>/tasks/rename-stemcell/task.yml
      - put: artifactory
        params: { file: renamed-stemcell/stemcell/bosh-vsphere-esxi-ubuntu-trusty-go_agent*.tgz }
    ...
    

    我使用concourse版本 v3.9.1 还有stemcell bosh-vsphere-esxi-ubuntu-trusty-go_agent/3468.21 。Concourse部署为BOSH释放。

    任何提示此错误的根本原因是什么?

    1 回复  |  直到 5 年前
        1
  •  1
  •   muehsi    7 年前

    我试图手动发出curl命令,这导致了相同的错误。 然后,我尝试手动上传stemcell。 通过这件事,我们发现 deploy 对artifactory的权限。

    推荐文章