Azurel
Silver Pleskian
Username:
TITLE
Error: mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
AlmaLinux 8.6, Plesk Obsidian 46
PROBLEM DESCRIPTION
I want add mail service and checked only checkbox for "Activate mail service on this domain"
URL: /smb/mail-settings/edit/id/46/domainId/46
to a already existing Domain since months and get this error:
/var/log/plesk/panel.log
Repair not helped
--
After enabled debug there and tried enable mail there was no other message in panel.log. Nothing with "/opt/psa/admin/plib/Mail/AbstractFacade.php" or part of it.
I have checked db with
> sqlite3 /var/lib/plesk/mail/outgoing/data.db
select * from vhost_ids;
> ......3f7c|30
+
select * from domains;
> 30|example.jp|6|50
and see all domain-ids in both tables. No missing entry.
STEPS TO REPRODUCE
unknown
ACTUAL RESULT
EXPECTED RESULT
No error message
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Error: mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
AlmaLinux 8.6, Plesk Obsidian 46
PROBLEM DESCRIPTION
I want add mail service and checked only checkbox for "Activate mail service on this domain"
URL: /smb/mail-settings/edit/id/46/domainId/46
to a already existing Domain since months and get this error:
Error: mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid
Search for related Knowledge Base articles
/var/log/plesk/panel.log
Code:
stderr:
ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid
[2022-09-01 13:24:37.039] 1054275:63109674a3b62 ERR [panel] mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid
[2022-09-01 13:24:37.039] 1054275:63109674a3b62 ERR [panel.ui] mailmng-outgoing failed: ERROR:__main__:UNIQUE constraint failed: vhost_ids.guid<br><a href='http://kb.plesk.com/plesk-error/search?metaId=6c73567f2c2ef5165c88c8d1691acabb&messageId=aed4d8eef21597253ddaf9f2fee4f22d&file=Agent.php&line=196&type=PleskUtilException&version=18.0.46&message=mailmng-outgoing+failed%3A+ERROR%3A__main__%3AUNIQUE+constraint+failed%3A+vhost_ids.guid' target='_blank'>Search for related Knowledge Base articles</a>
[2022-09-01 13:27:11.185] 1054274:6310970eeee8c ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailmng-outgoing' '--add-domain' '--main-domain-name=example.com' '--domain-name=example.jp' '--out-limit=50'] with exit code [1]
[2022-09-01 13:27:11.185] 1054274:6310970eeee8c ERR [panel] '/usr/local/psa/admin/bin/mailmng-outgoing' '--add-domain' '--main-domain-name=example.com' '--domain-name=example.jp' '--out-limit=50' failed with code 1.
stdout:
stderr:
ERROR:__main__:UNIQUE constraint failed: domains.name
[2022-09-01 13:27:11.342] 1054274:6310970eeee8c ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailmng-outgoing' '--register-vhost-id' '--domain-name=example.jp'] with exit code [1]
[2022-09-01 13:27:11.342] 1054274:6310970eeee8c ERR [panel] '/usr/local/psa/admin/bin/mailmng-outgoing' '--register-vhost-id' '--domain-name=example.jp' failed with code 1.
Repair not helped
# plesk repair db -y
Checking the Plesk database using the native database server tools .. [OK]
Checking the structure of the Plesk database ........................ [OK]
Checking the consistency of the Plesk database ...................... [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0
# plesk repair mail -y
Repairing the mail server configuration
Reconfiguring all domains and mailboxes ......................... [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0
--
After enabled debug there and tried enable mail there was no other message in panel.log. Nothing with "/opt/psa/admin/plib/Mail/AbstractFacade.php" or part of it.
I have checked db with
> sqlite3 /var/lib/plesk/mail/outgoing/data.db
select * from vhost_ids;
> ......3f7c|30
+
select * from domains;
> 30|example.jp|6|50
and see all domain-ids in both tables. No missing entry.
STEPS TO REPRODUCE
unknown
ACTUAL RESULT
EXPECTED RESULT
No error message
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug