Author Topic: Nginx failed and can't be restarted  (Read 8942 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Nginx failed and can't be restarted
« on: May 29, 2019, 03:55:49 AM »
This morning I woke up to see my server's nginx failed and couldn't restart (CWP tried to restart it every 15 minutes).

This is my error.log for nginx:
Code: [Select]
2019/05/29 04:00:02 [emerg] 13297#13297: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:15:03 [emerg] 14094#14094: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:30:02 [emerg] 14820#14820: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:45:02 [emerg] 15579#15579: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:00:02 [emerg] 16292#16292: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:15:02 [emerg] 17021#17021: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:30:02 [emerg] 17778#17778: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:45:02 [emerg] 18567#18567: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:00:02 [emerg] 19346#19346: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:06:23 [emerg] 20056#20056: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:08:23 [emerg] 4086#4086: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:09:12 [emerg] 4022#4022: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:09:37 [emerg] 4691#4691: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:15:02 [emerg] 6426#6426: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:41 [emerg] 7303#7303: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:53 [emerg] 7517#7517: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:21:14 [emerg] 7882#7882: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:30:02 [emerg] 10127#10127: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:40:43 [emerg] 3837#3837: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17

So I went into /etc/nginx/conf.d/cwp.hostname.com_ssl.conf and found the following on line 17:
Code: [Select]
ssl_session_cache   shared:SSL:20m;
So according to the error, i changed it to (from 20m to 10m):

Code: [Select]
ssl_session_cache   shared:SSL:10m;


Any idea why did this happened suddenly? And what does this line actually mean (I understand it's some kind of cache size for SSL). Can it be that some update of CWP made this overnight?
Oh, and where is this "already declared size" stored?




Offline
**
Re: Nginx failed and can't be restarted
« Reply #1 on: May 30, 2019, 07:58:19 AM »
how was SSL installed

from CWP.Admin -> CWP Settings -> change hostname ?

Offline
**
Re: Nginx failed and can't be restarted
« Reply #2 on: May 30, 2019, 09:16:47 PM »
A. I assume you meant "Server Settings" and not "CWP Settings".
B. What that connection to SSL, and why is hostname related to SSL creating or my issue?

Offline
**
Re: Nginx failed and can't be restarted
« Reply #3 on: June 15, 2019, 08:29:49 PM »
Sorry for the mistake.

change hostname is found at CWP.Admin -> server settings

So error is related to hostname SSL  - /etc/nginx/conf.d/cwp.hostname.com_ssl.conf