core icon indicating copy to clipboard operation
core copied to clipboard

Log entry "File source not found for"

Open lazev3do opened this issue 13 years ago • 34 comments

Expected behaviour

There shouldn't be any error entry on the log file

Actual behaviour

Log file is increasing with size due to constant errors entries. The log file in the data folder has 1.2GB of text only.

Steps to reproduce

no idea what was the reason for this so I don't know how to reproduce

Server configuration

Operating system:

Web server: Ubuntu 12.01

Database: MySQL

PHP version: 5.4.6

ownCloud version: 4.5.6

ownCloud log (data/owncloud.log)

"{"app":"files_sharing","message":"File source not found for: \/KMS","level":3,"time":1359112411}"

What can I do to fix this issue? because it's always happening

lazev3do avatar Jan 25 '13 11:01 lazev3do

Please use our issue template. Thanks!

https://raw.github.com/owncloud/core/master/issue_template.md https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

DeepDiver1975 avatar Jan 25 '13 11:01 DeepDiver1975

what is /KMS? A shared folder I assume?

Please have a look at the log file of the web server - THX

DeepDiver1975 avatar Jan 26 '13 19:01 DeepDiver1975

Yes I'ts a shared folder which doesn't exist anymore

lazev3do avatar Jan 28 '13 00:01 lazev3do

Obviously this problem still exists: If one deletes a bunch of subdirectories within a shared folder on client side (not in the web ui), these error messages occur and the deleted subdirectories are restored.

What's the status of this?

swis avatar Jun 10 '13 09:06 swis

Same here: Error files_sharing File source not found for: /.

I receive logs like this every 10 seconds....

Unfortunately this behavior is still there in version 5.0.7.

tfrauenrath avatar Jun 10 '13 09:06 tfrauenrath

This bug is indeed still in 5.0.7. Here's a little more info.

  1. User Bob creates and shares a folder and gives User John write permissions (via group membership if that's important).
  2. Both users sync the shared folder via the desktop sync client.
  3. User John adds a file to the shared folder via dragging the file into his locally synced folder
  4. The above message fires multiple times referencing every file already existing in the folder.
  5. User Bob does the same
  6. There are no error messages
  7. User John uploads a file to the shared folder via the Web UI
  8. There are no error messages
  9. User Bob does the same
  10. There are no error messages

PhazeonPhoenix avatar Jun 12 '13 20:06 PhazeonPhoenix

Infos from my scenario:

  • User Bob creates and shares a folder and gives User John write permissions
  • User John syncs the shared folder via the desktop sync client.
  • User John adds a file to the shared folder via dragging the file into his locally synced folder
  • User Bob deletes the folder.
  • There are many error messages

tfrauenrath avatar Jun 17 '13 14:06 tfrauenrath

Now this sounds like a sync client problem, because it doesn't realize the file is unshared. @danimo @dragotin

MTGap avatar Jun 17 '13 14:06 MTGap

@MTGap Does unsharing change the E-Tags of the containing directories recursively (e.g. '/shared')?

danimo avatar Jun 17 '13 14:06 danimo

I don't think it does.

MTGap avatar Jun 17 '13 14:06 MTGap

@MTGap But it should, which makes this a server bug...

danimo avatar Jun 17 '13 14:06 danimo

Still, shouldn't you be getting an error that the file doesn't exist anymore.

MTGap avatar Jun 17 '13 14:06 MTGap

Thinking about it again, it cannot be about E-Tags, since the E-Tag problem is only about mirall not updating the folder at all. I would need to see a log file of this happening.

danimo avatar Jun 17 '13 14:06 danimo

The only error that I am aware of and that gets logged away silently, but never shown (how do you see the errors btw), is when Finder/Explorer create meta-data files. The client will not delete those.

danimo avatar Jun 17 '13 15:06 danimo

I am experiencing the same as @tfrauenrath.

Ubuntu server 12.10 x64 OC 5.0.12 PHP 5.4.6

Sync client on Windows 1.2.5

jdewit avatar Jun 18 '13 21:06 jdewit

I have the same problem and make Owncloud not reliable. Suddenly my log Log file has increased with thousands of messages like this:

  • File source nor found for: /files/Comunes/Pedro Miguel Reyes/2010/Tarifas 2010/Navarra/589.- Bodegas Leyre.doc
  • File source nor found for: /files/Sein_Preventa/Registro Oportunidades.xlsx And this files exists in we but they have been erased in the user locally synced folder.

The case is the similar than PhazeonPhoenix and tfrauenrath. I don’t know the reason and how to solved, and it’s urgent for me, the users doesn’t trust in OnwCloud.

JoseIgnacioMartinez avatar Jun 20 '13 07:06 JoseIgnacioMartinez

Meanwhile my logfile is 1.5GB, but I copy a short section for you:

{"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /.","level":3,"time":1366613980} {"app":"files_sharing","message":"File source not found for: /Entwicklungsteam","level":3,"time":1366613980}

tfrauenrath avatar Jun 20 '13 09:06 tfrauenrath

the users doesn’t trust in OnwCloud.

Seriously? Users don't trust ownCloud because of log messages?

DeepDiver1975 avatar Jun 20 '13 09:06 DeepDiver1975

@MTGap @icewind1991 we need some cleanup procedure which can be executed by the admin #3792 #3784 #3764 have been a good start but we need to go some steps further

In addition to rescan the file system we need to detect and cleanup broken shares. (We need to distinguish between file/folder no existing and file system not available)

Further on we need to give the admin a page to manage such broken data entries.

DeepDiver1975 avatar Jun 20 '13 09:06 DeepDiver1975

@tfrauenrath workaround: delete the entry 'Entwicklungsteam' from the database. table: oc_share

DeepDiver1975 avatar Jun 20 '13 09:06 DeepDiver1975