xiangmingtao opened a new issue, #60329: URL: https://github.com/apache/doris/issues/60329
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 4.0.2 ### What's Wrong? The BE node fails to start consistently after modifying the be.conf configuration file ### What You Expected? I need to be able to restart both the FE and BE of Doris normally within a Docker container, and ensure they can run properly. ### How to Reproduce? My operation steps are as follows:: docker stop doris-be; docker stop doris-fe; docker start doris-fe; docker start doris-be; My configuration file is as follows: #docker.compose.yml services: doris-fe: image: apache/doris:fe-4.0.2 container_name: doris-fe hostname: fe1 ports: - "8030:8030" - "9010:9010" - "9030:9030" volumes: - /ssd_data/ssd1/apache-doris/fe/doris-meta:/opt/apache-doris/fe/doris-meta - /mnt/application/apache-doris/fe/conf:/opt/apache-doris/fe/conf - /mnt/application/apache-doris/fe/log:/opt/apache-doris/fe/log environment: - FE_SERVERS=fe1:172.20.0.2:9010 - FE_ID=1 - PREFER_HOST_MODE=ip - TZ=Asia/Shanghai networks: doris-net: ipv4_address: 172.20.0.2 restart: always privileged: true doris-be: image: apache/doris:be-4.0.2 container_name: doris-be hostname: be1 ports: - "8040:8040" - "9050:9050" - "8060:8060" - "9060:9060" volumes: - /ssd_data/ssd1/apache-doris/be/storage:/opt/apache-doris/be/storage_ssd1 - /ssd_data/ssd2/apache-doris/be/storage:/opt/apache-doris/be/storage_ssd2 - /mnt/application/apache-doris/be/storage:/opt/apache-doris/be/storage_hdd1 - /mnt/application/apache-doris/be/conf:/opt/apache-doris/be/conf - /mnt/application/apache-doris/be/log:/opt/apache-doris/be/log environment: - FE_SERVERS=fe1:172.20.0.2:9010 - BE_ADDR=172.20.0.3:9050:8060 - PREFER_HOST_MODE=ip - LD_LIBRARY_PATH=/opt/apache-doris/lib - TZ=Asia/Shanghai networks: doris-net: ipv4_address: 172.20.0.3 restart: always privileged: true depends_on: - doris-fe networks: doris-net: driver: bridge ipam: config: - subnet: 172.20.0.0/24 gateway: 172.20.0.1 driver_opts: com.docker.network.bridge.enable_icc: "true" com.docker.network.bridge.enable_ip_masquerade: "true" #fe.conf http_port = 8030 rpc_port = 9010 query_port = 9030 edit_log_port = 9020 JAVA_OPTS_FOR_JDK_17="-Xmx12G -Xms12G -XX:+UseG1GC -XX:MaxGCPauseMillis=300 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/apache-doris/fe/log/heap_dump.hprof" priority_networks = 172.20.0.0/24 server_id = 1 cluster_id = 1 meta_dir = /opt/apache-doris/fe/doris-meta sys_log_dir = /opt/apache-doris/fe/log log_level = WARN sys_log_roll_mode = SIZE sys_log_roll_size = 512MB sys_log_keep_days = 7 enable_ipv6 = false prefer_host_mode = ip default_storage_medium = ssd dynamic_partition.storage_medium = ssd #be.conf be_port = 9060 webserver_port = 8040 heartbeat_service_port = 9050 brpc_port = 8060 storage_root_path = /opt/apache-doris/be/storage_hdd1,medium:hdd;/opt/apache-doris/be/storage_ssd1,medium:ssd;/opt/apache-doris/be/storage_ssd2,medium:ssd sys_log_dir = /opt/apache-doris/be/log log_level = WARN mem_limit = 72G sys_log_roll_mode = SIZE sys_log_roll_size = 512MB sys_log_keep_days = 7 priority_networks = 172.20.0.0/24 enable_ipv6 = false be_decommissioned = false cpu_core_limit = 0 disable_balance = false ### Anything Else? #BE startup log is as follows: 2026-01-28T17:29:43+08:00 [INFO] [Entrypoint]: Waiting for master FE to be ready... (1/60) 2026-01-28T17:30:03+08:00 [INFO] [Entrypoint]: Waiting for master FE to be ready... (21/60) 2026-01-28T17:30:03+08:00 [INFO] [Entrypoint]: Waiting for BE node... (21/60) 2026-01-28T17:30:23+08:00 [INFO] [Entrypoint]: Waiting for master FE to be ready... (41/60) 2026-01-28T17:30:23+08:00 [INFO] [Entrypoint]: Waiting for BE node... (41/60) 2026-01-28T17:30:44+08:00 [ERROR] [Entrypoint]: BE node failed to start 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Running in Election mode 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Initializing BE configuration 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Setting up mixed node role 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: ==== BE Node Configuration ==== 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Master FE IP: 172.20.0.2 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Current BE IP: 172.20.0.3 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Current BE Port: 9050 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Priority Networks: 172.20.0.0/24 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Waiting for BE node... (1/60) 2026-01-28T17:30:44+08:00 [INFO] [Entrypoint]: Node Role: mixed In addition, the following are the configurations in be.conf. The last three lines are automatically written after each restart, with one line added every time the service restarts. The following shows the content of be.conf after several restarts. Several lines of priority_networks = 172.20.0.0/24 are automatically appended to the end of the file. be_port = 9060 webserver_port = 8040 heartbeat_service_port = 9050 brpc_port = 8060 storage_root_path = /opt/apache-doris/be/storage_hdd1,medium:hdd;/opt/apache-doris/be/storage_ssd1,medium:ssd;/opt/apache-doris/be/storage_ssd2,medium:ssd sys_log_dir = /opt/apache-doris/be/log log_level = WARN mem_limit = 72G sys_log_roll_mode = SIZE sys_log_roll_size = 512MB sys_log_keep_days = 7 priority_networks = 172.20.0.0/24 enable_ipv6 = false be_decommissioned = false cpu_core_limit = 0 disable_balance = false priority_networks = 172.20.0.0/24 priority_networks = 172.20.0.0/24 priority_networks = 172.20.0.0/24 ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
