appcfg does not support deploying to the Flexible environment. Use "gcloud app deploy" to deploy "env: flex" apps

59 views
Skip to first unread message

Georges Bou Ghantous

unread,
Feb 1, 2018, 8:58:40 AM2/1/18
to Google App Engine
Hi;

When deploying my Maven app from Codeshop to GAE I get the following error:

09:46 AM Starting update of app: propane-primacy-193602, version: 20180129t145712 09:46 AM Getting current resource limits. 09:46 AM Scanning files on local disk. Error 400: --- begin server output --- appcfg does not support deploying to the Flexible environment. Use "gcloud app deploy" to deploy "env: flex" apps. --- end server output ---


Any ideas?

MY app.ymal at least contains:

runtime: java env: flex api_version: 1



Thanks

George

Kenworth (Google Cloud Platform)

unread,
Feb 1, 2018, 10:10:15 AM2/1/18
to Google App Engine
The use of 'appcfg' on Flexible environment is already deprecated. As alternatives, you can use 'gcloud app deploy' using the SDK or 'mvn appengine:deploy' using the Maven plugin. 

I recommend following the Quickstart for Java in GAE Flex article that contains sample HelloWorld deployments.

Georges Bou Ghantous

unread,
Feb 2, 2018, 9:01:28 AM2/2/18
to Google App Engine
Hi again;

I updated my POM.xml with the following plugins:
...
<plugin>
                <groupId>com.google.appengine</groupId>
                <artifactId>gcloud-maven-plugin</artifactId>
                <version>2.0.9.133.v201611104</version>
            </plugin>   
            <plugin>
                <groupId>com.google.appengine</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>${appengine.maven.plugin}</version>
            </plugin>  
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>1.3.2</version>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${jetty.maven.plugin}</version>
            </plugin>    
....  
however I still get the same error msg.

Any ideas?

Kenworth (Google Cloud Platform)

unread,
Feb 2, 2018, 9:37:31 AM2/2/18
to google-a...@googlegroups.com
What was the deployment command used? Please try the previously suggested commands using 'gcloud app deploy --verbosity=debug' or 'mvn appengine:deploy' using the Maven plugin.

Georges Bou Ghantous

unread,
Feb 3, 2018, 12:05:39 PM2/3/18
to Google App Engine
Hi again;

I am not deploy from GAE CLI on my PC.
I am deploying from codeship, to multiple clouds including GAE.
GAE is using appcfg as default it seems even though in my Maven POM.XML as shown in previous email I am using the correct plugins and dependencies.

my project app.ymal  looks like:

application: propane-primacy-193602
version: 20180129t145712
runtime: java
env: flex
api_version: 1

env_variables:

runtime_config:  # Optional
  jdk: openjdk8
  server: jetty9
  
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10
  volumes:
  - name: ramdisk1
    volume_type: tmpfs
    size_gb: 0.5

handlers:
- url: /.*
  script: this field is required, but ignored
# [END appyaml]

Many thx

Georges

Kenworth (Google Cloud Platform)

unread,
Feb 5, 2018, 5:44:26 PM2/5/18
to google-a...@googlegroups.com
Hi George, as previously mentioned 'appcfg' is deprecated. It is highly recommended to use 'gcloud' or the Maven plugin to deploy GAE Flex on Java. Note that Codeship is not a Google product and we therefore cannot support it due to our limited visibility. It is best to continue technical support for this tool on Stack Overflow (which we also monitor) and/or on their official support forum.
Reply all
Reply to author
Forward
0 new messages