iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

[Bug] [Archlinux] iotdb-standalone docker-compose won't start, stuck at "Checking whether the ports are already occupied..."

Open hl037 opened this issue 1 year ago • 4 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Version

Archlinux + Docker24.0.7 apache/iotdb:1.3.0-standalone apache/iotdb:1.2.2-standalone (I have not tried other versions)

Describe the bug and provide the minimal reproduce step

docker-compose.yml :

version: "3"
services:
  iotdb-service:
    image: apache/iotdb:1.3.0-standalone
    hostname: iotdb-service
    container_name: iotdb-service
    ports:
      - "6667:6667"
    environment:
      - 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_seed_config_node=iotdb-service:10710
    volumes:
        - ./data:/iotdb/data
        - ./logs:/iotdb/logs
    networks:
      iotdb:
        ipv4_address: 172.18.0.6

networks:
  iotdb:
    external: true

commands :

docker network create --driver=bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 iotdb
docker compose up

output :

[+] Running 1/0
 ✔ Container iotdb-service  Created                                                                                                                                                                                                                                                                                  0.0s 
Attaching to iotdb-service
iotdb-service  | update dn_internal_address /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update dn_data_region_consensus_port /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update cn_internal_port /iotdb/conf/iotdb-confignode.properties
iotdb-service  | update dn_rpc_address /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update dn_mpp_data_exchange_port /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update dn_rpc_port /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update cn_consensus_port /iotdb/conf/iotdb-confignode.properties
iotdb-service  | update cn_seed_config_node /iotdb/conf/iotdb-confignode.properties
iotdb-service  | update cn_internal_address /iotdb/conf/iotdb-confignode.properties
iotdb-service  | update dn_schema_region_consensus_port /iotdb/conf/iotdb-datanode.properties
iotdb-service  | update dn_seed_config_node /iotdb/conf/iotdb-datanode.properties
iotdb-service  | Checking whether the ports are already occupied...
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container iotdb-service  Stopped                                                                                                                                                                                                                                                                                  0.6s 
iotdb-service exited with code 0
canceled

What did you expect to see?

The service to start in less than 5 minutes

What did you see instead?

The service does not start, is stuck, and the cpu burns at 100% for 10 minutes

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

hl037 avatar Feb 17 '24 13:02 hl037

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar Feb 17 '24 13:02 github-actions[bot]

Did you try the docker-compose like this? https://github.com/apache/iotdb/discussions/11712

HTHou avatar Feb 19 '24 07:02 HTHou

https://discourse.pi-hole.net/t/pi-hole-docker-lsof-pni-53-using-100-cpu/47484/5 This may be a solution.

HTHou avatar Aug 15 '24 07:08 HTHou

Should be the same problem. https://github.com/apache/iotdb/issues/12451 https://github.com/apache/iotdb/issues/13151

HTHou avatar Aug 15 '24 09:08 HTHou