Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

ERROR: (gcloud) Invalid choice: 'preview'. #4

@g-ericso

Description

@g-ericso

I am getting the following errors after running this command:

mvn gcloud:deploy
[INFO] --- gcloud-maven-plugin:2.0.9.88.v20151125:deploy (default-cli) @ websocketchat ---
[INFO] Creating staging directory in: /Users/xxxx/src/appengine-websocketchat-java/target/appengine-staging
[INFO] Running appcfg --disable_update_check -A notused stage /Users/xxxx/src/appengine-websocketchat-java/target/websocketchat-1.0-SNAPSHOT /Users/xxxx/src/appengine-websocketchat-java/target/appengine-staging
Reading application configuration data...


Beginning interaction for module default...
Success.
Temporary staging for module default directory left in /Users/xxxx/src/appengine-websocketchat-java/target/appengine-staging
[INFO] Running gcloud app deploy...
[INFO] Running python -S /Users/xxxx/google-cloud-sdk/lib/gcloud.py --quiet preview app deploy /Users/xxxx/src/appengine-websocketchat-java/target/appengine-staging/app.yaml
[INFO] ERROR: (gcloud) Invalid choice: 'preview'.
[INFO] Usage: gcloud [optional flags] <group | command>
[INFO]   group may be           app | auth | beta | components | compute | config |
[INFO]                          container | dataflow | dataproc | datastore | debug |
[INFO]                          deployment-manager | dns | iam | ml-engine |
[INFO]                          organizations | projects | service-management |
[INFO]                          source | sql | topic
[INFO]   command may be         docker | feedback | help | info | init | version
[INFO] 
[INFO] For detailed information on this command and its flags, run:
[INFO]   gcloud --help
[ERROR] Error: gcloud app command with exit code : 2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.112 s
[INFO] Finished at: 2017-03-22T14:01:38-07:00
[INFO] Final Memory: 15M/253M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:gcloud-maven-plugin:2.0.9.88.v20151125:deploy (default-cli) on project websocketchat: Error: gcloud app command exit code is: 2 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions