Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Jan 04, 2024, 06:39 AM

Title: Inconsistency in the table 'SubscriptionOutgoingMessagesStats' for the column
Post by: mahesh on Jan 04, 2024, 06:39 AM
Question:
Inconsistency in the table 'SubscriptionOutgoingMessagesStats' for the column subscriptionId: No rows in the table 'Subscriptions'
Symptoms
# plesk repair db -n
Inconsistency in the table 'SubscriptionOutgoingMessagesStats' for
the column subscriptionId: No rows in the table 'Subscriptions' with = 70 ..... [WARNING]
Broken references in table 'data_bases':
*************************** 1. row ***************************
subscriptionId: 70
collectDate: 2018-12-01 16:00:00
limitValue: 1000
passed: 1
rejected: 0
Error messages: 0; Warnings: 1; Errors resolved: 0

Cause
Database inconsistency with the unknown root cause.

Resolution
Using plesk repair db
:

#plesk repair db
Manually
#plesk db "delete from SubscriptionOutgoingMessagesStats where subscriptionId=70;"