• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

error when deleting mail account

X

xophe

Guest
Hi all,

I get this error when I try to delete a particular email account. For the others it works fine.

Error: Can't create Account object: Account: unable to select: no such row in the table

0: /usr/local/psa/admin/plib/common_func.php3:156
psaerror(string 'Error: Can't create Account object: Account: unable to select: no such row in the table')
1: /usr/local/psa/admin/htdocs/domains/mail/mail_name_edit.php:145

Any idea?
Xophe
 
Make sure it really exists in the db first

Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -b
use psa;
select * from mail where ( mail_name='test' and dom_id = ( select id from domains where displayname='domain.com') );

That will show you if the username (ie test if email is [email protected]) exists in the psa database for the domain test.com)

if it doesnt then you got problems. If it does, then you can manually delete it
Code:
delete from mail where ( mail_name='test' and dom_id = ( select id from domains where displayname='domain.com') );

You should see something like
Query OK, 1 row affected (0.03 sec)

Then it should no longer show up in plesk. After that you can manually clean the account out of any qmail places it may still exist if any.
 
Hi,

Also, please try to check manually whether user is there in mail server or not?
 
Thanks a lot for the answers.
I have found and deleted the line in the mail table and after deleted manually the qmail account.

There was a problem with the directory of the account to delete:
cd /var/qmail/mailnames/domain.com
ls -l test
ls: test/spamcheck16258: Input/output error
 
Back
Top