lkwq007 / stablediffusion-infinity

Outpainting with Stable Diffusion on an infinite canvas
Apache License 2.0
3.85k stars 303 forks source link

Docker-Missing entrypoint.sh #33

Closed y0himba closed 1 year ago

y0himba commented 1 year ago

Hello.

I am brand new to Docker, and this is my first attempt at using it.

I am on Windows 10, admin command prompt.

I have run the commands as shown under the install directions. The first two command work, however, I am getting the following error when I try to 'compose up':

C:\stable-diffusion\stablediffusion-infinity>docker-compose up
[+] Running 4/4
 - Network stablediffusion-infinity_default          Created                                                       0.1s
 - Volume "stablediffusion-infinity_cond_env"        Created                                                       0.0s
 - Volume "stablediffusion-infinity_user_home"       Created                                                       0.0s
 - Container stablediffusion-infinity-sd-infinity-1  Created                                                       0.2s
Attaching to stablediffusion-infinity-sd-infinity-1
stablediffusion-infinity-sd-infinity-1  | exec /home/user/app/docker/entrypoint.sh: no such file or directory
stablediffusion-infinity-sd-infinity-1 exited with code 1

What information can I give to help troubleshoot? Since I am on Win10, I am having issues locating the directories in the WSL system. To be honest, I am not even sure I am using the right words to describe the above sentence.

Any help is welcome.

throttlekitty commented 1 year ago

Also win 10, same issue.

I used this command to enter the docker image, and found that home/user/app/ is empty. docker run -it --rm --entrypoint=bash outpaint1-stablediffusion-infinity-sd-infinity

But I'm not familiar with docker at all, so I'm not sure where to go from there. Some searching on this issue says that text encoding on the docker files is the issue, but I see that these are already encoded in UTF-8, which should work on windows.

SkyeErnst commented 1 year ago

I also have the same problem, and am running windows 10.

Interestingly, I tried downloading the repo as a zip file rather than cloning it and I'm able to get farther with the install, however I still run into trouble. fpie fails to install with the following output:

Running setup.py install for fpie: started
stablediffusion-infinity-master-sd-infinity-1 |   Running setup.py install for fpie: finished with status 'error'
stablediffusion-infinity-master-sd-infinity-1 | 
stablediffusion-infinity-master-sd-infinity-1 | Pip subprocess error:
stablediffusion-infinity-master-sd-infinity-1 |   error: subprocess-exited-with-error
stablediffusion-infinity-master-sd-infinity-1 |   
stablediffusion-infinity-master-sd-infinity-1 |   × python setup.py bdist_wheel did not run successfully.
stablediffusion-infinity-master-sd-infinity-1 |   │ exit code: 1
stablediffusion-infinity-master-sd-infinity-1 |   ╰─> [17 lines of output]
stablediffusion-infinity-master-sd-infinity-1 |       running bdist_wheel
stablediffusion-infinity-master-sd-infinity-1 |       running build
stablediffusion-infinity-master-sd-infinity-1 |       running build_py
stablediffusion-infinity-master-sd-infinity-1 |       creating build
stablediffusion-infinity-master-sd-infinity-1 |       creating build/lib.linux-x86_64-cpython-310
stablediffusion-infinity-master-sd-infinity-1 |       creating build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/numba_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/gui.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/np_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/cli.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/taichi_solver.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/process.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/args.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/io.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       copying fpie/__init__.py -> build/lib.linux-x86_64-cpython-310/fpie
stablediffusion-infinity-master-sd-infinity-1 |       running build_ext
stablediffusion-infinity-master-sd-infinity-1 |       error: [Errno 2] No such file or directory: 'cmake'
stablediffusion-infinity-master-sd-infinity-1 |       [end of output

I tried installing cmake and running the container again, but I get the same output still.

tpsjr7 commented 1 year ago

Once this PR is merged https://github.com/lkwq007/stablediffusion-infinity/pull/49, those issues should be fixed

SkyeErnst commented 1 year ago

I'm still having trouble getting docker to run, though its a different problem now. After running the "docker-compose up" command, I get a very long output that ends with this:

stablediffusion-infinity-sd-infinity-1 | + python app.py --port=8888 --host=0.0.0.0
stablediffusion-infinity-sd-infinity-1 | OMP: Error #179: Function Can't open SHM2 failed:
stablediffusion-infinity-sd-infinity-1 | OMP: System error #2: No such file or directory
stablediffusion-infinity-sd-infinity-1 | /app/docker/entrypoint.sh: line 32:    84 Aborted                 python app.py --port=8888 --host=0.0.0.0

Any thoughts? This is my first time using docker and WSL, so its possible I messed something up but I'm not sure what it'd be.

In case its needed, the full terminal output is below, and I get this output either when I try to start the docker container or run the above mentioned command:

stablediffusion-infinity-sd-infinity-1 | + set -x
stablediffusion-infinity-sd-infinity-1 | + git submodule init
stablediffusion-infinity-sd-infinity-1 | + git submodule update
stablediffusion-infinity-sd-infinity-1 | + git config --global credential.helper store
stablediffusion-infinity-sd-infinity-1 | + conda env list
stablediffusion-infinity-sd-infinity-1 | + grep sd-inf
stablediffusion-infinity-sd-infinity-1 | sd-inf                   /home/user/.conda/envs/sd-inf
stablediffusion-infinity-sd-infinity-1 | + . /opt/conda/etc/profile.d/conda.sh
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_EXE=/opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_EXE=/opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | ++ export _CE_M=
stablediffusion-infinity-sd-infinity-1 | ++ _CE_M=
stablediffusion-infinity-sd-infinity-1 | ++ export _CE_CONDA=
stablediffusion-infinity-sd-infinity-1 | ++ _CE_CONDA=
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_PYTHON_EXE=/opt/conda/bin/python
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_PYTHON_EXE=/opt/conda/bin/python
stablediffusion-infinity-sd-infinity-1 | ++ '[' -z '' ']'
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_SHLVL=0
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_SHLVL=0
stablediffusion-infinity-sd-infinity-1 | ++ '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | ++++ dirname /opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | +++ dirname /opt/conda/bin
stablediffusion-infinity-sd-infinity-1 | ++ PATH=/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
stablediffusion-infinity-sd-infinity-1 | ++ export PATH
stablediffusion-infinity-sd-infinity-1 | ++ '[' -z '' ']'
stablediffusion-infinity-sd-infinity-1 | ++ PS1=
stablediffusion-infinity-sd-infinity-1 | + conda activate sd-inf
stablediffusion-infinity-sd-infinity-1 | + local cmd=activate
stablediffusion-infinity-sd-infinity-1 | + case "$cmd" in
stablediffusion-infinity-sd-infinity-1 | + __conda_activate activate sd-inf
stablediffusion-infinity-sd-infinity-1 | + '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | + local ask_conda
stablediffusion-infinity-sd-infinity-1 | ++ PS1=
stablediffusion-infinity-sd-infinity-1 | ++ __conda_exe shell.posix activate sd-inf
stablediffusion-infinity-sd-infinity-1 | ++ __add_sys_prefix_to_path
stablediffusion-infinity-sd-infinity-1 | ++ '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | +++ dirname /opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | ++ SYSP=/opt/conda/bin
stablediffusion-infinity-sd-infinity-1 | +++ dirname /opt/conda/bin
stablediffusion-infinity-sd-infinity-1 | ++ SYSP=/opt/conda
stablediffusion-infinity-sd-infinity-1 | ++ '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | ++ PATH=/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
stablediffusion-infinity-sd-infinity-1 | ++ export PATH
stablediffusion-infinity-sd-infinity-1 | ++ /opt/conda/bin/conda shell.posix activate sd-inf
stablediffusion-infinity-sd-infinity-1 | + ask_conda='PS1='\''(sd-inf) '\''
stablediffusion-infinity-sd-infinity-1 | export PATH='\''/home/user/.conda/envs/sd-inf/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PREFIX='\''/home/user/.conda/envs/sd-inf'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_SHLVL='\''1'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_DEFAULT_ENV='\''sd-inf'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PROMPT_MODIFIER='\''(sd-inf) '\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_EXE='\''/opt/conda/bin/conda'\''
stablediffusion-infinity-sd-infinity-1 | export _CE_M='\'''\''
stablediffusion-infinity-sd-infinity-1 | export _CE_CONDA='\'''\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PYTHON_EXE='\''/opt/conda/bin/python'\'''
stablediffusion-infinity-sd-infinity-1 | + eval 'PS1='\''(sd-inf) '\''
stablediffusion-infinity-sd-infinity-1 | export PATH='\''/home/user/.conda/envs/sd-inf/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PREFIX='\''/home/user/.conda/envs/sd-inf'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_SHLVL='\''1'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_DEFAULT_ENV='\''sd-inf'\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PROMPT_MODIFIER='\''(sd-inf) '\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_EXE='\''/opt/conda/bin/conda'\''
stablediffusion-infinity-sd-infinity-1 | export _CE_M='\'''\''
stablediffusion-infinity-sd-infinity-1 | export _CE_CONDA='\'''\''
stablediffusion-infinity-sd-infinity-1 | export CONDA_PYTHON_EXE='\''/opt/conda/bin/python'\'''
stablediffusion-infinity-sd-infinity-1 | ++ PS1='(sd-inf) '
stablediffusion-infinity-sd-infinity-1 | ++ export PATH=/home/user/.conda/envs/sd-inf/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
stablediffusion-infinity-sd-infinity-1 | ++ PATH=/home/user/.conda/envs/sd-inf/bin:/opt/conda/condabin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_PREFIX=/home/user/.conda/envs/sd-inf
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_PREFIX=/home/user/.conda/envs/sd-inf
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_SHLVL=1
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_SHLVL=1
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_DEFAULT_ENV=sd-inf
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_DEFAULT_ENV=sd-inf
stablediffusion-infinity-sd-infinity-1 | ++ export 'CONDA_PROMPT_MODIFIER=(sd-inf) '
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_PROMPT_MODIFIER='(sd-inf) '
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_EXE=/opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_EXE=/opt/conda/bin/conda
stablediffusion-infinity-sd-infinity-1 | ++ export _CE_M=
stablediffusion-infinity-sd-infinity-1 | ++ _CE_M=
stablediffusion-infinity-sd-infinity-1 | ++ export _CE_CONDA=
stablediffusion-infinity-sd-infinity-1 | ++ _CE_CONDA=
stablediffusion-infinity-sd-infinity-1 | ++ export CONDA_PYTHON_EXE=/opt/conda/bin/python
stablediffusion-infinity-sd-infinity-1 | ++ CONDA_PYTHON_EXE=/opt/conda/bin/python
stablediffusion-infinity-sd-infinity-1 | + __conda_hashr
stablediffusion-infinity-sd-infinity-1 | + '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | + '[' -n '' ']'
stablediffusion-infinity-sd-infinity-1 | + hash -r
stablediffusion-infinity-sd-infinity-1 | + shasum -c /home/user/.environment.sha
stablediffusion-infinity-sd-infinity-1 | + echo 'environment.yml is unchanged.'
stablediffusion-infinity-sd-infinity-1 | environment.yml is unchanged.
stablediffusion-infinity-sd-infinity-1 | + python app.py --port=8888 --host=0.0.0.0
stablediffusion-infinity-sd-infinity-1 | OMP: Error #179: Function Can't open SHM2 failed:
stablediffusion-infinity-sd-infinity-1 | OMP: System error #2: No such file or directory
stablediffusion-infinity-sd-infinity-1 | /app/docker/entrypoint.sh: line 32:    84 Aborted                 python app.py --port=8888 --host=0.0.0.0
tpsjr7 commented 1 year ago

Haven't seen that one with OMP errors. Can you double check if you run this command from your shell, do you see your GPU listed?

docker run -it --gpus=all --rm nvidia/cuda:11.4.2-base-ubuntu20.04 nvidia-smi

JeromeFr commented 1 year ago

I experienced the same issue as @SkyeErnst.

@tpsjr7 yes that command does list my GPU

Anyone has an idea of what we could do to find out what is missing?

tpsjr7 commented 1 year ago

I'm guessing, seeing that the error is saying, "OMP:" I see that the environment.yml is pulling in intel-openmp. Do you have an Intel CPU? If not, maybe why that's failing. Also another guess, maybe it's failing here, https://github.com/lkwq007/stablediffusion-infinity/blob/a2afeb89fa8fc4c4dfa88bedca159ebbc64edb32/process.py#L61

Can you try commenting out or deleting that try block in process.py that's trying to use openmp? maybe the code will fall back to using another backend instead of failing there.

## DELETE ME
try:
  from fpie import core_openmp  # type: ignore
  DEFAULT_BACKEND = "openmp"
  ALL_BACKEND.append("openmp")
except ImportError:
  core_openmp = None
throttlekitty commented 1 year ago

Thanks tpsjr7, however I'm still having issues after updating. docker-compose build runs successfully. docker-compose up returns this:

[+] Running 2/2
 - Network outpaint1-stablediffusion-infinity_default          Created                                             0.7s
 - Container outpaint1-stablediffusion-infinity-sd-infinity-1  Created                                             0.1s
Attaching to outpaint1-stablediffusion-infinity-sd-infinity-1
outpaint1-stablediffusion-infinity-sd-infinity-1  | exec /app/docker/entrypoint.sh: no such file or directory
outpaint1-stablediffusion-infinity-sd-infinity-1 exited with code 1
JeromeFr commented 1 year ago

@tpsjr7 I have an AMD Ryzen so it could be that indeed. I'll have a look if there is any equivalent to intel-openmp for AMD or if I need to comment out something. Thanks !

tpsjr7 commented 1 year ago

Thanks tpsjr7, however I'm still having issues after updating. docker-compose build runs successfully. docker-compose up returns this:

[+] Running 2/2
 - Network outpaint1-stablediffusion-infinity_default          Created                                             0.7s
 - Container outpaint1-stablediffusion-infinity-sd-infinity-1  Created                                             0.1s
Attaching to outpaint1-stablediffusion-infinity-sd-infinity-1
outpaint1-stablediffusion-infinity-sd-infinity-1  | exec /app/docker/entrypoint.sh: no such file or directory
outpaint1-stablediffusion-infinity-sd-infinity-1 exited with code 1

yeah I don't understand why it's not seeing it. In the docker-compose.yml file it should be mounting your local source code into the container here

If you want to confirm, try running this command: docker-compose run sd-infinity bash

It will open a shell into the container, see if the file is there: ls /app/docker/entrypoint.sh

throttlekitty commented 1 year ago

Oh, I didn't even check today, assuming nothing changed for me. Yeah, that file exists, app/ is totally populated now, it was empty before your change. So i tried running it manually, like so:

(sd-inf) E:\stable-diffusion\outpaint1-stablediffusion-infinity>docker-compose run sd-infinity bash
(base) user@3382a8b92a3c:/app$ cd docker
(base) user@3382a8b92a3c:/app/docker$ ls
Dockerfile  entrypoint.sh  opencv.pc  run-shell.sh
(base) user@3382a8b92a3c:/app/docker$ exec entrypoint.sh
bash: exec: entrypoint.sh: not found
tpsjr7 commented 1 year ago

I'd clear, update, and delete everything and try again

git pull
docker-compose down
docker-compose build
docker-compose up
throttlekitty commented 1 year ago

done, and same result still.

edit: i've also tried converting entrypoint.sh carriage returns to unix, building and running; I see a lot of suggestions for that, but no change.

Miro88cz commented 1 year ago

same problem here with windows 10 (base) user@9a702ba403a7:/app$ cd docker (base) user@9a702ba403a7:/app/docker$ ls Dockerfile entrypoint.sh opencv.pc run-shell.sh (base) user@9a702ba403a7:/app/docker$ exec enrypoint.sh bash: exec: enrypoint.sh: not found (base) user@9a702ba403a7:/app/docker$

tpsjr7 commented 1 year ago

"(sd-inf) E:\stable-diffusion\outpaint1-stablediffusion-infinity"

Are you running docker from the windows command prompt? That does not work for me, I run into that OMP error.

I run using the Ubuntu command line from the microsoft store https://www.microsoft.com/store/productId/9MTTCL66CPXJ

$ uname -a 

Linux DESKTOP-7UA648I 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

and also in the Docker Desktop settings -> Resources -> WSL Integration ->" Enable Integration with my default WSL distro " is checked

I would clone from that Ubuntu command line and try again.

Miro88cz commented 1 year ago

You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here. But I have it checked

throttlekitty commented 1 year ago

Are you running docker from the windows command prompt? That does not work for me, I run into that OMP error.

I've tried it in an windows cmd as admin, as well as the miniconda console. WSL Integration is checked, but also says "You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here."

Not too interested in installing Ubuntu for this, but thanks for the help all the same!

tpsjr7 commented 1 year ago

same problem here with windows 10 (base) user@9a702ba403a7:/app$ cd docker (base) user@9a702ba403a7:/app/docker$ ls Dockerfile entrypoint.sh opencv.pc run-shell.sh (base) user@9a702ba403a7:/app/docker$ exec enrypoint.sh bash: exec: enrypoint.sh: not found (base) user@9a702ba403a7:/app/docker$

I noticed you misspelled entrypoint.sh as 'enrypoint' there. You would just run it as $ ./entrypoint.sh

If you wanted to try running it from "docker-compose run sd-infinity bash" again as before. But you still might run into the OMP error running from that windows command line.

Also, it's Ubuntu running as a windows app ( not dual booting, but it can be a bit fincky getting docker command line to show up from the ubuntu app command line )

throttlekitty commented 1 year ago

but it can be a bit fincky getting docker command line to show up from the ubuntu app command line )

Yeah, I think I'm going to bail out here, that's too much os-inception for this to make any sense.

Miro88cz commented 1 year ago

the same but thanks

(base) C:\AI-New\infinity\stablediffusion-infinity-1\docker>docker-compose run sd-infinity bash (base) user@b7540ea6e847:/app$ cd docker (base) user@b7540ea6e847:/app/docker$ ls Dockerfile entrypoint.sh opencv.pc run-shell.sh (base) user@b7540ea6e847:/app/docker$ exec entrypoint.sh bash: exec: entrypoint.sh: not found (base) user@b7540ea6e847:/app/docker$

tpsjr7 commented 1 year ago
(sd-inf) user@7fde8000417a:/app/docker$ exec entrypoint.sh
bash: exec: entrypoint.sh: not found

Does not work.

This should work:

(sd-inf) user@7fde8000417a:/app/docker$ ./entrypoint.sh
Miro88cz commented 1 year ago

how to cd in ubuntu? XXXX:~$ C:\AI-New\infinity\stablediffusion-infinity-1\docker>docker-compose run sd-infinty bash C:AI-Newinfinitystablediffusion-infinity-1docker: command not found

tpsjr7 commented 1 year ago

To get docker for windows setup with ubuntu, have to follow https://docs.docker.com/desktop/windows/wsl/

and then run docker-compose using the windows ubuntu app https://www.microsoft.com/store/productId/9MTTCL66CPXJ

JeromeFr commented 1 year ago

@Miro88cz your C drive would be mounted under /mnt/ try cd /mnt/c/AI-New/infinity/stablediffusion-infinity-1/docker

JeromeFr commented 1 year ago

@tpsjr7 : I was running it from Windows Terminal which uses Powershell 7 on my machine. I tried with ubuntu as suggested in post https://github.com/lkwq007/stablediffusion-infinity/issues/33#issuecomment-1268790151 but I'm struggling with it. How did you run docker-compose build and docker-compose up? As your unix user or as root?

If I use it as my unix user, I got this error message :

unixusr@DESKTOP-4GPKQJ3:/mnt/e/stablediffusion/stablediffusion-infinity$ docker-compose build
[+] Building 0.0s (0/0)
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%!F(MISSING)var%!F(MISSING)run%!F(MISSING)docker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied: driver not connecting

If I use sudo docker-compose build it passes but then sudo docker-compose up throws this error :

unixusr@DESKTOP-4GPKQJ3:/mnt/e/stablediffusion/stablediffusion-infinity$ sudo docker-compose up
Creating network "stablediffusion-infinity_default" with the default driver
Creating stablediffusion-infinity_sd-infinity_1 ... done
Attaching to stablediffusion-infinity_sd-infinity_1
sd-infinity_1  | + set -x
sd-infinity_1  | + git submodule init
sd-infinity_1  | + git submodule update
sd-infinity_1  | error: chmod on /app/.git/modules/PyPatchMatch/config.lock failed: Operation not permitted
sd-infinity_1  | fatal: could not set 'core.worktree' to '../../../PyPatchMatch'
stablediffusion-infinity_sd-infinity_1 exited with code 1

I was expecting a chmod to be permitted as root

SkyeErnst commented 1 year ago

Trying to run the docker commands in a WSL2 ubuntu terminal now, and I get this error when running the first docker command

skye@SkyePC:/mnt/f/_PROGRAMING/Notebooks/_Docker/stablediffusion-infinity$ sudo docker-compose build
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
tpsjr7 commented 1 year ago

You can try changing the version from 3.9 to 3.3 in the docker-compose.yml, 3.3 also works for me.

Also I'm using

$ docker-compose -v
Docker Compose version v2.10.2

$ docker version

Server: Docker Desktop
 Engine:
  Version:          20.10.17
SkyeErnst commented 1 year ago

@tpsjr7 I did try changing the version in .yml file, and ran into other issues. Though I know what the problem is now, my docker-compose version is 1.29.2. I couldn't update the package though, either through apt-get or pip. Both seem to think the latest version is 1.29.2, even though its clearly not. I had to download it off of their git repo, but the good news is its finally working. Thank you very much for the help!

ozopled commented 1 year ago

I can't run it either. Will leave this here in case it helps:

System info: CPU AMD Ryzen 5 3600 6-Core Processor 3.59 GHz RAM 16 GB GPU NVIDIA GeForce RTX 2070 SUPER, 16GB OS Windows 10 Pro 21H2 OSbuild 19044.2006

Using docker desktop with WSL 2 backend.

Tried to docker compose in both powershell and CMD prompt with same results:

The file seems to be there though: image

tpsjr7 commented 1 year ago

Tried to docker compose in both powershell and CMD prompt with same results:

If you want to use docker, only these two options currently work:

Things that don't work at the moment:

JeromeFr commented 1 year ago

That is what I tried but I have an Operation not permitted on a chmod even though I ran it with sudo. Did you run it with sudo as well ? Any idea what could cause that? (Details here : [)](url))

tpsjr7 commented 1 year ago

@lkwq007 can you close this issue. I think the previous discussion in here will confuse people.

I've updated the README on how to setup, if there's still issues they can open a new ticket.

lkwq007 commented 1 year ago

@tpsjr7 Thanks. I'll close this issue.

JeromeFr commented 1 year ago

I've updated the README on how to setup.

Thanks, I got it running now thanks to docker-run.sh . I'm grateful for all your help