Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes body not syncing anymore #430

Closed
yostral opened this issue Jan 4, 2020 · 6 comments
Closed

Notes body not syncing anymore #430

yostral opened this issue Jan 4, 2020 · 6 comments

Comments

@yostral
Copy link

yostral commented Jan 4, 2020

Describe the bug
When creating a new note from the Android Notes app, only the title (first line) get synchronised with the server. On the app, on the list, it shows the 2 round arrows that are usually here when waiting for synchronisation.

When I look into the web nextcloud interface, in the note app, I can see the new notes, but only the title. And in the body it says "write...".

When I create a new note from the web interface, I can see it properly in the Android app, but when I edit it, the modifications are not synchronised.

It happens since the "new" Android Notes app has been released. (the one syncing with Files app)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Android Notes app
  2. Click on the "+" for a new note
  3. Go back to the list
  4. See the two round blue arrows
  5. On the nextcloud notes web interface, see only the title of the notes

Expected behavior
Synchronisation of the whole note, not only the title

Server (please complete the following information):

  • Notes app version: 3.1.1
  • Nextcloud version: 17.0.2
  • OS: Debian Buster
  • Web server: nginx (1.14.2-2+deb10u1)
  • PHP version: php (2:7.3+69)
  • Database: mysql (5.8+1.0.5)

Client (please complete the following information):

  • Browser (incl. version): Firefox 71
  • OS: Archlinux
  • Android 10 and Android 9
  • Android Notes app : 2.3.0 (F-droid)
  • Android Files app : 3.9.2 (F-droid)

Log files
From nextcloud web interface:

 [index] Error: OCP\Lock\LockedException: "Notes/Test.txt" is locked

0. /var/www/nextcloud/lib/private/Files/View.php line 2050
  OC\Files\View->lockPath("/yostral/files/Notes/Test.txt", 1, "*** sensitive parameter replaced ***")
1. /var/www/nextcloud/lib/private/Files/View.php line 1140
   OC\Files\View->lockFile("/yostral/files/Notes/Test.txt", 1)
2. /var/www/nextcloud/lib/private/Files/View.php line 994
   OC\Files\View->basicOperation("fopen", "/yostral/files/Notes/Test.txt", ["read"], "r")
 3. /var/www/nextcloud/lib/private/Files/Node/File.php line 108
    OC\Files\View->fopen("/yostral/files/Notes/Test.txt", "r")
 4. /var/www/nextcloud/apps/ransomware_detection/lib/Analyzer/EntropyAnalyzer.php line 164
    OC\Files\Node\File->fopen("r")
 5. /var/www/nextcloud/apps/ransomware_detection/lib/Analyzer/EntropyAnalyzer.php line 105
    OCA\RansomwareDetection\Analyzer\EntropyAnalyzer->calculateEntropyOfFile(OC\Files\Node\File {})
 6. /var/www/nextcloud/apps/ransomware_detection/lib/Monitor.php line 450
>   OCA\RansomwareDetection\Analyzer\EntropyAnalyzer->analyze(OC\Files\Node\File {})
>7. /var/www/nextcloud/apps/ransomware_detection/lib/Monitor.php line 207
>   OCA\RansomwareDetection\Monitor->addFileOperation(["files/Notes/Test.txt"], OC\Files\Node\File {}, 3)
 8. /var/www/nextcloud/apps/ransomware_detection/lib/StorageWrapper.php line 257
    OCA\RansomwareDetection\Monitor->analyze(OCA\RansomwareDe ... l}, ["files/Notes/Test.txt"], 3)
 9. /var/www/nextcloud/apps/ransomware_detection/lib/StorageWrapper.php line 98
    OCA\RansomwareDetection\StorageWrapper->analyze(OCA\RansomwareDe ... l}, ["files/Notes/Test.txt"], 3)
10. /var/www/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php line 252
    OCA\RansomwareDetection\StorageWrapper->file_put_contents("files/Notes/Test.txt", "*** sensitive parameter replaced ***")
11. /var/www/nextcloud/lib/private/Files/View.php line 1158
    OCA\RansomwareProtection\StorageWrapper->file_put_contents("files/Notes/Test.txt", "*** sensitive parameter replaced ***")
12. /var/www/nextcloud/lib/private/Files/View.php line 694
    OC\Files\View->basicOperation("file_put_contents", "/yostral/files/Notes/Test.txt", ["update","write"], "*** sensitive parameter replaced ***")
13. /var/www/nextcloud/lib/private/Files/Node/File.php line 66
    OC\Files\View->file_put_contents("/yostral/files/Notes/Test.txt", "*** sensitive parameter replaced ***")
14. /var/www/nextcloud/apps/notes/lib/Service/NotesService.php line 176
    OC\Files\Node\File->putContent("*** sensitive parameter replaced ***")
15. /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php line 177
    OCA\Notes\Service\NotesService->update("*** sensitive parameters replaced ***")
16. /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php line 158
    OCA\Notes\Controller\NotesApiController->updateData("*** sensitive parameters replaced ***")
17. /var/www/nextcloud/apps/notes/lib/Controller/Errors.php line 22
    OCA\Notes\Controller\NotesApiController->OCA\Notes\Controller\{closure}("*** sensitive parameters replaced ***")
18. /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php line 159
    OCA\Notes\Controller\NotesApiController->respond(Closure {})
19. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Notes\Controller\NotesApiController->update("*** sensitive parameters replaced ***")
20. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Notes\Contro ... {}, "update")
21. /var/www/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Notes\Contro ... {}, "update")
22. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Notes\\Con ... r", "update", OC\AppFramework\ ... {}, {id: "59627",_ro ... "})
23. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({id: "59627",_ro ... "})
24. /var/www/nextcloud/lib/private/Route/Router.php line 297
   undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {id: "59627",_ro ... "})
25. /var/www/nextcloud/lib/base.php line 997
    OC\Route\Router->match("/apps/notes/api/v0.2/notes/59627")
26. /var/www/nextcloud/index.php line 42
    OC::handleRequest()

 Enveloppé parOCP\Lock\LockedException: "files/3a8520c7b5bd1e1991f10ef23588de70" is locked

    /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 743:
>   OC\Lock\DBLockingProvider->acquireLock("files/3a852 ... 0", 1)

>   /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 593:
>   OC\Files\Storage\Common->acquireLock("files/Notes/Test.txt", 1, OC\Lock\DBLockingProvider {})

>   /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 593:
    OC\Files\Storage\Wrapper\Wrapper->acquireLock("files/Notes/Test.txt", 1, OC\Lock\DBLockingProvider {})

    /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 593:
    OC\Files\Storage\Wrapper\Wrapper->acquireLock("files/Notes/Test.txt", 1, OC\Lock\DBLockingProvider {})

>   /var/www/nextcloud/lib/private/Files/View.php - line 1940:
    OC\Files\Storage\Wrapper\Wrapper->acquireLock("files/Notes/Test.txt", 1, OC\Lock\DBLockingProvider {})

    /var/www/nextcloud/lib/private/Files/View.php - line 2050:
    OC\Files\View->lockPath("/yostral/files/Notes/Test.txt", 1, "*** sensiti ... *")

    /var/www/nextcloud/lib/private/Files/View.php - line 1140:
    OC\Files\View->lockFile("/yostral/files/Notes/Test.txt", 1)

>   /var/www/nextcloud/lib/private/Files/View.php - line 994:
    OC\Files\View->basicOperation("fopen", "/yostral/files/Notes/Test.txt", [ "read"], "r")

>   /var/www/nextcloud/lib/private/Files/Node/File.php - line 108:
    OC\Files\View->fopen("/yostral/files/Notes/Test.txt", "r")

>   /var/www/nextcloud/apps/ransomware_detection/lib/Analyzer/EntropyAnalyzer.php - line 164:
    OC\Files\Node\File->fopen("r")

>   /var/www/nextcloud/apps/ransomware_detection/lib/Analyzer/EntropyAnalyzer.php - line 105:
    OCA\RansomwareDetection\Analyzer\EntropyAnalyzer->calculateEntropyOfFile(OC\Files\Node\File {})

>   /var/www/nextcloud/apps/ransomware_detection/lib/Monitor.php - line 450:
    OCA\RansomwareDetection\Analyzer\EntropyAnalyzer->analyze(OC\Files\Node\File {})

    /var/www/nextcloud/apps/ransomware_detection/lib/Monitor.php - line 207:
    OCA\RansomwareDetection\Monitor->addFileOperation([ "files/Notes/Test.txt"], OC\Files\Node\File {}, 3)

    /var/www/nextcloud/apps/ransomware_detection/lib/StorageWrapper.php - line 257:
    OCA\RansomwareDetection\Monitor->analyze(OCA\Ransomwa ... l}, [ "files/Notes/Test.txt"], 3)

    /var/www/nextcloud/apps/ransomware_detection/lib/StorageWrapper.php - line 98:
    OCA\RansomwareDetection\StorageWrapper->analyze(OCA\Ransomwa ... l}, [ "files/Notes/Test.txt"], 3)

    /var/www/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php - line 252:
    OCA\RansomwareDetection\StorageWrapper->file_put_contents("files/Notes/Test.txt", "*** sensiti ... *")

    /var/www/nextcloud/lib/private/Files/View.php - line 1158:
    OCA\RansomwareProtection\StorageWrapper->file_put_contents("files/Notes/Test.txt", "*** sensiti ... *")

    /var/www/nextcloud/lib/private/Files/View.php - line 694:
    OC\Files\View->basicOperation("file_put_contents", "/yostral/files/Notes/Test.txt", [ "update","write"], "*** sensiti ... *")

    /var/www/nextcloud/lib/private/Files/Node/File.php - line 66:
    OC\Files\View->file_put_contents("/yostral/files/Notes/Test.txt", "*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Service/NotesService.php - line 176:
    OC\Files\Node\File->putContent("*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php - line 177:
    OCA\Notes\Service\NotesService->update("*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php - line 158:
    OCA\Notes\Controller\NotesApiController->updateData("*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Controller/Errors.php - line 22:
    OCA\Notes\Controller\NotesApiController->OCA\Notes\Controller\{closure}("*** sensiti ... *")

    /var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php - line 159:
    OCA\Notes\Controller\NotesApiController->respond(Closure {})

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:
    OCA\Notes\Controller\NotesApiController->update("*** sensiti ... *")

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Notes\Co ... {}, "update")

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 126:
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Notes\Co ... {}, "update")

    /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
    OC\AppFramework\App::main("OCA\\Notes\ ... r", "update", OC\AppFramew ... {}, { id: "59627 ... "})

    <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({ id: "59627 ... "})

    /var/www/nextcloud/lib/private/Route/Router.php - line 297:
    call_user_func(OC\AppFramew ... {}, { id: "59627 ... "})

   /var/www/nextcloud/lib/base.php - line 997:
    OC\Route\Router->match("/apps/notes ... 7")

    /var/www/nextcloud/index.php - line 42:
    OC::handleRequest()

PUT /index.php/apps/notes/api/v0.2/notes/59627?
from 82.64.186.63 by yostral at 2020-01-04T19:33:08+00:00
@yostral
Copy link
Author

yostral commented Jan 6, 2020

Android app updated to 2.4.0 and still the same, only the title is syncing.

@korelstar
Copy link
Member

  • Are you sure that updating the Android app introduced this issue? Could you please try with an older version in order to verify this?
  • Are you able to change a note using the Web app?
  • The error message is about a "LockedException". Please try to unlock your file, see: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883
  • The log indicates that you use an app called "RansomwareDetection". Please try to deactivate this app and test again. Does the problem still occurs?

Maybe related: #350, #286.

@yostral
Copy link
Author

yostral commented Jan 6, 2020

Thank you for your answer.
And the problem comes from... Ransomware Recovery ! You are right.

I don't know why because I have it for a long time and everything worked flawlessly, until recently.
Problem solved here for me.

@yostral yostral closed this as completed Jan 6, 2020
@stefan-niedermann
Copy link
Member

Dear @yostral,

i am the developer of the android client and very interested in the issue. Did you already report it upstream at the ransomware recovery project?

If so, can you please post a link here?

Regards

@yostral
Copy link
Author

yostral commented Jan 7, 2020

@stefan-niedermann , @korelstar

Here is the issue on ransomware recovery project :

undo-ransomware/ransomware_detection#26

As stated inside that issue, the problem seems to happen only from Android Notes app, and not from the desktop QownNote app.

Thanks a lot for your interest.

@yostral
Copy link
Author

yostral commented Jan 11, 2020

For more info, as mentioned in undo-ransomware/ransomware_detection#26 , the problem seems to happen only with the Android Notes app, not with some desktop files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants