将变更推送到Cloud Foundry时出错 [英] Error pushing changes to cloud foundry

查看:88
本文介绍了将变更推送到Cloud Foundry时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我的本地主机连接到

 cf api https://api.ng.bluemix.net

我登录,然后使用

 cf push

但是,在控制台中,

 Uploading MY_PROJECT...
 Uploading app files from: /Users/MyName/Documents/MY_PROJECT
 Uploading 437.7K, 386 files
 Done uploading               
 FAILED
 Error processing app files: Error uploading application.
 The resource file mode is invalid: File mode '0444' is invalid.
 (venv) My-iMac:MY_PROJECT MyName$ 

如何解决此问题?

推荐答案

根据此链接: https://github.com/cloudfoundry/cli/issues/685 文件模式必须至少为600,因此我猜您应该提高资源文件夹的权限,甚至如果在技术上来说444是可以的。

According to this link: https://github.com/cloudfoundry/cli/issues/685 the file mode must be at least 600 so I guess you should "raise" the permissions for your resources folder, even if 444 would be technically ok.

关于故障排除:错误消息就在您的输出中。如果需要更多日志输出,可以使用命令

Concerning troubleshooting: the error message is right there in your output. If you need more log output, you can use the command

cf logs APP-NAME

请参见 https://docs.cloudfoundry.org/devguide/deploy-apps/streaming-logs.html 了解更多详情。

这篇关于将变更推送到Cloud Foundry时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆