Google Cloud End Point Error: Process exited before success message

Google Cloud End Point Error: Process exited before success message

我在 运行 appengineStart 任务时遇到这个错误。

print of the error

错误显示:“com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException:进程在成功消息之前退出”

我在 Google 上搜索过,但找不到解决方案。

这是完整的错误日志:

10:33:08: Executing task 'appengineStart'...

Executing tasks: [appengineStart]

Configuration on demand is an incubating feature.
Gradle now uses separate output directories for each JVM language, but this 
build assumes a single directory for all classes from a source set. This 
behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
:backend:compileJava UP-TO-DATE
:backend:processResources NO-SOURCE
:backend:classes UP-TO-DATE
:backend:endpointsDiscoveryDocs UP-TO-DATE
:backend:_zipDiscoveryDocs UP-TO-DATE
:backend:war UP-TO-DATE
:backend:explodeWar UP-TO-DATE
:backend:assemble UP-TO-DATE
:backend:appengineStart
Warning: Google App Engine Java 7 runtime is deprecated.
Warning: See https://cloud.google.com/appengine/docs/deprecations/java7
ago 23, 2018 10:33:24 AM java.util.prefs.WindowsPreferences <init>
ADVERT?NCIA: Could not open/create prefs root node Software\JavaSoft\Prefs 
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
ago 23, 2018 10:33:25 AM 
com.google.appengine.tools.development.SystemPropertiesManager 
setSystemProperties
INFORMA??ES: Overwriting system property key 
'java.util.logging.config.file', value 
'C:\Users\igor\AppData\Local\Google\Cloud SDK\google-cloud- `sdk\platform\google_appengine\google\appengine\tools\java\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\igor\ud-exercises\ud867\FinalProject\backend\build\exploded-backend\WEB-INF\appengine-web.xml'`

************************************************
Could not open the requested socket: Address already in use: bind
Try overriding --address and/or --port.
Exception in thread "wait-for-process-exit-and-output-handlers" com.google.cloud.tools.appengine.api.AppEngineException: Non zero exit: 2
    at com.google.cloud.tools.appengine.cloudsdk.process.NonZeroExceptionExitListener.onExit(NonZeroExceptionExitListener.java:30)
    at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.syncRun(DefaultProcessRunner.java:211)
    at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.access0(DefaultProcessRunner.java:38)
    at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.run(DefaultProcessRunner.java:223)
:backend:appengineStart FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':backend:appengineStart'.
>



com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Process exited before success message

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

    BUILD FAILED in 16s
    6 actionable tasks: 1 executed, 5 up-to-date
    10:33:26: Task execution finished 'appengineStart'.

Could not open the requested socket: Address already in use: bind 表示您之前启动了一个开发服务器但它没有正确退出,或者您有另一个进程使用相同的端口。您需要终止违规进程(或重新启动计算机,效果相同)或 change the port on which your dev server runs。本质上,将以下内容添加到您的 gradle 文件,并根据需要更改端口:

appengine.run.port = 8888