502 bad gateway after root password reset

Posted December 7, 2018 5.2k views
WordPressUbuntu 16.04

After reseting the password the wordpress site went offline with error 502, the nginx log error indicates that

“listen () to [::] :80, backlog 511 failed (98: adress already in use) ”


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.

Submit an Answer
1 answer

Looks like port 80 is not released by whichever process was running earlier.

So, kill that process with:

sudo fuser -k 80/tcp

Then restart Nginx.

Curiously I’ve seen this “backlog 511” error in Plesk. Do you use Plesk? If so, switch off and on Nginx by going to Tools & Settings > Services Management.

If that didn’t work, tell us exactly what password you changed.