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

documentserver_community not working with external storage? #107

Open
szaimen opened this issue Apr 2, 2020 · 5 comments
Open

documentserver_community not working with external storage? #107

szaimen opened this issue Apr 2, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@szaimen
Copy link

szaimen commented Apr 2, 2020

Is the documentserver_community not working with external storage?
When I edit a document, I get the following error in the logs:

[cron] Error: Error: Call to a member function getUID() on null at <<closure>>

 0. /var/www/nextcloud/lib/private/Files/Filesystem.php line 907
    OC\Files\View->getOwner("/user/Dokument.docx")
 1. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 101
    OC\Files\Filesystem::getOwner("/user/Dokument.docx")
 2. /var/www/nextcloud/apps/files_versions/lib/Storage.php line 182
    OCA\Files_Versions\Storage::getUidAndFilename("/user/Dokument.docx")
 3. /var/www/nextcloud/apps/files_versions/lib/Hooks.php line 62
    OCA\Files_Versions\Storage::store("/user/Dokument.docx")
 4. /var/www/nextcloud/lib/private/legacy/hook.php line 111
    OCA\Files_Versions\Hooks::write_hook({run: true,path: "/user/Dokument.docx"})
 5. /var/www/nextcloud/lib/private/Files/View.php line 1275
    OC_Hook::emit("OC_Filesystem", "write", {run: true,path: "/user/Dokument.docx"})
 6. /var/www/nextcloud/lib/private/Files/View.php line 1145
    OC\Files\View->runHooks(["update","write"], "/user/Dokument.docx")
 7. /var/www/nextcloud/lib/private/Files/View.php line 694
    OC\Files\View->basicOperation("file_put_contents", "/user/files/user/Dokument.docx", ["update","write"], null)
 8. /var/www/nextcloud/lib/private/Files/Node/File.php line 71
    OC\Files\View->file_put_contents("/user/files/user/Dokument.docx", null)
 9. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 163
    OC\Files\Node\File->putContent(null)
10. /var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php line 100
    OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensitive parameters replaced ***")
11. /var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 164
    OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\SimpleFS\SimpleFolder {}, Closure {})
12. /var/www/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php line 56
    OCA\DocumentServer\Document\DocumentStore->saveChanges(47579700, [OCA\DocumentSer ... }])
13. /var/www/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php line 69
    OCA\DocumentServer\Document\SaveHandler->flushChanges(47579700)
14. /var/www/nextcloud/lib/public/BackgroundJob/Job.php line 79
    OCA\DocumentServer\BackgroundJob\Cleanup->run(null)
15. /var/www/nextcloud/cron.php line 125
    OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2020-04-02T15:20:06+02:00
@szaimen
Copy link
Author

szaimen commented Apr 2, 2020

@icewind1991 maybe you could help here since you developed the app? :)

@szaimen szaimen added the bug Something isn't working label Apr 2, 2020
@stweil
Copy link
Member

stweil commented Apr 5, 2020

This bug might be fixed with commit nextcloud/server@3443a00. It is still missing in the stable releases, but perhaps you can try it locally on your server.

@szaimen
Copy link
Author

szaimen commented Apr 5, 2020

@stweil thank you for the tip but I don't know how this should fix my bug. I tried it nonetheless and I get now a new error message: OCP\Files\NotFoundException: /user/Dokument.docx has no owner which is probably related to the usage of the external storage app (because external storage files have no owner?)

@stweil
Copy link
Member

stweil commented Apr 5, 2020

Thanks for testing. So in your case an additional fix is needed.

@szaimen
Copy link
Author

szaimen commented Apr 5, 2020

Although I have to say that the changes were successfully written to the storage after applying that patch. If I remember correctly that wasn't the case before.
But I get this new error message nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants