Hi all,
I've been trying to install scripts on a new virtual server under Install Scripts using the Available Scripts options. After selecting the script that I would like to run (eg. phpMyAdmin), I click the "Show Install Options" and then "Install Now"
The trouble I'm having is that no matter what I select; phpMyAdmin, Wordpress, vTiger CRM or anything else they all just seem to hang and in some instances eventually will time out afterwards.
Edit: I get this error message [Failed to install script : Failed to lock file /etc/apache2/sites-available/test.com.conf after 5 minutes. Last error was : ]
At first I thought it was a resource issue so I have bumped up the spec on this VM virtual image as follows:- Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 8 cores Real Memory - 3.77 GB total / 1.11 GB used Virtual Memory - 3.90 GB total / 0 bytes used This is also the only image on this particular VM Ware box.
My server OS is "ubuntu-16.04.1-server-amd64"
Am I missing something? Or is this a known issue?
Please help.
Howdy,
Hmm, it sounds like there may be some lock files causing things to hang up there.
What is the output of this command:
find /etc/ -name *.lock
Hi andreychek,
Thank you so much for the response. I stopped the application, ran your find command and as "root" the following .lock files come up:-
/etc/webmin/webalizer/var_log_virtualmin_test.com_access_log.conf.lock
/etc/webmin/webalizer/var_log_virtualmin_test.com_access_log.log.lock
/etc/webmin/virtual-server/names/test.com.lock
/etc/apache2/apache2.conf.lock
/etc/apache2/sites-available/test.com.conf.lock
/etc/.pwd.lock
/etc/init.d/mailman.lock
What would cause a .lock file? And is it preventable?
Regards Elton
Okay, try deleting all those .lock files, restart Webmin, and then re-try installing that script.
After that, do things work as expected ?
-Eric
So I deleted the .lock files, verified that they were in fact deleted and restarted Webmin. I then retried the phpMyAdmin install script and it hangs. Thought I'd leave it overnight and still "processing" this morning.
Also the following two .lock files have been recreated.
/etc/apache2/apache2.conf.lock
/etc/apache2/sites-available/test.com.conf.lock
So its obviously something to do with apache but what would cause this?
Update: It seems that my ISP is blocking the install scripts because I managed to get the scripts to run using an alternative ISP. Thank you so much for the help Eric!
Edit: We have resolved the issue with our ISP.