YF-GoogleCodeBackups / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

CloudFoundry无法部署成功!白菜求教,感恩!! #385

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

CloudFoundry无法部署成功!2种方式都不行,严格按照教程一步�
��来,其他步骤都行就是到了最后只有2个询问,少一个。
Create services for application?> n 【这个有】

Bind other services to application?> 
n【没有这一行这步提示!】操作完显示2个OK,然后就提示失�
��~反复几十次都无法成功,唉。。。。百思不得其解!!!��
�人大白菜,看不懂失败后提示的一大堆东西,还望高手和作�
��不吝赐教帮帮忙啊。

不知是电脑缺少什么还是具体过程哪里出错啦!先以致谢

Original issue reported on code.google.com by a.sheng1...@gmail.com on 9 Mar 2013 at 5:51

GoogleCodeExporter commented 8 years ago
提供的信息太少

Original comment by yinqiwen@gmail.com on 10 Mar 2013 at 3:33

GoogleCodeExporter commented 8 years ago
不好意思,因为不懂和笨真的不知怎么描述和提供太具体的��
�况信息:

大概情况就是其他步骤都可以一路顺利,就是到了最后3个问 
N 的选择,我这里只有2个显示! 这一行没有的【Bind other 
services to application?> 
n】,有显示的的2个我都选择N,显示结果OK,再过过一会提示
失败,失败类型什么的看不懂。

2种方式不是java失败后的提示一大堆: 里面有说310什么的;
java的失败后显示内容比较少: 参考vmc push之类的

看了好像和之前有的朋友部署出的问题差不多。呵呵,我转��
�一张别人的图片,最后的情况就是如此:我少了上面说的哪�
��行询问。选择都N以后-------OK、接着就失败提示咯

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 7:55

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Uploading 自己id... FAILED
Upload failed. Try again with 'vmc push'.
TypeError: can't convert nil into String
For more information, see ~/.vmc/crash

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 12:38

GoogleCodeExporter commented 8 years ago
补上java平台失败后提示信息,错在哪里该怎么解决呢?谢谢

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 12:39

GoogleCodeExporter commented 8 years ago
操作过程------------如下!

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>d:

D:\>cd to

D:\to>vmc target api.cloudfoundry.com
Setting target to https://api.cloudfoundry.com... OK

D:\to>vmc login
target: https://api.cloudfoundry.com

Email> xxxxxxxxx@gmail.com

Password> ********

Authenticating... OK

D:\to>vmc push xxxxx
Instances> 1

1: java_web
2: other
Framework> java_web

1: java
2: java7
3: other
Runtime> 1

1: 64M
2: 128M
3: 256M
4: 512M
5: 1G
6: 2G
Memory Limit> 512M

Creating xxxx... OK

1: xxxx.cloudfoundry.com
2: none
Domain> xxxx.cloudfoundry.com

Updating xxxx... OK

Create services for application?> n

Save configuration?> n

Uploading free-01... FAILED
Upload failed. Try again with 'vmc push'.
TypeError: can't convert nil into String
For more information, see ~/.vmc/crash

D:\to>

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 12:44

GoogleCodeExporter commented 8 years ago
很多问题会导致失败,比如目录下是否有war文件,帐户已部��
�的app是否超过限制等等。
具体原因你可以看看~/.vmc/crash这个文件,~代表你的C盘下的用
户目录
For more information, see ~/.vmc/crash

Original comment by yinqiwen@gmail.com on 10 Mar 2013 at 12:50

GoogleCodeExporter commented 8 years ago
war文件肯定是有的。这个~/.vmc/crash文件在哪里看呢?哈哈,��
�在是文盲一只,还有劳指点~ 找到后要怎么看问题捏 thx!

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 1:10

GoogleCodeExporter commented 8 years ago
在文件浏览器地址栏输入%HOMEPATH%就到了用户目录

Original comment by yinqiwen@gmail.com on 10 Mar 2013 at 1:16

GoogleCodeExporter commented 8 years ago
是这个吗?------------------

Time of crash:
  2013-03-10 20:31:24 +0800

TypeError: can't convert nil into String

multipart-post-1.2.0/lib/composite_io.rb:85:in `initialize'
multipart-post-1.2.0/lib/composite_io.rb:85:in `open'
multipart-post-1.2.0/lib/composite_io.rb:85:in `initialize'
cfoundry-0.5.2/lib/cfoundry/v1/base.rb:57:in `new'
cfoundry-0.5.2/lib/cfoundry/v1/base.rb:57:in `upload_app'
cfoundry-0.5.2/lib/cfoundry/upload_helpers.rb:48:in `upload'
vmc-0.5.0/lib/vmc/cli/app/push.rb:86:in `block in upload_app'
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress'
vmc-0.5.0/lib/vmc/cli/app/push.rb:85:in `upload_app'
vmc-0.5.0/lib/vmc/cli/app/push.rb:65:in `setup_new_app'
vmc-0.5.0/lib/vmc/cli/app/push.rb:48:in `push'
mothership-0.5.1/lib/mothership/base.rb:66:in `run'
mothership-0.5.1/lib/mothership/command.rb:72:in `block in invoke'
manifests-vmc-plugin-0.6.2/lib/manifests-vmc-plugin/plugin.rb:142:in `call'
manifests-vmc-plugin-0.6.2/lib/manifests-vmc-plugin/plugin.rb:142:in `block in 
create_and_save_manifest'
mothership-0.5.1/lib/mothership/callbacks.rb:74:in `with_filters'
manifests-vmc-plugin-0.6.2/lib/manifests-vmc-plugin/plugin.rb:141:in 
`create_and_save_manifest'
manifests-vmc-plugin-0.6.2/lib/manifests-vmc-plugin/plugin.rb:80:in `wrap_push'
manifests-vmc-plugin-0.6.2/lib/manifests-vmc-plugin/plugin.rb:29:in `block in 
<class:ManifestsPlugin>'
mothership-0.5.1/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:82:in `block (2 levels) in invoke'
mothership-0.5.1/lib/mothership/command.rb:86:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:86:in `invoke'
mothership-0.5.1/lib/mothership/base.rb:55:in `execute'
vmc-0.5.0/lib/vmc/cli.rb:150:in `block (2 levels) in execute'
vmc-0.5.0/lib/vmc/cli.rb:161:in `save_token_if_it_changes'
vmc-0.5.0/lib/vmc/cli.rb:149:in `block in execute'
vmc-0.5.0/lib/vmc/cli.rb:100:in `wrap_errors'
vmc-0.5.0/lib/vmc/cli.rb:145:in `execute'
mothership-0.5.1/lib/mothership.rb:45:in `start'

看不懂诶 ==!

Original comment by a.sheng1...@gmail.com on 10 Mar 2013 at 1:25

GoogleCodeExporter commented 8 years ago
nodejs版的没用问题,java版就会出问题。
好像是vmc的bug
https://github.com/cloudfoundry/vmc/issues/65

Original comment by yubinlov...@gmail.com on 11 Apr 2013 at 8:46

GoogleCodeExporter commented 8 years ago
先查看vmc版本 vmc -v如果是新版本的就卸载掉, gem uninstall -a 
vmc ,新版与ruby某些兼容性不如旧版好,
安装gem install -v 0.3.21 vmc 旧版试试看,

Original comment by xilo...@gmail.com on 12 Apr 2013 at 5:45

GoogleCodeExporter commented 8 years ago
呵呵,我也是一样的问题,解决的关键是要装jdk啊,jre是不��
�滴,由于一开始装的jdk包完全就忽略了,一直在jre6啊7啊x64��
�i586啊纠结烦恼了几个钟啊,最后耐心下完了官方的jdk7就一��
�搞定了,郁闷啊

Original comment by amei...@gmail.com on 14 Apr 2013 at 9:51

GoogleCodeExporter commented 8 years ago
哦,诈胡了,#12楼的正解啊,不过 gem uninstall vmc 后还要 
uninstall 
tunnel-vmc-plugin,然后再install,不过我最后成功的版本是 
0.4.0,12楼的0.3.21我之前因为失败过没再安装测试了

Original comment by amei...@gmail.com on 16 Apr 2013 at 9:58