mdrasmus / keepnote

Note-taking and organization app
http://keepnote.org
Other
177 stars 87 forks source link

Keepnote won't open any notebook and will shut down immediately #715

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using Keepnote to create a note tree, modifying said tree by deleting and 
moving nodes.
2. Closing Keepnote
3. Trying to open Keepnote again

What is the expected output? What do you see instead?
I expect the program to work and to let me access all the notes I have typed in 
(as it has done for several days before).
Instead the program closes immediately no matter what notebook I try to open.
Removing the keepnote.xml file in Application folder allows Keepnote not to 
shut immediately but then when I try to open my notebooks I see the .nbk files 
(ALL of them, not only the last one modified) grayed out in keepnote's file 
browser. Trying to double click on the nbk files results in Keepnote to be shut 
down immediately.

What version of the product are you using? On what operating system?
keepnote 0.7.8 on XP sp3 and on Vista.
After syncing folders both version stopped working, effectively killing all my 
work in entering notes.

Please provide any additional information below.
This is the relevant part of the error log that is generated when I try to open 
any of the old nbk files under XP
The error messages are consistent.

=============================================
KeepNote 0.7.8: Sun Jan 04 05:18:25 2015

Traceback (most recent call last):
  File "keepnote", line 437, in <module>
  File "keepnote", line 423, in main
  File "keepnote", line 273, in start_gui
  File "keepnote", line 368, in execute_command
  File "keepnote\gui\main_window.pyc", line 866, in open_notebook
  File "keepnote\gui\main_window.pyc", line 788, in _restore_windows
  File "keepnote\gui\main_window.pyc", line 897, in set_notebook
  File "keepnote\gui\tabbed_viewer.pyc", line 331, in set_notebook
  File "keepnote\gui\three_pane_viewer.pyc", line 212, in set_notebook
  File "keepnote\gui\listview.pyc", line 122, in set_notebook
  File "keepnote\gui\listview.pyc", line 230, in setup_columns
TypeError: GtkTreeView.set_expander_column() argument 1 must be 
gtk.TreeViewColumn, not None

========================================

This is an extract of an older log with a different set of errors

=========================================
Unmanaged change detected. Reindexing 'D:\MyDocs\Notes\Software'
Traceback (most recent call last):
  File "keepnote\gui\tabbed_viewer.pyc", line 638, in <lambda>
  File "keepnote\gui\tabbed_viewer.pyc", line 627, in highlight
AttributeError: 'gtk.EventBox' object has no attribute 'get_state'
Traceback (most recent call last):
  File "keepnote\gui\tabbed_viewer.pyc", line 641, in <lambda>
  File "keepnote\gui\tabbed_viewer.pyc", line 627, in highlight
AttributeError: 'gtk.EventBox' object has no attribute 'get_state'
===========================================

Is this project dead?

Original issue reported on code.google.com by peltio on 4 Jan 2015 at 3:58

GoogleCodeExporter commented 9 years ago
I was able to recover my notebooks by following the advice given here:
http://code.google.com/p/keepnote/issues/detail?id=406
That is, by changing my node.xml and notebook.nbk file to empty version 
containing only

<node></node>

and 

<notebook></notebook>

respectively. It would be nice to know what caused the corruption to begin with 
in order to avoid it in the future. I suspect my "two-way" syncing with 
FreeFileSync has left some files that should have been deleted, but then, why 
corrupting ALL notebooks?

Also, if someone is listening out there, it would be nice to know if 
regenerating notebooks in this way can lead to loss of data, or are the 
node.xml, notebook.nbk file used only to speed up indexing (an thus can be 
regenerated without problem after every syncing, something I might even think 
to automate to avoid further problem of this sort)?.

Keepnote looks like a promising piece of software, but it's hard to commit tons 
of notes if it's not possible to safely sync folder between computers.

Original comment by peltio on 4 Jan 2015 at 5:54

proteansec commented 8 years ago

I was having the same problem today and I solved that by editing the top-level node.xml in the keepnote directory only: you don't have to edit order node.xml files in sub-directories.

The new node.xml contains the following:

<?xml version="1.0" encoding="UTF-8"?>                                                                                                                                          
<node> 
</node>

After that I was able to successfully open the notebook.

KajiMaster commented 8 years ago

+1 Thank you for this. I was able to recover my keepnote thx to this.

ezequielsvelez commented 5 years ago

+1 good advice

TH3xACE commented 5 years ago

+1 really good advice... thought I would lose years of work :)

kinjikij commented 4 years ago

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

ransacrob commented 4 years ago

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Kanotix1 commented 4 years ago

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Hi,

I found the Keepnote folders path on a Windows machine, to be C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\

Tip: You need to unhide/show folders to reveal the hidden AppData folder.

Once you locate your notes folder delete any node.xml file ending with .tmp e.g (node.xml_-qmiig.tmp) replace it with a newely generated node,xml, which I did by doing a clean install of keepnote.exe on a virtual Windows machine and locating the folder with the steps above then created a random note to produce the new node.xml then copied the fresh node.xml file to my original (Lost) note folder.

I basically moved the note folder with the fresh node.xml file to C:\Program Files (x86)\KeepNote\ and run keepnote.exe as an administrator on my Windows 10. All worked fine.

I hope this helps.

ransacrob commented 4 years ago

Thank you so much for your reply.

I appreciate it greatly. Irrespective of what I do, I can only see the missing folder when trying to open it from Keepnote. I can locate the folder 'Keepnote' which is loacted where you suggested (sligjhtly different on mine) however within that is not my missing folder, yet only the new one I created. It is like it has disappeared. I have check unhide folder/files, i have done an index search, everything. The frustrating thing is that I can see the folder in keepnote itself, but nowhere else. If I could only locate the folder and node, i could easily repair it. I feel i have tried everything. No luck. :( Thank you again. If you have any more suggestions,I am open to trying.

On Sat, Feb 8, 2020 at 9:30 AM Kanotix1 notifications@github.com wrote:

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Hi,

I found the Keepnote folders path on a Windows machine, to be C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\

Tip: You need to unhide/show folders to reveal the hidden AppData folder.

Once you locate your notes folder delete any node.xml file ending with .tmp e.g (node.xml_-qmiig.tmp) replace it with a newely generated node,xml, which I did by doing a clean install of keepnote.exe on a virtual Windows machine and locating the folder with the steps above then created a random note to produce the new node.xml then copied the fresh node.xml file to my original (Lost) note folder.

I basically moved the note folder with the fresh node.xml file to C:\Program Files (x86)\KeepNote\ and run keepnote.exe as an administrator on my Windows 10. All worked fine.

I hope this helps.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mdrasmus/keepnote/issues/715?email_source=notifications&email_token=AOORNDZT4VALQIZPOTU5UPDRBZ3TDA5CNFSM4CBGGUIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFNXPI#issuecomment-583719869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOORND3LFJPEWCH7765A66LRBZ3TDANCNFSM4CBGGUIA .

kinjikij commented 4 years ago

When I open KeepNote directory I don't see the folders I had notes about. When I search the directory from KeepNote I see those folders... Can somebody explain me? Need my notes back.

Hi, Did you have any luck resolving this?? Keepnote will not open my previous months worth of study notes, can see the folder, but only in keepnote, not in explorer.. help..

Hi,

I found the Keepnote folders path on a Windows machine, to be C:\Users\UserName\AppData\Local\VirtualStore\Program Files (x86)\

Tip: You need to unhide/show folders to reveal the hidden AppData folder.

Once you locate your notes folder delete any node.xml file ending with .tmp e.g (node.xml_-qmiig.tmp) replace it with a newely generated node,xml, which I did by doing a clean install of keepnote.exe on a virtual Windows machine and locating the folder with the steps above then created a random note to produce the new node.xml then copied the fresh node.xml file to my original (Lost) note folder.

I basically moved the note folder with the fresh node.xml file to C:\Program Files (x86)\KeepNote\ and run keepnote.exe as an administrator on my Windows 10. All worked fine.

I hope this helps.

I found the folders in AppData folder but I can not figure out how to make them come back to my KeepNote...

CyberSecSean commented 4 years ago

After a few hours of scouring the computer wondering where the hell these folders have physically disappeared to, with help from some friends on discord I have found that if you press windows key type in %APPDATA% go into that folder and click Local, then VirtualStore, a keepnote folder should be there

Click into that and open the files via HTML through chrome/explorer and you will see all your writing and screenshots which you can simply copy and paste over to another note app such as cherrytree! :)

cwnaze commented 3 years ago

if the uppermost node.xml is a tmp file, rename the file to node.xml