You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "FlickerMi (via GitHub)" <gi...@apache.org> on 2024/08/13 08:43:29 UTC
[I] [Bug] 麒麟系统部署,启动后卡在 Checking whether the ports are already occupied... [iotdb]
FlickerMi opened a new issue, #13151:
URL: https://github.com/apache/iotdb/issues/13151
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
iotdb版本:iotdb:1.3.1-standalone
服务器版本:麒麟V10 x86_64
Linux version 4.19.90-52.22.v2207.ky10.x86_64 (KYLINSOFT@COMPILE.MACHINE) (gcc version 7.3.0 (GCC)) #1 SMP Tue Mar 14 12:19:10CST 2023
### Describe the bug and provide the minimal reproduce step
使用docker启动iotdb,**docker-compose.yml**:
```
version : '3.8'
services:
iotdb:
container_name: iotdb
image: apache/iotdb:1.3.1-standalone
restart: always
hostname: iotdb-service
ports:
- "6667:6667"
- "31999:31999"
- "8123:8123"
- "9003:9003"
volumes:
- ./data:/iotdb/data
- ./logs:/iotdb/logs
- ./conf:/iotdb/conf
environment:
- TZ=Asia/Shanghai
- enable_rest_service=true
- cn_internal_address=iotdb-service
- cn_internal_port=10710
- cn_consensus_port=10720
- cn_seed_config_node=iotdb-service:10710
- dn_rpc_address=iotdb-service
- dn_internal_address=iotdb-service
- dn_rpc_port=6667
- dn_mpp_data_exchange_port=10740
- dn_schema_region_consensus_port=10750
- dn_data_region_consensus_port=10760
- dn_target_config_node_list=iotdb-service:10710
#- dn_seed_config_node=iotdb-service:10710
networks:
- cc-network
networks:
cc-network:
external: true
```
docker compose up -d 后,日志只有一行,并且容器CPU飙升。
**输出日志:**
```
Checking whether the ports are already occupied...
```
### What did you expect to see?
正常启动日志
### What did you see instead?
Checking whether the ports are already occupied...
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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: reviews-unsubscribe@iotdb.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统 docker 部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "FlickerMi (via GitHub)" <gi...@apache.org>.
FlickerMi commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2290903083
@HTHou 已经解决,主要是容器内openfiles的ulimit太高,导致启动iotdb时,lsof命令checkConfigNodePortUsages的时侯挂起了。
解决方法:修改/etc/docker/daemon.json 默认ulimits,设置小点

参考内容:https://unix.stackexchange.com/questions/722948/lsof-is-frozen-inside-the-container
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统 docker 部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "Dannyshcn (via GitHub)" <gi...@apache.org>.
Dannyshcn commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2343093532
version: '3'
services:
my_service:
image: my_image
ulimits:
nofile:
soft: 65536
hard: 65536
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统 docker 部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "wold9168 (via GitHub)" <gi...@apache.org>.
wold9168 commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-3250057857
对于使用docker compose的用户,可以考虑将以下设置项加入docker compose相应的服务中:
```yaml
ulimits:
nofile:
soft: 65536
hard: 65536
```
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统 docker 部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "FlickerMi (via GitHub)" <gi...@apache.org>.
FlickerMi closed issue #13151: [Bug] 麒麟系统 docker 部署iotdb,启动后卡在 Checking whether the ports are already occupied...
URL: https://github.com/apache/iotdb/issues/13151
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2288104173
试试 dn_target_config_node_list=iotdb-service:10710 恢复成 dn_seed_config_node=iotdb-service:10710 ?
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2290792950
https://discourse.pi-hole.net/t/pi-hole-docker-lsof-pni-53-using-100-cpu/47484/4 看到一个类似的 lsof 占用cpu 高的情况,试试最后面的这个方法?
<img width="920" alt="image" src="https://github.com/user-attachments/assets/28dab340-f2c2-49e3-9863-4ada071a82ca">
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "HTHou (via GitHub)" <gi...@apache.org>.
HTHou commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2290458021
少了 dn_internal_port=10730 ?
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 麒麟系统部署iotdb,启动后卡在 Checking whether the ports are already occupied... [iotdb]
Posted by "FlickerMi (via GitHub)" <gi...@apache.org>.
FlickerMi commented on issue #13151:
URL: https://github.com/apache/iotdb/issues/13151#issuecomment-2290288194
> 试试 dn_target_config_node_list=iotdb-service:10710 恢复成 dn_seed_config_node=iotdb-service:10710 ?
还是不行,也是卡在Checking whether the ports are already occupied...
还有其它什么方案能帮助排查问题吗?
--
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: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org