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.

easyapache fails

Discussion in 'EasyApache' started by xanthi, Oct 17, 2010.

  1. xanthi

    xanthi Member

    Joined:
    Oct 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'm using easyApache to enable TTF in PHP on a CentOS server. When I "Save and Build" with the new configuration, I get:

    Code:
    Checking that all tarballs are present and up to date.
    Checking that all packages are present and up to date.
    !! Trying to auto repair package system !!
    Fetching http://httpupdate.cpanel.net/syspkgs/templates/centos/5/default/CentOS-Base.repo (0)....@216.104.43.138......connected......receiving...100%......Done
    checkyum version 20.5
    Fetching http://httpupdate.cpanel.net/syspkgs/templates/centos/5/cpanel/CentOS-Base.repo (0)....@216.104.43.138......connected......receiving...100%......Done
    checkyum version 20.5
    checkyum version 20.5
    !! Package system can not be repaired automatically !!
    !! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !!
    Testing yum gives me:

    Code:
    Transaction Summary
    ================================================================================
    Install       0 Package(s)
    Upgrade       8 Package(s)
    
    Total size: 32 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    memory alloc (24 bytes) returned NULL.
    and the update fails.

    • Does anyone know of a fix for the yum problem?
    • Is there any way of building Apache with easyApache, but disabling the package update to bypass this problem?
    • Is there a way to manually enable TTF without easyapache to get round the problem (freetype packages are installed)?

    Thanks
     
  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
    The error appears to be a memory error. Do you have sufficient memory on the system to run the update? Yum is going to need a set amount of memory to allocate for the update. If there isn't sufficient memory, it would fail the allocation. Here's a discussion with someone on a VPS that didn't have enough memory and received the error:

    0003183: Yum problem - All operation will crash - CentOS Bug Tracker

    To answer your other questions, first, you must have a working package system for EasyApache to function as we pull some rpms during the build using the package system.

    Next, you cannot enable TTF without building EasyApache. You really need a working package system regardless.

    If you do not have sufficient memory to run yum, try stopping some processes temporarily to allow it to run. You could stop and disable monitoring for exim and Apache in all likelihood and get more memory on the system. Stuff like mailman, crond, imap / pop3 and so on are also going to free up memory.

    If you do have sufficient memory, then you might want to ask your datacenter or NOC if they have any ideas. Most times, they've seen and worked with components like this extensively and would know what else might cause the error.
     
Loading...

Share This Page