Bug 251093

Summary: kmail-migrator fails migraton of IMAP resource
Product: [Frameworks and Libraries] Akonadi Reporter: Olivier LAHAYE <olivier.lahaye1>
Component: MigrationAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Olivier LAHAYE 2010-09-13 14:22:16 UTC
Version:           4.5 (using Devel) 
OS:                Linux


Kmail fails to start stating the command below failed.
Here is the output:

$ /usr/bin/kmail-migrator --interactive-on-change
kmail-migrator(4073) InfoDialog::message: "Beginning KMail migration..."
kmail-migrator(4073) KMail::KMailMigrator::migrate: Copying content from kmailrc
kmail-migrator(4073) KMail::KMailMigrator::migrateTags: Tag Groups: ("MessageTag #0", "MessageTag #1", "MessageTag #2") MigratedTags: ("MessageTag #0", "MessageTag #1", "MessageTag #2") Unmigrated Tags: QSet()
kmail-migrator(4073) InfoDialog::message: "Trying to migrate 'Exchange CEA (imap)' to resource..."
kmail-migrator(4073) InfoDialog::message: "Creating instance of type akonadi_imap_resource"
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
kmail-migrator(4073) InfoDialog::message: "Created imap resource"
kmail-migrator(4073)/kdeui (Wallet) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().
kmail-migrator(4073) KMail::KMailMigrator::migrateImapAccount: Starting IMAP collection migration: options= QFlags(0x2)
kmail-migrator(4073) AbstractCollectionMigrator::Private::recheckBrokenResource: mStatus= 1 mResource.status()= 2
kmail-migrator(4073) AbstractCollectionMigrator::migrationCancelled: processed 0 collection seen 0
kmail-migrator(4073) KMail::KMailMigrator::imapFoldersMigrationFinished: imapMigrationFinished: instance= "akonadi_imap_resource_12" error= "Resource '' is not working correctly"
kmail-migrator(4073): "Migration of 'Exchange CEA (imap)' to Akonadi resource failed: Resource '' is not working correctly" 
kmail-migrator(4073) InfoDialog::message: "Local folders have already been migrated."
kmail-migrator(4073) InfoDialog::message: "Migration successfully completed."
kmail-migrator(4073) KMail::KMailMigrator::migrationDone: Deleting 1 failed resource instances
$ echo $?
3



Reproducible: Always

Steps to Reproduce:
see above.

Actual Results:  
"Migration of 'Exchange CEA (imap)' to Akonadi resource failed: Resource '' is not working correctly"

Expected Results:  
Migration should succeed.

Could be related to this:
https://qa.mandriva.com/show_bug.cgi?id=60969
=> qdbus --system org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager org.freedesktop.NetworkManager.state
result is 4 instead of 3

Network is fully functionnal, but KDE NetworkManager is empty. This may be the problem.

The imap server is an exchange server with imap extention activated.

My imap password is about to expire (requesto to change it upon login).
Comment 1 Olivier LAHAYE 2010-09-13 16:16:12 UTC
Changed my imap password on the exchange server. same problem.
The new log showing a step that I have to enter my password (I entered the new password as the kdewallet stored one was now obsolete) is interresting as there is  a step that is strange:
QDBusConnection: name 'org.kde.kwalletd' had owner '' but we thought it was ':1.102'



$ /usr/bin/kmail-migrator --interactive-on-change
kmail-migrator(8063) InfoDialog::message: "Beginning KMail migration..."
kmail-migrator(8063) KMail::KMailMigrator::migrate: Copying content from kmailrc
kmail-migrator(8063) KMail::KMailMigrator::migrateTags: Tag Groups: ("MessageTag #0", "MessageTag #1", "MessageTag #2") MigratedTags: ("MessageTag #0", "MessageTag #1", "MessageTag #2") Unmigrated Tags: QSet()
kmail-migrator(8063) InfoDialog::message: "Trying to migrate 'Exchange CEA (imap)' to resource..."
kmail-migrator(8063) InfoDialog::message: "Creating instance of type akonadi_imap_resource"
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
QPainter::end: Painter ended with 2 saved states
kmail-migrator(8063) InfoDialog::message: "Created imap resource"
kmail-migrator(8063)/kdeui (Wallet) KWallet::Wallet::openWallet: Pass a valid window to KWallet::Wallet::openWallet().
kmail-migrator(8063)/kdeui (Wallet) KWalletDLauncher::getInterface: The kwalletd service has been registered
QDBusConnection: name 'org.kde.kwalletd' had owner '' but we thought it was ':1.102'
kmail-migrator(8063) KMail::KMailMigrator::migrateImapAccount: Starting IMAP collection migration: options= QFlags(0x2)
kmail-migrator(8063) AbstractCollectionMigrator::Private::resourceStatusChanged: resource= "akonadi_imap_resource_15" oldStatus= 2 message= "" newStatus 0 message= "Ready"
kmail-migrator(8063) AbstractCollectionMigrator::Private::resourceStatusChanged: resource= "akonadi_imap_resource_15" oldStatus= 0 message= "Ready" newStatus 0 message= "Connection established."
kmail-migrator(8063) AbstractCollectionMigrator::Private::resourceStatusChanged: resource= "akonadi_imap_resource_15" oldStatus= 0 message= "Connection established." newStatus 0 message= "Ready"
kmail-migrator(8063) AbstractCollectionMigrator::Private::recheckIdleResource: mStatus= 0 mResource.status()= 0
kmail-migrator(8063) AbstractCollectionMigrator::migrationCancelled: processed 0 collection seen 0
kmail-migrator(8063) KMail::KMailMigrator::imapFoldersMigrationFinished: imapMigrationFinished: instance= "akonadi_imap_resource_15" error= "Resource 'Exchange CEA (imap)' did not create any folders"
kmail-migrator(8063): "Migration of 'Exchange CEA (imap)' to Akonadi resource failed: Resource 'Exchange CEA (imap)' did not create any folders" 
kmail-migrator(8063) InfoDialog::message: "Local folders have already been migrated."
kmail-migrator(8063) InfoDialog::message: "Migration successfully completed."
kmail-migrator(8063) KMail::KMailMigrator::migrationDone: Deleting 1 failed resource instances
Comment 2 Kevin Ottens 2011-09-17 08:57:42 UTC
Looks purely like a migrator issue, reassigning there.
Comment 3 Christophe Marin 2011-11-18 23:04:01 UTC

*** This bug has been marked as a duplicate of bug 285940 ***