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

build sdcn server error #5

Open
Ox2098 opened this issue Mar 16, 2023 · 1 comment
Open

build sdcn server error #5

Ox2098 opened this issue Mar 16, 2023 · 1 comment

Comments

@Ox2098
Copy link

Ox2098 commented Mar 16, 2023

I deployed the sdcn-server on my machine , error message as follows.
I don't know how to debug the Lua file. may also be an error in the API of the SD web UI.

2023-03-16 13:28:53 2023/03/16 05:28:53 [error] 7#7: *1 open() "/usr/local/openresty/nginx/html/favicon.ico" failed (2: No such file or directory), client: 172.17.0.1, server: _, request: "GET /favicon.ico HTTP/1.1", host: "127.0.0.1:6006", referrer: "http://127.0.0.1:6006/"
2023-03-16 16:32:04 2023/03/16 08:32:04 [error] 46#46: *8 [lua] utils.lua:155: proxy_to_request(): request failed: closed, client: 172.17.0.1, server: _, request: "POST /txt2img HTTP/1.1", host: "127.0.0.1:6006"
2023-03-16 16:32:33 2023/03/16 08:32:33 [error] 46#46: *11 [lua] utils.lua:155: proxy_to_request(): request failed: closed, client: 172.17.0.1, server: _, request: "POST /txt2img HTTP/1.1", host: "127.0.0.1:6006"
2023-03-16 16:37:22 2023/03/16 08:37:22 [error] 46#46: *13 [lua] utils.lua:155: proxy_to_request(): request failed: closed, client: 172.17.0.1, server: _, request: "POST /txt2img HTTP/1.1", host: "127.0.0.1:6006"
2023-03-16 16:37:25 2023/03/16 08:37:25 [error] 46#46: *15 [lua] utils.lua:155: proxy_to_request(): request failed: closed, client: 172.17.0.1, server: _, request: "POST /txt2img HTTP/1.1", host: "127.0.0.1:6006"
2023-03-16 16:38:02 2023/03/16 08:38:02 [error] 46#46: *17 lua entry thread aborted: runtime error: /usr/local/openresty/nginx/scripts/txt2img.lua:7: bad argument #1 to 'decode' (string expected, got nil)
2023-03-16 16:38:02 stack traceback:
2023-03-16 16:38:02 coroutine 0:
2023-03-16 16:38:02 [C]: in function 'decode'
2023-03-16 16:38:02 /usr/local/openresty/nginx/scripts/txt2img.lua:7: in main chunk, client: 172.17.0.1, server: _, request: "GET /txt2img HTTP/1.1", host: "127.0.0.1:6006"

@DiligentCatCat
Copy link
Contributor

DiligentCatCat commented Apr 18, 2023

We have taken great effort to migrate the sdcn-server (dan-server) from lua (openresty) to typescript. I encourage you to try the newest version. It should be much easier to deploy and debug.

And there is a docker-compose.yml file now, you can simply use one command docker-compose up -d to run all the services (except stable-diffusion worker) related to dan-server. This file pulls docker images from docker hub by default, yuou can also modify this file to match your own needs.

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