Bug 333640 - Knotes version 4.13 don't inherit previous notes
Summary: Knotes version 4.13 don't inherit previous notes
Status: RESOLVED FIXED
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: 4.12.97
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 333902 333989 334000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-20 04:24 UTC by SinClaus
Modified: 2014-07-05 11:34 UTC (History)
20 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.1


Attachments
akonadi & knotes (347.94 KB, image/png)
2014-06-19 11:53 UTC, Holger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SinClaus 2014-04-20 04:24:53 UTC
Knotes says about new format of notes, about converting used notes to new format but doing nothing.

Reproducible: Always

Steps to Reproduce:
1. Update current Arch linux with existing notes.
2.
3.
Comment 1 Laurent Montel 2014-04-20 05:04:21 UTC
?
So what is the problem ?
What is the result ?
What is expected ?
etc.
Comment 2 SinClaus 2014-04-20 06:33:45 UTC
Problem: Knotes looses all notes. I.e. klick onthe notes icon in try shows only string "Notes", fortunately I'm saved file with notes.
Comment 3 Laurent Montel 2014-04-20 07:01:42 UTC
Right click on systray, con,figure->collections => select all notes collections -> apply
Comment 4 SinClaus 2014-04-20 07:06:14 UTC
That's done first, but no effects, I'll restore all by the hand.
But this update isn't correct.
Comment 5 Myriam Schweingruber 2014-04-20 10:46:19 UTC
(In reply to comment #3)
> Right click on systray, con,figure->collections => select all notes
> collections -> apply
Sadly that doesn't work, as the notes located in ~/.kde/share/apps/knotes/ are never showing up.

Also, the notes migration on first start of KMail in the KDE 4.13 release apparently doesn't migrate knotes either, it only migrates notebooks, e.g. what is in the Notes section
Comment 6 Laurent Montel 2014-04-20 11:04:59 UTC
kmail doesn't migrate knotes.
if you want to migrate notes launch knotes.
Comment 7 SinClaus 2014-04-20 11:10:03 UTC
Knotes don't migrate existing notes too :)
Source file exist without changes in ~/.kde4/share/apps/knotes/notes.ics
Comment 8 Laurent Montel 2014-04-20 11:57:36 UTC
It's normal we don't change notes.ics
Comment 9 SinClaus 2014-04-20 12:47:56 UTC
OK, but why knotes don't show any existing notes from there?
Comment 10 Myriam Schweingruber 2014-04-20 12:59:19 UTC
Oh well, I expressed myself badly, I meant the knotesmigrator that is launched when you first start kontact. Nothing is migrated, I have selected all notes sources in the configuration, and my notes don't show up at all. So something is wrong somewhere, could you please tell us what to do to get our knotes content back? I already had to restore everything manually last time, this is getting old...
Comment 11 Laurent Montel 2014-04-20 15:47:36 UTC
Did you try knotes-migrator ?
Comment 12 Myriam Schweingruber 2014-04-20 21:53:20 UTC
(In reply to comment #11)
> Did you try knotes-migrator ?

Yes, and apparently that doesn't work either (mind you, it already didn't work when started on kontact first start, so no real surprise here):

knotes-migrator
knotesmigrator(14032)/kresources KRES::Factory::self:
knotesmigrator(14032)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-myriam/ksycoca4"
knotesmigrator(14032)/kresources KRES::ManagerImpl::ManagerImpl:
knotesmigrator(14032)/kresources KRES::ManagerImpl::readConfig:
knotesmigrator(14032)/kresources KRES::Factory::self:
knotesmigrator(14032)/kresources KRES::ManagerImpl::readResourceConfig: "6qvKqWy7eW"
knotesmigrator(14032)/kresources KRES::Factory::Private::resourceInternal: ( "file" , config )
knotesmigrator(14032)/kresources KRES::Factory::Private::resourceInternal: no such type "file"
knotesmigrator(14032)/kresources KRES::ManagerImpl::readResourceConfig: Failed to create resource with id "6qvKqWy7eW"


And I also tried the interactive mode and ended up with an empty GUI window and those two additional lines:

Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
knotesmigrator(14062)/kresources KRES::ManagerImpl::~ManagerImpl:

so unless there is a way to migrate that is not described anywhere, I have no idea what else I can do...
Comment 13 SinClaus 2014-04-21 02:08:33 UTC
On an another comp migrator says that it depend from akonadiserver.
This server was not initiated as useless.
Comment 14 SinClaus 2014-04-21 03:50:37 UTC
Hmmm. Akonadi is enabled and running, Notes collection is selected, but knotes don't show it...
Comment 15 Tomasz C. 2014-04-22 15:09:31 UTC
For me the same thing, after calling KNotes and selecting "Update now" message appears, and exit the program:

knotes(21547)/libakonadi Akonadi::EntityTreeModelPrivate::firstFetchJobDone: "Unknown error."

knotes-migrator does not return,

If you need I can send the result of strace.
Comment 16 SinClaus 2014-04-22 15:16:25 UTC
Akonadi works on my home comp, but knotes-migrator shows window without any functions. I.e. window appears but do nothing, and no log in a command string.
May be that's result of notes in Russian?
Comment 17 Thomas 2014-04-23 12:19:18 UTC
Hello @all! :-)

Same issue here

After Updating (gentoo) the kde-packages from 4.12.4 to 4.13.0:
* on first start the migration-wizard was launched by default asking me to import the knodes-Data.
* After that, which was done immediately and without showing a result,  no entries could bee found anymore as it seems nothing has been "imported" or included/referred from the old/original knotes entries
* Probably interesting:  knotes has not been started on login (or did not left opened) as normally configured in my profile
* I checked in the knodes-settings for all possible  collections to have them in, all empty as already reported on previous posts
*  'knotes-migrator --interactive' also throws only an "empty" window.
* ./kde4/share/apps/knotesmigrator/migration.log contains:
    [Mi. Apr 23 10:18:33 2014] Info   : Starting migration...
    [Mi. Apr 23 10:18:34 2014] Info   : Migration finished.
* ./kde4/share/apps/knotes/notes.ics contains (still) all my notes
* as also ./kde4/share/apps/knotes/notes/libkcal-* all the appearance settings per entry

Does knodes probably expect the entries to be in another directory?
And as workaround: can I import all my nodes afterwards, probably with the ics-file(-content)?

Thank you for your precious work and for reading my questions!! :-)

Sincerely,
Thomas
Comment 18 Mark Fraser 2014-04-23 19:33:59 UTC
Mine wouldn't migrate property either and every time Korganiser was launched, the KNotes migration window appeared. 

Think I solved it by changing the sources in KNotes, but will have to check when I get home.
Comment 19 Mark Fraser 2014-04-24 06:33:15 UTC
In Preferences KNotes, you have to make sure that Notes is ticked under Collections.
Comment 20 Thomas 2014-04-24 08:46:06 UTC
>> In Preferences KNotes, you have to make sure that Notes is ticked under Collections.
Yepp, as said, they are checked all there. But unfortunately no effect ;-(
Comment 21 Mebuntu 2014-04-24 11:42:22 UTC
Yes, me too, I have just upgraded from Kubuntu 12.04 to 14.04, I had a small number of notes which Knotes asked to import, I said "yes", but the notes were not imported.
Comment 22 Mebuntu 2014-04-24 12:00:39 UTC
Ah, rooting around.  In .kde/share/apps/knotesmigrator - I had some application log messages that rival Microsoft for their helpfulness!

[Mon Apr 21 17:26:11 2014] Info   : Starting migration...
[Mon Apr 21 17:26:11 2014] Info   : Migration finished.
Comment 23 Laurent Montel 2014-04-24 12:03:48 UTC
Open akonadiconsole look at if you have a resource "akonadi_akonotes_resource*" ?
Comment 24 Mebuntu 2014-04-24 12:16:56 UTC
OK.  I admit it, I don't know what I'm doing.  I'll take the risk anyway :)

"Akonadi Console is purely a development tool. It allows you to view and change internal data structures of Akonadi. You should only change data in here if you know what you are doing, otherwise you risk damaging or losing your personal information management data.
Use at your own risk!".

Under the Agents tab, I have something called "Notes" with a green light and saying "ready".  If I click on that, the details commentary says:

Identifier: akonadi_akonotes_resource_0
Type:  AkoNotes
Status: Online, Idle
Status Message: Ready
Capabilities: Resource, Notes
Mimetypes: text/x-vnd.akonadi.note
Comment 25 Thomas 2014-04-24 12:22:43 UTC
>> Open akonadiconsole look at if you have a resource "akonadi_akonotes_resource*" ?
I have 4  online/ready jet, akonadi_akonotes_resource_[8-11]
One (11) is named as "Lokale Notizen" as meant local notes with the native ressource/path set to "/home/tommi/.local/share//notes/OWgQhnfL0j"

Can I probably copy my ics in there(?)
Comment 26 Mebuntu 2014-04-24 12:30:46 UTC
@Thomas, I doubt it, but "I don't know what I'm doing".  Well done for finding the folder, I have the same folder and my one and only new note is there.  I don't know why the developer(s) departed from the previous standard of putting the notes in a subfolder of .kde

It will be interesting to hear what we are supposed to do now.
Comment 27 Laurent Montel 2014-04-24 12:33:15 UTC
in tab "Browser" look at in "Lokale Notizen" if there is some notes into.
Comment 28 Thomas 2014-04-24 15:01:36 UTC
> in tab "Browser" look at in "Lokale Notizen" if there is some notes into.
no there is no one, all "0"
and there fore the reffered folder (/home/tommi/.local/share//notes/OWgQhnfL0j) is just not created still, as meant there doesn't exist a "OWgQhnfL0j " in "/home/tommi/.local/share//notes"
Comment 29 Laurent Montel 2014-04-25 06:56:47 UTC
you can try to restart migration:
rm -f ~/.kde/share/config/knotes-migratorrc
knotes-migrator
Comment 30 Myriam Schweingruber 2014-04-25 07:53:08 UTC
(In reply to comment #29)
> you can try to restart migration:
> rm -f ~/.kde/share/config/knotes-migratorrc
> knotes-migrator

I already tried that as well, still doesn't work, same error. I now have 3 akonadi-akonote-ressources, and a knotes-migrator one, all are empty, and the ~/.kde/share/apps/knotes/notes.ics file is still there with all my notes, I just can't access them, and really, I need that stuff, this is part of my workflow...

Looks like I will have to restore them manually, one by one...
Comment 31 Thomas 2014-04-25 08:12:32 UTC
* Well, what's about to import the old ics in one way? Exists there a method? 
* How will they be stored under that given resource "/home/tommi/.local/share//notes/OWgQhnfL0j"?
* the knotes-migrator itself seems to have a problem (in our environment) obviously as also more reported to get an empty window (when started --interactive) and neither any output/log. Simply it ends very fast with a CR ^^
Comment 32 Wolfgang Bauer 2014-04-25 13:43:48 UTC
I can confirm this on openSUSE with KDE 4.13.0.
knotes-migrator doesn't migrate my notes either, even when removing knotes-migratorrc and running it manually.

Creating new notes works fine in KNotes, so it's no Akonadi setup issue.

I suppose this is because there is no "Notes in Local File" KResource like there was in previous knotes versions. (/usr/share/kde4/services/kresources/knotes/local.desktop, /usr/lib64/kde4/knotes_local.so)
After copying those 2 files to my system (from a previous knotes version), the migration completes successfully.
Comment 33 Myriam Schweingruber 2014-04-26 10:54:50 UTC
*** Bug 333902 has been marked as a duplicate of this bug. ***
Comment 34 Alexander Schmiechen 2014-04-26 19:41:08 UTC
I can confirm that copying these files, deleting knotes-migratorrc and running knotes-migrator solved the problem for me.

(openSUSE 13.1, KDE 4.13.0)

> (/usr/share/kde4/services/kresources/knotes/local.desktop,
> /usr/lib64/kde4/knotes_local.so)
> After copying those 2 files to my system (from a previous knotes version),
> the migration completes successfully.
Comment 35 Laurent Montel 2014-04-26 21:46:46 UTC
very interesting.
Indeed I have this two files on my computer and it works.
Ok it was removed when I migrated to akonadi.
I will read it for 4.13.1 and increase migrator version to regenerate it.
I will do it soon.
Comment 36 Mebuntu 2014-04-27 14:07:09 UTC
I am running Kubuntu 14.04 with kde 4.13.0 - I don't have either /usr/share/kde4/services/kresources/knotes or /usr/lib64 at all 

I tried deleting /.kde/share/config/knotes-migratorrc and that did make knotes try the migration again but nothing was migrated.  Should you be in a certain folder when the migration is run?
Comment 37 Laurent Montel 2014-04-27 17:02:43 UTC
I work to rewrote knotesmigrator.
It will ready this week.
Comment 38 Thomas 2014-04-27 17:38:47 UTC
would like to say thank you for, to appreciate your work!
Comment 39 Laurent Montel 2014-04-28 05:56:50 UTC
Git commit 69321dd246202d572ccba35ab36f9dd7d5a18925 by Montel Laurent.
Committed on 28/04/2014 at 05:56.
Pushed by mlaurent into branch 'KDE/4.13'.

Fix Bug 333640 - Knotes version 4.13 don't inherit previous notes

FIXED-IN: 4.13.1

M  +48   -14   migration/knotes/knotesmigrator.cpp
M  +11   -5    migration/knotes/knotesmigrator.h
M  +0    -2    migration/knotes/main.cpp

http://commits.kde.org/kdepim-runtime/69321dd246202d572ccba35ab36f9dd7d5a18925
Comment 40 Laurent Montel 2014-04-28 05:58:57 UTC
it's fixed now
I will increase version in knotes too to allow to automatic migrate them
Comment 41 Laurent Montel 2014-04-28 06:00:51 UTC
Git commit 23164f2ac500463833a42253e6e282e9a6274b4a by Montel Laurent.
Committed on 28/04/2014 at 06:00.
Pushed by mlaurent into branch 'KDE/4.13'.

increase migrate version number

M  +1    -1    knotes/utils/knoteutils.cpp

http://commits.kde.org/kdepim/23164f2ac500463833a42253e6e282e9a6274b4a
Comment 42 Laurent Montel 2014-04-28 06:01:53 UTC
it doesn't depend again kresources now so we will able to migrate knotes from 4.4 to KF5.
Comment 43 Myriam Schweingruber 2014-04-28 07:39:03 UTC
*** Bug 333989 has been marked as a duplicate of this bug. ***
Comment 44 Laurent Montel 2014-04-28 10:05:33 UTC
*** Bug 334000 has been marked as a duplicate of this bug. ***
Comment 45 Wolfgang Bauer 2014-04-28 13:44:41 UTC
I can confirm that the migration is working now.
Thank you!

There was still one minor issue though.
After the migration, knotes just quit here with the following message:
 m_agentInstance.identifier() : "akonadi_akonotes_resource_4" 
wolfi@amiga:~> knotes(9239)/libakonadi Akonadi::EntityTreeModelPrivate::firstFetchJobDone: "Unknown error." 

So you have to start it again, then it works.

But I guess I should file a separate bug report for this.
Comment 46 Laurent Montel 2014-04-28 14:09:09 UTC
YEs please open a new bug report.
Comment 47 Wolfgang Bauer 2014-04-28 15:21:28 UTC
(In reply to comment #46)
> YEs please open a new bug report.

OK, done:
https://bugs.kde.org/show_bug.cgi?id=334027
Comment 48 Philippe ROUBACH 2014-04-28 15:52:20 UTC
opensuse 13.1 kde 4.13 updating today => migration is a success .

i find again my 6 notes
Comment 49 Mebuntu 2014-04-29 12:54:13 UTC
I see this has been fixed - thank you very much.  Do I have do download the source and compile it myself, or is there a .deb package somewhere?

Thanks in advance
Comment 50 Christoph Feck 2014-04-29 23:08:36 UTC
Please ask in a forum of your distribution if they are offering updated packages prior to the official 4.13.1 release.
Comment 51 Marc González Majoral 2014-05-05 17:18:10 UTC
Same here after updating from Kubuntu 13.10 to 14.04. A kdepim classic already.

Thanks for the quick update Laurent but the question is, how do I "rescue" my old notes so they appear in the new Knotes?
Comment 52 thomi_ch 2014-05-26 09:41:13 UTC
i still have this issue.

i'm on kubuntu 14.04 and knotes version 4.13, knotes-migrator 0.1

i also tried to copy the files /usr/share/kde4/services/kresources/knotes/local.desktop and /usr/lib64/kde4/knotes_local.so from an older machine to mine, but doesn't work.

Is it possible that new knotes-migrator not yet available for Kubuntu?

Some more informations:
apt-cache policy knotes
knotes:
  Installed: 4:4.13.0-0ubuntu1
  Candidate: 4:4.13.0-0ubuntu1
  Version table:
 *** 4:4.13.0-0ubuntu1 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

dpkg -l | grep knotes
ii  knotes    4:4.13.0-0ubuntu1    amd64    sticky notes application

Thanks for response
thomi
Comment 53 SinClaus 2014-05-26 09:50:38 UTC
At the moment: all notes copied, and all copied notes unreadable, cause all was in Russian.
Comment 54 Marc González Majoral 2014-05-26 10:05:23 UTC
#52, if you add the Kubuntu Updates PPA in your sources, you gill get the latest update to the migrator and it will import your old notes, BUT...

... as #53 says, there's a problem with the encoding handling in the migrator and any non-ASCII character will get imported as an unknown one (�). If your notes are in a not-a-single-letter-is-in-ASCII language (russian, chinese, arabic, etc...), they will all be unreadable, so I'd recommend waiting to see if it gets fixed.
Comment 55 Wolfgang Bauer 2014-05-26 10:53:08 UTC
(In reply to comment #54)
> ... as #53 says, there's a problem with the encoding handling in the
> migrator and any non-ASCII character will get imported as an unknown one
> (�). If your notes are in a not-a-single-letter-is-in-ASCII language
> (russian, chinese, arabic, etc...), they will all be unreadable, so I'd
> recommend waiting to see if it gets fixed.
Hm, it imported all my german umlauts (which are not ASCII as well) just fine here (openSUSE).

Anyway, I would say that is a different bug and should be reported separately.
This one is RESOLVED FIXED, so don't expect a different bug you mention here getting fixed as well.
Comment 56 Holger 2014-06-19 11:53:56 UTC
Created attachment 87278 [details]
akonadi & knotes

(In reply to comment #54)
> #52, if you add the Kubuntu Updates PPA in your sources, you gill get the
> latest update to the migrator and it will import your old notes, BUT...

Took me a while to figure this one out :-/
sudo add-apt-repository ppa:kubuntu-ppa/ppa
sudo apt-get update
sudo apt-get dist-upgrade
(thanks to bug #336383 comment #4)

So now knotes-migrator ran again and incremented its version:
$ cat ~/.kde/share/config/knotes-migratorrc 
[Migration]
Version=2

Also the log now changed to 4 lines per try:
$ cat .kde/share/apps/knotesmigrator/migration.log
[Do. Mai 29 15:43:39 2014] Info   : Starting migration...
[Do. Mai 29 15:43:39 2014] Info   : Migration finished.
[Do. Mai 29 15:48:29 2014] Info   : Starting migration...
[Do. Mai 29 15:48:29 2014] Info   : Migration finished.
[Do. Jun 19 12:18:05 2014] Info   : Starting migration...
[Do. Jun 19 12:18:05 2014] Info   : Beginning KNotes migration...
[Do. Jun 19 12:18:05 2014] Info   : KNotes migration finished
[Do. Jun 19 12:18:05 2014] Info   : Migration finished.

Problem still remains ... no old notes. Reran migrator in interactive mode to no avail:
$ knotes-migrator --interactive
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon

Finally I've added the old notes.ics as single file ics notes (not mail-dir) resource to akonadi
$ ls -la ~/.kde/share/apps/knotes/notes.ics
-rw------- 1 holger holger 181570 Mär 27 20:47 /home/holger/.kde/share/apps/knotes/notes.ics

But it won't show up as collection in knotes.

What else could I try to get my notes back?
Comment 57 Wolfgang Bauer 2014-06-19 22:01:06 UTC
(In reply to comment #56)
> What else could I try to get my notes back?

For the migration to work you actually have to have a legacy knotes KResource correctly configured.
So please check that ~/.kde/share/config/kresources/notes/stdrc exists and points to your notes.ics file.
If not, create that file (with a text editor) with the following content:
--------------------------------------
[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=Notizen
ResourceType=file
--------------------------------------
(the ResourceIdentifier and the ResourceName could of course be different)

Then remove ~/.kde/share/config/knotes-migratorrc  and run knotes-migrator or knotes again to restart the migration.
Comment 58 Holger 2014-06-21 18:33:06 UTC
(In reply to comment #57)
> So please check that ~/.kde/share/config/kresources/notes/stdrc exists and

Wow great! Thanx for this magic file ... seems you know my harddrive better than I myself. This brought me a step closer. The dialog actually promises to convert 35 notes.

But then a bunch of 21 notifications pop up, telling me, they could not write a mail-file to some tmp directory:
> Notizen: Die E-Maildatei /home/holger/.local/share//notes/I8m9FANpUf/tmp/1403374340.R513.Meerschweinchen kann nicht geschrieben werden.

The problem is the randomly named directory "I8m9FANpUf" does not exist and the name changes in every call to knotes migrator, so I cannot predict it and create it manually. Can I somehow nail this name down?

PS: from my .kde/share/apps/knotesmigrator/migration.log
[Sa. Jun 21 20:12:20 2014] Info   : Starting migration...
[Sa. Jun 21 20:12:20 2014] Info   : Beginning KNotes migration...
[Sa. Jun 21 20:12:20 2014] Info   : Creating instance of type akonadi_akonotes_resource
[Sa. Jun 21 20:12:20 2014] Info   : Instance "akonadi_akonotes_resource_8" synchronized
[Sa. Jun 21 20:12:20 2014] Info   : Received root collections
[Sa. Jun 21 20:12:20 2014] Info   : Starting migration of 35 notes
[Sa. Jun 21 20:12:20 2014] Info   : Root fetch finished
[Sa. Jun 21 20:12:20 2014] Info   : KNotes migration finished
[Sa. Jun 21 20:12:20 2014] Info   : Migration finished.
Comment 59 Holger 2014-06-22 08:34:19 UTC
Strange, this morning, after restarting my machine I got three sets of my old notes. I could remove two of them and keep the third. According to akonadi they should reside in a folder .local/share/notes/11JIk70hpr/ which didn't exist. So I created it manually. Now, when I add new notes, they automatically appear in that folder in a subfolder "new". But the other converted notes somehow linger around in hyperspace and don't materialize on my harddrive. At least I don't know where?

Even if I change their content (that's why I know, they were not written back to the old notes.ics source they came from). A few times I just got some weird dialog asking me to keep the left or right version.
Comment 60 Wolfgang Bauer 2014-06-22 19:55:07 UTC
(In reply to comment #58)
> (In reply to comment #57)
> > So please check that ~/.kde/share/config/kresources/notes/stdrc exists and
> 
> Wow great! Thanx for this magic file ... seems you know my harddrive better
> than I myself. This brought me a step closer. The dialog actually promises
> to convert 35 notes.
Well, I stumbled over the same "problem" when trying to reproduce bug#334357 with 4.13.1.
I wanted to do it with a new user to not pollute my Akonadi settings/database, so I copied over my user's  ~/.kde4/share/apps/knotes/ but no notes were migrated.
Then I noticed that there's no actual kresource defined (because it was a fresh account).

(In reply to comment #59)
> Strange, this morning, after restarting my machine I got three sets of my
> old notes. I could remove two of them and keep the third. According to
> akonadi they should reside in a folder .local/share/notes/11JIk70hpr/ which
> didn't exist. So I created it manually.
Hm. The akonotes resource should create the folder manually when syncing the notes to the disk,
Akonadi is a cache between the applications (knotes in this case) and the data itself (i.e. the notes).
You could try to synchronize the notes manually in akonadiconsole, right-click on the resource on the "Browser" tab.

> Now, when I add new notes, they
> automatically appear in that folder in a subfolder "new". But the other
> converted notes somehow linger around in hyperspace and don't materialize on
> my harddrive. At least I don't know where?
Probably in the Akonadi database.
You should be able to remove them in knotes and in akonadiconsole.
And remove the unwanted resources as well, either in akonadiconsole or Systemsettings->Personal Information->Akonadi Resources Configuration.
 
> Even if I change their content (that's why I know, they were not written
> back to the old notes.ics source they came from). A few times I just got
> some weird dialog asking me to keep the left or right version.
That dialog appears when a conflict is detected between the cached version and the file on disk (f.e. if the file is changed by a different application).
I saw that a lot in KMail in earlier versions, seems to be some timing issue.
Select the version you want to keep and it should work.

You could try to clean up your akonadi database with "akonadictl fsck" or even "akonadictl vacuum".

But that's completely unrelated to this bug report now.
If you cannot get it to work, please file a new bug about your problem(s).
Or ask in the forums.
Comment 61 Holger 2014-06-22 20:20:09 UTC
Thanks for your help and patience.
Comment 62 Wolfgang Bauer 2014-06-23 12:19:28 UTC
(In reply to comment #61)
> Thanks for your help and patience.
Btw, I noticed similar problems like you describe today.

First I couldn't create new notes at all. For some reason there wasn't any collection to save new notes to selected, and I had to enable both of my "Notizen" collections (I had disabled one, but both have the same name, so maybe knotes got confused by that?).

After that, creating new notes worked, but the changes didn't get saved, and I got those conflict dialogs all the time (even when just showing the note).
Quitting and restarting knotes fixed it for me (my changes were lost though).

But as I said, those issues should be reported separately.
I will if I can reproduce it. (it works fine again at the moment)
Comment 63 Holger 2014-06-24 20:27:52 UTC
Maybe Akonadi thought, your resources were in read-only mode for some strange reason?

In my case changes to imported notes are persisted somewhere, somehow and survive a reboot ... I just don't see them as maildir-folder formated files. I wonder how/what to backup? In contrast any new notes are written to the expected folder.
Comment 64 Wolfgang Bauer 2014-06-25 07:03:09 UTC
(In reply to comment #63)
> Maybe Akonadi thought, your resources were in read-only mode for some
> strange reason?
I don't think so.
It seemed more like it wanted to store them in a not-existent collection.

> In my case changes to imported notes are persisted somewhere, somehow and
> survive a reboot ... I just don't see them as maildir-folder formated files.
> I wonder how/what to backup? In contrast any new notes are written to the
> expected folder.
As I said, they are in the Akonadi database, which is a cache between the applications and the data on disk (or server, ...).
Have you tried the things I suggested? (akonadiconsole, akonadictl fsck)

You should also be able to create a new akonotes resource and move them there (and maybe back again), with akonadiconsole f.e.

But again, that's not really related to _this_ bug report.

Another note though, as I just noticed this and think you might be misunderstanding something:
(In reply to comment #59)
> Even if I change their content (that's why I know, they were not written
> back to the old notes.ics source they came from).
Of course they won't get written back to the old notes.ics file.
They are imported now to the akonotes resource, which stores them as maildir in a subfolder of ~/.local/share/notes/. They should get written back there of course if you change them.
Comment 65 Myriam Schweingruber 2014-07-04 12:43:22 UTC
*** Bug 335703 has been marked as a duplicate of this bug. ***
Comment 66 Shmuel 2014-07-05 06:33:47 UTC
5th JUL 2014 - KNotes still don't work"
/etc/issue      display: Ubuntu 14.04 LTS /n /l
KDE version:  4.13.2
knotes -version    display:  4.13.2  

Clicking KNots icon with right mouse button, choosing "New Note" -  nothing seen.
Running knotes on konsole displays message:
"QDBusconnection: session D-Bus connection created before QCoreApplication. 
Application may misbehaven. knotes already started"
Comment 67 Wolfgang Bauer 2014-07-05 11:34:01 UTC
(In reply to comment #66)
> Clicking KNots icon with right mouse button, choosing "New Note" -  nothing
> seen.
Sounds like the issue I described, and Knut Hildebrand in the other bug report.

> Running knotes on konsole displays message:
> "QDBusconnection: session D-Bus connection created before QCoreApplication. 
> Application may misbehaven. knotes already started"
You cannot start knotes as it is already running.
Quit it first.
I suppose you will get some message like this then:
Error during fetch:  "Collection xxx does not exist"
Try what I suggested in the other report.

But IMHO the other bug is _not_ a duplicate of this.
So let's continue in the other report, which I will reopen in a minute.