"ERROR: (gcloud.app.deploy) The project [pj-name] already contains an App Engine application" when migrating from Python 2.5 to 2.7 (appcfg.py to gcloud)

1,076 views
Skip to first unread message

ichirorocks

unread,
Feb 22, 2017, 6:24:48 PM2/22/17
to Google App Engine
Hi. I have been maintaining old version of Google App Engine Python software by using appcfg.py to deploy.  Now I got a notice from Google saying Python 2.5 will be disabled and I need to upgrade to 2.7.

So I installed Python 2.7 & new SDK, and I'm trying to deploy my software by gcloud command.  After a few attempt I'm stuck with the following error message:

ERROR: (gcloud.app.deploy) The project [pj-name] already contains an App Engine application

I googled this error message but I couldn't find any solution for my case.  Does anybody know what I should do or which resource I should look at?

The command I used: "gcloud app deploy"

The content of app.yaml file below:

runtime: python27
api_version: 1
threadsafe: false
derived_file_type:
- python_precompiled

handlers:
- url: /css
  static_dir: css
- url: /js
  static_dir: js
- url: /images
  static_dir: images
- url: /html
  static_dir: html
- url: /apputils/.*
  script: controller.py
  login: admin
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin
- url: /.*
  script: controller.py

George (Cloud Platform Support)

unread,
Feb 23, 2017, 10:33:53 AM2/23/17
to Google App Engine

It may be advisable to run gcloud components update first.


What is the output of gcloud info?


More information becomes available if you run: gcloud app deploy --verbosity debug. What is the output of this command?


Prior to migrating the app to Python 2.7, you need to make sure your app fulfills the preconditions described in the “Migrating to Python 2.7” document.

ichirorocks

unread,
Mar 7, 2017, 10:48:47 PM3/7/17
to Google App Engine
Thank you for your response.

It seems a lot of hassle. I'm not happy that Py 2.5 will be disabled, neither.  I decided to port the application to make it run on AWS.  Thanks anyways.
Reply all
Reply to author
Forward
0 new messages