Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange error: end of file unexpected when end of file unexpected #3

Closed
maxwellcheng opened this issue Mar 1, 2023 · 1 comment
Closed

Comments

@maxwellcheng
Copy link

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 $USERNAME env COMMANDLINE_ARGS="${BUILD_ARGS}" bash && sudo -u $USERNAME python3 -m pip install xformers && sudo -u $USERNAME git clone https://github.com/Mikubill/sd-webui-controlnet.git /home/$USERNAME/stable-diffusion-webui/extensions/sd-webui-controlnet && sudo -u $USERNAME git clone https://huggingface.co/webui/ControlNet-modules-safetensors /home/$USERNAME/stable-diffusion-webui/models/ControlNet && sudo -u $USERNAME mkdir -p /home/$USERNAME/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/openpose && sudo -u $USERNAME curl -Lo /home/$USERNAME/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 $USERNAME curl -Lo /home/$USERNAME/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]: exit code: 2

@yftzeng
Copy link
Owner

yftzeng commented Mar 1, 2023

The commit 327f794 solved the issue, please try again.

@yftzeng yftzeng closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants