Bug 227282

Summary: migration fails if $KDEHOME/share/apps/knotes/notes.ics doesn't exist.
Product: [Frameworks and Libraries] Akonadi Reporter: Christophe Marin <christophe>
Component: MigrationAssignee: Volker Krause <vkrause>
Status: RESOLVED LATER    
Severity: normal CC: kdepim-bugs, steveire
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kres-migrator error window.

Description Christophe Marin 2010-02-16 22:36:01 UTC
Created attachment 40863 [details]
kres-migrator error window.

Using trunk (r1091072).

After running KJots, the migration tool successfully imported the books but tries to migrate the notes in share/apps/knotes.

It fails and leaves an error window opened if there's no notes to migrate (ss attached)

Log:


# kjots
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kjots(15475)/libakonadi Akonadi::Firstrun::Firstrun: ()
kjots(15475)/libakonadi Akonadi::Control::start: Server is already running
kjots(15475)/libakonadi Akonadi::SessionPrivate::init: ""
kjots(15475)/libakonadi Akonadi::SessionPrivate::reconnect: connectToServer "/home/krop/.local/share/akonadi/akonadiserver.socket"
Object::connect: No such signal KJotsWidget::activeAnchorChanged(const QString &, const QString &) in /kde/src/KDE/kdepim/kjots/KJotsMain.cpp:90
kjots(15475)/libakonadi Akonadi::Firstrun::~Firstrun: done
kjots(15475)/libakonadi Akonadi::SessionPrivate::dataReceived: Server protocol version is: 23
kjots(15475) KJotsWidget::migrateNoteData: Performing Akonadi migration. Good luck!
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kjotsmigrator(15478)/libakonadi Akonadi::Firstrun::Firstrun: ()
kjotsmigrator(15478)/libakonadi Akonadi::Control::start: Server is already running
kjotsmigrator(15478)/libakonadi Akonadi::Firstrun::~Firstrun: done
kjotsmigrator(15478) InfoDialog::message: "Beginning KJots migration..."
kjotsmigrator(15478) InfoDialog::message: "Creating instance of type akonadi_akonotes_resource"
kjotsmigrator(15478) InfoDialog::message: "Created local notes resource."
kjotsmigrator(15478) InfoDialog::message: "Instance "akonadi_akonotes_resource_1" synchronized"
kjotsmigrator(15478)/libakonadi Akonadi::SessionPrivate::init: ""
kjotsmigrator(15478)/libakonadi Akonadi::SessionPrivate::reconnect: connectToServer "/home/krop/.local/share/akonadi/akonadiserver.socket"
kjotsmigrator(15478)/libakonadi Akonadi::SessionPrivate::dataReceived: Server protocol version is: 23
kjotsmigrator(15478) InfoDialog::message: "New resource is rooted at Collection(13)"
kjotsmigrator(15478) InfoDialog::message: "Migrating "A16109.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//A16109.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478)/libakonadi Akonadi::PluginRegistry::PluginRegistry: ItemSerializerPluginLoader:  found 10 plugins.
kjotsmigrator(15478)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-krop/ksycoca4"
kjotsmigrator(15478)/libakonadi Akonadi::ItemSerializer::pluginForMimeType: Did not find exactly matching serializer plugin for type "text/x-vnd.akonadi.note" , taking "message/rfc822" as the closest match
kjotsmigrator(15478) InfoDialog::message: "Migrating "AH6035.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//AH6035.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "B31245.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//B31245.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "dC6035.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//dC6035.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "G12528.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//G12528.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "G14908.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//G14908.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "j24177.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//j24177.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "k13741.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//k13741.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "Migrating "Y24135.book"..."
kjotsmigrator(15478) InfoDialog::message: "Opened file: /home/krop/.kde/share/apps/kjots//Y24135.book"
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) EntityTreeCreateJob::collectionCreateJobDone: updating items
kjotsmigrator(15478) InfoDialog::message: "KJots notes migration finished"
kjots(15475) KJotsWidget::migrateNoteData: Akonadi migration has been successful
kjots(15475) KJotsWidget::migrateNoteData: Performing Akonadi migration. Good luck!
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kres-migrator(15484)/libakonadi Akonadi::Firstrun::Firstrun: ()
kres-migrator(15484)/libakonadi Akonadi::Control::start: Server is already running
kres-migrator(15484)/libakonadi Akonadi::Firstrun::~Firstrun: done
kres-migrator(15484)/kresources KRES::Factory::self:
kres-migrator(15484)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-krop/ksycoca4"
kres-migrator(15484)/kresources KRES::Factory::self: Performing Akonadi migration. Good luck!
<unknown program name>(15486)/ main: Migrator instance already running for type  "notes" 
kres-migrator(15484)/kresources KRES::ManagerImpl::ManagerImpl:
kres-migrator(15484)/kresources KRES::ManagerImpl::readConfig:
kres-migrator(15484)/kresources KRES::Factory::self:
kres-migrator(15484)/kresources KRES::ManagerImpl::readResourceConfig: "3NAcvYD8rY"
kres-migrator(15484)/kresources KRES::Factory::Private::resourceInternal: ( "file" , config )
kres-migrator(15484)/knotes ResourceLocal::ResourceLocal: ResourceLocal::ResourceLocal()
kres-migrator(15484) InfoDialog::message: "Trying to migrate 'Notes'..."
kres-migrator(15484) InfoDialog::message: "Creating instance of type akonadi_akonotes_resource"
<unknown program name>(15474)/: Communication problem with  "kjots" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." " 

[1]    15474 exit 255   kjots
kres-migrator(15484)/kdepimlibs (kcal) KCal::ICalFormat::load: "/home/krop/.kde/share/apps/knotes/notes.ics"
kres-migrator(15484)/kdepimlibs (kcal) KCal::ICalFormat::load: load error
kres-migrator(15484): "Migration of 'Notes' to native backend failed: Failed to open file for reading: file:///home/krop/.kde/share/apps/knotes/notes.ics" 
kres-migrator(15484)/kresources KRES::ManagerImpl::~ManagerImpl:
kjots(15475): Akonadi migration failed! 
kjots(15475): command was:  ("/kde/inst/kdepim-runtime/bin/kres-migrator", "--interactive-on-change", "--type", "notes") 
kjots(15475): exit code:  0 
kjots(15475): stdout:  "" 
kjots(15475): stderr:  ""
Comment 1 Stephen Kelly 2010-02-17 10:37:45 UTC
I think this might be considered Invalid.

Should the migration pass if the configuration mentions a notes file which does not exist?
Comment 2 Christophe Marin 2010-02-17 11:03:58 UTC
well, the migration tool shouldn't try to migrate something that doesn't exist (even if share/config/kresources/notes/stdrc exists, that doesn't mean share/apps/knotes/notes.ics really exists).

Running systemsettings/KDE Resources/notes creates 'stdrc' even if you close this dialog without changing anything.
Comment 3 Christophe Marin 2010-06-24 10:07:35 UTC
The notes will not be migrated in 4.5, Changing the bug status.