easyapache crashes. still running previous apache on memory. what should I do now

pcsousa

Well-Known Member
May 28, 2004
63
0
156
I.

Running easyapache to add suexec and suphpexec. 45 minutes later is everything at the same point.

[email protected] [/usr/local/apache]# ls
./ ../ conf/ conf_pre_ea3/ domlogs/ logs/
[email protected] [/usr/local/apache]#
apache was removed, including my conf.2008-10-08.bck directory (grrrrrrr)
I have other from last sunday at a locally backup and backup of backup at ftp backup server, so no problem, but you should not do rm -fr /usr/local/apache :D

[email protected] [/usr/local/apache]# tail -f /usr/local/cpanel/logs/easy/apache/build.1223501742
krb5-workstation x86_64 1.6.1-25.el5_2.1 updates 901 k

Transaction Summary
=============================================================================
Install 4 Package(s)
Update 9 Package(s)
Remove 0 Package(s)

Total download size: 7.0 M
Downloa
Yes, file is ending with "Downloa" since first 4 or 5 minutos.

[email protected] [/usr/local/apache]# ps -aux |grep easy
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 7473 0.0 0.5 116860 46500 ? Ss 22:35 0:03 [bg installer] /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl
root 18822 0.0 0.0 61148 704 pts/4 R+ 23:54 0:00 grep easy
[email protected] [/usr/local/apache]#
[email protected] [/usr/local/apache]# strace -p 7473
Process 7473 attached - interrupt to quit
read(9,
Also ending with "read(9," since first 4/5 minutes of easyapache running.

My websites are holding on previous instance of apache. If it drops everything stop.

What should I do now? Kill easyapache process and run it again? It's safe?

Regards.
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
All sites are now down... as I expect. Now I have no apache installed... What should I do?
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
Now stoping here:

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

!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1223507498' !!
!!
Ouput from '/bin/sh -c "ulimit -a"':
core file size (blocks, -c) 524288
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) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 14335
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.
any ideas?

Easy::Apache v3.2.0 Build 4442
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
To help others:

easyapache is allways crashing. According to cPanel support (quick reply - 10 minutes reply - thank you):
We are continuing to troubleshoot at this time. Currently, there is an
EasyApache build running, and I noticed you had killed off previous running
EasyApache builds before. I cannot stress enough that you cannot kill these
off, as that's when Apache problems will occur. If something is not correct,
let the build finish, and then fix it with a new build.
I do not believe this, I'm sorry.
[email protected] [/usr/local]# ps -aux |grep easy
root 15125 0.0 0.6 181780 49228 ? Ss 01:20 0:03 [bg installer] /scripts/./easyapache
root 22157 0.0 0.0 61156 732 pts/0 S+ 09:15 0:00 grep easy
[email protected] [/usr/local]# date
Thu Oct 9 09:15:52 WEST 2008
[email protected] [/usr/local]#
In my case, this script is running for 9 hours.... I can make it mannually in less than one hour! I do not believe this is running well, Im sorry. I must kill it sometime.

easyapache logs, after 9 hours running:
[email protected] [/usr/local/cpanel/logs/easy/apache]# tail -f build.1223511491
!! Backup of working apache complete. !!

!! Start: Silent httpupdate request !!


!! End: Silent httpupdate request !!

Checking that all tarballs are present and up to date.
Checking that all packages are present and up to date.
!! Continuing Build in background !!
[email protected] [/usr/local/cpanel/logs/easy/apache]# tail -f build.1223511491.env

[VISUAL]
pico

[_]
/scripts/./easyapache

[maketext_obj]
Cpanel::CPAN::Locale::Maketext::Pseudo=HASH(0x15e37f00)
By the way, all easyapache .env logs ends at this point.

In the meanwhile I discovered easyapache creates a copy of original directory on same level (cPanel staff rocks! ;) ). In my case:
/usr/local/apache.backup_archive/20081009.1223511491/
I made this backup my default apache directory at /usr/local/apache/ and started apache ok. I need to do it because I can not have my sites down for more than 9 hours, as you can imagine. I'll try it again during the weekend, but I will not kill the process.

Regards.
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
easyapache still running 14 hours left. it's impossible to be ok...

root 15125 0.0 0.6 181780 49228 ? Ss 01:20 0:03 [bg installer] /scripts/./easyapache

[email protected] [/etc/rc.d/init.d]# date
Thu Oct 9 15:11:20 WEST 2008
[email protected] [/etc/rc.d/init.d]#

I will now left cPanel staff make their job and then I'll update this topic. Maybe help others in the future.

Regards.
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
Updating.

Many thaks to cPanel support. No updates, including easyapache, are runnig on this server just because yum databases corrupt.
They cleaned them up with:
cd /var/lib/rpm
ls
mkdir /root/old_rpm_dbs/
mv __db* /root/old_rpm_dbs/
ls
rpm --rebuilddb
yum clean all
yum update
Now running apache+php and suphp, suexec and php_MailHeaders. That's easiest to find spammers ;)

Regards.
 

bman

Well-Known Member
Dec 28, 2003
119
0
166
i have the same problem and i lost all my httpd.conf settings/sites
 

bman

Well-Known Member
Dec 28, 2003
119
0
166
i found the problem
its was eAccelerator
you must deselect it and then install it manually
 

pcsousa

Well-Known Member
May 28, 2004
63
0
156
Never forget your backups. WHM manage them automatically and httpd.conf is one of the saved files.