Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
hl037 opened this issue Feb 17, 2024 · 2 comments

Comments

@hl037
Copy link

hl037 commented Feb 17, 2024

Search before asking

  • 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!
Copy link

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

@HTHou
Copy link
Contributor

HTHou commented Feb 19, 2024

Did you try the docker-compose like this? #11712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants