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

num-procs + admin fails to start #3811

Closed
mlucool opened this issue Sep 7, 2022 · 1 comment · Fixed by #3812
Closed

num-procs + admin fails to start #3811

mlucool opened this issue Sep 7, 2022 · 1 comment · Fixed by #3812
Labels
type: bug Something isn't correct or isn't working

Comments

@mlucool
Copy link

mlucool commented Sep 7, 2022

Hi,

ALL software version info

Panel: 0.13.1
Bokeh: 2.4.3
OS: osx

Description of expected behavior and the observed behavior

Using --num-procs with --admin breaks panel.

Complete, minimal, self-contained example code that reproduces the issue

Given example.py:

import panel as pn
import os

pn.extension()

def get_app():
   return pn.Pane(f'Hi from {os.getpid()}')

get_app().servable()

The following starts:

panel serve example.py --num-procs=10

But the following does not:

panel serve example.py --num-procs=10 --admin

And has errors like:

2022-09-07 18:39:09,503 Cannot start Bokeh server [EBADF]: OSError(9, 'Bad file descriptor')
2022-09-07 18:39:09,746 child 0 (pid 73866) exited with status 1, restarting

Stack traceback and/or browser JavaScript console output

image

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Sep 8, 2022
@mlucool
Copy link
Author

mlucool commented Sep 8, 2022

Thanks for the quick fix!

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

Successfully merging a pull request may close this issue.

2 participants