• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Login Problem...

S

Silence

Guest
Hi There,


Yesterday i create a new account client for one of our costumers, when he try to login, it gets this error:

ERROR: PleskMainDBException
DB query failed: Duplicate entry '4-190-custom' for key 2

Additionally, an exception has occurred while trying to report this error: PleskMainDBException
DB query failed: Duplicate entry '4-190-custom' for key 2

0: C:\Program Files\SWsoft\Plesk\admin\plib\common_func.php3:213
db_query(string 'insert into `DashboardPreset` ( `name`, `type`, `uri`) values( '4-190', 'custom', '/plesk/client@/dashboard/')')
1: C:\Program Files\SWsoft\Plesk\admin\plib\class.Table.php:336
Table->update(array)
2: C:\Program Files\SWsoft\Plesk\admin\plib\class.cObject.php:333
cObject->update()
3: C:\Program Files\SWsoft\Plesk\admin\plib\dashboard\DashboardPreset.php:183
DashboardPreset->update()
4: C:\Program Files\SWsoft\Plesk\admin\plib\user\User.php:401
User->addDashboardRecent(object of type plesk__client__properties)
5: C:\Program Files\SWsoft\Plesk\admin\plib\class.Form.php:502
Form->FastPrint()
6: C:\Program Files\SWsoft\Plesk\admin\htdocs\clients\cl_ed.php3:336


Solutions?

I try to check instalation Plesk, but nothing.

Thanks in Advance!
 
Silence1

This error actually means that there is alreadt record exists in your plesk database for that client entry. You can check it with the following query:

mysql> SELECT * FROM DashboardPreset WHERE name = '4-190';

and if returns some entries - just remove them manually:

mysql> DELETE FROM DashboardPreset WHERE name = '4-190';

P.S. Please do not forget to backup original database before doing any changes - just in case.
 
Back
Top