keat63

Well-Known Member
Nov 20, 2014
1,916
263
113
cPanel Access Level
Root Administrator
I see this message in my logs occasionally.

Code:
Duplicate servername/ip/port combination found in Apache configuration: server/xxx.xxx.xxx.xxx/443
Ignoring for Apache configuration datastore. at /usr/local/cpanel/Cpanel/ApacheConf/Parser.pm line 90.

I've looked in Apache Global Config, but cannot see anything.
Can anyone suggest what might be the cuase, how to fix, or just leave alone?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
Hi @keat63

Do you have any includes in the apache configuration or customizations?

Does the issue persist if you run the following:

Code:
/scripts/updateuserdomains
/scripts/updateuserdatacache
mv /etc/apache2/conf/httpd.conf{,.bak}
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
 

keat63

Well-Known Member
Nov 20, 2014
1,916
263
113
cPanel Access Level
Root Administrator
I'm not aware of any customisations, but to be honest, i'm not even sure how I would find out.
I ran the commands that you suggested, but I only see this error about once every two weeks or so, so i've no idea what triggers it.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
Hi @keat63

I found a ticket (internal) in which this was occurring due to some custom userdata in /var/cpanel/userdata/nobody/ can you tell me if there's anything there for you:

Code:
ls -lah /var/cpanel/userdata/nobody
It seems they were able to replicate the issue everytime they suspended/unsuspended an account as well.

Thanks!
 

keat63

Well-Known Member
Nov 20, 2014
1,916
263
113
cPanel Access Level
Root Administrator
There are a small number of files in the directory /var/cpanel/userdata/nobody
However, it seems that account suspension is indeed the cause.

I have a test domain that I will suspend when i'm not using it.
I've just unsuspended it and got the following message.

[2018-07-06 09:52:17 +0100] warn [unsuspendacct] Duplicate servername/ip/port combination found in Apache configuration: my.server.com/xxx.xxx.xxx.xxx/443. Ignoring for Apache configuration datastore. at /usr/local/cpanel/Cpanel/ApacheConf/Parser.pm line 90.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
Hi @keat63

The data in /var/cpanel/userdata/nobody - can you tell me if there are 6 files similar to the following or are there more:

Code:
[[email protected] ~]# cd /var/cpanel/userdata/nobody/
[[email protected] nobody]# ls -lah
total 32K
drwxr-x---  2 root root 4.0K Apr 27 16:00 .
drwx--x--x 21 root root 4.0K Jun 20 11:35 ..
-rw-r--r--  1 root root  221 Nov 27  2017 <IPADDRESS>
-rw-r--r--  1 root root  243 Nov 27  2017 <IPADDRESS>.cache
-rw-r--r--  1 root root  109 Nov 29  2017 main
-rw-r--r--  1 root root  108 Nov 29  2017 main.cache
-rw-r--r--  1 root root  194 Nov 29  2017 server.hostname.tld
-rw-r--r--  1 root root  214 Nov 29  2017 server.hostname.tld.cache
Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
Hi @keat63

Can you do the following and let me know if the error still occurs:

Code:
mv server.hostname_ssl /root/server.hostname_ssl
mv server.hostname_ssl.cache /root/server.hostname.ssl.cache
/scripts/updateuserdomains
/scripts/updateuserdatacache
mv /etc/apache2/conf/httpd.conf /etc/apache2/conf/httpd.conf.bk
/scripts/rebuildhttpdconf