IBM Cloud-Cloud Foundry App Go部署失败

时间:2019-01-21 10:28:46

标签: go ibm-cloud

我正在尝试在IBM Cloud上启动Go Cloud Foundry应用程序,但是部署无法正常进行。错误状态

  Unable to determine Go version to install: no match found for 1.8.3 in 
  1.6.3 1.6.4 1.7.5 1.7.6 1.8.6 1.8.7 1.9.3 1.9.4 1.10]

这是我可以解决的问题,还是IBM Cloud需要解决的问题?我在IBM工作,因此任何IBM员工都可以通过我们的内部通信系统与我联系,这比较可取。

完整版本错误为

Getting app info...
Updating app with these attributes...
  name:                go-logs
  path:                /home/pipeline/452c2d32-763b-4da7-ba9a-c6447b37016c
  disk quota:          1G
  health check type:   port
  instances:           1
  memory:              128M
  stack:               cflinuxfs2
  routes:
    go-logs.eu-de.mybluemix.net

Updating app [36;1mgo-logs[0m...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...

 0 B / 27.80 KiB    0.00%
 27.80 KiB / 27.80 KiB  100.00%
 27.80 KiB / 27.80 KiB  100.00%
 27.80 KiB / 27.80 KiB  100.00%
 27.80 KiB / 27.80 KiB  100.00%
 27.80 KiB / 27.80 KiB  100.00%
 27.80 KiB / 27.80 KiB  100.00% 1s

Waiting for API to complete processing files...

Staging app and tracing logs...
   Downloading python_buildpack...
   Downloading liberty-for-java_v3_26-20181023-1545...
   Downloading sdk-for-nodejs_v3_25-20181219-1036...
   Downloading swift_buildpack_v2_0_15-20180920-0051...
   Downloading liberty-for-java...
   Downloaded sdk-for-nodejs_v3_25-20181219-1036
   Downloading sdk-for-nodejs...
   Downloaded liberty-for-java_v3_26-20181023-1545
   Downloading dotnet-core...
   Downloaded swift_buildpack_v2_0_15-20180920-0051
   Downloading swift_buildpack...
   Downloaded python_buildpack
   Downloading staticfile_buildpack...
   Downloaded liberty-for-java
   Downloading java_buildpack...
   Downloaded swift_buildpack
   Downloading ruby_buildpack...
   Downloaded sdk-for-nodejs
   Downloading nodejs_buildpack...
   Downloaded dotnet-core
   Downloading go_buildpack...
   Downloaded staticfile_buildpack
   Downloading liberty-for-java_v3_27-20181130-1702...
   Downloaded java_buildpack
   Downloading swift_buildpack_v2_0_16-20181214-0434...
   Downloaded ruby_buildpack
   Downloading php_buildpack...
   Downloaded nodejs_buildpack
   Downloading xpages_buildpack...
   Downloaded go_buildpack
   Downloading sdk-for-nodejs_v3_24-20181128-1339...
   Downloaded liberty-for-java_v3_27-20181130-1702
   Downloading binary_buildpack...
   Downloaded swift_buildpack_v2_0_16-20181214-0434
   Downloading dotnet-core_v2_0-20180918-1356...
   Downloaded sdk-for-nodejs_v3_24-20181128-1339
   Downloading dotnet-core_v2_1-20181205-1536...
   Downloaded xpages_buildpack
   Downloaded binary_buildpack
   Downloaded php_buildpack
   Downloaded dotnet-core_v2_0-20180918-1356
   Downloaded dotnet-core_v2_1-20181205-1536
   Cell 49d42072-0d96-446e-ae6f-b172ba8b41d3 creating container for instance f786b6b1-1abc-445b-a7fe-6bdc8c8adbcc
   Cell 49d42072-0d96-446e-ae6f-b172ba8b41d3 successfully created container for instance f786b6b1-1abc-445b-a7fe-6bdc8c8adbcc
   Downloading app package...
   Downloaded app package (27.5K)
   -----> Go Buildpack version 1.8.20
   -----> Checking Godeps/Godeps.json file
   -----> Installing godep v80
          Download [https://buildpacks.cloudfoundry.org/dependencies/godep/godep-v80-linux-x64-3b019ddc.tgz]
   -----> Installing glide v0.13.1
          Download [https://buildpacks.cloudfoundry.org/dependencies/glide/glide-v0.13.1-linux-x64-4959fbf0.tgz]
   -----> Installing dep v0.4.1
          Download [https://buildpacks.cloudfoundry.org/dependencies/dep/dep-v0.4.1-linux-x64-c678d9fc.tgz]
          [31;1m**ERROR**[0m Unable to determine Go version to install: no match found for 1.8.3 in [1.6.3 1.6.4 1.7.5 1.7.6 1.8.6 1.8.7 1.9.3 1.9.4 1.10]
   [31mFailed to compile droplet: Failed to run all supply scripts: exit status 16[0m
   Exit status 223
Error staging application: App staging failed in the buildpack compile phase
[31;1mFAILED[0m

Finished: FAILED

1 个答案:

答案 0 :(得分:2)

看起来像您在应用程序中使用的Go版本不是IBM Cloud上受支持的Cloud Foundry Go buildpack版本。在构建错误中也提到了同样的问题。根据文档here

  

以下Go版本当前在Go buildpack中可用   安装在IBM Cloud中:

     

1.6.3   1.6.4   1.7.5   1.7.6   1.8.6   1.8.7   1.9.3   1.9.4   1.10

如果您的应用程序需要未列出的Go版本,则可以使用外部Go buildpack来部署应用程序。

要检查最新支持的buildpack,您始终可以运行此命令

ibmcloud cf buildpacks