You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
{"app":"files_sharing","message":"File source not found for: \ #4733
@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
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?
@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.
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...
{"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"}
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.
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.
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?
Activity
MorrisJobke commentedon Sep 5, 2013
cc @MTGap
DeepDiver1975 commentedon Sep 5, 2013
@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
karlitschek commentedon Sep 6, 2013
@DeepDiver1975 Agreed. But ideally this cleanup is automatically done triggered by filesystem hooks without the need for an asynchronous cleanup job.
stefkey commentedon Sep 6, 2013
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?
DeepDiver1975 commentedon Oct 2, 2013
@schiesbn can you please have a look? THX
schiessle commentedon Oct 2, 2013
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?
DeepDiver1975 commentedon Oct 2, 2013
@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.
schiessle commentedon Oct 4, 2013
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...
PVince81 commentedon Nov 7, 2013
@schiesbn the messages are back from the dead.
Here is the call stack:
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.
karlitschek commentedon Nov 15, 2013
@schiesbn Can you have a look?
bertvandepoel commentedon Nov 15, 2013
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.
PVince81 commentedon Nov 27, 2013
@schiesbn does this somehow relate to what we discovered today ?
schiessle commentedon Nov 28, 2013
Yes, this could be at least one source for this error messages. Not sure if this already solves the bug completely.
schiessle commentedon Nov 28, 2013
There are still some messages left... I will see if I can found the source of them
schiessle commentedon Nov 28, 2013
All "file source not found" messages should be gone now. If you can still observe some messages feel free to re-open it
Djinnistorm commentedon Dec 31, 2013
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:
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:
The first log for this particular file was on the 26th. It has created 290,000 lines of this since then. Ideas?
PVince81 commentedon Jan 7, 2014
@Djinnistorm are log entries added while viewing the pictures through the pictures app ?
Might be related to #6496
Djinnistorm commentedon Jan 7, 2014
@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
PVince81 commentedon Jan 21, 2014
Closing as duplicate of #6625 since it is being investigated there.
Note that this warning message can have many different causes.
PVince81 commentedon Jan 21, 2014
noooo... I thought it was open but is indeed closed. Reclosing...