The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 49181] mainip detection results in altered /etc/hosts file

Discussion in 'General Discussion' started by 9xlinux, May 12, 2011.

  1. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,
    after auto update to cPanel current 11.30 I have receiving emails bellow

    Code:
    The hostname (server.myhost.com) resolves to 75.75.xxx.xxx[B](My server Main IP).[/B]It should resolve to 127.0.0.1. Please be sure that the contents of
    /etc/hosts are configured correctly, and also that there is a
    correct 'A' entry for the domain in the zone file.
    When I have checked /etc/hosts there are wrong entries

    Code:
    127.0.0.1               server.myhost.com server localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    75.75.xxx.xxx            server
    I think the above is wrong and should be as per bellow

    Code:
    127.0.0.1               localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    75.75.xxx.xxx            server.myhost.com server
    I have changed it but after cpanel update its replace agian to wrong and I start receiving email above.

    Any update???
     
    #1 9xlinux, May 12, 2011
    Last edited: May 13, 2011
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    What is the full cPanel version number and what is the environment type of the system?
    Code:
    # egrep -Hi . /usr/local/cpanel/version /var/cpanel/envtype
    Do you have a ticket open? If not, please submit a support request detailing what steps were performed to reproduce the issue. As an example, did you reboot after updating cPanel, or was the issue noticed while only having performed an upcp and nothing else, and was the update performed with or without the force option?
     
    #2 cPanelDon, May 12, 2011
    Last edited: May 12, 2011
  3. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    root@server [~]# egrep -Hi . /usr/local/cpanel/version /var/cpanel/envtype
    /usr/local/cpanel/version:11.30.0.10
    /var/cpanel/envtype:virtuozzo

    This happend to all servers I have onened ticket for one server.
    cPanel support ticket Request ID 1484722
     
    #3 9xlinux, May 13, 2011
    Last edited: May 13, 2011
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This issue has been reproduced on VPS machines using cPanel version 11.30.0.10. For reference, the internal case number open for this issue is 49181. You can monitor our Change Logs to know when a resolution has been published:

    Change Logs

    Thank you.
     
  5. 9xlinux

    9xlinux Well-Known Member

    Joined:
    Dec 20, 2009
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Can we swith back to release?
     
  6. xanubi

    xanubi Well-Known Member

    Joined:
    Jun 28, 2006
    Messages:
    86
    Likes Received:
    1
    Trophy Points:
    8
    that's why i only installed stable releases. I gave on current or edge releases, it's always a risk on a full production server.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I can confirm the issue is not present in cPanel 11.28.87. You are welcome to downgrade, or you can wait for the resolution to be published.

    Please see the following URL in regards to downgrading to version 11.28 from 11.30.0:

    Downgrading to version 11.28

    Thank you.
     
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The issue is resolved as of cPanel & WHM version 11.30.0.15; updating from an earlier version will automatically correct the /etc/hosts file. For reference, the cause of the reported symptom stems from the mainip being incorrectly detected only in OpenVZ/Virtuozzo virtual environments; this is fixed in the latest build.
     
Loading...

Share This Page