appengineDeploy error/ backend appengine failed/ not have 32 max instances

55 views
Skip to first unread message

JK YU

unread,
Jul 25, 2024, 12:42:03 AM7/25/24
to nomulus-discuss

Hi there,

I've been trying to build and deploy Nomulus following the instructions provided [here](https://github.com/google/nomulus/blob/master/docs/install.md) . 

When attempting to deploy the code to App Engine using the command `./nom_build appengineDeploy --environment=alpha`, I encountered the following error: "You may not have more than 32 total max instances." I tried setting max_instances to 1 in the file ./services/backend/build/staged-app/WEB-INF/appengine-web.xml as well as in other appengine-web.xml files, but the error persists.

Here is the error content:

```
> Task :services:backend:appengineDeploy
Services to deploy:

descriptor:                  [/mnt/data/yujk/epp/nomulus/services/backend/build/staged-app/app.yaml]
source:                      [/mnt/data/yujk/epp/nomulus/services/backend/build/staged-app]
target project:              [epp-reg-alpha]
target service:              [backend]
target version:              [20240725t114759]
target url:                  [https://backend-dot-epp-reg-alpha.df.r.appspot.com]
target service account:      [epp-re...@appspot.gserviceaccount.com]


Beginning deployment of service [backend]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: You may not have more than 32 total max instances in your project.                                                                                                  

> Task :services:backend:appengineDeploy FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':services:backend:appengineDeploy'.
> com.google.cloud.tools.appengine.AppEngineException: com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessHandlerException: com.google.cloud.tools.appengine.AppEngineException: Non zero exit: 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.                                                                        

For more on this, please refer to https://docs.gradle.org/8.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.                                                        

BUILD FAILED in 14s
```
2024-07-25_11-59.png

Thank you for your time!

Lai Jiang

unread,
Jul 25, 2024, 12:20:39 PM7/25/24
to nomulus-discuss
It says "32 total max instances". If you add up the total max instances across all services, is it larger than 32?

JK YU

unread,
Jul 26, 2024, 2:30:08 AM7/26/24
to nomulus-discuss
I am new to App Engine, so I tried setting max_instance to 1 in all appengine-web.xml files in the program (as shown in the first two pictures below). The command I used is ./nom_build appengineDeploy --environment=alpha, which comes from GitHub Nomulus - install.md, to deploy the code to App Engine. From my research, this command uses the alpha environment. Therefore, I added the max_instance setting in ./core/build/resources/main/google/registry/env/alpha/ and ./core/src/main/java/google/registry/env/alpha/, each containing five appengine-web.xml files. This results in a total of 10 max instances, which is smaller than 32.

However, I am unsure if I have correctly followed the instruction to "set max_instances in appengine-web.xml" in this issue or if I need to configure something in the Google Cloud Console. I am also new to the Google Cloud Console and could only find some relevant settings shown in the third picture below, but none related to "App Engine max instance."

2024-07-26_12-51.png
2024-07-26_12-49.png
2024-07-26_14-27.png

Lai Jiang

unread,
Jul 26, 2024, 11:11:21 AM7/26/24
to JK YU, nomulus-discuss
Try to delete the old versions from the project. It is possible that the max instance limit applies to all versions combined.

Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361



--
NOTE: This is a public discussion list for the Nomulus domain registry project.
---
You received this message because you are subscribed to the Google Groups "nomulus-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomulus-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomulus-discuss/3ba8b1f4-1023-44a6-9d52-518f7fd09b21n%40googlegroups.com.

JK YU

unread,
Aug 6, 2024, 10:23:37 PM8/6/24
to nomulus-discuss
Deleting old versions worked for me. Thank you very much for your effort and time.

To help others facing the same issue, I have recorded the detailed steps for deleting old versions here. Please refer to this link: 'Simply go to the G Cloud Dashboard, select App Engine. From the left menu, choose Versions and delete the old, unused versions.' The page is shown below.


屏幕截图 2024-08-07 101954.jpg

Lai Jiang

unread,
Aug 7, 2024, 8:28:42 AM8/7/24
to JK YU, nomulus-discuss
Great! I'm glad it worked out for you. If you have other questions, feel free to ask.


Lai Jiang | Software Engineer | jian...@google.com | 212-565-6361


You received this message because you are subscribed to a topic in the Google Groups "nomulus-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nomulus-discuss/2WWIoQJnyoA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nomulus-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomulus-discuss/c059fc57-c093-407a-ba32-2ed18cbe5babn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages