Plesk

Inconsistency in the table ‘SubscriptionOutgoingMessagesStats’ for the column subscriptionId: No rows in the table ‘Subscriptions’

Symptoms

Cause

Database inconsistency with the unknown root cause.

Resolution

Using plesk repair db

  1. Connect to the server via SSH or RDP

  2. Make a backup of the Plesk database: How to backup/restore a Plesk database dump.

  3. Execute the following command and remove the orphaned entries when it's prompted:

    # plesk repair db

Manually

  1. Connect to the server via SSH or RDP
  2. Make a backup of the Plesk database: How to backup/restore a Plesk database dump.
  3. Use the next command to remove the orphaned records:

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