Page 1 of 2

Apache will not start after app install

Posted: Thu May 09, 2013 7:54 pm
by kent
Hi,

I installed the bible super search web app and now i cannot access my dashboard. I rebooted and saw that the apache2 service failed.
When i try to restart the service i get the following errors.

* Restarting web server htcacheclean ...not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Thu May 09 22:45:41 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
[Thu May 09 22:45:41 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
/var/lock/apache2 already exists but is not a directory owned by apache.
Please fix manually. Aborting.

I am running ubuntu 12.04

Can anyone help?

Re: Apache will not start after app install

Posted: Thu May 09, 2013 8:53 pm
by cpg
Sounds unrelated to Amahi. Amahi does not touch that file.

Have you updated your Ubuntu OS?

Can you show us the output of:

Code: Select all

ls -la /var/lock/apache2
Then, and only then, you could try this to try to see if it fixes it

Code: Select all

chown www-data:root /var/lock/apache2

Re: Apache will not start after app install

Posted: Fri May 10, 2013 4:39 am
by bigfoot65
I have seen this issue with Ubuntu 12.04.2 only. Users who install a previous version then do OS updates to 12.04.2 have the same problem.

This bug is something I hope Ubuntu will fix eventually. More info can be found here in the issue tracker.

https://bugs.amahi.org/issues/1023

Re: Apache will not start after app install

Posted: Fri May 10, 2013 4:44 pm
by kent
This is the output of the ls -la /var/lock/apache2 command.

Code: Select all

kent@clarkes:~$ ls -la /var/lock/apache2/ total 0 drwxr-xr-x 2 www-data root 40 May 10 19:38 . drwxrwxrwt 4 root root 80 May 10 19:38 ..[/b]

Re: Apache will not start after app install

Posted: Fri May 10, 2013 4:51 pm
by cpg
Try the workaround in the bug, as mentioned.

Re: Apache will not start after app install

Posted: Fri May 10, 2013 6:13 pm
by kent
I tried the work around in the bug.. .Didn't work for me..I also tried changing the permissions to owner and group as www-data...

Can you tell me if uninstalling apache and reinstalling apache is safe... i have a few web apps inatalled....

Re: Apache will not start after app install

Posted: Fri May 10, 2013 7:38 pm
by bigfoot65
I would say probably not. Did you do commands as root as described in the work around? I have had this issue and the removal of that directory worked for me.

[ Post made via Android ] Image

Re: Apache will not start after app install

Posted: Sat May 11, 2013 4:25 am
by kent
i did the command as root and it didn't work... i even removed the /var/lock/apache2 folder and rebooted... At some point also when i remove the folder after a while without me doing anything it re-appears on it's own...this is really strange... one thin to note though the /var/lock folder is linked to /run/lock.

Do you think the installation of a one click app would cause this? It all occured when i installed the bible super search app.

Re: Apache will not start after app install

Posted: Sat May 11, 2013 4:36 am
by cpg
This file is unrelated to Amahi per se. It's part of the base OS. Did you update the OS? It appears it may be due to an update in the OS picking up a bad update from upstream Ubuntu.

Re: Apache will not start after app install

Posted: Sat May 11, 2013 7:00 am
by bigfoot65
Trying to remember how I did it. I think I stopped apache first, then did the remove of that directory followed by starting apache.

It is an odd OS bug and can be a pain. Once I got rid of it, all has been fine since. Not sure what else to recommend at this point if it does not work for you.