apache config - duplicate IP
I see this message in my logs occasionally.
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?
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?
-
Hi @keat63 Do you have any includes in the apache configuration or customizations? Does the issue persist if you run the following: /scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bak} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd0 -
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. 0 -
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: ls -lah /var/cpanel/userdata/nobody
It seems they were able to replicate the issue everytime they suspended/unsuspended an account as well. Thanks!0 -
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. 0 -
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: [root@server ~]# cd /var/cpanel/userdata/nobody/ [root@server 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 -rw-r--r-- 1 root root 243 Nov 27 2017 .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!0 -
yes and 2 additional ones server.hostname_ssl server.hostname_ssl.cache 0 -
Hi @keat63 Can you do the following and let me know if the error still occurs: 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/rebuildhttpdconf0
Please sign in to leave a comment.
Comments
7 comments