mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #3757] can't delete identity #1894
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1894
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xinomilo on GitHub (Oct 16, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3757
Impacted versions
Steps to reproduce
try to delete any identity.
Current behavior
uwsgi log :
POST /api/v2/accounts/20/delete/ => generated 566 bytes in 478 msecs (HTTP/2.0 500) 5 headers in 181 bytes (1 switches on core 0)
attached file contains debug info send from modoboa with Subject : [Django] ERROR (EXTERNAL IP): Internal Server Error: /api/v2/accounts/20/delete/
already seen issue #3105 but (in anycase) there are no migrations pending.
"$ python manage.py makemigrations
No changes detected
"
" python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, authtoken, autoreply, contacts, contenttypes, core, django_rq, dmarc, dnstools, lib, limits, maillog, oauth2_provider, otp_static, otp_totp, relaydomains, reversion, sessions, sites, transport
Running migrations:
No migrations to apply.
"
Expected behavior
remove identity and maildir.
info.txt
thanks,
@xinomilo commented on GitHub (Oct 16, 2025):
hmm, something to do with imap_migration.
when tying to login as a user i get this :
Error: Application imap_migration not registered
had disabled imap_migration module a few months ago, but somehow it was still needed(?)
just re-enabled module, run all manage.py migrate | check-deploy | etc, and then deleting identity works.. (?!)
should i open another bug on how to remove imap_migration module, without affecting other modoboa functions?
@Spitfireap commented on GitHub (Oct 31, 2025):
You should be able to deactivate the imap_migration app even-though there is no real benefits doing it and it might break some things in the future.
Try this : removing it from INSTALLED_APPS and restart uwsgi service.
If the issue appears again, then re-add it to INSTALLED_APPS and execute this :
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py migrate modoboa.imap_migration zeroThen remove it from INSTALLED_APPS.
@xinomilo commented on GitHub (Nov 6, 2025):
so, decided to leave it in MODOBOA_APPS, rerun migrate/collectstatic/check-deploy + restart uwsgi , and leave imap_migration as-is.
i think we can close this bug....(?)
since you suggest leaving imap_migration installed to avoid future issues, guess it doesn't hurt to, even though i won't be using it.
thx :)