Google Cloud End Point错误:进程在成功消息之前退出

时间:2018-08-23 13:59:07

标签: android google-cloud-endpoints-v2

运行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.access$200(DefaultProcessRunner.java:38)
    at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner$3.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'.

1 个答案:

答案 0 :(得分:1)

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