cli icon indicating copy to clipboard operation
cli copied to clipboard

CF CLI version 6.33.0 v3-push fails

Open nusnewob opened this issue 9 years ago • 8 comments

CF CLI version 6.33.0 v3-push unable to find app files in path

Command

cf v3-push -b python_buildpack broken_app

What occurred

This command is in EXPERIMENTAL stage and may change without notice

Updating app broken_app in org test / space sandbox as ****...
OK

Uploading and creating bits package for app broken_app in org test / space sandbox as ****...
No app files found in '/var/lib/jenkins/workspace/pipeline'
FAILED

Rolled back to CF CLI 6.32.0 the same command worked fine.

What you expected to occur

CLI Version

cf version 6.33.0+a345ea34d.2017-11-20

CC API Endpoint Version

api endpoint:   https://api_endpoint
api version:    2.99.0

CF Trace

No stack trace available.

Platform & Shell Details

Mac OS X 10.13.1 iTerm Build 3.1.5.beta.2

nusnewob avatar Nov 30 '17 15:11 nusnewob

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

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

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

cf-gitbot avatar Nov 30 '17 15:11 cf-gitbot

Hi @nusnewob

Can you show a ls -la of the files inside /var/lib/jenkins/workspace/pipeline? I wonder if there's anything about any of them that made the CLI think there weren't any.

Cheers, Dies Koper CF CLI PM

dkoper avatar Dec 04 '17 04:12 dkoper

Closing due to inactivity. Feel free to reopen or submit a new issue if you can provide more details.

dkoper avatar Dec 11 '17 21:12 dkoper

@dkoper I've checked, all files exist in path /var/lib/jenkins/workspace/pipeline, for some reason cf-cli v6.33 doesn't agree, but v6.32 worked fine.

I've tried debugging, but CF_TRACE only provides API responses, there was nothing useful to debug local cli errors.

nusnewob avatar Dec 19 '17 18:12 nusnewob

@dkoper Tested v6.33.1, it has the same bug. Please re-open the issue. Thanks.

nusnewob avatar Dec 19 '17 18:12 nusnewob

@nusnewob I see @dkoper asked if you could provide the following info: Can you show a ls -la of the files inside /var/lib/jenkins/workspace/pipeline?

jbpivotal avatar Dec 19 '17 18:12 jbpivotal

@jbpivotal I don't have original output any more, but I've checked many times that I could see files in the path /var/lib/jenkins/workspace/pipeline like a regular directory. This runs inside a container, /var/lib/jenkins/workspace/pipeline is a mounted path from a local directory.

nusnewob avatar Jan 05 '18 14:01 nusnewob

I've managed to reproduce it.

ubuntu@cba72d7b936d:/var/lib/jenkins/workspace/pipeline$ cf v3-push dev
This command is in EXPERIMENTAL stage and may change without notice

Updating app dev in org staging / space dev as xxx...
OK

Uploading and creating bits package for app dev in org staging / space dev as xxx...
No app files found in '/var/lib/jenkins/workspace/pipeline'
FAILED
ubuntu@cba72d7b936d:/var/lib/jenkins/workspace/pipeline$ ll
total 452
drwxr-xr-x  35 ubuntu ubuntu   1120 Jan 16 11:57 ./
drwxr-xr-x   3 root   root     4096 Jan 16 12:00 ../
-rw-r--r--   1 ubuntu ubuntu     28 Jan 16 11:33 .babelrc
-rw-r--r--   1 ubuntu ubuntu    475 Jan 16 11:33 .cfignore
-rw-r--r--   1 ubuntu ubuntu   2717 Jan 16 11:56 .env
drwxr-xr-x  13 ubuntu ubuntu    416 Jan 16 11:43 .git/
-rw-r--r--   1 ubuntu ubuntu    800 Jan 16 11:33 .gitignore
-rw-r--r--   1 ubuntu ubuntu      7 Jan 16 11:33 .nvmrc
-rw-r--r--   1 ubuntu ubuntu      6 Jan 16 11:40 .python-version
-rw-r--r--   1 ubuntu ubuntu   1095 Jan 16 11:33 LICENSE
-rw-r--r--   1 ubuntu ubuntu     62 Jan 16 11:33 Procfile
-rw-r--r--   1 ubuntu ubuntu   1525 Jan 16 11:33 README.md
-rw-r--r--   1 ubuntu ubuntu   1698 Jan 16 11:33 app.json
drwxr-xr-x   3 ubuntu ubuntu     96 Jan 16 11:33 assets/
-rw-r--r--   1 ubuntu ubuntu    257 Jan 16 11:33 circle.yml
drwxr-xr-x   6 ubuntu ubuntu    192 Jan 16 11:42 compiled_static/
drwxr-xr-x  18 ubuntu ubuntu    576 Jan 16 11:57 contact/
-rw-r--r--   1 ubuntu ubuntu   3261 Jan 16 11:33 gulpfile.babel.js
drwxr-xr-x   8 ubuntu ubuntu    256 Jan 16 11:52 help/
-rw-r--r--   1 ubuntu ubuntu   1549 Jan 16 11:33 makefile
-rwxr-xr-x   1 ubuntu ubuntu    247 Jan 16 11:33 manage.py*
-rw-r--r--   1 ubuntu ubuntu    107 Jan 16 11:33 manifest.yml
-rw-r--r--   1 ubuntu ubuntu 147456 Jan 16 11:33 mydatabase
drwxr-xr-x 733 ubuntu ubuntu  23456 Jan 16 11:42 node_modules/
-rw-r--r--   1 ubuntu ubuntu 224897 Jan 16 11:33 package-lock.json
-rw-r--r--   1 ubuntu ubuntu   1101 Jan 16 11:33 package.json
-rw-r--r--   1 ubuntu ubuntu    153 Jan 16 11:33 projectpath.babel.js
-rw-r--r--   1 ubuntu ubuntu    563 Jan 16 11:33 requirements.txt
-rw-r--r--   1 ubuntu ubuntu     48 Jan 16 11:33 requirements_for_test.txt
-rw-r--r--   1 ubuntu ubuntu     13 Jan 16 11:33 runtime.txt
drwxr-xr-x   4 ubuntu ubuntu    128 Jan 16 11:33 scripts/
-rw-r--r--   1 ubuntu ubuntu     29 Jan 16 11:33 setup.cfg
drwxr-xr-x   7 ubuntu ubuntu    224 Jan 16 11:41 src/
drwxr-xr-x   4 ubuntu ubuntu    128 Jan 16 11:33 sso/
drwxr-xr-x  12 ubuntu ubuntu    384 Jan 16 11:57 staticfiles/

nusnewob avatar Jan 16 '18 12:01 nusnewob