Hello all,
I was trying to install NgInx in my droplet following this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04
When I arrived to Step 3, checking NGINX status, I figured out that it was stopped. Then, I tried to start it running:
systemctl start nginx
And I got the following error:
$ systemctl start nginx
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'nginx.service'.
Authenticating as: Maxi Sbrocca,,, (maxi)
Password:
==== AUTHENTICATION COMPLETE ===
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
Running journalctl -xe to get further information, I see this:
...
-- The unit UNIT has successfully entered the 'dead' state.
Aug 13 17:42:26 docker-s-1vcpu-2gb-nyc1-01 sudo[42646]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Aug 13 17:42:29 docker-s-1vcpu-2gb-nyc1-01 sudo[42646]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Aug 13 18:00:21 docker-s-1vcpu-2gb-nyc1-01 sudo[43814]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Aug 13 18:00:24 docker-s-1vcpu-2gb-nyc1-01 sudo[43814]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Do anyone know how to solve this issue?
Thanks in advance
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!
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.
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.
Hi @maxisbrocca,
It’s very strange that you are missing this file. Have you made any changes or removed anything prior to starting the tutorial?
Anyway, here is a copy of the said file which you can use