Repository navigation
Running dubbo-samples #16168
Pre-check
Apache Dubbo ComponentJava SDK (apache/dubbo) DetailsDubbo samples (2advanced -> tripple) refuses to run on my locals The errors: 09:58:39.344 |-ERROR [main] g.springframework.boot.SpringApplication:851 -| Application run failed 09:58:39.291 |-ERROR [main] .support.nacos.NacosDynamicConfiguration: -| [DUBBO] Failed to create nacos config service client. Reason: server status check failed., dubbo version: 3.3.6, current host: 172.19.240.1, error code: 5-34. This may be caused by , go to https://dubbo.apache.org/faq/5/34 to find instructions. 09:58:29.061 |-ERROR [main] com.alibaba.nacos.common.remote.client:102 -| Send request fail, request = ConfigQueryRequest{headers={charset=UTF-8, Client-AppName=unknown, Client-RequestToken=c40520999c61e89c2f7eddb4c15c8e79, Client-RequestTS=1774421908738, exConfigInfo=true, notify=false}, requestId='null'}, retryTimes = 2, errorMessage = Client not connected, current status:STARTING 9:58:29.065 |-ERROR [com.alibaba.nacos.client.remote.worker.1] cos.common.remote.client.grpc.GrpcClient:102 -| Server check fail, please check server 127.0.0.1 ,port 9848 is available , error =java.util.concurrent.ExecutionException: com.alibaba.nacos.shaded.io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Code of Conduct
|
Replies: 1 comment 1 reply
|
This is not a Triple protocol failure. The application is configured to use Nacos, but no reachable Nacos 2.x server is listening at The key lines are: Nacos 2.x uses:
For a local test, start Nacos in standalone mode and expose the required ports: docker run -d \
--name nacos-standalone \
-e MODE=standalone \
-p 8848:8848 \
-p 9848:9848 \
-p 9849:9849 \
nacos/nacos-server:v2.5.1Then verify that it is running: docker ps --filter name=nacos-standalone
curl -fsS http://127.0.0.1:8848/nacos/v1/console/health/livenessAlso verify the gRPC port: nc -vz 127.0.0.1 9848If the Dubbo sample itself runs inside Docker, dubbo.registry.address=nacos://nacos:8848
dubbo.config-center.address=nacos://nacos:8848
dubbo.metadata-report.address=nacos://nacos:8848Publishing only port If this particular sample is not intended to use Nacos, remove/override its Nacos registry and config-center settings and configure the registry expected by that sample instead. The sample repository recommends reading the individual sample README and starting its required external services before launching it. Nacos port documentation: Dubbo samples instructions: |
This is not a Triple protocol failure. The application is configured to use Nacos, but no reachable Nacos 2.x server is listening at
127.0.0.1:8848/9848.The key lines are:
Nacos 2.x uses:
8848for its main HTTP/API port9848for client gRPC communication9849for server-to-server gRPC communicationFor a local test, start Nacos in standalone mode and expose the required ports:
Then verify that it is running: