strange error: end of file unexpected when end of file unexpected
maxwellcheng opened this issue · 1 comments
I got a strange error when trying , any feedback is appreciated
ubuntu@instance-:~/stable-diffusion-webui-docker-main$ sudo docker compose --profile cpu up -d
[+] Building 1.6s (6/9)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:22.04 1.2s
=> [internal] load build context 0.0s
=> => transferring context: 62B 0.0s
=> CACHED [1/5] FROM docker.io/library/ubuntu:22.04@sha256:9a0bdde4188b896a372804be2384015e90e3f84906b750c1a53539b585fbbe7f 0.0s
=> ERROR [2/5] RUN if [ "Etc/UTC" = "Asia/Taipei" ]; then sed -i '/^deb/{s/ [^ ]*/ http://free.nchc.org.tw/ubuntu//1}' /etc/apt/sources.list fi && apt-get update && apt-get dist-upgrade -yq --no-install-recommends && apt-get install 0.3s
[2/5] RUN if [ "Etc/UTC" = "Asia/Taipei" ]; then sed -i '/^deb/{s/ [^ ]*/ http://free.nchc.org.tw/ubuntu//1}' /etc/apt/sources.list fi && apt-get update && apt-get dist-upgrade -yq --no-install-recommends && apt-get install -yq --no-install-recommends sudo git-core git-lfs python3 python3-pip python3-venv python3-opencv && groupadd --gid 1000 wow && useradd --uid 1000 --gid 1000 -m wow && echo wow ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/wow && chmod 0440 /etc/sudoers.d/wow && curl -sL https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh | sudo -u wow env COMMANDLINE_ARGS="--lowvram --precision full --no-half --allow-code --enable-insecure-extension-access --api --listen --port 7861 --exit --skip-torch-cuda-test" bash && sudo -u wow python3 -m pip install xformers && sudo -u wow git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/wow/stable-diffusion-webui/extensions/sd-webui-controlnet && sudo -u wow git clone https://huggingface.co/webui/ControlNet-modules-safetensors /home/wow/stable-diffusion-webui/models/ControlNet && sudo -u wow mkdir -p /home/wow/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose && sudo -u wow curl -Lo /home/wow/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose/body_pose_model.pth https://huggingface.co/lllyasviel/ControlNet/resolve/main/annotator/ckpts/body_pose_model.pth && sudo -u wow curl -Lo /home/wow/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose/hand_pose_model.pth https://huggingface.co/lllyasviel/ControlNet/resolve/main/annotator/ckpts/hand_pose_model.pth:
#0 0.264 /bin/sh: 1: Syntax error: end of file unexpected (expecting "fi")
failed to solve: executor failed running [/bin/sh -c if [ "$TZ" = "Asia/Taipei" ]; then sed -i '/^deb/{s/ [^ ]*/ http://free.nchc.org.tw/ubuntu//1}' /etc/apt/sources.list fi && apt-get update && apt-get dist-upgrade -yq --no-install-recommends && apt-get install -yq --no-install-recommends sudo git-core git-lfs python3 python3-pip python3-venv python3-opencv && groupadd --gid $USER_GID $USERNAME && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && echo $USERNAME ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && chmod 0440 /etc/sudoers.d/$USERNAME && curl -sL https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh | sudo -u