apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.82k stars 3.3k forks source link

Doris manager interface failed to install new Doris cluster #26291

Open ktpktr0 opened 1 year ago

ktpktr0 commented 1 year ago

Search before asking

Version

os version: oracle linux 8 doris: 2.0.2 doris-manager: 23.9.2

What's Wrong?

Guess it was when adding the crontab task, replacing the installation directory with the IP address of the webserver caused the addition of the crontab to fail

There is also this error when installing the Doris standalone version

集群部署失败,请尝试修改节点、集群配置并重新部署。 failed to add crontab for webui node 192.168.1.180, stdout: , stderr: + DEPLOY_DIR=192.168.1.180 + CLUSTER_NAME=cluster-478286445330437 + cat bash: line 9: 192.168.1.180/.webui_cluster-478286445330437_cron.sh: No such file or directory + chmod +x 192.168.1.180/.webui_cluster-478286445330437_cron.sh chmod: cannot access '192.168.1.180/.webui_cluster-478286445330437_cron.sh': No such file or directory + grep -q webui_cluster-478286445330437 + crontab -l + crontab -l + crontab - + echo '*/1 * * * * 192.168.1.180/.webui_cluster-478286445330437_cron.sh' "-":1: bad minute errors in crontab file, can't install. , err: run cmd ` #!/bin/bash set -o pipefail set -x DEPLOY_DIR=""192.168.1.180"" CLUSTER_NAME=""cluster-478286445330437"" # direct overwrite cat > "${DEPLOY_DIR}/.webui_${CLUSTER_NAME}_cron.sh" << EOF #!/bin/bash WEBUI_PID_FILE="${DEPLOY_DIR}/bin/webui.pid" if [ -e "\${WEBUI_PID_FILE}" ]; then pid=\$(cat "\${WEBUI_PID_FILE}") kill -0 "\$pid" if [ \$? -eq 0 ]; then

error log

time="2023-11-06T13:19:27+08:00" level=info msg="add be SQL: ALTER SYSTEM ADD BACKEND '192.168.1.151:9050'" host=192.168.1.151 jobID=01cbd5e3680145ec935d17fbb718ff25 stage=StartBackendStage
time="2023-11-06T13:19:27+08:00" level=info msg="succeed to run command to start BE node" host=192.168.1.151 jobID=01cbd5e3680145ec935d17fbb718ff25 stage=StartBackendStage
time="2023-11-06T13:19:27+08:00" level=info msg="succeed to start be node 192.168.1.151:9050" host=192.168.1.151 jobID=01cbd5e3680145ec935d17fbb718ff25 stage=StartBackendStage
time="2023-11-06T13:19:29+08:00" level=error msg="failed to run add webui crontab task, failed to add crontab for webui node 192.168.1.180, stdout: , stderr: + DEPLOY_DIR=192.168.1.180
+ CLUSTER_NAME=cluster-479685803409413
+ cat
bash: line 9: 192.168.1.180/.webui_cluster-479685803409413_cron.sh: No such file or directory
+ chmod +x 192.168.1.180/.webui_cluster-479685803409413_cron.sh
chmod: cannot access '192.168.1.180/.webui_cluster-479685803409413_cron.sh': No such file or directory
+ crontab -l
+ grep -q webui_cluster-479685803409413
+ crontab -l
+ crontab -
+ echo '*/1 * * * * 192.168.1.180/.webui_cluster-479685803409413_cron.sh'
\"-\":1: bad minute
errors in crontab file, can't install.
, err: run cmd `
#!/bin/bash
set -o pipefail
set -x

DEPLOY_DIR=\"\"192.168.1.180\"\"
CLUSTER_NAME=\"\"cluster-479685803409413\"\"

# direct overwrite
cat > \"${DEPLOY_DIR}/.webui_${CLUSTER_NAME}_cron.sh\" << EOF
#!/bin/bash

WEBUI_PID_FILE=\"${DEPLOY_DIR}/bin/webui.pid\"

if [ -e \"\\${WEBUI_PID_FILE}\" ]; then
    pid=\\$(cat \"\\${WEBUI_PID_FILE}\")
    kill -0 \"\\$pid\"
    if [ \\$? -eq 0 ]; then
        echo 'Webui process alive'
    else
        rm -f \"\\${WEBUI_PID_FILE}\"
        ${DEPLOY_DIR}/bin/start.sh
    fi
fi
EOF

What You Expected?

Successfully deployed Doris cluster

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

ixzc commented 1 year ago

add my wechat: Faith_xzc