Fixed
Status Update
Comments
jm...@google.com <jm...@google.com> #2
The App Engine engineering team is now aware of this issue and are investigating the fix. There is no ETA at this time for the resolution, but all further updates should occur here.
lu...@google.com <lu...@google.com> #3
A fixed has been integrated in the internal Google repository. Will be in next GAE SDK release (ETA: soon, but unknown precisely).
lu...@google.com <lu...@google.com> #4
gs...@google.com <gs...@google.com> #5
Customer in issue 121463749 reports the same error; it looks it has not been fixed, or not yet deployed.
lu...@google.com <lu...@google.com> #6
Let's keep looking at the other bug instead of reopening. Might not be the same (the new bug mentions eclipse)
Description
"Specify a value from 0 to 1000. You can set the parameter to the value 0 to allow scaling to 0 instances to lower costs when no requests are being served"
Try setting in appengine-web.xml:
<automatic-scaling>
<min-instances>0</min-instances>
<automatic-scaling>
Test deployment:
$ mvn appengine:deploy
[INFO] GCLOUD: Reading application configuration data...
[INFO] GCLOUD: Bad configuration: XML error validating <?xml version="1.0" encoding="utf-8"?>
...
[INFO] GCLOUD: against /opt/devel/google/cloudsdk/platform/google_appengine/google/appengine/tools/java/docs/appengine-web.xsd
[INFO] GCLOUD: Caused by: cvc-minInclusive-valid: Value '0' is not facet-valid with respect to minInclusive '1' for type 'positiveInteger'.
[INFO] GCLOUD: Please see the logs [/tmp/appcfg6087789920168063960.log] for further information.
Edit platform/google_appengine/google/appengine/tools/java/docs/appengine-web.xsd:
- <xs:element type="xs:positiveInteger" name="min-instances" minOccurs="0"/>
+ <xs:element type="xs:nonNegativeInteger" name="min-instances" minOccurs="0"/>
Redeploy:
$ mvn appengine:deploy
[INFO] GCLOUD: Reading application configuration data...
[INFO] GCLOUD: May 25, 2018 10:05:53 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
[INFO] GCLOUD: SEVERE: Received exception processing API/target/API-0.0.1-SNAPSHOT/WEB-INF/appengine-web.xml
[INFO] GCLOUD: com.google.apphosting.utils.config.AppEngineConfigException: min-instances should only contain positive integers.
[INFO] GCLOUD: at com.google.apphosting.utils.config.AppEngineWebXmlProcessor.getChildNodePositiveInteger(AppEngineWebXmlProcessor.java:301)
[INFO] GCLOUD: at com.google.apphosting.utils.config.AppEngineWebXmlProcessor.processAutomaticScalingNode(AppEngineWebXmlProcessor.java:335)
...
[INFO] GCLOUD: at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:115)
[INFO] GCLOUD:
[INFO] GCLOUD: Bad configuration: min-instances should only contain positive integers. <---------- Docs state otherwise?
[INFO] GCLOUD: Please see the logs [/tmp/appcfg7622547072460201781.log] for further information.
pom.xml plugin details:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<stage.enableJarClasses>true</stage.enableJarClasses>
<!-- deploy configuration -->
</configuration>
</plugin>
$ gcloud version
Google Cloud SDK 202.0.0
alpha 2017.09.15
app-engine-go
app-engine-java 1.9.63
app-engine-python 1.9.70
beta 2017.09.15
bq 2.0.33
core 2018.05.18
gsutil 4.31