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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 18th January 2012, 15:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

And please send me the debug output of the operation that removes a site on your server:

http://www.faqforge.com/linux/debugg...-of-a-failure/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 18th January 2012, 16:00
spynode spynode is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Please watch this video. It shows exactly what happens. And note that this was on updated ISPConfig installation. I will post log soon.

edit: looks like it only happens to already existing vhosts which have non -1 traffic quota. Newly created vhosts have traffic quota set to -1 by default and changing it to some value and then changing it back to -1 does not cause this.


This is output of server.sh when the files get deleted:

Quote:
[root@main nosite.tld]# /usr/local/ispconfig/server/server.sh
PHP Warning: PHP Startup: apc: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
18.01.2012-19:38 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
18.01.2012-19:38 - DEBUG - Found 2 changes, starting update process.
18.01.2012-19:38 - DEBUG - Calling function 'update' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_update'.
18.01.2012-19:38 - DEBUG - FTP User directory '/var/www/clients/client0/web35' does not exist. Creating it now.
18.01.2012-19:38 - DEBUG - Added ftpuser_dir: /var/www/clients/client0/web35
18.01.2012-19:38 - DEBUG - Processed datalog_id 1875
18.01.2012-19:38 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
18.01.2012-19:38 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
18.01.2012-19:38 - DEBUG - Removed symlink: rm -f /var/www/rabbit.lv
18.01.2012-19:38 - DEBUG - Removed symlink: rm -f /var/www/clients/client5/rabbit.lv
18.01.2012-19:38 - DEBUG - Moving site to new document root: mv /var/www/clients/client5/web35 /var/www/clients/client0
18.01.2012-19:38 - DEBUG - Creating symlink: ln -s /var/www/clients/client0/web35/ /var/www/rabbit.lv
18.01.2012-19:38 - DEBUG - Creating symlink: ln -s /var/www/clients/client0/web35/ /var/www/clients/client0/rabbit.lv
18.01.2012-19:38 - DEBUG - exec: chmod 751 /var/www/clients/client0/web35
18.01.2012-19:38 - DEBUG - exec: chmod 751 /var/www/clients/client0/web35/*
18.01.2012-19:38 - DEBUG - exec: chmod 710 /var/www/clients/client0/web35/web
18.01.2012-19:38 - DEBUG - exec: chmod 777 /var/www/clients/client0/web35/tmp
18.01.2012-19:38 - DEBUG - exec: chmod 755 /var/www/clients/client0/web35/log
18.01.2012-19:38 - DEBUG - exec: usermod --groups sshusers web35
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/cgi-bin
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/log
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/ssl
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/tmp
18.01.2012-19:38 - DEBUG - exec: chown -R web35:client0 /var/www/clients/client0/web35/web
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/log/error.log
18.01.2012-19:38 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/rabbit.lv.vhost
18.01.2012-19:38 - DEBUG - Creating symlink: /etc/httpd/conf/sites-enabled/100-rabbit.lv.vhost->/etc/httpd/conf/sites-available/rabbit.lv.vhost
18.01.2012-19:38 - DEBUG - Apache status is: 1
18.01.2012-19:38 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
Warning: DocumentRoot [/var/www/kiurgz.ihack.lv/web] does not exist
Warning: DocumentRoot [/var/www/nosite.lv/web] does not exist
[Wed Jan 18 17:38:32 2012] [warn] NameVirtualHost 85.31.99.200:443 has no VirtualHosts
[Wed Jan 18 17:38:32 2012] [warn] NameVirtualHost 85.31.99.199:443 has no VirtualHosts
18.01.2012-19:38 - DEBUG - Apache online status after restart is: 1
18.01.2012-19:38 - DEBUG - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
18.01.2012-19:38 - DEBUG - Calling function 'update' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
18.01.2012-19:38 - DEBUG - Removed symlink: rm -f /var/www/rabbit.lv
mv: cannot stat `/var/www/clients/client5/web35': No such file or directory
18.01.2012-19:38 - DEBUG - Moving site to new document root: mv /var/www/clients/client5/web35 /var/www/clients/client0
18.01.2012-19:38 - DEBUG - Creating symlink: ln -s /var/log/ispconfig/httpd/rabbit.lv /var/www/clients/client0/web35/log
PHP Warning: unlink(/var/www/rabbit.lv): No such file or directory in /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php on line 431
18.01.2012-19:38 - DEBUG - Creating symlink: ln -s /var/www/clients/client0/web35/ /var/www/clients/client0/rabbit.lv
18.01.2012-19:38 - DEBUG - exec: chmod 751 /var/www/clients/client0/web35
18.01.2012-19:38 - DEBUG - exec: chmod 751 /var/www/clients/client0/web35/*
18.01.2012-19:38 - DEBUG - exec: chmod 710 /var/www/clients/client0/web35/web
18.01.2012-19:38 - DEBUG - exec: chmod 777 /var/www/clients/client0/web35/tmp
18.01.2012-19:38 - DEBUG - exec: chmod 755 /var/www/clients/client0/web35/log
18.01.2012-19:38 - DEBUG - exec: usermod --groups sshusers web35
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/cgi-bin
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/log
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/ssl
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/tmp
18.01.2012-19:38 - DEBUG - exec: chown -R web35:client0 /var/www/clients/client0/web35/web
18.01.2012-19:38 - DEBUG - exec: chown web35:client0 /var/www/clients/client0/web35/log/error.log
18.01.2012-19:38 - DEBUG - SSL Disabled.
PHP Warning: file_put_contents(/etc/nginx/sites-available/rabbit.lv.vhost): failed to open stream: No such file or directory in /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php on line 889
18.01.2012-19:38 - DEBUG - Writing the vhost file: /etc/nginx/sites-available/rabbit.lv.vhost
PHP Warning: symlink(): No such file or directory in /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php on line 919
18.01.2012-19:38 - DEBUG - Creating symlink: /etc/nginx/sites-enabled/100-rabbit.lv.vhost->/etc/nginx/sites-available/rabbit.lv.vhost
18.01.2012-19:38 - DEBUG - nginx status is: 1
18.01.2012-19:38 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
Warning: DocumentRoot [/var/www/kiurgz.ihack.lv/web] does not exist
Warning: DocumentRoot [/var/www/nosite.lv/web] does not exist
Warning: DocumentRoot [/var/www/rabbit.lv/web] does not exist
[Wed Jan 18 17:38:37 2012] [warn] NameVirtualHost 85.31.99.200:443 has no VirtualHosts
[Wed Jan 18 17:38:37 2012] [warn] NameVirtualHost 85.31.99.199:443 has no VirtualHosts
18.01.2012-19:38 - DEBUG - nginx online status after restart is: 1
18.01.2012-19:38 - DEBUG - Processed datalog_id 1876
18.01.2012-19:38 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
[root@main nosite.tld]#

Last edited by spynode; 18th January 2012 at 16:48.
Reply With Quote
  #13  
Old 18th January 2012, 17:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Seems as if your server uses the apache and nginx plugin at the same time while only one of these two should be enabled at a time and additionally the client which owns the website was changed which caused a change of the path. The path change in conjunction with the two enabled server plugins caused the problem, so the problem is not directly related to the traffic quota. Please post the output of:

netstat -tap

and

ls -la /usr/local/ispconfig/server/plugins-enabled/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #14  
Old 18th January 2012, 17:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Please post which Linux distribution do you use?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 18th January 2012, 21:42
spynode spynode is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
drwxr-x--- 2 ispconfig ispconfig 4096 Jan 17 04:53 .
drwxr-x--- 13 ispconfig ispconfig 4096 Nov 30 2009 ..
lrwxrwxrwx 1 ispconfig ispconfig 68 Nov 30 2009 apache2_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 71 Jan 17 04:53 apps_vhost_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apps_vhost_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 73 Nov 30 2009 cron_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_jailkit_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 65 Nov 30 2009 cron_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/cron_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 69 Nov 30 2009 firewall_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/firewall_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 73 Nov 30 2009 ftpuser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/ftpuser_base_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 68 Nov 30 2009 getmail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/getmail_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 65 Nov 30 2009 mail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mail_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 69 Nov 30 2009 maildrop_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/maildrop_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 68 Jan 17 04:53 mailman_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mailman_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 75 Nov 30 2009 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 77 Nov 30 2009 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 66 Jan 17 04:53 nginx_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 75 Nov 30 2009 postfix_filter_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_filter_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 75 Nov 30 2009 postfix_server_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_server_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 75 Nov 30 2009 shelluser_base_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 78 Nov 30 2009 shelluser_jailkit_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php
lrwxrwxrwx 1 ispconfig ispconfig 76 Nov 30 2009 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
It's Centos 5.4

You are right it doesn't happen with gnix plugin off.
Reply With Quote
  #16  
Old 19th January 2012, 09:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Ok, so the remaining question is how got this plugin activated. Did you or your client activate it or did the ISPConfig updater activate it. The ISPConfig updater and installer contain code that prevents that both plugins get activated at the same time even when apache and nginx are both installed. I tested this here with Debian by installing a nginx server beside the existing apache server and the updater enabled only the apache plugin and skipped the nginx plugin. So only one of the plugins was enabled at a time, never both together.

I will redo the test with centos to see if that makes any difference.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 19th January 2012, 12:45
spynode spynode is offline
Junior Member
 
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Plugin was not activated by me or client. I have no idea what brought it up. For me the real question is - why such a situation causes such a terrible damage.
Reply With Quote
  #18  
Old 19th January 2012, 14:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
 
Default

I tested it on CentOS and I'am not able to trick the ispconfig 3.0.4.x updater to enable both plugins, so I can not reproduce this on current versions. The only option that I can think of is that someone tried a downgrade of ISPConfig on the server so that the updater from a ISPConfig version < 3.0.4 (e.g. 3.0.3.3) was run on a server again that was updated to ISPConfig > 3.0.4 already.

In your case, several things came together in a combination which is not common for a ISPConfig setup plus that there must have happened some kind of ISPConfig software downgrade attempt which explaines why no other users had this problem yet.

A server where nginx and apache are installed at the same time. This is a combination of services that is not used by ISPConfig normally and does not exist as ISPConfig perfect setup guide. ISPConfig uses either nginx or apache but not both. Nevertehless we took care of this situation in the installer and updater of ISPConfig > 3.0.4 so that not both plugins were activated at a time.

The problem itself is caused by the fact that the client of the website was changed and the nginx and apache plugins were both enabled. So both plugins tried to do the same thing after another, they moved the website from the old path to the new path on the harddisk and that failed for the second plugin as the site was moved already to the new location.

I will add a check in ispconfig that checks at runtime and not just in the installer and updater that ensures that not both plugins are enabled.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 19th January 2012 at 15:21. Reason: typos
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
Quota problems, can't find the files Jorem General 3 13th February 2010 21:39
quota install problem Al1937 General 1 13th February 2010 09:05
changing vhost.conf files manarak General 1 20th May 2009 00:25
chgrp error new user DKA General 15 28th July 2008 17:45
ispconfig version 2.2.23 and exceeded quota buhler General 1 25th April 2008 18:27


All times are GMT +2. The time now is 07:52.


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