You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/01/18 15:18:35 UTC

[GitHub] [dubbo] zrlw opened a new issue #9590: github CI构建偶尔ubuntu-18.04环境下有SurefireBooterForkException: Error creating properties files for forking

zrlw opened a new issue #9590:
URL: https://github.com/apache/dubbo/issues/9590


   gituhub自动构建时,ubuntu-18.04环境下偶尔会提示:
   ```
   Error creating properties files for forking
   org.apache.maven.surefire.booter.SurefireBooterForkException: Error creating properties files for forking
   	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:604)
   	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:305)
   	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:265)
   	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1314)
   	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1159)
   	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:932)
   	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
   	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
   	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
   	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
   	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
   	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
   	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
   	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
   	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
   	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
   	at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
   	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
   	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
   	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   	at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
   	at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
   	at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:60)
   Caused by: java.net.BindException: Cannot assign requested address
   	at java.base/sun.nio.ch.Net.bind0(Native Method)
   	at java.base/sun.nio.ch.Net.bind(Net.java:455)
   	at java.base/sun.nio.ch.Net.bind(Net.java:447)
   	at java.base/sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:164)
   	at org.apache.maven.plugin.surefire.extensions.SurefireForkChannel.<init>(SurefireForkChannel.java:88)
   	at org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory.createForkChannel(SurefireForkNodeFactory.java:39)
   	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:576)
   ```
   
   搜了一下有的帖子说是因为/etc/hosts里面没有配置localhost导致的问题。
   查了一下,2021年6月21日有个获取ip地址的补丁: https://github.com/apache/maven-surefire/pull/302
   当前dubbo用的maven-surefire-plugin版本是3.0.0-M5,https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin/3.0.0-M5显示该版本是2021年6月17日发布的,之后一直没有发布新版。
   所以如果构建时出这个问题,貌似只能重新尝试构建一次了,github的ubuntu-18.04的/etc/hosts文件应该没有办法修改吧。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] zrlw commented on issue #9590: github CI构建偶尔ubuntu-18.04环境下有SurefireBooterForkException: Error creating properties files for forking

Posted by GitBox <gi...@apache.org>.
zrlw commented on issue #9590:
URL: https://github.com/apache/dubbo/issues/9590#issuecomment-1015552711


   https://issues.apache.org/jira/browse/SUREFIRE-1800
   ```
   the constructor of SurefireForkChannel and there Inet4Address.getLocalHost() is returning the wrong IP.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org