首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vmc推送错误: nil:NilClass的方法‘[]’未定义

vmc推送错误: nil:NilClass的方法‘[]’未定义
EN

Stack Overflow用户
提问于 2012-12-03 06:21:24
回答 4查看 850关注 0票数 1

当尝试'vmc push hello‘这个sinatra示例应用程序作为部署测试时,我得到了:

代码语言:javascript
复制
Time of crash:  
Sun Dec 02 14:11:52 -0800 2012  

NoMethodError: undefined method `[]' for nil:NilClass  

manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin.rb:76:in `app_by_tag'  
manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin.rb:81:in `find_apps'  
manifests-vmc-plugin-0.4.14/lib/manifests-vmc-plugin/plugin.rb:102  
mothership-0.3.0/lib/mothership/command.rb:78:in `instance_exec'  
mothership-0.3.0/lib/mothership/command.rb:78:in `invoke'  
mothership-0.3.0/lib/mothership/command.rb:82:in `instance_exec'  
mothership-0.3.0/lib/mothership/command.rb:82:in `invoke'  
mothership-0.3.0/lib/mothership/base.rb:50:in `execute'
vmc-0.4.2/lib/vmc/cli.rb:106:in `execute'
mothership-0.3.0/lib/mothership.rb:42:in `start'
vmc-0.4.2/bin/vmc:11
/usr/bin/vmc:19:in `load'
/usr/bin/vmc:19  

当尝试使用命令'vmc push hello‘和'vmc push’将vmc部署到'api.cloudfoundry.com‘和微云时,就会发生这种情况

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2012-12-07 02:38:10

运行gem update vmc为我解决了这个问题。对=> manifests-vmc-plugin-0.4.17的更新

票数 1
EN

Stack Overflow用户

发布于 2012-12-03 18:23:20

manifests-vmc-plugin (0.4.14)有一个问题,你可以做几件事中的一件;

如果您已经安装了VMC 0.4.1和manifests- VMC -

  • 0.4.13,请使用旧版本的vmc (3.2.23)

  • Uninstall vmc 0.4.2和manifests-vmc-

  • 0.4.14。

如果您卸载所有版本的VMC和manifests- vmc -plugin,您可以重新安装vmc 0.4.1,然后卸载manifests-vmc-plugin 0.4.14并重新安装manifests-vmc-plugin 0.4.13这应该会留下一个与旧的旧版本相反的“新”vmc的工作版本。

希望这一切都是有意义的。我还应该补充说,这个问题将在接下来的24小时内得到解决。

票数 2
EN

Stack Overflow用户

发布于 2012-12-03 17:54:07

您可以将vmc gem版本降级到以前的版本吗?sudo gem卸载vmc,为了安全起见,sudo gem安装vmc working_version

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13674561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档