You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "changxue (Jira)" <ji...@apache.org> on 2023/01/03 05:56:00 UTC

[jira] [Commented] (IOTDB-5231) [monitor]datanode could not start when binding 9091 error

    [ https://issues.apache.org/jira/browse/IOTDB-5231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17653801#comment-17653801 ] 

changxue commented on IOTDB-5231:
---------------------------------

The log level should be warning, rather than error.

> [monitor]datanode could not start when binding 9091 error 
> ----------------------------------------------------------
>
>                 Key: IOTDB-5231
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5231
>             Project: Apache IoTDB
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: changxue
>            Assignee: Hongyin Zhang
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: config.tar.gz, monitor_error_log.tar.gz
>
>
> [monitor]datanode could not start when binding 9091 error 
> environment:
> 3C3D cluster, rel/1.0 branch
> 1. enable prometheus monitor
> 2. the prometheus service has not been started
> problem:
> 1. 监控是附加功能,打开它并且它工作不正常(可以warning),但不应该出现error,不应该影响rpc service等的启动。
> 2. 这种情况下,stop-datanode.sh 是不能成功停止成功的,需要kill
> 3. confignode启动成功,且成功绑定了9091, datanode再绑定9091,结果失败。需要使之成功。
> {code}
> 2022-12-19 10:26:23,574 [main] INFO  o.a.i.m.AbstractMetricService:130 - Detect more than one MetricManager, will use org.apache.iotdb.metrics.micrometer.MicrometerMetricManager
> 2022-12-19 10:26:23,574 [main] INFO  o.a.i.m.AbstractMetricService:137 - Load metric reporters, type: [PROMETHEUS]
> 2022-12-19 10:26:23,939 [main] ERROR o.a.i.c.s.m.MetricService:52 - Failed to start Metrics ServerService because:
> reactor.netty.ChannelBindException: Failed to bind on [0.0.0.0:9091]
>         Suppressed: java.lang.Exception: #block terminated with an error
>                 at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:139)
>                 at reactor.core.publisher.Mono.block(Mono.java:1731)
>                 at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:145)
>                 at reactor.netty.transport.ServerTransport.bindNow(ServerTransport.java:130)
>                 at org.apache.iotdb.metrics.reporter.prometheus.PrometheusReporter.start(PrometheusReporter.java:81)
>                 at org.apache.iotdb.metrics.CompositeReporter.startAll(CompositeReporter.java:38)
>                 at org.apache.iotdb.metrics.AbstractMetricService.startAllReporter(AbstractMetricService.java:193)
>                 at org.apache.iotdb.metrics.AbstractMetricService.startCoreModule(AbstractMetricService.java:98)
>                 at org.apache.iotdb.metrics.AbstractMetricService.startService(AbstractMetricService.java:76)
>                 at org.apache.iotdb.commons.service.metric.MetricService.start(MetricService.java:49)
>                 at org.apache.iotdb.commons.service.RegisterManager.register(RegisterManager.java:51)
>                 at org.apache.iotdb.db.service.DataNode.doAddNode(DataNode.java:162)
>                 at org.apache.iotdb.db.service.DataNodeServerCommandLine.run(DataNodeServerCommandLine.java:95)
>                 at org.apache.iotdb.commons.ServerCommandLine.doMain(ServerCommandLine.java:58)
>                 at org.apache.iotdb.db.service.DataNode.main(DataNode.java:131)
> 2022-12-19 10:26:23,940 [main] ERROR o.a.i.db.service.DataNode:178 - Fail to start server
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)