我正在尝试在 Cloud Foundry 中托管一个示例 (HelloWorld) Play 应用程序,但在 Staging 时总是出现此错误,
Error 310: Staging failed: 'Staging task failed:
Staging plugin failed: cp: cannot stat `/var/vcap/data/stager/tmp/d20120828-24156-128z05h/unstaged/logs/*': No such file or directory
/var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod': No such file or directory - /var/vcap/data/stager/tmp/d20120828-24156-128z05h/staged/app/start (Errno::ENOENT)
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:879:in `block in chmod'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:878:in `each'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:878:in `chmod'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:14:in `block in stage_application'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:11:in `chdir'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:11:in `stage_application'
from /var/vcap/packages/stager/bin/run_plugin:19:in `<main>'
我对此很陌生,所以不知道这意味着什么。我也尝试过谷歌搜索,但无济于事。
我也试过这个,但它不起作用所以类似于这个的问题
编辑:
上面的链接指向有效,只需确保在 vmc push 命令中提供应用程序名称,如答案所示。
非常感谢任何帮助。
谢谢。
开发环境:
Play 2.0 - 基于 Scala
Ubuntu 12.04
vmc 来部署应用程序。
附加信息:
我跟着这个教程玩 scala Cloud Foundry
Would you like to deploy from the current directory? [Yn]:
Application Name: HelloSample
Detected a Standalone Application, is this correct? [Yn]: n
1: Play
2: Lift
3: JavaWeb
4: Node
5: Standalone
6: Rails
7: Spring
8: Rack
9: Grails
10: Sinatra
Select Application Type: 1
Selected Play Framework Application
Application Deployed URL [HelloSample.cloudfoundry.com]: hellosample.cloudfoundry.com
Memory reservation (128M, 256M, 512M, 1G, 2G) [256M]:
How many instances? [1]:
1
Create services to bind to 'HelloSample'? [yN]: 1
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
Creating Application: OK
Uploading Application:
Checking for available resources: OK
Processing resources: OK
Packing application: OK
Uploading (106K): OK
Push Status: OK
Staging Application 'HelloSample': ..Error 310: Staging failed: 'Staging task failed:
Staging plugin failed: cp: cannot stat `/var/vcap/data/stager/tmp/d20120828-24156-128z05h/unstaged/logs/*': No such file or directory
/var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod': No such file or directory - /var/vcap/data/stager/tmp/d20120828-24156-128z05h/staged/app/start (Errno::ENOENT)
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:879:in `block in chmod'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:878:in `each'
from /var/vcap/data/packages/ruby/6.1/lib/ruby/1.9.1/fileutils.rb:878:in `chmod'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:14:in `block in stage_application'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:11:in `chdir'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.62/lib/vcap/staging/plugin/play/plugin.rb:11:in `stage_application'
from /var/vcap/packages/stager/bin/run_plugin:19:in `<main>'
'