HELP!! YUM Broke, RPM DB broke somehow, httpd won't start!

agnosticon

Member
Jul 11, 2011
17
0
51
Hello,
Let me explain what the problem is.. I was going to update apache through easyapache and it failed.. I tried updating yum and it got stuck at fastest mirrors or something, that was the courrupted rpm dbs, so I deleted __db* files in the /var/lib/rpm/ folder and rebuilt the db but something it corrupted yum totally and I couldn't see any packages if I did rpm -a, yum wouldn't update because it couldn't find the $releaserver string so I manually updated the repo files replacing $releaserver with 5 and got luck with installing a few packages, ran easyapache and it totally screwed the httpd now it won't start because there are no httpd binaries on the server anymore. I looked around the internet and did a few tweeks which led me to install some packages, but yum can't find most of the packages. below is the latest error log of easyapache.. Please someone help me out as I have a lot of angry customers yelling! :(

LOG:
-------------------------------------------------------
Code:
If the browser window is closed or stopped the build will continue in the background.
The build output should start shortly...

Skipping cPanel user purewhi. No main domain located in Apache configuration.
Skipping cPanel user abunasar. No main domain located in Apache configuration.
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1318744050' !!
!!
Ouput from '/bin/sh -c "ulimit -a"':
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 69632
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 524288
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) 524288
file locks                      (-x) unlimited
!!
!! Skipping backup, no working apache found !!
Checking that all tarballs are present and up to date.
Checking that all packages are present and up to date.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.tds.net
* extras: mirrors.serveraxis.net
* rpmforge: fr2.rpmfind.net
* updates: mirrors.serveraxis.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package automake19 available.
Package gettext-0.17-1.el5.i386 already installed and latest version
Package 2:libpng-devel-1.2.10-7.1.el5_7.5.i386 already installed and latest version
Package openssl-0.9.8e-20.el5.i686 already installed and latest version
No package libpng-dev available.
Package zlib-devel-1.2.3-4.el5.i386 already installed and latest version
No package autoconf261 available.
Package libidn-devel-0.6.5-1.1.i386 already installed and latest version
No package gmake available.
Package libidn-0.6.5-1.1.i386 already installed and latest version
Package libXpm-3.5.5-3.i386 already installed and latest version
Package openssl-devel-0.9.8e-20.el5.i386 already installed and latest version
Package automake-1.9.6-2.3.el5.noarch already installed and latest version
Package coreutils-5.97-34.el5.i386 already installed and latest version
Package patch-2.5.4-31.el5.i386 already installed and latest version
No package libstdc++-dev available.
No package libltdl3-devel available.
No package libltdl available.
No package libopenssl0.9.7-static-devel available.
Package libtool-ltdl-devel-1.5.22-7.el5_4.i386 already installed and latest version
Package libXpm-devel-3.5.5-3.i386 already installed and latest version
Package sed-4.1.5-8.el5.i386 already installed and latest version
No package libXpm-dev available.
Package lsof-4.78-3.i386 already installed and latest version
No package krb5-dev available.
Package flex-2.5.4a-41.fc6.i386 already installed and latest version
No package glibc-dev available.
No package expat-dev available.
Package krb5-devel-1.6.1-62.el5.i386 already installed and latest version
No package xorg-x11-devel available.
Package libtool-ltdl-1.5.22-7.el5_4.i386 already installed and latest version
No package libssl-dev available.
Package pam-devel-0.99.6.2-6.el5_5.2.i386 already installed and latest version
No package libopenssl0-devel available.
No package zlib1-devel available.
Package expat-devel-1.95.8-8.3.el5_5.3.i386 already installed and latest version
No package libopenssl0-dev available.
Package expat-1.95.8-8.3.el5_5.3.i386 already installed and latest version
Package zlib-1.2.3-4.el5.i386 already installed and latest version
Package libstdc++-4.1.2-51.el5.i386 already installed and latest version
Package bison-2.3-2.1.i386 already installed and latest version
Package libstdc++-devel-4.1.2-51.el5.i386 already installed and latest version
Package libjpeg-devel-6b-37.i386 already installed and latest version
No package libtool-libltdl-devel available.
Package libtool-1.5.22-7.el5_4.i386 already installed and latest version
No package openssl-dev available.
No package libopenssl0 available.
No package libz-devel available.
No package libjpeg-dev available.
No package pam-dev available.
Package coreutils-5.97-34.el5.i386 already installed and latest version
No package libltdl-devel available.
No package libopenssl0.9.7-devel available.
Package e2fsprogs-devel-1.39-33.el5.i386 already installed and latest version
Package 1:make-3.81-3.el5.i386 already installed and latest version
Package libX11-devel-1.0.3-11.el5_7.1.i386 already installed and latest version
Package gd-2.0.33-9.4.el5_4.2.i386 already installed and latest version
Package cpp-4.1.2-51.el5.i386 already installed and latest version
No package xorg-x11-dev available.
No package ssl-dev available.
Package autoconf-2.59-12.noarch already installed and latest version
No package lex available.
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package gcc.i386 0:4.1.2-51.el5 set to be updated
---> Package gcc-c++.i386 0:4.1.2-51.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-65 set to be updated
--> Processing Dependency: glibc-headers = 2.5-65 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Running transaction check
---> Package glibc-headers.i386 0:2.5-65 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Finished Dependency Resolution
glibc-headers-2.5-65.i386 from base has depsolving problems
  --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-65.i386 (base)
glibc-headers-2.5-65.i386 from base has depsolving problems
  --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-65.i386 (base)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-65.i386 (base)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-65.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
!! ensure() rc was '0', exit status was '256', perl '$?' was '0', exit sig '0', core dump: '0', shell '$?' was '1' !!

!! Simulating failed Cpanel::SysPkgs as per 'simulate-failed-syspkgs' flag !!

!! Could not ensure pkglist 'automake19, gettext, libpng-devel, openssl, libpng-dev, zlib-devel, autoconf261, libidn-devel, gmake, libidn, libXpm, openssl-devel, automake, coreutils, patch, libstdc++-dev, libltdl3-devel, libltdl, libopenssl0.9.7-static-devel, libtool-ltdl-devel, libXpm-devel, sed, libXpm-dev, lsof, krb5-dev, flex, glibc-dev, expat-dev, krb5-devel, xorg-x11-devel, libtool-ltdl, libssl-dev, pam-devel, libopenssl0-devel, zlib1-devel, expat-devel, libopenssl0-dev, glibc-devel, expat, gcc-c++, zlib, libstdc++, bison, libstdc++-devel, libjpeg-devel, libtool-libltdl-devel, libtool, openssl-dev, libopenssl0, libz-devel, libjpeg-dev, pam-dev, fileutils, libltdl-devel, libopenssl0.9.7-devel, e2fsprogs-devel, make, libX11-devel, gd, cpp, xorg-x11-dev, gcc, ssl-dev, autoconf, lex' !!
!! The server's system package manager, 'YUM', failed. !!

!!
This is the command that failed: yum --exclude=kernel* -y install automake19 gettext libpng-devel openssl libpng-dev zlib-devel autoconf261 libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch libstdc++-dev libltdl3-devel libltdl libopenssl0.9.7-static-devel libtool-ltdl-devel libXpm-devel sed libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel xorg-x11-devel libtool-ltdl libssl-dev pam-devel libopenssl0-devel zlib1-devel expat-devel libopenssl0-dev glibc-devel expat gcc-c++ zlib libstdc++ bison libstdc++-devel libjpeg-devel libtool-libltdl-devel libtool openssl-dev libopenssl0 libz-devel libjpeg-dev pam-dev fileutils libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libX11-devel gd cpp xorg-x11-dev gcc ssl-dev autoconf lex !!

!!
Since EasyApache was unable to resolve it automatically you should: 1) Manually run the failed YUM command (shown above) via SSH 2) See if your particular error is addressed at [url=http://www.cpanel.net/support/could_not_ensurepkgs.htm]EaError < AllDocumentation < TWiki[/url] 3) Resolve the YUM problem manually 4) Re-run EasyApache !!

!! Please visit [url=http://www.cpanel.net/support/could_not_ensurepkgs.htm]EaError < AllDocumentation < TWiki[/url] for help with this error. !!

!! No original working apache backup to restore !!
!! Executing '/scripts/initfpsuexec' !!
!! Executing '/scripts/initsslhttpd' !!
!! Executing '/scripts/update_apachectl' !!
!! '/scripts/update_apachectl' failed with exit code '256' !!
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1318744050' !!
--------------------------------------------
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

Have you tried installing the "kernel-headers" package via YUM?

Thank you.