replicate / cog-stable-diffusion

Diffusers Stable Diffusion as a Cog model

Home Page:https://replicate.com/stability-ai/stable-diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker: invalid character 'c' looking for beginning of value.

Musickiller opened this issue · comments

Setup:
Windows 10
Docker (last)

full log (not sure how to make a spoiler):

λ docker run -d -p 5000:5000 --gpus=all r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef
Unable to find image 'r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef' locally
r8.im/stability-ai/stable-diffusion@sha256:a9758cbfbd5f3c2094457d996681af52552901775aa2d6dd0b17fd15df959bef: Pulling from stability-ai/stable-diffusion
d5fd17ec1767: Already exists
d7c6ec6e1327: Already exists
943d01f4776a: Already exists
23025e0ea7d2: Already exists
8acc1c2b01b0: Already exists
894d0771aab5: Extracting [=============> ] 312MB/1.116GB
8451e5a9bff2: Download complete
a6b5bd0a44ab: Downloading [===========================================> ] 1.244GB/1.441GB
364573d3ec98: Download complete
75b4e35cee13: Downloading [=========================================> ] 1.231GB/1.478GB
7b599a9816a8: Download complete
e89d9461ad8d: Download complete
2bb4a5f9dfe2: Downloading [===========================> ] 40.47MB/74.18MB
4c73be41da4a: Waiting
24f6a06e94e1: Pulling fs layer
07a924b46151: Pulling fs layer
26d1e862c567: Waiting
71ac7d9aaea3: Waiting
docker: invalid character 'c' looking for beginning of value.
See 'docker run --help'.

If any other logs needed, please tell where to find them =)

in a few tries, I've succeeded finally, with this messages at the end:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: WSL environment detected but no adapters were found: unknown.

if switching from WSL, the error is slightly different:

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.

Still strange, since I have AMD videocard..

Probably should open another issue for this "legacy mode"?

Me too. I also got this problem.

Version

4.15.0 (93002)

Engine: 20.10.21

Compose: v2.13.0

Credential Helper: v0.7.0

Kubernetes: v1.25.2

Snyk: v1.1054.0

OSX 12.6

you can try restart docker ,maybe it will reslove.

I did try restarting the docker then. I don't have it now though

It looks like you're using an older version of Stable Diffusion. I'm not sure if it will help, but you might try using a version SHA from a newer release?

https://replicate.com/stability-ai/stable-diffusion/versions

commented

I am having same situation in MacOS, now. I try to build a rust app in a docker container and it gives me that error. Once I attempt second time it gives Error response from daemon: Bad response from Docker engine error. I restarted it several times but there is no good. Version: Docker Desktop 4.17.0 (99724).