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/10/26 08:44:49 UTC

[GitHub] [dubbo] wpailn opened a new issue, #10835: dubbo provider set host (Address already in use: bind)

wpailn opened a new issue, #10835:
URL: https://github.com/apache/dubbo/issues/10835

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.12
   * Operating System version: windows10
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. provider config
   `dubbo:
     application:
       name: producer
       logger: slf4j
     protocol:
       name: dubbo
       host: test-local
       port: -1
     registry:
       id: zk-registry
       address: zookeeper://127.0.0.1:2181
     config-center:
       address: zookeeper://127.0.0.1:2181
     metadata-report:
       address: zookeeper://127.0.0.1:2181`
   2. protocol set host: test-local  DubboProtocol method openServer(URL url)  cannot filter ip:port and host:port
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- Everything works fine-->
   
   ### Actual Behavior
   
   <!-- An exception has occurred -->
   
   If there is an exception, please attach the exception trace:
   
   ```
    Failed to bind NettyServer on /X.X.X.X:20880, cause: Address already in use: bind
   	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:378) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:343) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:325) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:72) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:66) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:61) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.export(ProtocolSerializationWrapper.java:47) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.registry.integration.RegistryProtocol.lambda$doLocalExport$2(RegistryProtocol.java:294) ~[dubbo-3.0.12.jar:3.0.12]
   	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_341]
   	at org.apache.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:292) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:239) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:72) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:64) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:58) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.export(ProtocolSerializationWrapper.java:47) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.doExportUrl(ServiceConfig.java:646) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.exportRemote(ServiceConfig.java:624) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.exportUrl(ServiceConfig.java:583) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:415) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:399) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:361) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:233) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.metadata.ConfigurableMetadataServiceExporter.export(ConfigurableMetadataServiceExporter.java:71) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.metadata.ExporterDeployListener.onModuleStarted(ExporterDeployListener.java:70) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.exportMetadataService(DefaultApplicationDeployer.java:923) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.prepareApplicationInstance(DefaultApplicationDeployer.java:613) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.checkState(DefaultApplicationDeployer.java:824) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.notifyModuleChanged(DefaultApplicationDeployer.java:812) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.onModuleStarted(DefaultModuleDeployer.java:257) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.startSync(DefaultModuleDeployer.java:164) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:132) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45) ~[dubbo-3.0.12.jar:3.0.12]
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.20.jar:5.3.20]
   	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.0.jar:2.7.0]
   	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.0.jar:2.7.0]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.0.jar:2.7.0]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.0.jar:2.7.0]
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.0.jar:2.7.0]
   	at org.example.ProducerApp.main(ProducerApp.java:11) ~[classes/:?]
   Caused by: org.apache.dubbo.remoting.RemotingException: Failed to bind NettyServer on /X.X.X.X:20880, cause: Address already in use: bind
   
   
   ```
   


-- 
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.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] chickenlj commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   If you have multiple network interfaces available, what Dubbo can do is randomly pick one to register to the registry.
   
   But for `binding`, I remember Dubbo will simply listen on `0.0.0.0:20880`, which means all connection build requests on all interfaces with port 20880 will be accepted. But you need to set the IP or host to be registered to Registry if not all IPs are reachable from the consumer side, use the property you mentioned above: DDUBBO_IP_TO_REGISTRY


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   > detailed error message
   
   09:40:16.647 [main] INFO  org.apache.dubbo.config.ServiceConfig -  [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to local registry url : injvm://127.0.0.1/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=producer&background=false&bind.ip=X.X.X.X&bind.port=20880&connections=1&corethreads=2&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=producer&interface=org.apache.dubbo.metadata.MetadataService&logger=slf4j&methods=getMetadataURL,isMetadataService,getExportedURLs,getAndListenInstanceMetadata,serviceName,version,getSubscribedURLs,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=11988&qos.enable=false&register=false&release=3.0.12&revision=3.0.12&side=provider&threadpool=cach
 ed&threads=100&timestamp=1666921216584&version=1.0.0, dubbo version: 3.0.12, current host: X.X.X.X
   09:40:16.649 [main] INFO  org.apache.dubbo.config.ServiceConfig -  [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to url dubbo://X.X.X.X:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=producer&background=false&bind.ip=X.X.X.X&bind.port=20880&connections=1&corethreads=2&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=producer&interface=org.apache.dubbo.metadata.MetadataService&logger=slf4j&methods=getMetadataURL,isMetadataService,getExportedURLs,getAndListenInstanceMetadata,serviceName,version,getSubscribedURLs,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=11988&qos.enable=false&register=false&release=3.0.12&revision=3.0.12&service-name-mapping=true&side=provider&th
 readpool=cached&threads=100&timestamp=1666921216584&version=1.0.0, dubbo version: 3.0.12, current host: X.X.X.X
   09:40:16.668 [main] ERROR org.apache.dubbo.config.deploy.DefaultApplicationDeployer -  [DUBBO] Dubbo Application[1.1](producer) an exception occurred when handle starting event, dubbo version: 3.0.12, current host: X.X.X.X
   org.apache.dubbo.rpc.RpcException: Fail to start server(url: dubbo://X.X.X.X:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=producer&background=false&bind.ip=X.X.X.X&bind.port=20880&channel.readonly.sent=true&codec=dubbo&connections=1&corethreads=2&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=producer&heartbeat=60000&interface=org.apache.dubbo.metadata.MetadataService&logger=slf4j&methods=getMetadataURL,isMetadataService,getExportedURLs,getAndListenInstanceMetadata,serviceName,version,getSubscribedURLs,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=11988&qos.enable=false&register=false&release=3.0.12&revision=3.0.12&service-name-mapping=true&side=provider&threadpool=cached&threads=100&t
 imestamp=1666921216584&version=1.0.0) Failed to bind NettyServer on /X.X.X.X:20880, cause: Address already in use: bind
       at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:378) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:343) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:325) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:66) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:72) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:61) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.export(ProtocolSerializationWrapper.java:47) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.registry.integration.RegistryProtocol.lambda$doLocalExport$2(RegistryProtocol.java:294) ~[dubbo-3.0.12.jar:3.0.12]
       at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) ~[?:1.8.0_341]
       at org.apache.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:292) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:239) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:64) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:72) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:58) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.export(ProtocolSerializationWrapper.java:47) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.doExportUrl(ServiceConfig.java:646) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.exportRemote(ServiceConfig.java:624) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.exportUrl(ServiceConfig.java:583) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:415) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:399) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:361) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:233) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.metadata.ConfigurableMetadataServiceExporter.export(ConfigurableMetadataServiceExporter.java:71) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.metadata.ExporterDeployListener.onModuleStarted(ExporterDeployListener.java:70) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.exportMetadataService(DefaultApplicationDeployer.java:923) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.prepareApplicationInstance(DefaultApplicationDeployer.java:613) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.checkState(DefaultApplicationDeployer.java:824) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.notifyModuleChanged(DefaultApplicationDeployer.java:812) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultModuleDeployer.onModuleStarted(DefaultModuleDeployer.java:257) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultModuleDeployer.startSync(DefaultModuleDeployer.java:164) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:132) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45) ~[dubbo-3.0.12.jar:3.0.12]
       at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.20.jar:5.3.20]
       at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.0.jar:2.7.0]
       at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.0.jar:2.7.0]
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.0.jar:2.7.0]
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.0.jar:2.7.0]
       at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.0.jar:2.7.0]
       at org.example.ProducerApp.main(ProducerApp.java:11) ~[classes/:?]
   Caused by: org.apache.dubbo.remoting.RemotingException: Failed to bind NettyServer on /X.X.X.X:20880, cause: Address already in use: bind
       at org.apache.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:75) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.transport.netty4.NettyServer.<init>(NettyServer.java:86) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.transport.netty4.NettyTransporter.bind(NettyTransporter.java:35) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.Transporter$Adaptive.bind(Transporter$Adaptive.java) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.Transporters.bind(Transporters.java:55) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:44) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:69) ~[dubbo-3.0.12.jar:3.0.12]
       at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:376) ~[dubbo-3.0.12.jar:3.0.12]
       ... 48 more
   Caused by: java.net.BindException: Address already in use: bind
       at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_341]
       at sun.nio.ch.Net.bind(Net.java:438) ~[?:1.8.0_341]
       at sun.nio.ch.Net.bind(Net.java:430) ~[?:1.8.0_341]
       at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:225) ~[?:1.8.0_341]
       at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:141) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:260) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:174) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:167) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) ~[netty-transport-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.77.Final.jar:4.1.77.Final]
       at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_341]


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   the business actually needs to provide is the host


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   > > > Was 20880 port already in used?
   > > > yes  and version 3.0.0 does not have this problem.
   > 
   > first: dubbo bind test-local:20880 and then dubbo bind 192.X.X.X:20880
   
   the host "test-local" ip is 127.0.0.1


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   example:
   java -DDUBBO_IP_TO_REGISTRY=test-local -DDUBBO_PORT_TO_REGISTRY=20880 -DDUBBO_IP_TO_BIND=test-local -DDUBBO_PORT_TO_BIND=20880 -jar XXX.jar


-- 
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] AlbumenJ commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   how about set host as `127.0.0.1` and `192.x.x.x` directly


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   > > Was 20880 port already in used?
   > > yes  and version 3.0.0 does not have this problem.
   
   first:  dubbo  bind  test-local:20880  and then dubbo bind 192.X.X.X:20880 


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   
   By tracing the source code, I found that the findConfiguredHost method and findConfiguredPort method in ServiceConfig, the ProtocolConfig and ProviderConfig of MetadataService did not get my configuration correctly. I found that the DUBBO was set according to the source code_ IP_ TO_ BIND、DUBBO_ IP_ TO_ REGISTRY、DUBBO_ PORT_ TO_ BIND、DUBBO_ PORT_ TO_ REGISTRY can avoid this problem


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   > Was 20880 port already in used?
   yes  and version 3.0.0 does not have this problem.
   
   


-- 
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] wpailn commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   > > > > Was 20880 port already in used?
   > > > > yes  and version 3.0.0 does not have this problem.
   > > 
   > > 
   > > first: dubbo bind test-local:20880 and then dubbo bind 192.X.X.X:20880
   > 
   > the host "test-local" ip is 127.0.0.1
   
   I find dubbo://X.X.X.X:20880/org.apache.dubbo.metadata.MetadataService  used the default IP instead of the host "test-local"


-- 
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] chickenlj closed issue #10835: dubbo provider set host (Address already in use: bind)

Posted by GitBox <gi...@apache.org>.
chickenlj closed issue #10835: dubbo provider set host (Address already in use: bind)
URL: https://github.com/apache/dubbo/issues/10835


-- 
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] AlbumenJ commented on issue #10835: dubbo provider set host (Address already in use: bind)

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

   Was 20880 port already in used?


-- 
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