• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Mailbox create issue

E

ecellini

Guest
Hello,
When I create a mailbox for a domain Plesk show this error, do you have some idea to resolve this issue?

The Error details:

- Operation failed

Additional Information
<b>Source:</b> Microsoft OLE DB Provider for SQL Server<br/><b>Description:</b> Violation of PRIMARY KEY constraint 'permissionsPrimaryKey'. Cannot insert duplicate key in object 'dbo.permissions'.
---------------------- Debug Info -------------------------------
0: common_func.php3:163
com->execute(string 'INSERT INTO [Permissions] ([id],[permission],[value]) VALUES (2444,N'cp_access',N'true')', NULL null)
1: common_func.php3:163
db_query(string 'INSERT INTO [Permissions] ([id],[permission],[value]) VALUES (2444,'cp_access','true')')
2: common_func.php3:207
db_query_ex(string 'INSERT INTO [Permissions] ([id],[permission],[value]) VALUES ?(VALUES)', array)
3: SQLInsertQuery.php:36
SQLMultiInsertQuery->execute()
4: class.ListTable.php:112
ListTable->endListUpdate()
5: class.aListSQL.php:232
aListSQL->updateList()
6: class.Permissions.php:191
Permissions->updateList()
7: MailName.php:622
Mailname->_onMailNameCPAccessUpdate(object of type MailNameCPAccess)
8: MailNameCPAccess.php:145
MailNameCPAccess->update()
9: mail_name_preferences.php:129
require(string 'C:\Program Files (x86)\Parallels\Plesk\admin\htdocs\domains\mail\mail_name_preferences.php')
10: plesk.php:56


Best Regards,
Emanuele
 
Hello,

Probably you can troubleshoot this error using Microsoft SQL Server Management Studio Express:

http://www.microsoft.com/downloadS/...AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en

Then you can look through psa database in the table permissions and check if there are any values like in the following error string:

db_query(string 'INSERT INTO [Permissions] ([id],[permission],[value]) VALUES (2444,'cp_access','true')')

Most probably there are some old entries left in the database that were not removed to some circumstances.
Also before applying any changes we recommend to dump the Parallels Plesk database.
 
Back
Top