Closed pasodoff closed 6 years ago
Thanks! I wonder if this is because of simultaneous writing and/or reading - is this your use case? I will try testing this with some load testing tools.
There is no lock currently on reading and writing. I didn't think it would be a problem, since my main use case is for light weight note taking.
@pasodoff I can't figure out how to replicate this error! Let me know if you keep running into it.
@schollz. Agreed. I've been using cowyo for personal notes. Single user running locally (hence the other request around specifying localhost ;-) ).
I'm testing again at home now and can't replicate the problem. I'm wondering if it is related to latency in windows roaming profiles where I point the data folder when at work. I'll let you know if I see it again and if I'm able to do some more debugging.
@schollz Ok. After a month using Cowyo, I strongly feel this issue is related to a slow network disk. Delayed writes are overwriting a newer successful saves. I have only experience the issue while writing to windows shares (preferred in my case as they are backed up and roam across multiple machines in a corporate environment). I understand if this is out of scope for this tool.
@pasodoff Is it a consistent issue when writing to your windows shares?
I think locks are still a good idea so lets keep this issue open as a reminder to myself to do it!
Occasionally a page will
error
with the following stack:Manually reviewing the JSON file shows that it is malformed.
For example the last 3 lines in this case were: