GithubHelp home page GithubHelp logo

Comments (12)

ChrisAcrobat avatar ChrisAcrobat commented on May 21, 2024 1

I'll try!

from easydiffusion.

ChrisAcrobat avatar ChrisAcrobat commented on May 21, 2024 1

I tried it and got the error message below as response. It might just be something minior that I could fix my self, but right now I don't have time to look in to it. I'm going AFK for maybe a few hours, I'll look in to it when I get back!

Traceback (most recent call last):
  File "docker\api\client.py", line 214, in _retrieve_server_version
  File "docker\api\daemon.py", line 181, in version
  File "docker\utils\decorators.py", line 46, in inner
  File "docker\api\client.py", line 237, in _get
  File "requests\sessions.py", line 543, in get
  File "requests\sessions.py", line 530, in request
  File "requests\sessions.py", line 643, in send
  File "requests\adapters.py", line 439, in send
  File "urllib3\connectionpool.py", line 670, in urlopen
  File "urllib3\connectionpool.py", line 392, in _make_request
  File "http\client.py", line 1255, in request
  File "http\client.py", line 1301, in _send_request
  File "http\client.py", line 1250, in endheaders
  File "http\client.py", line 1010, in _send_output
  File "http\client.py", line 950, in send
  File "docker\transport\npipeconn.py", line 32, in connect
  File "docker\transport\npipesocket.py", line 23, in wrapped
  File "docker\transport\npipesocket.py", line 72, in connect
  File "docker\transport\npipesocket.py", line 52, in connect
pywintypes.error: (2, 'CreateFile', 'Det går inte att hitta filen.')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose\cli\main.py", line 81, in main
  File "compose\cli\main.py", line 200, in perform_command
  File "compose\cli\command.py", line 60, in project_from_options
  File "compose\cli\command.py", line 152, in get_project
  File "compose\cli\docker_client.py", line 41, in get_client
  File "compose\cli\docker_client.py", line 170, in docker_client
  File "docker\api\client.py", line 197, in __init__
  File "docker\api\client.py", line 221, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: (2, 'CreateFile', 'Det går inte att hitta filen.')
[5308] Failed to execute script docker-compose

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

Hi @ChrisAcrobat , I'm rolling back the server script, since I'm really not sure why it is causing problems. b860dbd

I will investigate this further.

I looked at your PR, thanks!

Can you please try the latest version and let me know if it still causes problems? Are you able to see the redirect notice at http://localhost:8000 and the actual UI at http://localhost:9000 ?

Thanks

from easydiffusion.

ChrisAcrobat avatar ChrisAcrobat commented on May 21, 2024

I made an reinstall, but no the problem remains.
What I think the problem is that the internal server still uses port 8000, that's why I changed the external port (9000) to redirect to the old internal port (8000) with #24. The change fixed my problem, but I not sure if that is a permanent or temporarily solution. Is port conflicts still a possibility? Was ages ago I read about Dockers internal network because I had a problem that I was trying to solve (but didn't 🙂).

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

Thanks, one last try. Can you please update your docker-compose.yml to this, and run docker-compose down and then docker-compose up & ?

I suspect the old docker image (which started the main UI server at port 8000) is still being used. I've changed the service name, so it'll be forced to create a new image for it. Thanks!

version: '3.3'

services:
  stability-ai-v2:
    container_name: sd
    ports:
      - '5000:5000'
    image: 'r8.im/stability-ai/stable-diffusion@sha256:be04660a5b93ef2aff61e3668dedb4cbeb14941e62a3fd5998364a32d613e35e'
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]

  stable-diffusion-ui-v2:
    container_name: sd-ui
    ports:
      - '9000:9000'
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - .:/app
    depends_on:
      - stability-ai-v2

  stable-diffusion-old-port-redirect-v2:
    container_name: sd-old-port-redirect
    ports:
      - '8000:8000'
    build:
      context: .
      dockerfile: OldPortDockerfile
    volumes:
      - .:/app

networks:
  default:

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

And if required, can you please run docker stop sd sd-ui sd-old-port-redirect and then docker rm sd sd-ui sd-old-port-redirect? After that docker-compose up & should run.

from easydiffusion.

ChrisAcrobat avatar ChrisAcrobat commented on May 21, 2024

The problem above might be that docker wasn't running. Was able to execute docker-compose up after I opened Docker.
Anyway: Port 9000 still returns just ERR_EMPTY_RESPONSE for me (not even a HTTP code like 404).

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

I wonder if it's a firewall thing. For now, please use port 8000 like you did with your PR.

from easydiffusion.

ChrisAcrobat avatar ChrisAcrobat commented on May 21, 2024

Sure! No problem for me. 👍
I take it that http://localhost:9000/ is probably working as expected for everyone else, because otherwise more people should have complied about this.

from easydiffusion.

coldino avatar coldino commented on May 21, 2024

Just cloned and installed everything fresh and I get the same empty response.

I'm setup inside WSL so suspected some problem with that, but I get the same problem with curl inside WSL:

$ curl localhost:9000
curl: (52) Empty reply from server

I reverted to '9000:9000' to now it's working just fine - thanks!

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

Thanks, I've pushed the change to keep port 9000:9000 and remove the port-redirect notice at 8000 (which seemed to be causing problems for some users).

from easydiffusion.

cmdr2 avatar cmdr2 commented on May 21, 2024

Hi @ChrisAcrobat Please reopen this issue if the latest version still fails to connect for you, thanks for your help! :)

from easydiffusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.