Skip to content

{"app":"files_sharing","message":"File source not found for: \ #4733

Closed

Description

@stefkey

Hi,

there is allways error messages in owncloud.log:
{"app":"files_sharing","message":"File source not found for: \file1...

What can I do?

I use oc 5.10

Activity

  1. MorrisJobke commented on Sep 5, 2013

    @MorrisJobke
    Contributor
  2. DeepDiver1975 commented on Sep 5, 2013

    @DeepDiver1975
    Contributor

    @stefkey this log message is most probably the result of a file deletion which has been shared and the share still exists in the database. You can query for the entry in the table oc_share and delete it.

    @karlitschek we should consider some cleanup mechanism for the share table - automated as well as console based

  3. karlitschek commented on Sep 6, 2013

    @karlitschek
    Contributor

    @DeepDiver1975 Agreed. But ideally this cleanup is automatically done triggered by filesystem hooks without the need for an asynchronous cleanup job.

  4. stefkey commented on Sep 6, 2013

    @stefkey
    Author

    Thanks!

    But I have only dirs shared! In my oc_share are only 15 eintrys, all dirs sharing.

    And it was never deleted! files and dirs

    Now, delete the dir share in table oc_share and share it again in owncloud frontend?

  5. DeepDiver1975 commented on Oct 2, 2013

    @DeepDiver1975
    Contributor

    @schiesbn can you please have a look? THX

  6. schiessle commented on Oct 2, 2013

    @schiessle
    Contributor

    I just did some tests, shared a file and a folder with a user... clicked a bit around. Edited a shared file, deleted it... But the mentioned error message never appears.

    @stefkey Is this still valid in OC5.0.11? What apps do you have enabled? Do you perform any special actions right before the error appears?

  7. DeepDiver1975 commented on Oct 2, 2013

    @DeepDiver1975
    Contributor

    @schiesbn afaik the issue arises if you delete an entry in the file cache table but not the corresponding entry in oc_share. And this is the case which deserves proper handling as flooding the error log is simply stupid.

    Why this case happens is anther topic which deserves some analysis.

  8. schiessle commented on Oct 4, 2013

    @schiessle
    Contributor

    I can reproduce it now. This fix at least removes the number of error messages: #5129

    But it seems that directly after deletion there are still some operation which trigger getSource() in apps/files_sharing/lib/share/file.php... Let's see what I can do...

  9. PVince81 commented on Nov 7, 2013

    @PVince81
    Contributor

    @schiesbn the messages are back from the dead.

    {"app":"files_sharing","message":"File source not found for: \/files\/sharethis\/Nokia_N900.mp4","level":3,"time":"2013-11-07T15:50:32+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/files\/sharethis\/Nokia_N900.mp4","level":3,"time":"2013-11-07T15:50:32+00:00"}
    

    Here is the call stack:

    0  OC_Share_Backend_File::getSource() /srv/www/htdocs/owncloud/apps/files_sharing/lib/share/file.php:175
    1  OC\Files\Storage\Shared->getFile() /srv/www/htdocs/owncloud/apps/files_sharing/lib/sharedstorage.php:57
    2  OC\Files\Storage\Shared->getSourcePath() /srv/www/htdocs/owncloud/apps/files_sharing/lib/sharedstorage.php:70
    3  OC\Files\Storage\Shared->file_exists() /srv/www/htdocs/owncloud/apps/files_sharing/lib/sharedstorage.php:214
    4  OC\Files\Cache\Watcher->cleanFolder() /srv/www/htdocs/owncloud/lib/private/files/cache/watcher.php:67
    5  OC\Files\Cache\Shared_Watcher->cleanFolder() /srv/www/htdocs/owncloud/apps/files_sharing/lib/watcher.php:47
    6  OC\Files\Cache\Watcher->checkUpdate() /srv/www/htdocs/owncloud/lib/private/files/cache/watcher.php:53
    7  OC\Files\Cache\Shared_Watcher->checkUpdate() /srv/www/htdocs/owncloud/apps/files_sharing/lib/watcher.php:36
    8  OC\Files\View->getFileInfo() /srv/www/htdocs/owncloud/lib/private/files/view.php:795
    9  OC\Files\Filesystem::getFileInfo() /srv/www/htdocs/owncloud/lib/private/files/filesystem.php:716
    10 OC\Files\Cache\Updater::getUidAndFilename() /srv/www/htdocs/owncloud/lib/private/files/cache/updater.php:113
    11 OC\Files\Cache\Updater::correctFolder() /srv/www/htdocs/owncloud/lib/private/files/cache/updater.php:129
    12 OC\Files\Cache\Updater::writeUpdate() /srv/www/htdocs/owncloud/lib/private/files/cache/updater.php:45
    13 OC\Files\Cache\Updater::writeHook() /srv/www/htdocs/owncloud/lib/private/files/cache/updater.php:178
    14 call_user_func() /srv/www/htdocs/owncloud/lib/private/hook.php:72
    15 OC_Hook::emit() /srv/www/htdocs/owncloud/lib/private/hook.php:72
    16 OC\Files\View->file_put_contents() /srv/www/htdocs/owncloud/lib/private/files/view.php:318
    17 OC\Files\View->fromTmpFile() /srv/www/htdocs/owncloud/lib/private/files/view.php:606
    18 OC\Files\Filesystem::fromTmpFile() /srv/www/htdocs/owncloud/lib/private/files/filesystem.php:638
    19 require_once()  /srv/www/htdocs/owncloud/apps/files/ajax/upload.php:120
    20 OC::loadAppScriptFile() /srv/www/htdocs/owncloud/lib/base.php:745
    21 call_user_func() /srv/www/htdocs/owncloud/lib/private/router.php:127
    22 OC_Router->match() /srv/www/htdocs/owncloud/lib/private/router.php:127
    23 OC::handleRequest() /srv/www/htdocs/owncloud/lib/base.php:669
    24 {main}          /srv/www/htdocs/owncloud/index.php:30
    

    It seems it's called from Updated::correctFolder() which itself causes a call to "OC\Files\Cache\Shared_Watcher->cleanFolder()", seemingly with the wrong path.

    At the time it arrives at getSource() the storage is already the correct one, the one from the owner user1 (the sharer). So trying to getSource() of a path relative to "user2" inside of "user1"'s storage might be what produces the message.

  10. karlitschek commented on Nov 15, 2013

    @karlitschek
    Contributor

    @schiesbn Can you have a look?

  11. bertvandepoel commented on Nov 15, 2013

    @bertvandepoel

    This bug seems to be the source of a huge load on apache on our server, as multiple clients keep requesting non-existing files. If any more information is required please let me know.

  12. PVince81 commented on Nov 27, 2013

    @PVince81
    Contributor

    @schiesbn does this somehow relate to what we discovered today ?

  13. schiessle commented on Nov 28, 2013

    @schiessle
    Contributor

    Yes, this could be at least one source for this error messages. Not sure if this already solves the bug completely.

  14. schiessle commented on Nov 28, 2013

    @schiessle
    Contributor

    There are still some messages left... I will see if I can found the source of them

  15. schiessle commented on Nov 28, 2013

    @schiessle
    Contributor

    All "file source not found" messages should be gone now. If you can still observe some messages feel free to re-open it

  16. Djinnistorm commented on Dec 31, 2013

    @Djinnistorm

    Hello, new to github so forgive me if I am doing this horribly wrong.

    update.php: {"installed":"true","version":"6.0.0.14","versionstring":"6.0.0a","edition":""}

    I am getting a log that is absolutely filled to the brim with the following:

    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:20+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:20+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:20+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:20+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:21+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:22+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:22+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:22+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:22+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-31T02:09:22+00:00"}
    

    This folder is in a shared directory, so it has no specific entry in the oc_share table as far as I can tell. They always seem to come in these blocks of alternating 10. The lines slowly increment in time (ex: 18:32:12+00:00 going to 18:51:18+00:00 over ~8500 lines of logs) with sudden large jumps in the middle of blocks, like the following:

    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T12:29:31+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T12:29:31+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T12:29:31+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T12:29:31+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T18:32:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T18:32:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T18:32:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T18:32:12+00:00"}
    {"app":"files_sharing","message":"File source not found for: \/Amber Charter School\/Phots 2nd Floor Comm Rm","level":3,"time":"2013-12-30T18:32:12+00:00"}
    

    The first log for this particular file was on the 26th. It has created 290,000 lines of this since then. Ideas?

  17. PVince81 commented on Jan 7, 2014

    @PVince81
    Contributor

    @Djinnistorm are log entries added while viewing the pictures through the pictures app ?
    Might be related to #6496

  18. Djinnistorm commented on Jan 7, 2014

    @Djinnistorm

    @PVince81 the pictures app is not enabled.
    Since I could not figure out how to re-open this case, I made a new one, #6625

  19. PVince81 commented on Jan 21, 2014

    @PVince81
    Contributor

    Closing as duplicate of #6625 since it is being investigated there.
    Note that this warning message can have many different causes.

  20. PVince81 commented on Jan 21, 2014

    @PVince81
    Contributor

    noooo... I thought it was open but is indeed closed. Reclosing...

  21. locked as resolved and limited conversation to collaborators on Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions