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.

what error is this?

Discussion in 'General Discussion' started by tiff2342, Oct 8, 2012.

  1. tiff2342

    tiff2342 Well-Known Member

    Joined:
    Apr 20, 2012
    Messages:
    140
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Code:
    Oct  8 13:51:53 host abrt: detected unhandled Python exception in '/usr/local/cpanel/hooks/addondomain/addaddondomain'
    Oct  8 13:51:53 host abrtd: New client connected
    Oct  8 13:51:53 host abrt-server[924201]: Saved Python crash dump of pid 924200 to /var/spool/abrt/pyhook-2012-10-08-13:51:53-924200
    Oct  8 13:51:53 host abrtd: Directory 'pyhook-2012-10-08-13:51:53-924200' creation detected
    Oct  8 13:51:53 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
    Oct  8 13:51:53 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-former
    Oct  8 13:51:53 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-release
    Oct  8 13:51:53 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-rhx
    Oct  8 13:51:53 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    Oct  8 13:51:53 host abrtd: Executable '/usr/local/cpanel/hooks/addondomain/addaddondomain' doesn't belong to any package
    Oct  8 13:51:53 host abrtd: 'post-create' on '/var/spool/abrt/pyhook-2012-10-08-13:51:53-924200' exited with 1
    Oct  8 13:51:53 host abrtd: Corrupted or bad directory /var/spool/abrt/pyhook-2012-10-08-13:51:53-924200, deleting
    Oct  8 13:52:29 host abrt: detected unhandled Python exception in '/usr/local/cpanel/hooks/addondomain/addaddondomain'
    Oct  8 13:52:29 host abrtd: New client connected
    Oct  8 13:52:29 host abrt-server[924476]: Saved Python crash dump of pid 924475 to /var/spool/abrt/pyhook-2012-10-08-13:52:29-924475
    Oct  8 13:52:29 host abrtd: Directory 'pyhook-2012-10-08-13:52:29-924475' creation detected
    Oct  8 13:52:29 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
    Oct  8 13:52:29 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-former
    Oct  8 13:52:29 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-release
    Oct  8 13:52:29 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-rhx
    Oct  8 13:52:29 host abrtd: Can't load public GPG key /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
    Oct  8 13:52:29 host abrtd: Executable '/usr/local/cpanel/hooks/addondomain/addaddondomain' doesn't belong to any package
    Oct  8 13:52:29 host abrtd: 'post-create' on '/var/spool/abrt/pyhook-2012-10-08-13:52:29-924475' exited with 1
    Oct  8 13:52:29 host abrtd: Corrupted or bad directory /var/spool/abrt/pyhook-2012-10-08-13:52:29-924475, deleting
    
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    What error log is this?

    Thanks!
     
  3. tiff2342

    tiff2342 Well-Known Member

    Joined:
    Apr 20, 2012
    Messages:
    140
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    This was found in /var/log/messages

    Is it serious?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What does the file /usr/local/cpanel/hooks/addondomain/addaddondomain contain in it? It did cause a core dump file from what I can see in the message.
     
  5. tiff2342

    tiff2342 Well-Known Member

    Joined:
    Apr 20, 2012
    Messages:
    140
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Code:
    #!/usr/bin/env python
    import subprocess
    import sys
    import os
    import yaml
    from xml.dom import minidom
    sys.path.append('/scripts')
    import createvhosts
    doc = minidom.parse(sys.stdin)
    
    resulttaglist = doc.getElementsByTagName('result')
    resultlist =[]
    
    if resulttaglist[1].childNodes[0].toxml() == 0:
            sys.exit
    else:
            subdomaintaglist = doc.getElementsByTagName('subdomain')
            subdomain = subdomaintaglist[0].childNodes[0].toxml()
            maindomaintaglist = doc.getElementsByTagName('DOMAIN')
            maindomain = maindomaintaglist[0].childNodes[0].toxml()
            domain =  subdomain + '.' + maindomain
            usertaglist = doc.getElementsByTagName('USER')
            user = usertaglist[0].childNodes[0].toxml()
            docroot, yip, alias = createvhosts.getvars(domain)
            serverip = createvhosts.getmainip()
                    if yip == serverip:
                            createvhosts.writeconfshared(user, domain, docroot, yip, alias)
                    else:
                            createvhosts.writeconfded(user, domain, docroot, yip, alias)
            proc = subprocess.Popen("/etc/init.d/nginx restart > /dev/null 2>&1", shell=True)
    not sure why it would break been working fine
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Could you try revising this line:

    Code:
    sys.path.append('/scripts')
    To this line:

    Code:
    sys.path.append('/usr/local/cpanel/scripts')
    If that doesn't work, I'd suggest revising the hook to use a language such as perl rather than python to see the results.
     
Loading...

Share This Page