sagemaker-pytorch-training-toolkit icon indicating copy to clipboard operation
sagemaker-pytorch-training-toolkit copied to clipboard

"bash: cannot set terminal process group (-1): Inappropriate ioctl for device" printed at the start of sagemaker jobs

Open abhinavs95 opened this issue 5 years ago • 3 comments

The entrypoint script for the containers is executed with monitor mode enabled (using -m flag), eg. here https://github.com/aws/sagemaker-pytorch-container/blob/97e611b4cb2df13d966d508e56d1c990439b2163/docker/1.3.1/py3/Dockerfile.gpu#L166

This prints the following message at the start of any sagemaker job that uses the container:

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

Removing the -m flag gets rid of this message. Is there a particular reason for using this flag? If not we should remove it from all Dockerfiles.

abhinavs95 avatar Feb 12 '20 19:02 abhinavs95

thanks for bringing this to our attention! I have reached out to the responsible team for insight.

laurenyu avatar Feb 12 '20 23:02 laurenyu

Same issue here. Any update?

HallieCrosby avatar Oct 16 '20 10:10 HallieCrosby

The Dockerfiles have actually since been moved to https://github.com/aws/deep-learning-containers - would you mind opening up a new issue in that repository?

laurenyu avatar Oct 16 '20 13:10 laurenyu