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

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 and used rbenv and postgresql per the prerequisites.

Any ideas how to fix this?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is likely due to a shell script being asked to act as an interactive process. You should be able to address this by removing the i from the shell script you’re running, but this should also be resolved with newer packages if you were to run through this guide again.