如何修复“资源文件模式无效”?在Cloud Foundry上 [英] How to fix "The Resource file mode is invalid" on Cloud Foundry

查看:73
本文介绍了如何修复“资源文件模式无效”?在Cloud Foundry上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Cloud Foundry将应用程序部署到Bluemix,并且得到以下输出:

I'm trying to deploy an app to Bluemix using Cloud Foundry and I'm getting the following output:

the-neutral-zone:KituraTest loganwright$ cf push
Using manifest file /Users/loganwright/Desktop/KituraTest/manifest.yml

Updating app Kitura-Starter in org [redacted] / space dev as [redacted]...
OK

Uploading Kitura-Starter...
Uploading app files from: /Users/loganwright/Desktop/KituraTest
Uploading 3.9M, 1388 files
Done uploading               
FAILED
Error processing app files: Error uploading application.
The resource file mode is invalid: File mode '0444' is invalid. Minimum file mode is '0600'

我找到了以下资料,但似乎都没有有一个修复程序,或者至少在某个地方我缺少一个步骤:

I've found the following materials, but none of them seem to have a fix, or at least there's a step I'm missing somewhere:

https://github.com/cloudfoundry/cli/issues/685

https://github.com/cloudfoundry/cli/issues/1096

将更改推送到云代工厂时出错

我使用目录中的w /将所有文件的权限设置为0700:

I set all my file's permissions to 0700 using from w/in the directory:

chmod -R 700 *

我不太适合使用文件权限api,因此也希望在此处进行更正

I'm not great w/ file permission apis so corrections here appreciated as well.

推荐答案

在搜索并比较了其他一些项目之后,我发现认为存在一些没有适当权限的工件文件和其他东西。

After searching around and comparing some other projects, I discovered that there were some artifact files and other things being created that didn't have appropriate permissions.

添加 .cfignore 文件可解决此问题。如果有帮助,以下是我的样子:

Adding a .cfignore file fixed this. Here's what mine looks like in case it's helpful:

.build/*
Packages/*
.travis.yml
docker-compose.yml
Dockerfile
*.xcodeproj/

这篇关于如何修复“资源文件模式无效”?在Cloud Foundry上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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