无法使用swift_buildpack 2.0.5“cf push”到Bluemix中

时间:2017-04-05 11:08:02

标签: ibm-cloud

我无法再将我的应用推送到Bluemix。我正在使用swift_buildback来购买Kitura应用程序。

我最后一次成功推动它,是昨天。我注意到默认的buildpack现在是2.0.5。我最后一次注意到这一点,它是2.0.4。我不知道如何指定旧版本的buildpack,以排除那里的问题。

cf push返回以下内容:

Downloading swift_buildpack...
Downloaded swift_buildpack
Creating container
Successfully created container
Downloading app package...
Downloaded app package (46.5M)
Downloading build artifacts cache...
Downloaded build artifacts cache (43.9M)
Staging...
-----> Buildpack version 2.0.5
-----> Default supported Swift version is 3.1
-----> Configure for apt-get installs...
-----> Writing profile script...
-----> Copying deb files to installation folder...
-----> No Aptfile found.
-----> Getting swift-3.0.2
-----> WARNING: Default supported Swift version: swift-3.1
-----> WARNING: Requested Swift version for your app: swift-3.0.2
       Cached swift-3.0.2
-----> Unpacking swift-3.0.2.tar.gz
-----> Getting clang-3.8.0
       Cached clang-3.8.0
-----> Unpacking clang-3.8.0.tar.xz
-----> .ssh directory and config file not found.
-----> Loading from cache:
-----> - Packages
-----> Fetching Swift packages and parsing Package.swift files...
-----> Additional packages to download: libcurl4-openssl-dev openssl libssl-dev
-----> libcurl4-openssl-dev is already installed.
-----> openssl is already installed.
-----> libssl-dev is already installed.
-----> No additional packages to download.
-----> Skipping installation of App Management (debug)
-----> Installing system level dependencies...
-----> Installing deb_files
dpkg-deb: error: failed to read archive `deb_files': No such file or directory
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
Destroying container

FAILED
Error restarting application: BuildpackCompileFailed

1 个答案:

答案 0 :(得分:2)

为了验证您的应用程序是否可以使用以前版本的buildpack,只需将-b <buildpack name>标志添加到cf push命令即可​​。

可以通过运行cf buildpacks获取可用构建包的名称。在这种情况下,由于您需要旧的2.0.4 buildpack版本,该命令将如下所示: cf push <app_name> -b swift_buildpack_v2_0_4-20170125-2344

为Bluemix管理Swift构建包的团队可以帮助解决他们开放的Slack团队中的问题 - https://swift-at-ibm-slack.mybluemix.net