Report this

What is the reason for this report?

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

Posted on June 2, 2015

While trying to start Unicorn, with the command $: sudo service unicorn_myapp start I get the following result. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell

From then on, it locks me out of sudo with this message sudo: no tty present and no askpass program specified

I can get back in to opening a new terminal but the problem repeats itself.

I have no clue how to fix this. I have been following this tutorial https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04 and used rbenv and postgresql per the prerequisites.

Any ideas how to fix this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.