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.

Nameserver and cpsvd failed errors

Discussion in 'Bind / DNS / Nameserver Issues' started by project, Apr 7, 2010.

  1. project

    project Member

    Joined:
    Oct 27, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello,
    i have a VPS and the last days i am getting the following errors:

    1.nameserver failed @ Tue Apr 6 19:52:34 2010. A restart was attempted automagically.
    Service Check Method: [check command]

    Cmd Service Check Raw Output: named is not running

    2.cpsrvd failed @ Tue Apr 6 19:57:35 2010. A restart was attempted automagically.
    Service Check Method: [tcp connect]

    Failure Reason: Unable to connect to port 2086


    I do not get these errors everyday but every 2 days. Do you know these are and why do i get them? How can i solve them??? The strange is that my server works fine...

    Thanx in advance
    Kostas L.
     
  2. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Indiana, USA
    That's usually a result of running out of memory... Run this shortly after it happens and post it up:
    Code:
    sar -r
    Code:
    sar -q
     
  3. project

    project Member

    Joined:
    Oct 27, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hi and thanks for the response,
    when i run the command sar -r i get:
    Average: 839046 733818 46.65 0 0 0 0 0.00 0

    The memory usage is under 50% in every line. So probably is not memory overload.

    With the command sar -q i get:
    11:10:01 AM 1 145 0.01 0.04 0.00
    11:20:01 AM 1 135 0.01 0.02 0.00
    11:30:01 AM 1 146 0.02 0.07 0.03


    I got the nameserver error at 11:20:31.

    Do you see anything strange??

    Thanx
    Kostas
     
  4. MikeDVB

    MikeDVB Well-Known Member
    PartnerNOC

    Joined:
    Jun 4, 2008
    Messages:
    212
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Indiana, USA
    Doesn't look like a memory issue - try running /scripts/upcp and see if that resolves the issue - if not you will probably just want to open a ticket with cPanel so they can diagnose the issue directly.
     
  5. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    Please check the following logs to see any errors are occuring

    /var/log/messages,
    /usr/local/cpanel/logs/error_log,
    /var/log/chkservd.log
     
  6. 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:
    In addition to checking the cPanel error_log I would also look through the system cron log to see if there are any specific cron jobs that are executed around the same time as seen in the reported failure notices; there may or may not be a direct correlation but it often helps to check in case anything unusual is discovered. Here is the full path where the cron log is usually located:
    Code:
    /var/log/cron
     
  7. project

    project Member

    Joined:
    Oct 27, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    in the first 2 logs i get nothing unusual.
    But in the third log file i get the following:

    Service Check Started
    [2010-03-26 13:08:45 +0000] Service check ....syslogd [[check command:+][tcp connect:N/A]]...sshd [[check command:+][tcp connect:N/A]]...spamd [[check command:+][tcp connect:N/$
    ]...mysql [[check command:+][tcp connect:N/A]]...imap [[check command:+][tcp connect:+]]...httpd [[check command:N/A][tcp connect:+]]...exim [[check command:+][tcp connect:+]].$
    Service Check Finished
    Service Check Started
    [2010-03-26 13:13:46 +0000] Service check ....syslogd [[check command:+][tcp connect:N/A]]...sshd [[check command:+][tcp connect:N/A]]...spamd [[check command:+][tcp connect:N/$
    ]...mysql [[check command:+][tcp connect:N/A]]...imap [[check command:+][tcp connect:+]]...httpd [[check command:N/A][tcp connect:+]]...exim [[check command:+][tcp connect:+]].$
    Service Check Finished
    Service Check Started
    [2010-03-26 13:18:47 +0000] Service check ....syslogd [[check command:+][tcp connect:N/A]]...sshd [[check command:+][tcp connect:N/A]]...spamd [[check command:+][tcp connect:N/$
    system: /usr/local/cpanel/etc/init/stopstunnel
    system: /usr/local/cpanel/etc/init/stopcpsrvd
    system: /usr/local/cpanel/etc/init/startcpsrvd
    system: /usr/local/cpanel/etc/init/startstunnel
    ]...cpanellogd [[check command:+][tcp connect:N/A]]...Done
    Service Check Finished


    This is the log when i get the cpsvd error.


    And everytime the service check starts i get this line:
    Service Check Started
    [2010-03-26 13:38:52 +0000] Service check ....syslogd [[check command:+][tcp connect:N/A]]...sshd [[check command:+][tcp connect:N/A]]...spamd [[check command:+][tcp connect:N/$
    Service Check Finished

    Can you figure out anything strange???

    Thanx in advance!
    Kostas
     
  8. project

    project Member

    Joined:
    Oct 27, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hi,
    The cron log file has the logs only for the last 3 days. The last error that i got was 5 days ago...so there is nothing in there.....

    Thanx
    Kostas
     
  9. 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:
    Try looking in a previous copy of the cron log, such as one rotated by logrotate:
    Code:
    # find /var/log/cron*
    There may be older copies with names similar to "cron.1" or "cron.1.gz" (either with or without gzip-compression, depending on the logrotate configuration); the number will increment each time logrotate rotates the log file (where a lower number is more recent and a higher number is older).

    If you see a gzip-compressed rotated copy of the cron log, try "zless" to view and search through the contents:
    Code:
    # zless /var/log/cron.1.gz
     
  10. 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:
    I do not see a failure indicated in the chkservd log entries that are provided. If a failure is indicated there will be a minus sign "-" instead of a plus sign "+" and if applicable in the case of a failure it may be followed by an attempted restart of the affected service or daemon.

    There is one aspect of the information I am not accustomed to seeing in the chkservd log:
    Code:
    system: /usr/local/cpanel/etc/init/stopstunnel
    system: /usr/local/cpanel/etc/init/stopcpsrvd
    system: /usr/local/cpanel/etc/init/startcpsrvd
    system: /usr/local/cpanel/etc/init/startstunnel
    Have you also received an e-mail notice indicating a problem using native SSL support for cpsrvd? The e-mail may have mentioned stunnel.

    The following command will help to check the status of native SSL support:
    Code:
    # /usr/local/cpanel/bin/linktest-ssl --bincheck
     
  11. project

    project Member

    Joined:
    Oct 27, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hi guys,
    the problem seemed to be by the virtuozzo vps installation.
    I contacted my vps hosting company and they fixed it installing a security update.

    Thanx anyway for your help!!
    Regards
    Kostas
     
Loading...

Share This Page