Repository navigation
Closed
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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
Metadata
Metadata
Assignees
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
frankyn commentedon Jun 8, 2017
Hi @ersimont!
Thanks for reaching out! I wasn't able to reproduce the issue using your instructions. I did hit an issue when using a project id with a typo.
I added a set of items to verify as I'm not sure what may be causing your issue.
Steps to debug:
Update your java-docs-samples local repository as the repository updates frequently.
git pullUpdate Cloud SDK
gcloud components updateVerify the project id with your Google Cloud Project Id

Generate the openapi.json and deploy
ersimont commentedon Jun 8, 2017
Thank you for your response. I followed your instructions, but alas it ended with the same result:
git pull- worked. Updated some files, but nothing inendpoints-frameworks-v2/backendgcloud components update- worked. Confirmed that I wanted to continue after showing me some changelog items.mvn exec:java -DGetSwaggerDoc- workedgcloud service-management deploy openapi.json- workedmvn appengine:deployfailed in the same way.frankyn commentedon Jun 8, 2017
Ah, I didn't notice you are running Windows. I'll try to reproduce using a Windows environment. Which version are you using?
ersimont commentedon Jun 9, 2017
I'm on Windows 8.1
frankyn commentedon Jun 9, 2017
Thanks @ersimont, I tested it on a Windows VM available to me and wasn't able to reproduce. Could you run the following command add the output to this issue?
mvn appengine:deploy -Xersimont commentedon Jun 9, 2017
That is quite a bit more output! I've attached the results as a
.txt. I've run this using by the built-in command prompt as well as cygwin with the same result; this time I used cygwin because the output is a little nicer to work with.deploy_output.txt
frankyn commentedon Jun 10, 2017
Thanks! Could you send the log from this file next?
C:\Users\Eric\AppData\Roaming\gcloud\logs\2017.06.10\00.43.08.752000.logAlso, could you authorize gcloud using the following command and try again. I forgot to provide this command the first time.
gcloud auth application-default loginThank you for your patience!
ersimont commentedon Jun 10, 2017
Same result after re-authorizing. Here's that other log (with an additional
.txtextension so github would accept it):00.43.08.752000.log.txt
frankyn commentedon Jun 12, 2017
Thanks @ersimont. Unfortunately I wasn't able to find anything that could help.
@loosebazooka do you have an idea as to how
mvn appengine:deploywould fail on Windows 8?loosebazooka commentedon Jun 12, 2017
It's not obvious to me from these logs.
Might be a good idea to try using
gcloud app deploydirectly.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.
ersimont commentedon Jun 12, 2017
That sounds like a good idea. Using
gclouddirectly exhibits the same problem:17.38.45.316000.log.txt
If you want me to open a issue with a different team, just tell me where!
Thanks
frankyn commentedon Jun 12, 2017
I'll forward it over and keep you posted @ersimont! Could you provide me with the output when you type in
gcloud info?ersimont commentedon Jun 12, 2017
Sure thing.
gloud info.txt
frankyn commentedon Jun 13, 2017
Thanks! I'll keep you posted on the progress.
washowasho commentedon Jun 13, 2017
I'm having a very similar issue.
frankyn commentedon Jun 13, 2017
Thanks for the feedback @washowasho.
frankyn commentedon Jun 23, 2017
@ersimont I sent you an email.
frankyn commentedon Aug 1, 2017
After an email conversation with @ersimont. They were able to resolve the issue recently with a
git pullandgcloud components update.chore(deps): update dependency com.google.cloud:google-cloud-document…
chore(deps): update dependency com.google.cloud:google-cloud-document…