PDA

View Full Version : Problem using remoting for Client delete


krakoukas
3rd July 2008, 17:14
Hi,

I am using ISPConfig (Version: 2.2.18) as a base system and user account management for my project http://www.zicmama.com
It is running pretty well but some weird behaviors happens when deleting a Client:


$soap_client = $my_soap['soap_client'];
$session_id = $my_soap['session_id'];
// Deleting Client
$params = array ( 'sid' => $session_id,
'module' => 'kunde',
'function' => 'kunde_delete',
'params' => array ( 'kunde_title' => $user_id));

$soap_client->call('service',$params);
if($err = $soap_client->getError()) die("Error remove client: ".$err);

When everything runs well, I have in logs:

03.07.2008 - 08:07:37 => INFO - Signalfile Set: insert
03.07.2008 - 08:07:37 => INFO - Signalfile Set: delete: do
03.07.2008 - 08:07:37 => INFO - Signalfile Set: empty trash

But very often (one every two times), I have web sites or users form other Client account put in the Trash??
In this case ISPconfig logs:

03.07.2008 - 08:11:31 => INFO - Signalfile Set: insert
03.07.2008 - 08:11:31 => INFO - Signalfile Set: insert
03.07.2008 - 08:11:31 => INFO - Signalfile Set: delete: do
03.07.2008 - 08:11:31 => INFO - Signalfile Set: delete: do
03.07.2008 - 08:11:31 => INFO - Signalfile Set: insert
03.07.2008 - 08:11:31 => INFO - Signalfile Set: delete: do
03.07.2008 - 08:11:31 => INFO - Signalfile Set: empty trash

I have to restore them before emptying Trash...

Does anybody tried to use remoting this way and has problem with it?
Thanks

till
4th July 2008, 13:04
You delete the kunde identifies by "kunde_title". Please post the title of the client that shall be deleted and the title of the client that is accidently deleted together with this client.

krakoukas
6th July 2008, 17:31
In this example, I remove Client "martinez"
And I have soumsoum, zeliane, rider260, dayayanis affected by deletion.
Fortunately, I can restore them before emptying Trash.

Here is the Trash after remotin deletion:
Site: Site soumsoum
Site: Site zeliane
Site: Site martinez
Utilisateur: martinez
Utilisateur: rider260
Utilisateur: dayayanis

Here is the ispconfig log:

06.07.2008 - 16:26:25 => INFO - Signalfile Set: insert
06.07.2008 - 16:26:25 => INFO - Signalfile Set: insert
06.07.2008 - 16:26:25 => INFO - Signalfile Set: delete: do
06.07.2008 - 16:26:25 => INFO - Signalfile Set: delete: do
06.07.2008 - 16:26:25 => INFO - Signalfile Set: insert
06.07.2008 - 16:26:25 => INFO - Signalfile Set: delete: do
06.07.2008 - 16:26:25 => INFO - Signalfile Set: empty trash
06.07.2008 - 16:26:31 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 257: setquota -g web363 1048576 1049600 0 0 -a &> /dev/null
06.07.2008 - 16:26:31 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 258: setquota -T -g web363 604800 604800 -a &> /dev/null
06.07.2008 - 16:26:31 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 277: Connected successfully
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 257: setquota -g web365 1048576 1049600 0 0 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 258: setquota -T -g web365 604800 604800 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 277: Connected successfully
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 514: Connected successfully
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 575: MySQL FLUSH PRIVILEGES
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 514: Connected successfully
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 575: MySQL FLUSH PRIVILEGES
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 514: Connected successfully
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 575: MySQL FLUSH PRIVILEGES
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 995: setquota -u soumsoum 0 0 0 0 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - USER:
soumsoum:x:10229:10229:soumsoum:/var/www/web229/./:/dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1013: rm -f /var/spool/mail/soumsoum
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 995: setquota -u zeliane 0 0 0 0 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - USER:
zeliane:x:10293:10295:zeliane:/var/www/web295/./:/dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1013: rm -f /var/spool/mail/zeliane
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 995: setquota -u martinez 0 0 0 0 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - USER:
martinez:x:10295:10297:martinez:/var/www/web297/./:/dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1013: rm -f /var/spool/mail/martinez
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 995: setquota -u rider260 0 0 0 0 -a &> /dev/null
06.07.2008 - 16:26:32 => INFO - USER:
rider260:x:10361:10363:rider260:/var/www/web363/./:/dev/null
06.07.2008 - 16:26:32 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1013: rm -f /var/spool/mail/rider260
06.07.2008 - 16:26:33 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 995: setquota -u dayayanis 0 0 0 0 -a &> /dev/null
06.07.2008 - 16:26:33 => INFO - USER:
dayayanis:x:10363:10365:dayayanis:/var/www/web365/./:/dev/null
06.07.2008 - 16:26:33 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1013: rm -f /var/spool/mail/dayayanis
06.07.2008 - 16:26:33 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /etc/postfix/local-host-names~
06.07.2008 - 16:26:34 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/postfix/virtusertable~
06.07.2008 - 16:26:34 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
06.07.2008 - 16:26:34 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1284: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apache2/vhosts/Vhosts_ispconfig.conf~
06.07.2008 - 16:26:36 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2577: httpd -t &> /dev/null
06.07.2008 - 16:26:36 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2584: httpd syntax ok
06.07.2008 - 16:26:37 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/apache2 reload &> /dev/null
06.07.2008 - 16:26:37 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix stop &> /dev/null
06.07.2008 - 16:26:38 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/init.d/postfix start &> /dev/null
06.07.2008 - 16:26:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2051: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig.conf~
06.07.2008 - 16:26:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2636: rm -fr /var/www/martinez.zicmama.com
06.07.2008 - 16:26:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2637: rm -fr /var/www/web297
06.07.2008 - 16:26:38 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 2642: setquota -g web297 0 0 0 0 -a &> /dev/null

Thanks for your help