Closed almereyda closed 7 years ago
Looks like the generation fails when there is nothing to migrate, do you confirm ?
I cannot, as I don't have access to any migrations object or location where I could look for pending ones. The mailboxes I had specified were full of stuff.
On 29 July 2016 at 08:12, Antoine Nguyen notifications@github.com wrote:
Looks like the generation fails when there is nothing to migrate, do you confirm ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/modoboa/modoboa-imap-migration/issues/7#issuecomment-236102690, or mute the thread https://github.com/notifications/unsubscribe-auth/ABka_Lg80-sg3iTjqZHr8BEKnpYjjQ66ks5qaZnigaJpZM4JXijb .
Ok, I finally reproduced this issue! It happens if you forgot to run the migrate command and try to launch the management command... Looks like the real error is catched by Django and silenced in some way.
If one sets the shell of modoboa's
vmail
user to/bin/bash
in/etc/passwd
, the following can be reproduced with an updated modoboa instance:The following traceback reads
Triaging the errored ended up to be looking at https://github.com/modoboa/modoboa-imap-migration/blob/master/modoboa_imap_migration/management/commands/generate_offlineimap_config.py#L38 and https://github.com/modoboa/modoboa-imap-migration/blob/master/modoboa_imap_migration/templates/modoboa_imap_migration/offlineimap.conf where we learned the
migrations
object may not be correctly populated, but that's just a guess..offlineimaprc
is then existing, but empty.Rolling back such a failing plugin installation attempt is yet another story.