Muhammad
Muhammad

Reputation: 109

Error pushing changes to cloud foundry

from my local host, I connected to blue mix with

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

I logged in and then I pushed the changes with

 cf push

However, in the console,

 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$ 

How do I trouble shoot this?

Upvotes: 4

Views: 2420

Answers (1)

Michael Lihs
Michael Lihs

Reputation: 8220

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

See https://docs.cloudfoundry.org/devguide/deploy-apps/streaming-logs.html for further details.

Upvotes: 5

Related Questions