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

multiprocessing start_method setup runtime exception #1460

Closed
DrizzlingCattus opened this issue Feb 17, 2021 · 4 comments
Closed

multiprocessing start_method setup runtime exception #1460

DrizzlingCattus opened this issue Feb 17, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@DrizzlingCattus
Copy link

Describe the bug

The problem occurs when I try to build the bentoml service as below.

# do normal bento pack & save
python build_bentoservice.py

The problem occurs when using the bentoml master branch, and there is no problem in version 0.11.0.

To Reproduce

Expected behavior

Screenshots/Logs

Traceback (most recent call last):
  File "/app/BentoML/bentoml/__init__.py", line 40, in <module>
    multiprocessing.set_start_method('fork')
  File "/usr/lib/python3.8/multiprocessing/context.py", line 243, in set_start_method
    raise RuntimeError('context has already been set')
RuntimeError: context has already been set

Environment:

  • OS
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
  • Python Version : 3.8.3
  • BentoML Version : master branch version (lastest commit aa120e4)

Additional context

@DrizzlingCattus DrizzlingCattus added the bug Something isn't working label Feb 17, 2021
@yubozhao
Copy link
Contributor

Thanks for find the bug and create a PR at #1461.

Let me know when the PR is ready and we will go from there.

@yubozhao yubozhao linked a pull request Feb 22, 2021 that will close this issue
18 tasks
@bojiang
Copy link
Member

bojiang commented Feb 25, 2021

FYI, in this PR #1466, set_start_method was moved back to the API server.
@DrizzlingCattus

@DrizzlingCattus
Copy link
Author

@bojiang ok thank you!

@bojiang
Copy link
Member

bojiang commented Mar 1, 2021

The final solution #1476

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

Successfully merging a pull request may close this issue.

3 participants