java-docs-samples: Error Deploying Endpoints Sample

In which file did you encounter the issue?

When following the instructions in appengine/endpoints-frameworks-v2/backend/README.md

Did you change the file? If so, how?

I only changed pom.xml, as instructed in the readme.

Describe the issue

Executing mvn appengine:deploy fails. First it hangs for a while after it says “Uploading X files to Google Cloud Storage” (as I indicated in the output below). Then after about 5 minutes it continues. Below is the full output, with my note near the bottom.

Note that this is about the third time I’ve tried; the first time it showed that it was uploading more than 0 files. I cannot find any errors in the cloud console logs.

$ mvn appengine:deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building echo 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> appengine-maven-plugin:1.3.1:deploy (default-cli) > package @ echo >>>
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (default) @ echo ---
[INFO] argLine set to "-javaagent:C:\\Users\\Eric\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.7.201606060606\\org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=S:\\Programming\\git repositories\\tmp\\java-docs-samples\\appengine\\endpoints-frameworks-v2\\backend\\target\\jacoco.exec"
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ echo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ echo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ echo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ echo ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ echo ---
[INFO] No tests to run.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (report) @ echo ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ echo ---
[INFO] Packaging webapp
[INFO] Assembling webapp [echo] in [S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\echo-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp webResources [S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend/src/main/webapp/WEB-INF] to [S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\echo-1.0-SNAPSHOT]
[INFO] Copying webapp resources [S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\src\main\webapp]
[INFO] Webapp assembled in [180 msecs]
[INFO] Building war: S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\echo-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< appengine-maven-plugin:1.3.1:deploy (default-cli) < package @ echo <<<
[INFO]
[INFO] --- appengine-maven-plugin:1.3.1:deploy (default-cli) @ echo ---
[INFO] Staging the application to: S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\appengine-staging
[INFO] Detected App Engine standard environment application.
Jun 07, 2017 7:10:37 AM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCommand
INFO: submitting command: C:\Program Files\Java\jdk1.8.0_121\jre\bin\java.exe -cp C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\java\lib\appengine-tools-api.jar com.google.appengine.tools.admin.AppCfg --disable_update_check stage S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\echo-1.0-SNAPSHOT S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\appengine-staging
[INFO] GCLOUD: Jun 07, 2017 7:10:37 AM java.util.prefs.WindowsPreferences <init>
[INFO] GCLOUD: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[INFO] GCLOUD: Reading application configuration data...
[INFO] GCLOUD: *********************************
[INFO] GCLOUD: Configuration Warning : <application>/<version> XML elements and --application/--version should not be specified when staging
[INFO] GCLOUD:
[INFO] GCLOUD: The following parameters will be scrubbed from app.yaml
[INFO] GCLOUD: application : endpoints-framework-echo
[INFO] GCLOUD: version : 1
[INFO] GCLOUD:
[INFO] GCLOUD: Future versions of staging will fail if application or version is specified.
[INFO] GCLOUD: *********************************
[INFO] GCLOUD:
[INFO] GCLOUD:
[INFO] GCLOUD: Beginning interaction for module default...
[INFO] GCLOUD: 0% Scanning for jsp files.
[INFO] GCLOUD: 0% Generated git repository information file.
[INFO] GCLOUD: Success.
[INFO] GCLOUD: Temporary staging for module default directory left in S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\appengine-staging
Jun 07, 2017 7:10:38 AM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCommand
INFO: submitting command: C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd app deploy
[INFO] GCLOUD: You are about to deploy the following services:
[INFO] GCLOUD:  - endpoints-framework-echo/default/20170607t121041 (from [S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\appengine-staging\app.yaml])
[INFO] GCLOUD:      Deploying to URL: [https://endpoints-framework-echo.appspot.com]
[INFO] GCLOUD:
[INFO] GCLOUD: Beginning deployment of service [default]...
[INFO] GCLOUD: Some files were skipped. Pass `--verbosity=info` to see which ones.
[INFO] GCLOUD: You may also view the gcloud log file, found at
[INFO] GCLOUD: [C:\Users\Eric\AppData\Roaming\gcloud\logs\2017.06.07\12.10.39.138000.log].
[INFO] GCLOUD: #============================================================#
[INFO] GCLOUD: #= Uploading 0 files to Google Cloud Storage                =#
[INFO] GCLOUD: #============================================================#


    ( <---------- this is where it hangs for about 5 minutes)


[INFO] GCLOUD: File upload done.
[INFO] GCLOUD: Updating service [default]...
[INFO] GCLOUD: ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................failed.
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:20 min
[INFO] Finished at: 2017-06-07T07:20:53-04:00
[INFO] Final Memory: 22M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy (default-cli) on project echo: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:1.3.1:deploy failed: Non zero exit: 1 -> [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/PluginExecutionException

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

It’s not obvious to me from these logs.

Might be a good idea to try using gcloud app deploy directly.

gcloud app deploy S:\Programming\git repositories\tmp\java-docs-samples\appengine\endpoints-frameworks-v2\backend\target\appengine-staging\app.yaml

I’m assuming that this doesn’t really have to do with the fact that it’s the maven plugin, but more the deployment, and if necessary we can redirect to the gcloud or deployment teams.