owncloud / notes

:notebook_with_decorative_cover: Notes app for ownCloud
GNU Affero General Public License v3.0
197 stars 46 forks source link

Notes getting lost #262

Open marxjohnson opened 7 years ago

marxjohnson commented 7 years ago

I'm having an issue with notes getting lost. I had a note that I had updated through the web interface. I then opened it on my phone in the Notes app, but it couldn't sync the updates. When I looked at it again through the web interface, it had lost the updates! I just tried to reproduce the problem by creating a new note. I was able to update it and sync the updates to the Android app, although there were errors shown in the log. However, I then tried to open it again in the Android app, and it had been deleted, no trace of it through the web interface either.

Here is the tail of the error log from when I created the new note. It was called "Test note", I'm not sure if the lines before that are related, but I thought I'd include them in case they shed some light.

{"reqId":"zGiPz98bQnATyZfFFF3i","remoteAddr":"192.168.0.1","app":"PHP","message":"chmod(): Operation not permitted at \/home\/mark\/public_html\/owncloud\/lib\/private\/Config.php#242","level":3,"time":"2017-07-02T09:13:28+00:00","method":"POST","url":"\/owncloud\/index.php\/settings\/admin\/log\/level","user":"mark"}
{"reqId":"MICOK76DnbYQng2ZlpNM","remoteAddr":"192.168.0.1","app":"PHP","message":"Missing argument 2 for OC\\Files\\Storage\\Wrapper\\Wrapper::file_put_contents(), called in \/home\/mark\/public_html\/owncloud\/lib\/private\/Files\/View.php on line 1123 and defined at \/home\/mark\/public_html\/owncloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php#249","level":3,"time":"2017-07-02T09:21:02+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/notes\/notes","user":"mark"}
{"reqId":"MICOK76DnbYQng2ZlpNM","remoteAddr":"192.168.0.1","app":"PHP","message":"Undefined variable: data at \/home\/mark\/public_html\/owncloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php#250","level":3,"time":"2017-07-02T09:21:02+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/notes\/notes","user":"mark"}
{"reqId":"MICOK76DnbYQng2ZlpNM","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987262\n    [title] => New note (2)\n    [content] => \n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:03+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/notes\/notes","user":"mark"}
{"reqId":"WFq3gkuHWT6URG7YIgFh","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987266\n    [title] => Test note\n    [content] => Test note\n\n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:06+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/notes\/notes\/112135","user":"mark"}
{"reqId":"NPHtMI1BszragYzJeJPa","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987286\n    [title] => Test note\n    [content] => Test note\n\nN\n\n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:27+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/notes\/notes\/112135","user":"mark"}
{"reqId":"3\/SS2KPu9zR7GaH2TIj8","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987287\n    [title] => Test note\n    [content] => Test note\n\nNew note\n\n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:28+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/notes\/notes\/112135","user":"mark"}
{"reqId":"tmBVeYNIQxiJouhsH1V3","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987305\n    [title] => Test note\n    [content] => Test note\n\nNew notev\n\n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:45+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/notes\/notes\/112135","user":"mark"}
{"reqId":"w7lJo8y9eCHKX1xZCGdj","remoteAddr":"192.168.0.1","app":"notes","message":"OCA\\Notes\\Db\\Note Object\n(\n    [modified] => 1498987306\n    [title] => Test note\n    [content] => Test note\n\nNew note sdafasdf\n\n    [id] => 112135\n    [_updatedFields:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n        )\n\n    [_fieldTypes:OCP\\AppFramework\\Db\\Entity:private] => Array\n        (\n            [id] => integer\n            [modified] => integer\n        )\n\n)\n","level":3,"time":"2017-07-02T09:21:47+00:00","method":"PUT","url":"\/owncloud\/index.php\/apps\/notes\/notes\/112135","user":"mark"}

I now can't use the notes app for fear of data loss, so hopefully this problem can be fixed.

marxjohnson commented 7 years ago

I just remembered that I had versioning turned on, so I was able to restore a previous version of the file that originally experienced data loss.