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

add '--workers' args for tools/api_server.py,i cannot run it #732

Open
6 tasks done
suchaunzhi opened this issue Dec 10, 2024 · 6 comments
Open
6 tasks done

add '--workers' args for tools/api_server.py,i cannot run it #732

suchaunzhi opened this issue Dec 10, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@suchaunzhi
Copy link

Self Checks

  • This template is only for bug reports. For questions, please visit Discussions.
  • I have thoroughly reviewed the project documentation (installation, training, inference) but couldn't find information to solve my problem. English 中文 日本語 Portuguese (Brazil)
  • I have searched for existing issues, including closed ones. Search issues
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template and fill in all required fields.

Cloud or Self Hosted

Self Hosted (Source)

Environment Details

Python=3.10 Ubuntu

Steps to Reproduce

for python tools/api_server.py --listen="0.0.0.0:9003" --workers=3
I get the error,and it does not run.
WARNING: You must pass the application as an import string to enable 'reload' or 'workers'.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@suchaunzhi suchaunzhi added the bug Something isn't working label Dec 10, 2024
@yejingfu
Copy link

yejingfu commented Dec 10, 2024

I got the same issue if --workers is larger than 1, any update for fixing it?

@AnyaCoder
Copy link
Collaborator

@bigcat001
Copy link

You may refer to this code https://github.com/fishaudio/fish-speech/blob/v1.4.3/tools/api.py

can not work, errors:

INFO: Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
INFO: Started parent process [225125]
INFO: Waiting for child process [225320]
INFO: Child process [225320] died
INFO: Waiting for child process [225321]
INFO: Child process [225321] died
INFO: Waiting for child process [225322]
INFO: Child process [225322] died
INFO: Waiting for child process [225512]
INFO: Child process [225512] died

@AnyaCoder
Copy link
Collaborator

meh, I tested in Oct. 2024, it is weird that it doesn't work now. I neeeeed help too (

@bigcat001
Copy link

meh, I tested in Oct. 2024, it is weird that it doesn't work now. I neeeeed help too (

I write a script with fastapi, it doesn't work ,too

@AnyaCoder
Copy link
Collaborator

Let's fix it by turn to use nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants