[GH-ISSUE #543] Internal Server Error/Duplicate entry: when try to update an mailbox #519

Closed
opened 2026-02-27 11:12:11 +03:00 by kerem · 4 comments
Owner

Originally created by @ghost on GitHub (Apr 3, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/543

Hi,

From the super admin panel, when I try to update an mailbox (change the quota or anything) and the domain contains more than one account, I get the following error:

http://pastie.org/private/pynb5box1agvpgsykdla

On the other hand, when I try to update an mailbox that have only one account per domain, then everything is updated fine.

My setup is the same as posted here (actually, it's the same server): https://github.com/tonioo/modoboa/issues/185#issuecomment-39299680

Thanks in advance for any help you are able to provide.

Originally created by @ghost on GitHub (Apr 3, 2014). Original GitHub issue: https://github.com/modoboa/modoboa/issues/543 Hi, From the super admin panel, when I try to update an mailbox (change the quota or anything) and the domain contains more than one account, I get the following error: http://pastie.org/private/pynb5box1agvpgsykdla On the other hand, when I try to update an mailbox that have only one account per domain, then everything is updated fine. My setup is the same as posted here (actually, it's the same server): https://github.com/tonioo/modoboa/issues/185#issuecomment-39299680 Thanks in advance for any help you are able to provide.
kerem 2026-02-27 11:12:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Apr 3, 2014):

Hi,

can you take a look at the admin_quota table? (You should see records with empty 'mailbox_id' fields, which is not expected)

<!-- gh-comment-id:39492528 --> @tonioo commented on GitHub (Apr 3, 2014): Hi, can you take a look at the admin_quota table? (You should see records with empty 'mailbox_id' fields, which is not expected)
Author
Owner

@ghost commented on GitHub (Apr 3, 2014):

Yes, some mbox_id is NULL.

<!-- gh-comment-id:39493415 --> @ghost commented on GitHub (Apr 3, 2014): Yes, some mbox_id is NULL.
Author
Owner

@tonioo commented on GitHub (Apr 3, 2014):

Ok, so it means dovecot created those records before modoboa, which is embarassing. This error only occurs when MySQL in in use... you can fix it by filling empty mbox_id fields with the appropriate values (the ID of the corresponding mailbox).

In the future, I'll have to find a way to avoid this issue.

<!-- gh-comment-id:39495664 --> @tonioo commented on GitHub (Apr 3, 2014): Ok, so it means dovecot created those records before modoboa, which is embarassing. This error only occurs when MySQL in in use... you can fix it by filling empty mbox_id fields with the appropriate values (the ID of the corresponding mailbox). In the future, I'll have to find a way to avoid this issue.
Author
Owner

@ghost commented on GitHub (Apr 3, 2014):

I changed manually one of mbox_id with the same id from admin_mailbox table. It worked! =D

Thank you, everything is fine now!

<!-- gh-comment-id:39496002 --> @ghost commented on GitHub (Apr 3, 2014): I changed manually one of mbox_id with the same id from admin_mailbox table. It worked! =D Thank you, everything is fine now!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#519
No description provided.