Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

MVM deployment fails on Windows #78

Open
YnR opened this issue Feb 12, 2016 · 3 comments
Open

MVM deployment fails on Windows #78

YnR opened this issue Feb 12, 2016 · 3 comments

Comments

@YnR
Copy link

YnR commented Feb 12, 2016

Trying to run mvn clean gcloud:deploy as an user with admin rights in PowerShell on Windows 10 Pro machine, it hangs at: (waited until the VM was shown built an active in the console, but it hangs)

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bookshelf 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bookshelf ---
[INFO] Deleting C:\Users\XXX\workspace\getting-started-java\bookshelf\target
[INFO]
[INFO] >>> gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) > package @ bookshelf >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bookshelf ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 15 source files to C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT\WEB-INF\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ bookshelf ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bookshelf ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ bookshelf ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookshelf] in [C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\webapp]
[INFO] Webapp assembled in [531 msecs]
[INFO] Building war: C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) < package @ bookshelf <<<
[INFO]
[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users\
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 Google Inc. All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example.appengine.gettingstartedjava</groupId>
  <artifactId>bookshelf</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>war</packaging>
  <dependencies>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.7.0</version>
    </dependency>
    <dependency>
      <groupId>com.google.api-client</groupId>
      <artifactId>google-api-client</artifactId>
      <version>1.21.0</version>
    </dependency>
    <dependency>
      <groupId>com.google.apis</groupId>
      <artifactId>google-api-services-plus</artifactId>
      <version>v1-rev329-1.21.0</version>
    </dependency>
    <dependency>
      <groupId>com.google.gcloud</groupId>
      <artifactId>gcloud-java</artifactId>
      <version>0.1.3</version>
    </dependency>
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>19.0</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <version>3.1.0</version>
      <type>jar</type>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jsp-api</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>joda-time</groupId>
      <artifactId>joda-time</artifactId>
      <version>2.9.2</version>
    </dependency>
    <dependency>
      <groupId>jstl</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>5.1.38</version>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-dbcp2</artifactId>
      <version>2.1.1</version>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>1.1.2</version>
    </dependency>
  </dependencies>
  <build>
    <!-- for hot reload of the web application -->
    <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
    <plugins>
      <plugin>
        <groupId>com.google.appengine</groupId>
        <artifactId>gcloud-maven-plugin</artifactId>
        <version>2.0.9.92.v20160118</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <failOnMissingWebXml>false</failOnMissingWebXml>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.3.7.v20160115</version>
      </plugin>
    </plugins>
  </build>
</project>

env vars


Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
APPDATA                        C:\Users\XXX\AppData\Roaming
BUCKET_NAME                    bookshelf-java-cuj
CALLBACK_URL                   http://localhost:8080/oauth2callback
CLIENT_ID                      zzzzz.apps.googleuserconte
CLIENT_SECRET                  zzzzzz
CLOUDSDK_PYTHON                C:\python27_x64\python.exe
CommonProgramFiles             C:\Program Files\Common Files
CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
CommonProgramW6432             C:\Program Files\Common Files
COMPUTERNAME                   zzz-WIN10
ComSpec                        C:\Windows\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
HOMEDRIVE                      C:
HOMEPATH                       \Users\xxx
JAVA_HOME                      C:\Program Files\Java\jdk1.8.0_65
LOCALAPPDATA                   C:\Users\xxx\AppData\Local
LOGONSERVER                    \\MicrosoftAccount
NUMBER_OF_PROCESSORS           3
OS                             Windows_NT
Path                           C:\python27_x64\;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Java
PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE         AMD64
PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL                6
PROCESSOR_REVISION             3e04
ProgramData                    C:\ProgramData
ProgramFiles                   C:\Program Files
ProgramFiles(x86)              C:\Program Files (x86)
ProgramW6432                   C:\Program Files
PSModulePath                   C:\Users\xxx\AppData\Local\Google\Cloud SDK\google-cloud-sdk\plat
PUBLIC                         C:\Users\Public
SESSIONNAME                    Console
SQL_DATABASE_URL               jdbc:mysql://IP:3306/DB_NAME?user=USER&password=PWD
STORAGETYPE                    cloudsql
SystemDrive                    C:
SystemRoot                     C:\Windows
TEMP                           C:\Users\XXX\AppData\Local\Temp
TMP                            C:\Users\XXX\AppData\Local\Temp
USERDOMAIN                     ZZZ-WIN10
USERDOMAIN_ROAMINGPROFILE      YNR-WIN10
USERNAME                       XXX
USERPROFILE                    C:\Users\XXX
VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
windir                         C:\Windows

gcloud info

Google Cloud SDK [96.0.0]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]]
Python Location: [C:\python27_x64\python.exe]
Site Packages: [Disabled]

Installation Root: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
  core: [2016.02.05]
  bq-win: [2.0.18]
  core-win: [2016.02.05]
  gcloud: []
  windows-ssh-tools: [2016.01.29]
  gsutil: [4.16]
  gsutil-win: [4.16]
  bq: [2.0.18]
System PATH: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\..\bin\sdk;C:\python27_x64\;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Jav
a\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\yannr\.dnx\bi
n;C:\Users\XXX\workspace\tools\apache-maven-3.3.9\bin;C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\XXX\AppData\Roaming\gcloud]
User Properties: [C:\Users\XXX\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [EMAIL@DDRESS]
Project: [PROJECT_NAME]

Current Properties:
  [core]
    project: [PROJECT_NAME]
    account: [EMAIL@DDRESS]
    disable_usage_reporting: [False]
  [app]
    suppress_change_warning: [true]

Logs Directory: [C:\Users\XXX\AppData\Roaming\gcloud\logs]
Last Log File: [C:\Users\XXX\AppData\Roaming\gcloud\logs\2016.02.11\16.09.13.385000.log]
@ludoch
Copy link
Contributor

ludoch commented Feb 12, 2016

I do not see the error in the first log...

Which error do you see? Or does it stop after

[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli)
@ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S
C:\Users\XXX\AppData\Local\Google\Cloud
SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy
C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

?

On Thu, Feb 11, 2016 at 4:38 PM, Yann Riche [email protected]
wrote:

Trying to run mvn clean gcloud:deploy as an user with admin rights in
PowerShell on Windows 10 Pro machine, it hangs at: (waited until the VM was
shown built an active in the console, but it hangs)

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bookshelf 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bookshelf ---
[INFO] Deleting C:\Users\XXX\workspace\getting-started-java\bookshelf\target
[INFO]
[INFO] >>> gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) > package @ bookshelf >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bookshelf ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 15 source files to C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT\WEB-INF\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ bookshelf ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bookshelf ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ bookshelf ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookshelf] in [C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\webapp]
[INFO] Webapp assembled in [531 msecs]
[INFO] Building war: C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) < package @ bookshelf <<<
[INFO]
[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

pom.xml

4.0.0 com.example.appengine.gettingstartedjava bookshelf 1.0-SNAPSHOT war com.fasterxml.jackson.core jackson-databind 2.7.0 com.google.api-client google-api-client 1.21.0 com.google.apis google-api-services-plus v1-rev329-1.21.0 com.google.gcloud gcloud-java 0.1.3 com.google.guava guava 19.0 javax.servlet javax.servlet-api 3.1.0 jar provided javax.servlet jsp-api 2.0 joda-time joda-time 2.9.2 jstl jstl 1.2 mysql mysql-connector-java 5.1.38 org.apache.commons commons-dbcp2 2.1.1 taglibs standard 1.1.2 ${project.build.directory}/${project.build.finalName}/WEB-INF/classes com.google.appengine gcloud-maven-plugin 2.0.9.92.v20160118 org.apache.maven.plugins maven-compiler-plugin 3.3 1.8 1.8 org.apache.maven.plugins maven-war-plugin 2.6 false org.eclipse.jetty jetty-maven-plugin 9.3.7.v20160115

env vars

Name Value


ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\XXX\AppData\Roaming
BUCKET_NAME bookshelf-java-cuj
CALLBACK_URL http://localhost:8080/oauth2callback
CLIENT_ID zzzzz.apps.googleuserconte
CLIENT_SECRET zzzzzz
CLOUDSDK_PYTHON C:\python27_x64\python.exe
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME zzz-WIN10
ComSpec C:\Windows\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
HOMEDRIVE C:
HOMEPATH \Users\xxx
JAVA_HOME C:\Program Files\Java\jdk1.8.0_65
LOCALAPPDATA C:\Users\xxx\AppData\Local
LOGONSERVER \MicrosoftAccount
NUMBER_OF_PROCESSORS 3
OS Windows_NT
Path C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Java
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Users\xxx\AppData\Local\Google\Cloud SDK\google-cloud-sdk\plat
PUBLIC C:\Users\Public
SESSIONNAME Console
SQL_DATABASE_URL jdbc:mysql://IP:3306/DB_NAME?user=USER&password=PWD
STORAGETYPE cloudsql
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\XXX\AppData\Local\Temp
TMP C:\Users\XXX\AppData\Local\Temp
USERDOMAIN ZZZ-WIN10
USERDOMAIN_ROAMINGPROFILE YNR-WIN10
USERNAME XXX
USERPROFILE C:\Users\XXX
VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
windir C:\Windows

gcloud info

Google Cloud SDK [96.0.0]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]]
Python Location: [C:\python27_x64\python.exe]
Site Packages: [Disabled]

Installation Root: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
core: [2016.02.05]
bq-win: [2.0.18]
core-win: [2016.02.05]
gcloud: []
windows-ssh-tools: [2016.01.29]
gsutil: [4.16]
gsutil-win: [4.16]
bq: [2.0.18]
System PATH: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Jav
a\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Users\yannr.dnx\bi
n;C:\Users\XXX\workspace\tools\apache-maven-3.3.9\bin;C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\XXX\AppData\Roaming\gcloud]
User Properties: [C:\Users\XXX\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [EMAIL@DDRESS]
Project: [PROJECT_NAME]

Current Properties:
[core]
project: [PROJECT_NAME]
account: [EMAIL@DDRESS]
disable_usage_reporting: [False]
[app]
suppress_change_warning: [true]

Logs Directory: [C:\Users\XXX\AppData\Roaming\gcloud\logs]
Last Log File: [C:\Users\XXX\AppData\Roaming\gcloud\logs\2016.02.11\16.09.13.385000.log]


Reply to this email directly or view it on GitHub
#78.

@ludoch
Copy link
Contributor

ludoch commented Feb 12, 2016

oh, so it hangs...

Maybe the Cloud SDK hangs as well?
Can you try
gcloud preview app deploy C:\Users\

XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

On Thu, Feb 11, 2016 at 5:05 PM, Ludovic Champenois <
[email protected]> wrote:

I do not see the error in the first log...

Which error do you see? Or does it stop after

[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

?

On Thu, Feb 11, 2016 at 4:38 PM, Yann Riche [email protected]
wrote:

Trying to run mvn clean gcloud:deploy as an user with admin rights in
PowerShell on Windows 10 Pro machine, it hangs at: (waited until the VM was
shown built an active in the console, but it hangs)

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bookshelf 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bookshelf ---
[INFO] Deleting C:\Users\XXX\workspace\getting-started-java\bookshelf\target
[INFO]
[INFO] >>> gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) > package @ bookshelf >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bookshelf ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 15 source files to C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT\WEB-INF\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ bookshelf ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bookshelf ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ bookshelf ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookshelf] in [C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\webapp]
[INFO] Webapp assembled in [531 msecs]
[INFO] Building war: C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) < package @ bookshelf <<<
[INFO]
[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

pom.xml

4.0.0 com.example.appengine.gettingstartedjava bookshelf 1.0-SNAPSHOT war com.fasterxml.jackson.core jackson-databind 2.7.0 com.google.api-client google-api-client 1.21.0 com.google.apis google-api-services-plus v1-rev329-1.21.0 com.google.gcloud gcloud-java 0.1.3 com.google.guava guava 19.0 javax.servlet javax.servlet-api 3.1.0 jar provided javax.servlet jsp-api 2.0 joda-time joda-time 2.9.2 jstl jstl 1.2 mysql mysql-connector-java 5.1.38 org.apache.commons commons-dbcp2 2.1.1 taglibs standard 1.1.2 ${project.build.directory}/${project.build.finalName}/WEB-INF/classes com.google.appengine gcloud-maven-plugin 2.0.9.92.v20160118 org.apache.maven.plugins maven-compiler-plugin 3.3 1.8 1.8 org.apache.maven.plugins maven-war-plugin 2.6 false org.eclipse.jetty jetty-maven-plugin 9.3.7.v20160115

env vars

Name Value


ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\XXX\AppData\Roaming
BUCKET_NAME bookshelf-java-cuj
CALLBACK_URL http://localhost:8080/oauth2callback
CLIENT_ID zzzzz.apps.googleuserconte
CLIENT_SECRET zzzzzz
CLOUDSDK_PYTHON C:\python27_x64\python.exe
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME zzz-WIN10
ComSpec C:\Windows\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
HOMEDRIVE C:
HOMEPATH \Users\xxx
JAVA_HOME C:\Program Files\Java\jdk1.8.0_65
LOCALAPPDATA C:\Users\xxx\AppData\Local
LOGONSERVER \MicrosoftAccount
NUMBER_OF_PROCESSORS 3
OS Windows_NT
Path C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Java
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Users\xxx\AppData\Local\Google\Cloud SDK\google-cloud-sdk\plat
PUBLIC C:\Users\Public
SESSIONNAME Console
SQL_DATABASE_URL jdbc:mysql://IP:3306/DB_NAME?user=USER&password=PWD
STORAGETYPE cloudsql
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\XXX\AppData\Local\Temp
TMP C:\Users\XXX\AppData\Local\Temp
USERDOMAIN ZZZ-WIN10
USERDOMAIN_ROAMINGPROFILE YNR-WIN10
USERNAME XXX
USERPROFILE C:\Users\XXX
VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
windir C:\Windows

gcloud info

Google Cloud SDK [96.0.0]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]]
Python Location: [C:\python27_x64\python.exe]
Site Packages: [Disabled]

Installation Root: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
core: [2016.02.05]
bq-win: [2.0.18]
core-win: [2016.02.05]
gcloud: []
windows-ssh-tools: [2016.01.29]
gsutil: [4.16]
gsutil-win: [4.16]
bq: [2.0.18]
System PATH: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Jav
a\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Users\yannr.dnx\bi
n;C:\Users\XXX\workspace\tools\apache-maven-3.3.9\bin;C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\XXX\AppData\Roaming\gcloud]
User Properties: [C:\Users\XXX\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [EMAIL@DDRESS]
Project: [PROJECT_NAME]

Current Properties:
[core]
project: [PROJECT_NAME]
account: [EMAIL@DDRESS]
disable_usage_reporting: [False]
[app]
suppress_change_warning: [true]

Logs Directory: [C:\Users\XXX\AppData\Roaming\gcloud\logs]
Last Log File: [C:\Users\XXX\AppData\Roaming\gcloud\logs\2016.02.11\16.09.13.385000.log]


Reply to this email directly or view it on GitHub
#78.

@ludoch
Copy link
Contributor

ludoch commented Feb 12, 2016

and XXX\workspace\getting-started-java\bookshelf\target
appengine-staging/app.yaml

On Thu, Feb 11, 2016 at 5:06 PM, Ludovic Champenois <
[email protected]> wrote:

oh, so it hangs...

Maybe the Cloud SDK hangs as well?
Can you try
gcloud preview app deploy C:\Users\

XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

On Thu, Feb 11, 2016 at 5:05 PM, Ludovic Champenois <
[email protected]> wrote:

I do not see the error in the first log...

Which error do you see? Or does it stop after

[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

?

On Thu, Feb 11, 2016 at 4:38 PM, Yann Riche [email protected]
wrote:

Trying to run mvn clean gcloud:deploy as an user with admin rights in
PowerShell on Windows 10 Pro machine, it hangs at: (waited until the VM was
shown built an active in the console, but it hangs)

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bookshelf 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bookshelf ---
[INFO] Deleting C:\Users\XXX\workspace\getting-started-java\bookshelf\target
[INFO]
[INFO] >>> gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) > package @ bookshelf >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ bookshelf ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 15 source files to C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT\WEB-INF\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bookshelf ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\XXX\workspace\getting-started-java\bookshelf\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ bookshelf ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bookshelf ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ bookshelf ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookshelf] in [C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\XXX\workspace\getting-started-java\bookshelf\src\main\webapp]
[INFO] Webapp assembled in [531 msecs]
[INFO] Building war: C:\Users\XXX\workspace\getting-started-java\bookshelf\target\bookshelf-1.0-SNAPSHOT.war
[INFO]
[INFO] <<< gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) < package @ bookshelf <<<
[INFO]
[INFO] --- gcloud-maven-plugin:2.0.9.92.v20160118:deploy (default-cli) @ bookshelf ---
[INFO] Running gcloud app deploy...
[INFO] Running C:\python27_x64\python.exe -S C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\gcloud.py --quiet preview app deploy C:\Users
XXX\workspace\getting-started-java\bookshelf\target\appengine-staging/app.yaml

pom.xml

4.0.0 com.example.appengine.gettingstartedjava bookshelf 1.0-SNAPSHOT war com.fasterxml.jackson.core jackson-databind 2.7.0 com.google.api-client google-api-client 1.21.0 com.google.apis google-api-services-plus v1-rev329-1.21.0 com.google.gcloud gcloud-java 0.1.3 com.google.guava guava 19.0 javax.servlet javax.servlet-api 3.1.0 jar provided javax.servlet jsp-api 2.0 joda-time joda-time 2.9.2 jstl jstl 1.2 mysql mysql-connector-java 5.1.38 org.apache.commons commons-dbcp2 2.1.1 taglibs standard 1.1.2 ${project.build.directory}/${project.build.finalName}/WEB-INF/classes com.google.appengine gcloud-maven-plugin 2.0.9.92.v20160118 org.apache.maven.plugins maven-compiler-plugin 3.3 1.8 1.8 org.apache.maven.plugins maven-war-plugin 2.6 false org.eclipse.jetty jetty-maven-plugin 9.3.7.v20160115

env vars

Name Value


ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\XXX\AppData\Roaming
BUCKET_NAME bookshelf-java-cuj
CALLBACK_URL http://localhost:8080/oauth2callback
CLIENT_ID zzzzz.apps.googleuserconte
CLIENT_SECRET zzzzzz
CLOUDSDK_PYTHON C:\python27_x64\python.exe
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME zzz-WIN10
ComSpec C:\Windows\system32\cmd.exe
FPS_BROWSER_APP_PROFILE_STRING Internet Explorer
FPS_BROWSER_USER_PROFILE_ST... Default
HOMEDRIVE C:
HOMEPATH \Users\xxx
JAVA_HOME C:\Program Files\Java\jdk1.8.0_65
LOCALAPPDATA C:\Users\xxx\AppData\Local
LOGONSERVER \MicrosoftAccount
NUMBER_OF_PROCESSORS 3
OS Windows_NT
Path C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Java
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 3e04
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Users\xxx\AppData\Local\Google\Cloud SDK\google-cloud-sdk\plat
PUBLIC C:\Users\Public
SESSIONNAME Console
SQL_DATABASE_URL jdbc:mysql://IP:3306/DB_NAME?user=USER&password=PWD
STORAGETYPE cloudsql
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\XXX\AppData\Local\Temp
TMP C:\Users\XXX\AppData\Local\Temp
USERDOMAIN ZZZ-WIN10
USERDOMAIN_ROAMINGPROFILE YNR-WIN10
USERNAME XXX
USERPROFILE C:\Users\XXX
VS140COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
windir C:\Windows

gcloud info

Google Cloud SDK [96.0.0]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]]
Python Location: [C:\python27_x64\python.exe]
Site Packages: [Disabled]

Installation Root: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
core: [2016.02.05]
bq-win: [2.0.18]
core-win: [2016.02.05]
gcloud: []
windows-ssh-tools: [2016.01.29]
gsutil: [4.16]
gsutil-win: [4.16]
bq: [2.0.18]
System PATH: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin..\bin\sdk;C:\python27_x64;C:\python27_x64\Scripts;C:\ProgramData\Oracle\Jav
a\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Users\yannr.dnx\bi
n;C:\Users\XXX\workspace\tools\apache-maven-3.3.9\bin;C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin]
Cloud SDK on PATH: [True]

Installation Properties: [C:\Users\XXX\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [C:\Users\XXX\AppData\Roaming\gcloud]
User Properties: [C:\Users\XXX\AppData\Roaming\gcloud\properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [EMAIL@DDRESS]
Project: [PROJECT_NAME]

Current Properties:
[core]
project: [PROJECT_NAME]
account: [EMAIL@DDRESS]
disable_usage_reporting: [False]
[app]
suppress_change_warning: [true]

Logs Directory: [C:\Users\XXX\AppData\Roaming\gcloud\logs]
Last Log File: [C:\Users\XXX\AppData\Roaming\gcloud\logs\2016.02.11\16.09.13.385000.log]


Reply to this email directly or view it on GitHub
#78.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants