Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 30th March 2010, 21:25
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

falko, the /root/ispconfig/.ispconfig_lock exists again.

The problem is that AFTER I change the Options for any site, the file .ispconfig_lock is recreated after the settings are made.

ISPCONFIG will not delete ".ispconfig_lock" after it finishes updating configurations.

I have to manually delete the entry.

How can I get ISPCONFIG to delete the .ispconfig_lock file on its own again?
Reply With Quote
Sponsored Links
  #12  
Old 31st March 2010, 15:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

If /root/ispconfig/.ispconfig_lock doesn't disappear automatically this means that the ISPConfig backend process is hanging somewhere.

Can you kill the ispconfig_wconf process...

Code:
kill -9 2414
... delete all locks...
Code:
rm -f /root/ispconfig/.ispconfig_lock
rm -f /home/admispconfig/ispconfig/.run
rm -f /home/admispconfig/ispconfig/.run2
... change anything in the ISPConfig interface and finally run
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php
? Does the last command give you any errors now?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 31st March 2010, 17:17
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Okay, the process had a different ID number than the 2414. Not a big deal though, I grep'ed and found it.

When running the end command, I get the following:
Code:
dingle@its:~/ispconfig# /root/ispconfig/php/php /root/ispconfig/scripts/writeconf.php
sh: httpd: command not found
ls: /conf.d/*.conf: No such file or directory
sh: httpd: command not found
start
UPDATE: 3

Warning: symlink(): File exists in /root/ispconfig/scripts/lib/config.lib.php on line 940
UPDATE USER: 184
UPDATE USER: 191
UPDATE USER: 189
UPDATE USER: 188
UPDATE USER: 190
UPDATE USER: 187
sh: postmap: command not found
sh: httpd: command not found
Segmentation fault
dingle@its:~/ispconfig#
Just to note, I have reinstalled ISPCONFIG twice. This issue isn't being fixed by a simple re-installation. Nothing on the server has been manually edited. This started happening randomly after making updates on the ISPCONFIG Control Panel.

Last edited by crypted; 1st April 2010 at 03:46.
Reply With Quote
  #14  
Old 1st April 2010, 07:35
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Also, along with the issue posted above.

ISPConfig Control Panel shows the following in all Recycle Bin's constantly:
Code:
 	  The following error occurred:  	
	
The system is currently updating the configuration files.
Every day it has been that way no matter if I have restarted anything or not.


Also, I checked the settings in the MANAGEMENT tab. All is correct. I restarted ISPCONFIG. It took 3 minutes to complete the restart. Very laggy now.

Log shows:
Code:
1.03.2010 - 10:16:01 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
31.03.2010 - 10:16:01 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 911: WARNING: could not se$
31.03.2010 - 10:16:05 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp$
31.03.2010 - 10:16:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 117: s$
31.03.2010 - 10:16:06 => INFO - USER:
web3_facebook:x:10191:10003:facebook:/var/www/web3/user/web3_facebook:/bin/false
31.03.2010 - 10:16:06 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
31.03.2010 - 10:16:06 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 911: WARNING: could not se$
31.03.2010 - 10:16:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp$
31.03.2010 - 10:16:06 => INFO - USER:
web3_gabymobile:x:10189:10003:Gaby mobile:/var/www/web3/user/web3_gabymobile:/bin/false
31.03.2010 - 10:16:09 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
31.03.2010 - 10:16:09 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 911: WARNING: could not se$
31.03.2010 - 10:16:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp$
31.03.2010 - 10:16:09 => INFO - USER:
web3_mobile:x:10188:10003:mobile phone:/var/www/web3/user/web3_mobile:/bin/false
31.03.2010 - 10:16:09 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
31.03.2010 - 10:16:09 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 911: WARNING: could not se$
31.03.2010 - 10:16:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp$
31.03.2010 - 10:16:09 => INFO - USER:
web3_paypal:x:10190:10003:Paypal:/var/www/web3/user/web3_paypal:/bin/false
31.03.2010 - 10:16:09 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
web3_nomail:x:10187:10003:nomail:/var/www/web3/user/web3_nomail:/bin/false
31.03.2010 - 10:16:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 910: WARNING: could not se$
31.03.2010 - 10:16:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 911: WARNING: could not se$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 60: cp$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp$
31.03.2010 - 10:16:10 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: WA$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1268: cp -fr /etc/httpd/co$
31.03.2010 - 10:16:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2669: WARNING: could not h$
31.03.2010 - 10:16:10 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2681: httpd syntax seems t$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2682: mv -f /etc/httpd/con$
31.03.2010 - 10:16:10 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2683: mv -f /etc/httpd/con$
31.03.2010 - 10:16:16 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /et$
31.03.2010 - 23:59:33 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /et$
31.03.2010 - 23:59:36 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 68: touch /var/log/maillo$
31.03.2010 - 23:59:36 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 69: cat /var/log/maillog.$
31.03.2010 - 23:59:39 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /et$
01.04.2010 - 00:00:27 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /et$
01.04.2010 - 00:00:29 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 135: rm -f /var/log/xferlo$
01.04.2010 - 00:00:30 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 755: /et$
01.04.2010 - 00:00:31 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 152: rm -f /var/log/maill$
All websites have the Apache 2 Test Page powered by CentOS crap now after restarting ISPCONFIG!

Shit has really gone to hell here. The VHOSTS file is now empty. I didn't change a damn thing.

Last edited by crypted; 1st April 2010 at 07:53.
Reply With Quote
  #15  
Old 1st April 2010, 09:53
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Okay I am sure the problems revolve around:

Code:
dingle@its:~/ispconfig# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
sh: httpd: command not found
ls: /conf.d/*.conf: No such file or directory
sh: httpd: command not found
start
sh: postmap: command not found
sh: httpd: command not found
Segmentation fault
dingle@its:~/ispconfig# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
If that can be resolved, yay.

Code:
01.04.2010 - 02:58:52 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2669: WARNING: could not httpd -t  &> /dev/null
01.04.2010 - 02:58:52 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 2681: httpd syntax seems to contain errors, reloa
Code:
dingle@its:/etc/httpd/conf/vhosts# /usr/sbin/httpd -t
Syntax OK
dingle@its:/etc/httpd/conf/vhosts#
The MANAGEMENT screen in ISPCONFIG has the right information for httpd locations. I can't find the actual path to HTTPD or POSTMAP or CONF.D in any of the configuration files that I know of.

Where can I get those to be set right?

Last edited by crypted; 1st April 2010 at 10:19.
Reply With Quote
  #16  
Old 1st April 2010, 12:29
createch createch is offline
Senior Member
 
Join Date: Aug 2007
Posts: 118
Thanks: 24
Thanked 16 Times in 13 Posts
Default

Can you tell us what version of ISPConfig you are using ?
Reply With Quote
  #17  
Old 1st April 2010, 15:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

It seems as if your ISPConfig is currently using a wrong PATH variable and cannot find httpd therefore. Can you restart ISPConfig?
Code:
/etc/init.d/ispconfig_server restart
That should give it the PATH variable that you have in your current command line session.

Also, can you post the outputs of
Code:
which httpd
and
Code:
echo $PATH
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 1st April 2010, 16:54
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Code:
dingle@its:/home/dingle# /etc/init.d/ispconfig_server restart
Shutting down ISPConfig system...
/root/ispconfig/httpd/bin/apachectl stop: httpd stopped
ISPConfig system stopped!
Starting ISPConfig system...
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
ISPConfig system is now up and running!
Code:
dingle@its:/home/dingle# which httpd
httpd: Command not found
.

Code:
dingle@its:/home/dingle# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
dingle@its:/home/dingle#
And the relevant location of the daemon, as I would take it to be.

Code:
dingle@its:/home/dingle# whereis httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/lib/httpd /usr/include/httpd /usr/share/man/man8/httpd.8.gz
dingle@its:/home/dingle#
Reply With Quote
  #19  
Old 2nd April 2010, 09:03
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

I have tried every thing possible in the archives of HOWTOFORGE. Nothing can tell me where to find these path variables to fix the writeconf problem. My server is really screwed up now since it seems to not apply these frigging updates.

I reinstalled ISPCONFIG completely two days ago. Uninstall/reinstall Did not fix it. I did the ./setup for updating twice today. It has not solved it.

This just started happening without any major change to the server. Yum updates install every month, but it doesn't look like any of those should have affected this.

Please, any help would be so appreciated.

There is an issue with the path to httpd, postmap, and so forth.
Reply With Quote
  #20  
Old 2nd April 2010, 10:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

ISPConfig is not handling or editing the path variable in any kind, so updating ispconfig can not help to fix this problem.

Looks as if your path was modified and at least the directory /usr/sbin is missing now. Have you tried to reboot the server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updates manarak General 17 15th August 2009 19:33
Since this morning SMTP Server OFFLINE qriz Installation/Configuration 14 28th July 2009 16:05
Webalizer 2.01 conf from old bug problem stefanos Installation/Configuration 3 6th April 2009 10:33
can't access the admin interface, apache lost the conf? Esuk Installation/Configuration 7 24th July 2006 12:35
drupal setup with several vhosts scherpenzeel Installation/Configuration 4 2nd June 2006 13:13


All times are GMT +2. The time now is 02:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.