Can't delete the reseller, PHP Warning: Releasing semaphore 8 in request cleanup

Refers to:

  • Plesk 11.0 for Linux

Created:

2016-11-16 12:55:16 UTC

Modified:

2016-12-21 19:32:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Can't delete the reseller, PHP Warning: Releasing semaphore 8 in request cleanup

Symptoms

I can't delete the reseller and get this error in Plesk Panel GUI:

"Internal error"

on the Linux console I get a little bit more feedback:

vms2:~$ /usr/local/psa/bin/reseller --remove 101
PHP Fatal error: Call to undefined method mail_Facade::redirectOnOff() in /usr/local/psa/admin/plib/mail/AbstractFacade.php on line 208
PHP Warning: Releasing semaphore 8 in request cleanup; File: Unknown, Line: 0

Cause

Mail account has empty password:

mysql> select mail.mail_name,mail.account_id,accounts.id from mail LEFT JOIN accounts ON mail.account_id=accounts.id where accounts.id is NULL;
+-----------+------------+------+
| mail_name | account_id | id |
+-----------+------------+------+
| support12 | 1171 | NULL |
+-----------+------------+------+
1 row in set (0.00 sec)

Resolution

Find the mail account with empty password and reset password in Plesk Panel GUI.Or you can just remove affected row in database.

  1. Make dump before:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow`  psa > /root/psa.dump.`date +%F.%s`.sql
  2. Find and remove mail account having empty password:

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

    mysql> select mail.mail_name,mail.account_id,accounts.id from mail LEFT JOIN accounts ON mail.account_id=accounts.id where accounts.id is NULL;
    +-----------+------------+------+
    | mail_name | account_id | id |
    +-----------+------------+------+
    | support12 | 1171 | NULL |
    +-----------+------------+------+
    1 row in set (0.00 sec)

    mysql> select id, mail_name, account_id, dom_id from mail where mail_name='support12';
    +-----+-----------+------------+---------+
    | id | mail_name | account_id | dom_id |
    +-----+-----------+------------+---------+
    | 804 | support12 | 1171 | 168 |
    +-----+-----------+------------+---------+
    1 row in set (0.00 sec)

    mysql> delete from mail where mail_name='support12';
    Query OK, 1 row affected (0.26 sec)
Have more questions? Submit a request
Please sign in to leave a comment.