i am trying to deploy small ML model with GCP but having errors. Interestingly that i could find the source of mistake - locally everything is working well

44 views
Skip to first unread message

Volodymyr Gavrysh

unread,
Mar 23, 2020, 8:02:39 AM3/23/20
to Google App Engine
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 492842b5-d2d1-44b2-9977-ae62e70d4398 status: FAILURE.

Build error details: {"error":{"errorType":"BuildError","canonicalCode":"INVALID_ARGUMENT","errorId":"E8CA3212","errorMessage":"21 Mar 2020 20:43:21 INFO     

Arguments: ['--parser_script=/usr/local/bin/ftl.par', '--src=', '--entrypoint=gunicorn -b :$PORT main:app', '--name=eu.gcr.io/new-bert-app/app-engine-tmp/app/ttl-2h:1d0704fe-c6be-4904-9686-6f51a6c4f562', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/new-bert-app/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20200223_3_7_6_RC00']\n21 Mar 2020 20:43:21 INFO     Unparsed arguments: ['--name=eu.gcr.io/new-bert-app/app-engine-tmp/app/ttl-2h:1d0704fe-c6be-4904-9686-6f51a6c4f562', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/new-bert-app/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20200223_3_7_6_RC00']\n21 Mar 2020 20:43:21 INFO     Executing ['/usr/local/bin/ftl.par', '--name=eu.gcr.io/new-bert-app/app-engine-tmp/app/ttl-2h:1d0704fe-c6be-4904-9686-6f51a6c4f562', '--directory=/workspace', '--destination=/srv', '--cache-repository=eu.gcr.io/new-bert-app/app-engine-tmp/build-cache/ttl-7d', '--cache', '--builder-output-path=\"\"', '--additional-directory=/.googleconfig', '--python-cmd=/opt/python3.7/bin/python3.7', '--pip-cmd=/env/bin/python3.7 -m pip', '--venv-cmd=/opt/python3.7/bin/python3.7 -m venv /env', '-v=DEBUG', '--base=eu.gcr.io/gae-runtimes/python37:python37_20200223_3_7_6_RC00']\nINFO     FTL version python-v0.17.0\nINFO     Beginning FTL build for python\nINFO     FTL arg passed: virtualenv_dir /env\nINFO     FTL arg passed: ttl 168\nINFO     FTL arg passed: python_cmd /opt/python3.7/bin/python3.7\nINFO     FTL arg passed: cache True\nINFO     FTL arg passed: virtualenv_cmd virtualenv\nINFO     FTL arg passed: entrypoint None\nINFO     FTL arg passed: exposed_ports None\nINFO     FTL arg passed: pip_cmd /env/bin/python3.7 -m pip\nINFO     FTL arg passed: tar_base_image_path None\nINFO     FTL arg passed: export_cache_stats False\nINFO     FTL arg passed: builder_output_path \"\"\nINFO     FTL arg passed: destination_path /srv\nINFO     FTL arg passed: sh_c_prefix False\nINFO     FTL arg passed: base eu.gcr.io/gae-runtimes/python37:python37_20200223_3_7_6_RC00\nINFO     FTL arg passed: cache_key_version v0.17.0\nINFO     FTL arg passed: cache_salt \nINFO     FTL arg passed: cache_repository eu.gcr.io/new-bert-app/app-engine-tmp/build-cache/ttl-7d\nINFO     FTL arg passed: venv_cmd /opt/python3.7/bin/python3.7 -m venv /env\nINFO     FTL arg passed: name eu.gcr.io/new-bert-app/app-engine-tmp/app/ttl-2h:1d0704fe-c6be-4904-9686-6f51a6c4f562\nINFO     FTL arg passed: global_cache False\nINFO     FTL arg passed: upload True\nINFO     FTL arg passed: fail_on_error True\nINFO     FTL arg passed: output_path None\nINFO     FTL arg passed: directory /workspace\nINFO     FTL arg passed: additional_directory /.googleconfig\nINFO     FTL arg passed: verbosity DEBUG\nINFO     starting: full build\nINFO     starting: builder initialization\nINFO     Loading Docker credentials for repository 'eu.gcr.io/gae-runtimes/python37:python37_20200223_3_7_6_RC00'\nINFO     Loading Docker credentials for repository 'eu.gcr.io/new-bert-app/app-engine-tmp/app/ttl-2h:1d0704fe-c6be-4904-9686-6f51a6c4f562'\nINFO     builder initialization took 0 seconds\nINFO     starting: build process for FTL image\nINFO     starting: checking_cached_interpreter_layer\nINFO     starting: check python version\nINFO     `python version` full cmd:\n/opt/python3.7/bin/python3.7 --version\nINFO     `python version` stderr:\n\nINFO     .

Any suggestion?

Jad El Houssami

unread,
Mar 24, 2020, 10:49:08 AM3/24/20
to Google App Engine
Hello Volodymyr,

I did some research and found this error to commonly occur due to missing dependencies, environment files not found, or skipping/ignoring files or folders. You can refer to this Server Fault post for example.

Since you are using python, my suggestion would be to first ensure that your application is in a virtual environment, and to check that you’re not skipping/ignoring files using .gitignore, .gcloudignore, or the skip_files flag on the app.yaml.

For future posts, do keep in mind that Google Groups are generally reserved for discussions and opinions about Google products, you may want to refer to Stack Exchange for how-to and technical questions since the answer-question format on those sites will give your question greater visibility. With that in mind, I hope this information helps point you in the right direction.
Reply all
Reply to author
Forward
0 new messages