Deploy error
Closed this issue · 3 comments
Chiliad-Spring commented
Issue Type
Install/Deploy
Have you searched for existing documents and issues?
Yes
OS Platform and Distribution
Ubuntu 20.04
All_in_one Version
v1.9.0
Module type
secretpad
Module version
0.10.0b0/0.10.1b0
What happend and What you expected to happen.
when run the ./install.sh master
It seems like the sed command cant analyze multiple lines of code
such as
sed "s|{{.TEE_NODE_NAME}}|${TEE_NODE_NAME}|g;
s|{{.TEE_CAPSULE_MANAGER_SIM_IMAGE}}|${CAPSULE_MANAGER_SIM_IMAGE}|g" \
tee-capsule-manager.yaml >tee-capsule-manager-0.yaml
How to solve it?
Log output.
[INFO] Image 'secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/capsule-manager-sim-ubuntu20.04:v0.1.0b0' already exists in domain 'root-kuscia-lite-tee'
+ return
+ init_tee
+ log 'start init tee crd'
+ echo -e '\033[0;34m[INFO]\033[0m start init tee crd'
[INFO] start init tee crd
++ pwd
+ docker run --rm --entrypoint /bin/bash -v /root/secretflow-allinone-package:/tmp/secretpad secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretpad:0.9.0b0 -c 'cp -R /app/scripts/templates/tee-image.yaml /tmp/secretpad/'
++ pwd
+ docker run --rm --entrypoint /bin/bash -v /root/secretflow-allinone-package:/tmp/secretpad secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretpad:0.9.0b0 -c 'cp -R /app/scripts/templates/tee-capsule-manager.yaml /tmp/secretpad/'
++ docker exec -it root-kuscia-master kubectl get nodes
++ grep tee
++ awk '{print $1}'
+ TEE_NODE_NAME='root-kuscia-lite-alice-tee-node34
root-kuscia-lite-bob-tee-node34
root-kuscia-lite-tee-tee-node34'
+ sed 's|{{.TEE_NODE_NAME}}|root-kuscia-lite-alice-tee-node34
root-kuscia-lite-bob-tee-node34
root-kuscia-lite-tee-tee-node34|g;
s|{{.TEE_CAPSULE_MANAGER_SIM_IMAGE}}|secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/capsule-manager-sim-ubuntu20.04:v0.1.0b0|g' tee-capsule-manager.yaml
sed: -e expression #1, char 54: unterminated `s' command
john8628 commented
please see your docker version , please follow the doc docker version
Chiliad-Spring commented
please see your docker version , please follow the doc docker version
My Docker version 20.10.24, build 297e128
Maybe not this , something was wrong with the "sed" command
1139763082 commented
Issue Type
Install/Deploy
Have you searched for existing documents and issues?
Yes
OS Platform and Distribution
Ubuntu 20.04
All_in_one Version
v1.9.0
Module type
secretpad
Module version
0.10.0b0/0.10.1b0
What happend and What you expected to happen.
when run the ./install.sh master It seems like the sed command cant analyze multiple lines of code such as sed "s|{{.TEE_NODE_NAME}}|${TEE_NODE_NAME}|g; s|{{.TEE_CAPSULE_MANAGER_SIM_IMAGE}}|${CAPSULE_MANAGER_SIM_IMAGE}|g" \ tee-capsule-manager.yaml >tee-capsule-manager-0.yaml How to solve it?Log output.
[INFO] Image 'secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/capsule-manager-sim-ubuntu20.04:v0.1.0b0' already exists in domain 'root-kuscia-lite-tee' + return + init_tee + log 'start init tee crd' + echo -e '\033[0;34m[INFO]\033[0m start init tee crd' [INFO] start init tee crd ++ pwd + docker run --rm --entrypoint /bin/bash -v /root/secretflow-allinone-package:/tmp/secretpad secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretpad:0.9.0b0 -c 'cp -R /app/scripts/templates/tee-image.yaml /tmp/secretpad/' ++ pwd + docker run --rm --entrypoint /bin/bash -v /root/secretflow-allinone-package:/tmp/secretpad secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/secretpad:0.9.0b0 -c 'cp -R /app/scripts/templates/tee-capsule-manager.yaml /tmp/secretpad/' ++ docker exec -it root-kuscia-master kubectl get nodes ++ grep tee ++ awk '{print $1}' + TEE_NODE_NAME='root-kuscia-lite-alice-tee-node34 root-kuscia-lite-bob-tee-node34 root-kuscia-lite-tee-tee-node34' + sed 's|{{.TEE_NODE_NAME}}|root-kuscia-lite-alice-tee-node34 root-kuscia-lite-bob-tee-node34 root-kuscia-lite-tee-tee-node34|g; s|{{.TEE_CAPSULE_MANAGER_SIM_IMAGE}}|secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/capsule-manager-sim-ubuntu20.04:v0.1.0b0|g' tee-capsule-manager.yaml sed: -e expression #1, char 54: unterminated `s' command
You execute 'docker ps' to see what container is running