Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Nginx fails to restart after enabling SSL Support; Site goes down

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
rajbdilip
Posts: 13
Joined: Mon Jul 18, 2016 1:50 am

Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by rajbdilip » Wed Nov 02, 2016 7:09 pm

After Enabling SSL Support and entering required keys, and then hitting Save, the settings get saved but the site goes down and nginx fails to restart.

Nginx error log gives the following:

Code: Select all

2016/11/02 18:59:29 [emerg] 8687#8687: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:29 [emerg] 8687#8687: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:29 [emerg] 8687#8687: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:29 [emerg] 8687#8687: still could not bind()
2016/11/02 18:59:54 [emerg] 8922#8922: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:54 [emerg] 8922#8922: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:54 [emerg] 8922#8922: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:54 [emerg] 8922#8922: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:54 [emerg] 8922#8922: bind() to 104.131.90.2:443 failed (98: Address already in use)
2016/11/02 18:59:54 [emerg] 8922#8922: still could not bind()
BUT if I reboot the server, Nginx starts up and I can access the site with both 'http' and with 'https' but I get 500 Internal Server on the page and 502 Bad Gateway in browser console. This error goes away if I disable the SSL support from VestaCP panel and reboot the server.

For your consideration:

nginx version: nginx/1.10.2
vesta - core package Version:0.9.8 (amd64) Release:16
Top

rajbdilip
Posts: 13
Joined: Mon Jul 18, 2016 1:50 am

Re: Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by rajbdilip » Sun Nov 06, 2016 8:56 am

After rebooting the server, when it gives 500 Internal Server error, netstat -tuapen | grep 443 gives:

Code: Select all

tcp        0      0 104.131.90.2:443        0.0.0.0:*               LISTEN      0          22290       4453/nginx.conf
It looks nginx itself is listening to the port. What could be causing 502? I had done clean Nginx + Apache install and haven't messed up with any nginx or apache configuration.
Top

h2p
Posts: 12
Joined: Sat Dec 17, 2016 3:39 pm

Re: Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by h2p » Sat Dec 17, 2016 8:08 pm

What do you think about?
Top

cboursinos
Posts: 11
Joined: Thu Dec 15, 2016 2:54 pm

Re: Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by cboursinos » Thu Jan 19, 2017 9:03 pm

Same error! You found solution?
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by noogen » Sat Jan 21, 2017 1:51 am

Can you post all your nginx confs?
/home/*/conf/web/nginx.conf
/home/*/conf/web/snginx.conf
/home/*/conf/web/nginx.*.conf_letsencrypt
Top

rajbdilip
Posts: 13
Joined: Mon Jul 18, 2016 1:50 am

Re: Nginx fails to restart after enabling SSL Support; Site goes down
  • Quote

Post by rajbdilip » Tue Jan 24, 2017 3:07 pm

I did a fresh install and it worked. Perhaps letsencrypt messed up some config.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password