cli icon indicating copy to clipboard operation
cli copied to clipboard

v7 Regression in package upload errors

Open sweinstein22 opened this issue 5 years ago • 2 comments

  • [x] I reviewed open and closed github issues that may be related to my problem.
  • [x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with When running cf push for an app that cannot be processed correctly by CAPI, the error message returned by v7 is generic and somewhat unhelpful in comparison to that returned by v6.

What happened I was working on reproducing an issue filed with CAPI and noticed we have a regression in the quality of error messages returned when a package fails to upload correctly between v6 and v7.

Expected behavior I would expect the API's more specific error message to be bubbled up.

Exact Steps To Reproduce

  1. Create a file which is larger than the configured cc.resource_pool.minimum_size and change it's permissions to 444
head -c 65537 </dev/urandom > cacheable.stuff
chmod 444 cacheable.stuff
  1. cf push the app twice - the first time should succeed, the second will fail as will any future attempts to push the app
  2. See error "Package failed to process correctly after upload" when using v7 vs. "The resource file mode is invalid: File mode '444' with path 'cacheable.stuff' is invalid. Minimum file mode is '0600'" when using v6

image

image

Provide more context

  • Slack thread: https://cloudfoundry.slack.com/archives/C032824SM/p1602103520055800
  • platform and shell details: Mac OS X 10.15.3, iTerm
  • version of the CLI you are running: 6.53.0 and 7.1.0
  • version of the CC API Release you are on: 1.99.0 (dev release)

sweinstein22 avatar Oct 07 '20 21:10 sweinstein22

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/175175377

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Oct 07 '20 21:10 cf-gitbot

I would like to bump this issue. In my case I also got the "Package failed to process correctly after upload", but the underlying error as shown in the CF_TRACE was:

The app package is invalid: Package may not be larger than 1073741824 bytes

As a Cloud Foundry user I would like to get the "real" error message (without going into debug mode).

romain-dartigues avatar Dec 07 '23 13:12 romain-dartigues