ibm-early-programs / animal-sounds

Animal Sounds Machine Learning
Apache License 2.0
6 stars 36 forks source link

CF App is unable to start need to update the code #9

Closed HaliSyed closed 4 years ago

HaliSyed commented 5 years ago

2019-05-20T11:49:07.31+0400 [API/21] OUT Uploading bits for app with guid xxxx 2019-05-20T11:49:14.37+0400 [API/21] OUT Creating build for app with guid xxxx 2019-05-20T11:49:14.56+0400 [API/21] OUT Updated app with guid xxxxxx ({"state"=>"STARTED"}) 2019-05-20T11:49:14.77+0400 [STG/0] OUT Cell xxxx creating container for instance xxxx 2019-05-20T11:49:15.72+0400 [STG/0] OUT Cell xxxxx successfully created container for instance xxxxx 27349 2019-05-20T11:49:15.91+0400 [STG/0] OUT Downloading app package... 2019-05-20T11:49:16.06+0400 [STG/0] OUT Downloaded app package (11.1K) 2019-05-20T11:49:20.37+0400 [STG/0] ERR It looks like you're deploying on a s tack (currently set to cflinuxfs3) that's not supported by this buildpack. 2019-05-20T11:49:20.37+0400 [STG/0] ERR That could be because you're using a recent buildpack release on a deprecated stack. 2019-05-20T11:49:20.37+0400 [STG/0] ERR If you're using the buildpack install ed by your CF admin, please let your admin know you saw this error message. 2019-05-20T11:49:20.37+0400 [STG/0] ERR If you at one point specified a build pack that's at git URL, please make sure you're pointed at a version that suppor ts this stack. 2019-05-20T11:49:20.38+0400 [STG/0] ERR Failed to compile droplet: Failed to compile droplet: exit status 44 2019-05-20T11:49:20.53+0400 [STG/0] OUT Exit status 223 2019-05-20T11:49:20.92+0400 [STG/0] OUT Cell xxxx stopping instance xxxx 2019-05-20T11:49:20.92+0400 [STG/0] OUT Cell xxxx destroying container for instance xxxxx 2019-05-20T11:49:22.06+0400 [STG/0] OUT Cell xxxxxxx successfully destroyed container for instance xxxxx xxxxx

chughts commented 5 years ago

That is odd, because buildpack 1.5.4 does support python 3.5.1 on the stack cflinuxfs2.

Did you modify the manifest.yml file?

HaliSyed commented 5 years ago

The only change suggested in manifest.yml was hostname

I am pasting hostname below

applications:

chughts commented 5 years ago

Try removing the buildpack and cf_stacks lines.

HaliSyed commented 5 years ago

Downloaded app package (11.1K) -----> Python Buildpack version 1.6.23 -----> Supplying Python ERROR Could not install python: no match found for 3.5.1 in [2.7.14 2 .7.15 3.4.8 3.4.9 3.5.5 3.5.6 3.6.6 3.6.7 3.7.0 3.7.1] Failed to compile droplet: Failed to run all supply scripts: exit status 14 Exit status 223 Cell xxxxxxx stopping instance xxxxxxxxxx Cell xxxxxxxxxxxxx destroying container for instance xxxxxxxx Cell xxxxxxxxx successfully destroyed container for i nstance xxxxxxx

FAILED Error restarting application: BuildpackCompileFailed

chughts commented 5 years ago

Looking at the IBM Cloud documentation for Python - https://cloud.ibm.com/docs/runtimes/python?topic=Python-python_runtime

The default buildpack does not support Python 3.5.1

So Option 1 would be to specify a version of Python that is supported which would be 3.5.4 or 3.5.5 in runtime.txt

Python 3.5.1 was removed in buildpack 1.5.15 - https://github.com/cloudfoundry/python-buildpack/releases?after=v1.5.21

So Option 2 would be to specify buildpack 1.5.14

sandra-calvo commented 5 years ago

I got it to work using:

python-3.5.5 for runtime.txt &

In manifest: buildpack: https://github.com/cloudfoundry/python-buildpack#v1.6.29 cf_stacks: cflinuxfs2

chughts commented 4 years ago

Versions in runtime.txt and manifest.yml and requirements.txt have been bumped.