Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

apache config - duplicate IP

Discussion in 'EasyApache' started by keat63, Jul 4, 2018.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    992
    Likes Received:
    41
    Trophy Points:
    28
    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?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    992
    Likes Received:
    41
    Trophy Points:
    28
    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.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    992
    Likes Received:
    41
    Trophy Points:
    28
    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.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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:
    [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 <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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    992
    Likes Received:
    41
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    yes and 2 additional ones

    server.hostname_ssl
    server.hostname_ssl.cache
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice