我无法在Ubuntu-20.04上编译release-3.3--我得到下面的错误。我按照Thingsboard网站上的说明操作;从git下载了'release-3.3'源代码,然后运行'mvn clean install'。我做错什么了吗??我可以跳过这一步吗(反正对Edge不感兴趣)。
Warning: Nashorn engine is planned to be removed from a future JDK release
2021-09-12 20:54:53,796 [main] ERROR o.t.s.s.edge.rpc.EdgeGrpcService - Failed to start Edge RPC server!
java.io.IOException: Failed to bind to address 0.0.0.0/0.0.0.0:7070
at io.grpc.netty.shaded.io.grpc.netty.NettyServer.start(NettyServer.java:328)
at io.grpc.internal.ServerImpl.start(ServerImpl.java:179)
at io.grpc.internal.ServerImpl.start(ServerImpl.java:90)
..[skip over many statements similar to above]..
Caused by: io.grpc.netty.shaded.io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
2021-09-12 20:54:53,796 [main] WARN o.s.w.c.s.GenericWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminController': Unsatisfied dependency expressed through field 'edgeGrpcService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'edgeGrpcService': Invocation of init method failed; nested exception is java.lang.RuntimeException: Failed to start Edge RPC server!
2021-09-12 20:54:53,813 [main] ERROR o.s.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminController': Unsatisfied dependency expressed through field 'edgeGrpcService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'edgeGrpcService': Invocation of init method failed; nested exception is java.lang.RuntimeException: Failed to start Edge RPC server!
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
1条答案
按热度按时间5jdjgkvh1#
您的主要问题是:地址已在使用中
查看您的日志,可以看到0.0.0.0/0.0.0.0:7070
要避免相同的错误,请尝试识别在7070处运行的其他应用程序并杀死它们。有时是由于以前的失败尝试。您只需要列出进程及其端口。之后,识别其PID并杀死。
Linux示例:
搜索7070端口并定位其PID以杀死它