Hi
zmblobchk crashes on with "no such account: e00c1c8a-6341-473f-a6ed-97007efb55f6" I checked the mysql db
and found an entry of a non-existing account:
the account does not exist in the ldap ... I tried to remove the entry, but there is a foreign key in the way...
Is there a proper <<Zimbra>> way to clean up the entry ?
zmblobchk crashes on with "no such account: e00c1c8a-6341-473f-a6ed-97007efb55f6" I checked the mysql db
and found an entry of a non-existing account:
Code:
MariaDB [zimbra]> select * from mailbox where account_id="e00c1c8a-6341-473f-a6ed-97007efb55f6";+-----+----------+--------------------------------------+-----------------+--------------------+---------------+-----------------+-------------------+---------------+---------------+----------------+----------------------------------+------------------+--------------+--------------------+-----------------+---------+---------------+----------------------+| id | group_id | account_id | index_volume_id | item_id_checkpoint | contact_count | size_checkpoint | change_checkpoint | tracking_sync | tracking_imap | last_backup_at | comment | last_soap_access | new_messages | idx_deferred_count | highest_indexed | version | last_purge_at | itemcache_checkpoint |+-----+----------+--------------------------------------+-----------------+--------------------+---------------+-----------------+-------------------+---------------+---------------+----------------+----------------------------------+------------------+--------------+--------------------+-----------------+---------+---------------+----------------------+| 355 | 55 | e00c1c8a-6341-473f-a6ed-97007efb55f6 | 2 | 256 | 0 | 0 | 1 | 0 | 0 | NULL | hans.muster@example.ch | 0 | 0 | 0 | NULL | 2.7 | 0 | 0 |+-----+----------+--------------------------------------+-----------------+--------------------+---------------+-----------------+-------------------+---------------+---------------+----------------+----------------------------------+------------------+--------------+--------------------+-----------------+---------+---------------+----------------------+
Code:
delete from mailbox where account_id ="e00c1c8a-6341-473f-a6ed-97007efb55f6";ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`mboxgroup55`.`mail_item`, CONSTRAINT `fk_mail_item_mailbox_id` FOREIGN KEY (`mailbox_id`) REFERENCES `zimbra`.`mailbox` (`id`))MariaDB [zimbra]> delete from mailbox where account_id="e00c1c8a-6341-473f-a6ed-97007efb55f6";ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`mboxgroup55`.`mail_item`, CONSTRAINT `fk_mail_item_mailbox_id` FOREIGN KEY (`mailbox_id`) REFERENCES `zimbra`.`mailbox` (`id`))
Statistics: Posted by oetiker — Thu Dec 28, 2023 7:13 am