Concourse:上传到artifactory失败,卷曲错误(剩余未完成的读取数据)

时间:2018-03-02 09:47:35

标签: artifactory pivotal-cloud-foundry bosh concourse

我想在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

我在上传任何类型的版本和干细胞时都会遇到此错误。

我的管道配置如下所示:

---
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 }
...

我使用汇合版v3.9.1和干细胞bosh-vsphere-esxi-ubuntu-trusty-go_agent/3468.21。 Concourse部署为BOSH版本。

任何暗示可能是此错误的根本原因?

1 个答案:

答案 0 :(得分:1)

我尝试手动发出导致相同错误的curl命令。 然后,我尝试手动上传干细胞。 通过这种方式,它出现了对神器的deploy权限缺失。