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

Unable to spawn more pty devices #29

Closed
SpontaneousDuck opened this issue Jun 16, 2020 · 6 comments
Closed

Unable to spawn more pty devices #29

SpontaneousDuck opened this issue Jun 16, 2020 · 6 comments

Comments

@SpontaneousDuck
Copy link

I am trying to run a Jupyter Lab instance inside of a container using the continuumio/anaconda3 image. I did the recommended steps for pulling and creating the enroot container image. When running this container in Docker, I am able to do the following:

# python
>>> import pty
>>> pty.fork()
(12, 3)

But when I do this on my enroot container:

# python
>>> import pty
>>> pty.fork()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.7/pty.py", line 96, in fork
    master_fd, slave_fd = openpty()
  File "/opt/conda/lib/python3.7/pty.py", line 29, in openpty
    master_fd, slave_name = _open_terminal()
  File "/opt/conda/lib/python3.7/pty.py", line 59, in _open_terminal
    raise OSError('out of pty devices')
OSError: out of pty devices
>>>

This is important to Jupyter in that this is the process it uses to run bash commands or open up an interactive shell.

Thanks for the help!

@3XX0
Copy link
Member

3XX0 commented Jun 17, 2020

What version of enroot are you using? IIRC this was fixed at some point

@SpontaneousDuck
Copy link
Author

I installed with https://github.com/NVIDIA/ansible-role-enroot to install so that means I am on v2.0.1. Could I just plug in the newer version to that to update?

@3XX0
Copy link
Member

3XX0 commented Jun 17, 2020

Yeah, I'm not really familiar with Ansible, but it should just be a matter of changing these lines: https://github.com/NVIDIA/ansible-role-enroot/blob/master/defaults/main.yml#L14-L15

correct @lukeyeager ?

@SpontaneousDuck
Copy link
Author

Perfect! I updated to v3.0.2 and that solved the issue. I updated the ansible role and made a PR for updating the version.

@lukeyeager
Copy link
Member

@SpontaneousDuck will you checkout v0.2.0 of the nvidia/enroot ansible role for me? I just pushed it.
https://galaxy.ansible.com/nvidia/enroot

@SpontaneousDuck
Copy link
Author

Looks great! Thanks! Did not realize I bumped that PR and then made a separate one haha

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

3 participants