Ubuntu Servers :: Apache Restart Fails After Power Loss?
Oct 25, 2010
I have observed a problem twice now with Apache trying to restart but hanging somewhere in the process. This happens after a power failure; the machine comes back just fine, but not the web server. The machine is on a UPS, but occasionally it runs out of "juice" before someone can get to it (we have a generator for emergencies). When this happens, a ps indicates about three processes running that are trying to start Apache, but they just sit there - this time for three days since the power failure was on a Friday. I can fix this by killing those processes and doing an Apache restart - but that takes human intervention, which is not acceptable.
I suspect this may have to do with SSL, since when I do a manual restart it asks me for the SSL password. There must be some way around this so the system can recover on its own. This system's web site runs under SSL since it maintains medical information that must by law be protected. But it also could be life-threatening to someone if the system can't come back and as a result a person can't get help.
So I would appreciate some guidance as to what I could change that would allow for system recovery without intervention. I'm happy to provide any configuration file info, if you tell me where to look.
View 3 Replies
ADVERTISEMENT
Jun 7, 2011
I have a small problem on my Compaq Evo Centos 5.4 web server. The web server runs just fine, the problem is it fails to restart from a power outage. Simple edit the BIOS. No! For a reason I can't think of the keyboard stops working after a few key strokes following the F10 to enter BIOS setup. Then its a power cycle. If left to BOOT the PC and keyboard are fine. After hearing about viruses which get to the BIOS I will ask can NIX get that far so I can adjust the Power ON?
View 4 Replies
View Related
Feb 1, 2011
I've installed Ubuntu server and got everything setup pretty well.My problem is apache.I put my website in /var/www and changed the security on the files to allow them to be executed by other, which is what I finally discovered was my first problem (access denied). But now whenever.I go in and edit my page, the changes aren't reflected on the site unless I completely restart apache.I know I'm doing something wrong because I used to pay for a host and every time I edited a page, it was instantly updated on the site. Could one of you gurus tell me where I screwed up?
View 4 Replies
View Related
Jun 6, 2010
bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.
-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?
View 2 Replies
View Related
Jul 17, 2010
I don't have much experience working with Ubuntu servers, but I recently decided to try to set one up. I have a remote server hosted with a static ip address, but I can't seem to install apache.
When I run the command
Code:
It fails to install with because it is missing dependencies.
"apt-get install -f" doesn't help. How can I install the necessary dependencies to get this working?
View 3 Replies
View Related
Apr 1, 2011
As per [URL] I built a RAID6 array. yay. In the end it completed.
Code:
fermulator@fermmy-server:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2000 : active raid6 sdo1[3] sdn1[2] sdm1[1] sdl1[0]
3907026944 blocks level 6, 64k chunk, algorithm 2 [4/4] [UUUU]
To test stability, I rebooted the system, but on reboot, the array wasn't assembled correctly. Basically it had one device in "md_d2000", as a spare. So I stopped that device with
Code:
sudo mdadm --stop /dev/md_d2000
The superblocks looked good ...
Code:
fermulator@fermmy-server:~$ sudo mdadm -E /dev/sd[lmno]
/dev/sdl:
Magic : a92b4efc
Version : 00.90.00
[code]...
I don't have any important data on the array yet ... so I zero'd the superblocks on all devices, deleted the partitions, and started over .. here I go again:
Code:
md2000 : active raid6 sdo1[3] sdn1[2] sdm1[1] sdl1[0]
3907026944 blocks level 6, 64k chunk, algorithm 2 [4/4] [UUUU]
[>....................] resync = 0.7% (14164844/1953513472) finish=313.7min speed=102999K/sec
View 4 Replies
View Related
May 31, 2010
Ubuntu 10.4 on desktop system. Everything was working satisfactorily until...Trying to boot up after a power loss I got "ERROR: You need to load the kernel first."I tried to boot into recovery mode and got "ERROR: HD0, 1 out of disk ERROR: Couldn't read file Loading initial ramdisk ERROR: You need to load the kernel first."Next I booted with the live Ubuntu disk to see if I could mount the drive from there and got thisError mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb1,missing codepage or helper program, or other errorIn some cases useful info is found in syslog - try
View 2 Replies
View Related
Jan 9, 2010
I'm trying to move an existing webserver from an old machine to a machine with Fedora 12 installed on it. ThSince the version available in the repository is version 2.X I downloaded the source from apache.org and tried to compile it. I ran configure using the default options and it an without any warnings or errors. However when I run make it fails with the following error:
gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` htpasswd.c
htpasswd.c:101: error: conflicting types for getline
/usr/include/stdio.h:653: note: previous declaration of getline was here
make[2]: *** [htpasswd.o] Error 1
make[2]: Leaving directory `/root/apache_1.3.41/src/support'
make[1]: *** [build-support] Error 1
make[1]: Leaving directory `/root/apache_1.3.41'
make: *** [build] Error 2
what the problem and more importantly the solution to this problem is?
View 9 Replies
View Related
Apr 2, 2010
Today, I was upgrading my desktop from Jaunty to Karmic (a little behind schedule, I know). All packages downloaded successfully, and then the computer began the process of applying all of the updates. During this period, at some point, it lost power. Now, of course, it won't boot.
Fortunately, I have a separate /home/ partition, and it was unmounted during the upgrade process. So, my personal data and settings are fine. But the OS is useless.
I'm guessing that I'm completely buggered here, and there is nothing that I can do except re-format the Ubuntu partition and clean install Karmic from an install disk.
View 3 Replies
View Related
Feb 24, 2010
recommend any utilities that would check the hard drive and its contents (if they are still good) following a power outage?
View 1 Replies
View Related
May 31, 2011
After a power outage my external hard drive that I use to serve a DLNA server with content lost all the files.
The parent directories are still displayed, but there is nothing inside them, and I cannot write anything into them. (creating any file in them does not work.)
I assume that I have a corrupted drive but I was hoping to find a way to recover the content. Most of it is backed up, but I have become a bit lazy in the past month, and have not backed up so there are a number of videos I don't want to lose.
It seams odd that the directories show up, but the files don't. The drive properties also show that the correct amount of the drive space is taken up (for the videos to be present) so I haven't reformatted because I assume that will wipe out all traces of the data.
View 5 Replies
View Related
Jan 24, 2011
I'm wondering what my alternatives are when I lose power to the external hard drive where I have Debian installed. I realize that the best answer may be a battery backup UPS for the external hard drive. It seems that I recall that when a similar scenario happened on my SunOS Sparc workstation, I would simply hit [Stop-A] and then type in the "sync" command. I now have a laptop and am running Debian off of an external harddrive that has its own power supply. When I lose power, my laptop obviously continues to keep running but my session is essentially and understandably hosed because the main filesystem is not accessible. Gnome desktop goes away and I am thrown to the main console login. When power resumes, I cannot login to attempt a remount or anything. When I hit [ctrl-alt-del] thinking that that is less forceful than just holding down the main power on the laptop, I get cannot execute "/sbin/shutdown". Is there a [STOP-A] sync equilavent or some way or keyboard sequence to get to GRUB to issue a reboot command?
[108200.233484] EXT3-fs error (device sdb1); ext3_find_entry: reading directory #55500801 offset 0
"
"
INIT: cannot execute /sbin/getty"
INIT: ld "1" respawning too fast: disabled for 5 minutes
INIT: cannopt execute "/sbin/shutdown"
View 2 Replies
View Related
Oct 3, 2010
When i am updating suddenly the power gone.what i have to do now.
View 11 Replies
View Related
Apr 19, 2011
I have three machines networked to my desktop which run a bunch of simulations in parallel. As they're running, I connect to them via SSH and screen to keep an eye on the runs and look at the output. They stay usually connected for days at a time. The SSH servers and client are running Fedora 14. Yesterday one of my coworkers accidentally yanked the plug on one of the servers while it was running. When I powered it up again, I started getting some odd connection problems. I couldn't connect to it via SSH initially because I got the Remote Host Identification Changed (RSA host key changed) error. I deleted the key in .ssh/known_hosts, which allowed me to connect, but it denied my password. I then logged into that machine locally, restarted sshd, and removed .ssh/known_hosts again. Now I can log in via SSH without problems. However, the connection dies with a "Write failed: Broken pipe" error every few minutes (as opposed to the other two machines, which stay connected indefinitely).
So my questions are:
1.) why would a power loss affect the behavior of the SSH server?
2.) why do I keep getting broken pipes now?
View 4 Replies
View Related
Oct 11, 2010
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies
View Related
May 15, 2011
I just completed a clean install and update of Fedora 14 on a Dell Precision 490 (4G of RAM, Dual Xeon 5140 CPUs).The system has all of the current updates applied and seems to be running normally, but it will not complete a shutdown/poweroff or restart. It gets hung with Restarting... in the upper left corner of the screen and stays there until I force the system to power down.I have searched quite a bit for related problems but have come up empty. Its kind of hard to debug because the system does not respond when it is in this hung state and there does not appear to be any relevant info in /var/log that I can find.
View 3 Replies
View Related
Dec 22, 2009
Installed new APC Back-UPS CS 350 on single server running openSUSE 11.2 64-bit and configured NUT 2.4.1 (SUSE package) according to instructions. When testing, NUT shuts down the server correctly and instructs the UPS to power down. UPS does so after some 20s delay, everything without errors. But after restoring main power, even after waiting for 1/2h UPS does not by itself turn on again, all LEDs are dark. One has to manually press the UPS's power button, which makes server and monitor run again immediately. What could be wrong that prevents UPS from turning itself on again?
Below output of upsc:
[Code]...
View 2 Replies
View Related
Sep 29, 2010
I have thought about it many times but just never found enough guts to attempt using it before..but necessity is the mother of invention so here I am.
I have a Dell PC with windows Xp that failed to restart after a power outage it went into auto restart and caught itself in a loop of restarts and wont see the hard drive so therefore will not start up in windows at all I downloaded feather Linux onto a cd and it does start the PC In Linux but I cant seem to figure out how to find the hard drives in the pc to get the info off of it
View 3 Replies
View Related
Jan 28, 2010
I am trying to figure out why, i need to restart/reboot ubuntu in order to reconnect wirelessly after being in power save mode. It works fine before the power-save mode and fine after the restart. Is it an IP issue?
View 1 Replies
View Related
Jun 7, 2010
After a power outage Ubuntu fails to boot. How can I resolve this ? Is there a safe mode method to resolve the booting problem?
View 8 Replies
View Related
Feb 27, 2011
If power fails in the site and generator/UPS has it's last leg of power, how would I know if im away that something's about to go down? Is there a way for me to setup some alert to myself that we have just lost power in the site and everything's running on batteries? Is there a hardware of some sort that I can setup to send sms/call alerts to certain admins?
View 2 Replies
View Related
Jun 5, 2010
I've got an OLD computer I'm using as a server, the thing does not support ACPI, so we're in APM-land. The thing works fine w/ Debian Lenny. I have apmd installed and my /etc/modules file has an apm entry in it. It does a powerdown and everything is happy. I don't even need to add an apm entry on the kernel line in my menu.lst file. Then I decide to upgrade the box to the testing (squeeze) branch, making the appropriate additions to my sources.list file.
And everything goes to hell with apm. I don't know if it's GRUB2 (grub-pc) or not, all I know is that I can't get a powerdown on the machine. I've done a reinstall, via a netinstall CD, twice to verify this behavior. I can't find squat via Google on this other than someone else mentioning that the upgrade to GRUB2 killed apm. While I can just reach over and hold the power button for a few seconds to get a powerdown, I assume that every problem is solved by a simple entry in a config file.
View 4 Replies
View Related
Oct 14, 2010
I am having problems with getting the drivers to work for a geforce 9500gt.To get started Im working with a fresh install of 8.10, and I have successfully installed the driver package for this card from nvidia's site, version 260.The problem comes after I restart the computer. It fails to load. I am able to install the driver and start X and it works greatI can even restart x and it still works. but as soon as I restart the computer it doesn't load. I then need to reinstall the driver. I am curious if anyone has an idea of whats wrong here? I am wondering if it's a possible xorg.conf problem so I will post that below.
xorg.conf file
Section "ServerLayout"
Identifier "Layout0"
[code].....
View 1 Replies
View Related
Aug 10, 2010
I'm going to reformat my external drives to get rid of the crud that I've built up. (Crud being incremental backups, windows software, and similar things.)(I also want to get rid of the FAT32 file system that they use.) These are USB 1TB drives. The theory is that data is written to it once, but read back a number of times. (I also burn that data to DVD. If there was software that could organize 5TB of data on DVDs, I'd be using them.)
I"m trying to decide whether to use ReiserFS, Ext4, or another file system. Basically, I want something that:
* Won't get corrupted when the power fails;
* Can handle files that are 4+GB in size;
* Uses extends --- preferably without user intervention;
View 3 Replies
View Related
Apr 27, 2010
I have a issue that could get me fired, so I would appreciate your input. My knowledge about linux is limited
The company I work for has a Dell Poweredge 6850 that keeps pretty much everything (databases, websites, etc).
The server had a Virtual Drive created from 2 Physical Drives. Since the HDD space was getting low, we got a new drive, inserted it, formatted and rebooted the system.
But the system now refuses to start, giving an FAILED message, something related to EXT2 partition that cannot be read at /dev/hda1.
View 2 Replies
View Related
Jan 31, 2011
Fresh new installation of squeeze on an MSI Wind U100 netbook.Everything works fine, except resuming from hibernate when on battery power. The netbook starts loading the hibernate info after grub booting, then the screen goes blank and the netbook reboots.The unusual thing is that resuming from hibernate works when on AC power.Could not find anything interesting in /var/log/messages
View 5 Replies
View Related
Mar 28, 2010
I'm trying to compile a newer version of devicekit-power (currently I have 009) so maybe I can suspend/hibernate my laptop again, after I updated the kernel. I installed every package "./configure" asked, so it made a Makefile. When I use "make", it builds a few files, then I get this error:
[code]...
Also, is upower-0.90/91 the same thing but newer?
View 9 Replies
View Related
Jun 6, 2009
I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache serverMore specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restartSo I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:run a crond every minute to do:
rm -Rf /root/testarea/*
wget http://ip/work.gif
then check if work.gif exists.
[code]...
View 1 Replies
View Related
Apr 27, 2010
I have a issue that could get me fired, so I would appreciate your input. My knowledge about linux is limited
The company I work for has a Dell Poweredge 6850 that keeps pretty much everything (databases, websites, etc). The server had a Virtual Drive created from 2 Physical Drives. Since the HDD space was getting low, we got a new drive, inserted it, formatted and rebooted the system. But the system now refuses to start, giving an FAILED message, something related to EXT2 partition that cannot be read at /dev/hda1
View 1 Replies
View Related
Apr 19, 2011
I'm very new to Linux and recently setup a desktop PC with Puppy 5.2.5. only. I chose to have a permanent install on the hard drive and loaded additional PETS and utilities as I thought needed for my use. Last night after immediately booting up the PC I had a power cut lasting a few minutes. When power returned and I repowered the PC, I found during Puppy's boot sequence it reported an error and remained in what appeared to be a console mode - did not carry through and load my desktop. So I inserted the Puppy CD and booted from that but I'm afraid I'm not familiar enough with Linux to understand how I can get back my original desktop setup and run once again from my hard drive without having to go back to scratch.
View 5 Replies
View Related