将ruby应用程序推送到V2云 - 错误,没有这样的文件ruby_versions.yml

时间:2013-03-20 20:27:03

标签: cloudfoundry

(在Google Groups上交叉发布)

我有一个手工制作的V2安装,我试图推送一个ruby应用程序。它被正确识别为ruby应用程序,因为它报告它是“安装ruby”。但随后抛出以下内容:

Installing ruby.
/usr/lib/ruby/1.9.1/psych.rb:297:in `initialize': No such file or directory - ruby_versions.yml (Errno::ENOENT)
            from /usr/lib/ruby/1.9.1/psych.rb:297:in `open'
            from /usr/lib/ruby/1.9.1/psych.rb:297:in `load_file'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:192:in `block (2 levels) in ruby_versions'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:190:in `chdir'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:190:in `block in ruby_versions'
            from /usr/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:189:in `ruby_versions'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:235:in `install_ruby'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/ruby.rb:77:in `compile'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/bin/compile:11:in `block in <main>'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/lib/language_pack/base.rb:84:in `log'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/vendor/ruby/bin/compile:10:in `<main>'
/home/cdavisafc/cloud-fabric/dea_ng/buildpacks/lib/installer.rb:17:in `compile': Buildpack compilation step failed: (RuntimeError)
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/lib/buildpack.rb:15:in `block in stage_application'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/lib/buildpack.rb:11:in `chdir'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/lib/buildpack.rb:11:in `stage_application'
            from /home/cdavisafc/cloud-fabric/dea_ng/buildpacks/bin/run:10:in `<main>'

在调试中更深入一点,我发现在查看buildpack缓存后,在blobstore中它尝试卷曲https://s3.amazonaws.com/heroku-buildpack-ruby/ruby_versions.yml。我认为S3存储桶是可以访问的,因为在该URL上获得bundler-1.3.2.tgz似乎已经成功。

有什么想法吗?

谢谢, Cornelia的

1 个答案:

答案 0 :(得分:0)

我对这个特定错误并不是100%肯定,但我们确实有一个Heroku构建包的分支,可能值得尝试。

https://github.com/cloudfoundry/heroku-buildpack-ruby

所以再次推送应用程序,但是这样做;

vmc push --buildpack=git://github.com/cloudfoundry/heroku-buildpack-ruby.git