Txt files getting corrupted and lost

Asked by Vanessa Morris on 2018-10-21

Today I tried to open rednotebook and it didn't open. I found the problem which is the same one I've had a couple of times before. The txt files for one of the months was corrupted. If I delete that file, rednotebook opens as normal, but with all the text for that month missing of course. This has happened at least twice before, but in the past I lost txt files for months that were backed up, but this time I lost the current month, which I haven't backed up for a couple of weeks, and I lost a lot of important notes. I have searched my computer for the file name (2018-10.txt) but I only found the corrupt version. I don't suppose there's a way to recover this file? Or how can I prevent this from happening again in future? I don't want to have to backup every day. Here is the last log from .rednotebook.

2018-10-21 22:12:44,942 INFO Writing log to file "C:\Users\Vanessa\.rednotebook\rednotebook.log"
2018-10-21 22:12:44,942 INFO System encoding: mbcs
2018-10-21 22:12:44,942 INFO Language code: en_AU
2018-10-21 22:12:45,099 INFO Using pyyaml for loading and dumping
2018-10-21 22:12:45,458 INFO Running in portable mode: False
2018-10-21 22:12:45,458 INFO First Start: False
2018-10-21 22:12:45,458 INFO RedNotebook version: 2.3
2018-10-21 22:12:45,458 INFO System info: machine: AMD64, platform: Windows-8.1-6.3.9600-SP0, processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel, python_version: 3.4.4, release: 8.1, system: Windows, GTK: (3, 18, 9), Glib: (2, 52, 1), PyGObject: (3, 18, 2), YAML: 3.10
2018-10-21 22:12:47,259 DEBUG Default font: Sans 10
2018-10-21 22:12:47,259 DEBUG Default size: 10.0
2018-10-21 22:12:47,559 DEBUG Tray icon visible: False
2018-10-21 22:12:47,565 INFO Opening journal at 'C:\\Users\\Vanessa\\Documents\\VanessaRedNotebook'
2018-10-21 22:12:47,566 DEBUG Starting to load files in dir "C:\Users\Vanessa\Documents\VanessaRedNotebook"
2018-10-21 22:12:47,567 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-03.txt"
2018-10-21 22:12:47,622 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-04.txt"
2018-10-21 22:12:47,810 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-05.txt"
2018-10-21 22:12:48,134 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-06.txt"
2018-10-21 22:12:48,470 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-07.txt"
2018-10-21 22:12:48,732 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-08.txt"
2018-10-21 22:12:48,985 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-09.txt"
2018-10-21 22:12:49,246 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-10.txt"
2018-10-21 22:12:49,378 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-11.txt"
2018-10-21 22:12:49,662 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2017-12.txt"
2018-10-21 22:12:49,946 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-01.txt"
2018-10-21 22:12:50,150 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-02.txt"
2018-10-21 22:12:50,361 DEBUG 2018-03.CONFLICT_BACKUP1522162085.3699884.txt is not a valid month filename
2018-10-21 22:12:50,361 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-03.txt"
2018-10-21 22:12:50,600 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-04.txt"
2018-10-21 22:12:50,833 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-05.txt"
2018-10-21 22:12:50,973 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-06.txt"
2018-10-21 22:12:51,120 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-07.txt"
2018-10-21 22:12:51,338 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-08.txt"
2018-10-21 22:12:51,459 DEBUG 2018-09.CONFLICT_BACKUP1537299555.3664603.txt is not a valid month filename
2018-10-21 22:12:51,459 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-09.txt"
2018-10-21 22:12:51,575 DEBUG Loading file "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-10.txt"
2018-10-21 22:12:51,575 ERROR Error in file C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-10.txt:
unacceptable character #x0000: special characters are not allowed
  in "C:\Users\Vanessa\Documents\VanessaRedNotebook\2018-10.txt", position 0

Question information

English Edit question
RedNotebook Edit question
No assignee Edit question
Last query:
Last reply:
Jendrik Seipp (jendrikseipp) said : #1

Thanks for reporting this! There was a similar report recently where the
problem was that the whole month file only contained the blank symbol,
i.e., the character #x0000. Is this the case for you as well, or does
the file contain readable symbols as well?

Vanessa Morris (s.boffin) said : #2

Hi Jendrik, thanks for your reply! If I open the text file I don't see anything, although the file size is 17 kB.

Jendrik Seipp (jendrikseipp) said : #3

Thanks! Let's track the issue here:
https://github.com/jendrikseipp/rednotebook/issues/71 .

Can you help with this problem?

Provide an answer of your own, or ask Vanessa Morris for more information if necessary.

To post a message you must log in.