Apache Software Foundation logo

Skill

doris-debug-deployment

troubleshoot Apache Doris deployment failures

Covers Operations Deployment Debugging

Description

Use for Doris FE/BE startup failures, port conflicts, priority_networks misrouting, meta_dir corruption, and ADD/DROP BACKEND issues.

SKILL.md

Deployment & Startup

Causes

IDCauseEvidenceSource anchor
APort conflictBE/FE fail to bind; Address already in usebrpc/server.cpp, doris_main.cpp
Bpriority_networks misconfigbrpc connection refused / wrong interfaceconfig.cpp
Cmeta_dir / storage_root_path not writablePermission denied / No such file at startupolap/olap_meta.cpp
DFE metadata corruptionFE fails to start after crash; meta/image.* errorsImage.java, BDBJEJournal.java
EMixed version clusterProtocol mismatch in thrift/brpc between FE-BEbe/src/agent/, heartbeat
FDNS / hostname resolutionUnknownHostException, BE heartbeat to wrong addressEnv.java frontend host check

10 min triage

# FE status
curl -s "http://$FE:8030/api/bootstrap"
curl -s "http://$FE:8030/api/health"

# BE status
curl -s "http://$BE:8040/api/health"

# Port check
ss -tlnp | grep -E "8030|8040|8060|9030"
-- Cluster membership
SHOW FRONTENDS\G
SHOW BACKENDS\G

Cause A — Port conflict

Default ports (from fe/conf/fe.conf and be/conf/be.conf):

ServicePortConfig key
FE HTTP8030http_port
BE HTTP8040webserver_port
BE brpc8060brpc_port
FE MySQL9030query_port
FE Edit log9010edit_log_port
# Kill stale process on target port
fuser -k 8060/tcp  # BE brpc
# Then restart BE

Cause B — priority_networks

The most common cause of "BE shows Alive=true but brpc fails." priority_networks tells BE which network interface to bind brpc to.

# be.conf — match ONE subnet exactly
priority_networks = 10.0.0.0/24

Check what interface BE actually bound:

curl -s "http://$BE:8040/api/health" | grep -o '"ip":"[^"]*"'

Validation: the IP in SHOW BACKENDS must be reachable from every FE and every other BE on port 8060.

Cause D — FE metadata recovery

# Check FE meta directory
ls -la fe/doris-meta/image/
ls -la fe/doris-meta/bdb/

# If bdb is corrupt and this is a follower/observer:
# 1. Remove the bad FE from the cluster
# 2. Wipe doris-meta/
# 3. Re-add as a new follower: ALTER SYSTEM ADD FOLLOWER "host:9010"

Never remove doris-meta/ on the last healthy Master FE.

Source

  • fe/conf/fe.conf — port defaults
  • be/src/common/config.cpppriority_networks
  • be/src/service/doris_main.cpp — BE startup
  • fe/.../master/Env.java — FE bootstrap
  • fe/.../journal/bdbje/BDBJEJournal.java

© 2026 YourAI.tools. Every skill from an identity-verified publisher.

Independent catalog. Not affiliated with, endorsed by, or sponsored by Anthropic or any listed publisher. All trademarks belong to their respective owners.