Bug 350616 - Migration of existing knotes from 4.14 fails in 5.13
Summary: Migration of existing knotes from 4.14 fails in 5.13
Status: RESOLVED WORKSFORME
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-25 19:25 UTC by Martin Dauskardt
Modified: 2022-11-13 05:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dauskardt 2015-07-25 19:25:11 UTC
I installed Kubuntu 15.04 with KDE SC 5.13 from scratch on a fresh SSD and placed the file with the old notes (notes.ics) from my backup in .kde/share/apps/knotes.

At first start of knotes the migration tool starts, but fails:

martin@martin-desktop:~$ knotes(2563)/libakonadi Akonadi::EntityTreeModelPrivate::finalCollectionFetchJobDone: "Unbekannter Fehler." 
knotes(2563)/libakonadi Akonadi::EntityTreeModelPrivate::collectionFetchJobDone: Job error:  "Unbekannter Fehler." for collection: () 

I can create new notes, which are placed in .local/share/notes, although there is no .kde/share/config/kresources/notes/stdrc.  (Should there be such a file in KDE 5?)

What can I do to get my old notes back? They include important things I need daily.



Reproducible: Always

Steps to Reproduce:
akonadictl stop
deleted ~/.local/share/akonadi
deleted ~/.config/akonadi
deleted ~/.kde/share/config/akonadi*
akonadictl start
recreated resources for knotes in kontact
deleted ~/.kde/share/config/knotes-migratorrc
started knotes again

Actual Results:  
same result

Expected Results:  
I expected a successful migration
Comment 1 Christophe Marin 2015-08-17 20:51:51 UTC
Just a note: knotes-migratorrc is not involved in the 4.14 -> 5.xx migration. If you want to migrate again, renaming ~/.config/knotesrc then running knotes should trigger the migration.
Comment 2 Christophe Marin 2015-08-17 20:55:57 UTC
(also note the new default location for notes is $HOME/.local/share/notes/)
Comment 3 Wolfgang Bauer 2015-08-18 12:39:02 UTC
Another note:
(In reply to Martin Dauskardt from comment #0)
> I can create new notes, which are placed in .local/share/notes, although
> there is no .kde/share/config/kresources/notes/stdrc.  (Should there be such
> a file in KDE 5?)
No, there should not be such a file in KDE 5.

But that file was used in KNotes < 4.13 (like ~/.kde/share/apps/knotes/notes.ics), you need it for migrating from KNotes < 4.13, which is what you actually want to do. (kde/share/apps/knotes/notes.,ics)

So, copy over  ~/.kde/share/config/kresources/notes/stdrc too (or create it from scratch), and the notes should be migrated.
An example content, if you need it:
[General]
PassiveResourceKeys=
ResourceKeys=aEJOauTlK8
Standard=aEJOauTlK8

[Resource_aEJOauTlK8]
NotesURL[$e]=file://$HOME/.kde/share/apps/knotes/notes.ics
ResourceIdentifier=aEJOauTlK8
ResourceIsActive=true
ResourceIsReadOnly=false
ResourceName=Notes
ResourceType=file

Btw., as a KF5 based KNotes has not been released yet, you are probably using the latest KDE4 version 4.14.x.
So you do need to delete ~/.kde/share/config/knotes-migratorrc to retrigger the migration.
Comment 4 Justin Zobel 2022-10-14 05:46:51 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported and confirmed, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 5 Martin Dauskardt 2022-10-14 07:10:17 UTC
Because of this and similar issues with KDE I switched to Xfce many years ago. So I can't do further tests.
Comment 6 Bug Janitor Service 2022-10-29 05:02:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2022-11-13 05:14:44 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!