core icon indicating copy to clipboard operation
core copied to clipboard

"Nothing here" while files are present: impossible to see them

Open etiess opened this issue 13 years ago • 29 comments

Expected behaviour

Every files in a folder should be shown in the web interface

Actual behaviour

In the web interface, all files and folder disappeared after I changed the name of the parent folder. Files are still present on the disk. Files are not deleted. But the message "Nothing here. ..." appears

Steps to reproduce

I tried to reproduce, but the bug didn't show up again. I had this problem doing this:

  1. On the web interface, change the name of the folder "Photos" into "Photos Archive"
  2. Go into "Photos Archive": no files are shown while there should be a lot.
  3. Verify that files were not deleted in /var/www/owncloud/data/userA/Photos Archive

Server configuration

Operating system: Ubuntu Server 13.10

Web server: Apache 2

Database: MySQL

PHP version:

ownCloud version: 5.0.13

Client configuration

Browser Firefox and Chrome tested, last version: Android Client: same problem

Operating system: Windows 8.1 and Android

Logs

ownCloud log (data/owncloud.log)

I can give more info about the log if needed, but my log file is huge (12 GB). By the way, I read https://github.com/owncloud/core/issues/3402 indicating that these huge log file issue is fixed. Apparently not in OC 5.0.13, but in OC6.

capture

etiess avatar Nov 25 '13 22:11 etiess

~~@PVince81 something broken with the ajax in files? THX~~

this is OC5 - can't be the ajaxification - sorry

DeepDiver1975 avatar Nov 26 '13 08:11 DeepDiver1975

@etiess did you see any errors in the Firefox/Chrome Javascript console ?

Are you using any apps like pictures, search, etc ? Can you disable them and try again ? If it still happens, then post the log. Thanks.

PVince81 avatar Nov 26 '13 08:11 PVince81

@PVince81 I don't think I see anything special in the console, but as the folder appears empty in the Android App too (1.5.0), I don't think it comes from the browser. I tried to clean all cache (cookies, cache, ...) from the browser: still the problem.

I disabled all the apps you mentionned: Full Text Search, Image Viewer, Media, Pictures. Nothing changed.

I tried to share the folder with UserA, the folder appears now for UserA, but still empty.

The folder was shared before with UserB. Files are still present for him, but with the old name folder! If I share now the renamed folder with UserB, both folder (Photos and Photos Archive) appear, Photos (the old name) is full, Photos Archive is empty.

Log is below: (byt he way, what is lucene?)

{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:30:51+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:30:54+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:31:06+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:31:50+00:00"}
{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:31:56+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:31:58+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:32:01+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:32:13+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:33:56+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:34:19+00:00"}
{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:34:23+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:34:24+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:34:28+00:00"}
{"app":"PHP","message":"filemtime(): stat failed for \/var\/www\/owncloud\/data\/etiess\/files\/Musique\/RadioHead\/Hail to the thief\/Radio Head - Track 10.mp3 at \/var\/www\/owncloud\/lib\/files\/storage\/local.php#92","level":2,"time":"2013-11-26T10:34:40+00:00"}
{"app":"PHP","message":"Class 'Zend_Search_Lucene_Document' not found at \/var\/www\/owncloud\/apps\/search_lucene\/lib\/indexer.php#68","level":4,"time":"2013-11-26T10:34:40+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:34:45+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:35:37+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:35:40+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:35:44+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:35:49+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:36:46+00:00"}
{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:36:52+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:36:56+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:36:58+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:03+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:06+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:25+00:00"}
{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:37:31+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:32+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:35+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:37:38+00:00"}
{"app":"shorty","message":"Requesting plugin details registered by other apps","level":0,"time":"2013-11-26T10:41:58+00:00"}
{"app":"shorty_tracking","message":"Registering plugin description in main Shorty app","level":0,"time":"2013-11-26T10:41:58+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:42:01+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:45:51+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:45:56+00:00"}
{"app":"core","message":"redirectToDefaultPage: https:\/\/serveroc.no-ip.biz\/owncloud\/index.php\/apps\/files","level":0,"time":"2013-11-26T10:46:02+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:46:03+00:00"}
{"app":"search_lucene","message":"need mimetype for content extraction","level":3,"time":"2013-11-26T10:46:07+00:00"}

Any idea? Can I refresh something?

etiess avatar Nov 26 '13 10:11 etiess

@etiess are you still able to reproduce it consistently ? I'll need more detailed steps to reproduce it consistently, as i'm not able to reproduce it at all.

Did you upgrade from a previous version ? Or did you drop the database, set installed to false but keep the files, then logged in, renamed the folder without entering it (not triggering the scan) ? I tried this and these cases work for me.

PVince81 avatar Nov 26 '13 17:11 PVince81

@PVince81 as I said in my first message, I'm unable to reproduce it at all. This particular folder is still apparently empty (but in reality not).

The only thing I'm able to reproduce now with this particular folder, is the sharing: the people I share with don't see anything either.

I didn't upgrade from a previous version, and didn't anything special. This folder is (and was) not synced, I just renamed it on the web interface.

I understand it's difficult to investigate without being able to reproduce :( But if you need access to more information, log or other, please don't hesitate.

By the way, is it possible to trigger a scan manually to refresh teh file data base? (like for the music app, I can click a button "re-analyze the collection). If not, is there a discussion on this feature?

etiess avatar Nov 27 '13 10:11 etiess

@etiess you can try typing "scanFiles();" in the browser console.

PVince81 avatar Nov 27 '13 10:11 PVince81

Sorry, I did a mistake: as I said that:

The folder was shared before with UserB. Files are still present for him, but with the old name folder! If I share now the renamed folder with UserB, both folder (Photos and Photos Archive) appear, Photos (the old name) is full, Photos Archive is empty.

It's not true: The folder "Photos" shared with UserB was another folder, shared bu another user (not me). I did this mistake because the content is almost the same. Sorry for the mistake.

etiess avatar Nov 27 '13 10:11 etiess

Thank you @PVince81 : if I try this command, and if it's work, I won't be able to test or to log this bug anymore, right? Do we want to do that? These files are not important for me, I don't really need them.

And in order to understand correctly, the browser console is accessible by Ctrl+Maj+K in FF?

etiess avatar Nov 27 '13 10:11 etiess

@etiess the command should fix your cache, so that the files will appear correctly, so you might not have the bug situation any more. It might have been some kind of corner case.

Did you actually rename the parent folder in the web UI or through WebDAV or sync client ?

PVince81 avatar Nov 27 '13 10:11 PVince81

Yes, Ctrl+Shift+K (Maj, aha, you're French :wink:)

PVince81 avatar Nov 27 '13 10:11 PVince81

Yes, I am ;)

I got this: [11:35:05,972] scanFiles(); [11:35:05,975] undefined [11:35:06,306] GET https://192.168.0.31/owncloud/index.php/apps/files/ajax/scan.php?force=false&dir=&requesttoken=4268bd1711d9378c7aeb [HTTP/1.1 200 OK 63ms]

But nothing changed :(

etiess avatar Nov 27 '13 10:11 etiess

Try: scanFiles(true);

This should force a rescan. In the worst case, delete the folder and recreate it. :-/

PVince81 avatar Nov 27 '13 10:11 PVince81

I got this: [11:40:28,478] scanFiles(true); [11:40:28,482] undefined [11:40:30,665] GET https://192.168.0.31/owncloud/index.php/apps/files/ajax/scan.php?force=true&dir=&requesttoken=4268bd1711d9378c7aeb [HTTP/1.1 200 OK]

etiess avatar Nov 27 '13 10:11 etiess

Does it really do someting on owncloud?

etiess avatar Nov 27 '13 10:11 etiess

Yes, the get request triggers a scan. Is the folder still empty ?

Can you try a select on the oc_filecache table in the DB ? Maybe something like:

SELECT * FROM oc_filecache WHERE path LIKE '%Photos%' ORDER BY path;

I suspect it might be empty. It is supposed to contain all files that are physically in that folder. The UI bases itself on that to know what to display.

PVince81 avatar Nov 27 '13 10:11 PVince81

I didn't see your previous question:

Did you actually rename the parent folder in the web UI or through WebDAV or sync client ?

I renamed the parent folder in the web UI. And this is a folder on the root (owncloud/data/user/files/Photos)

etiess avatar Nov 27 '13 10:11 etiess

I did the SQL command, and it's not empty. But both folders appear! And the content seems to be in the former folder (Photos) and not in Photos Archive:

16497 4 files/Photos d01bb67e7b71dd49fd06bad922f521c9 11857 Photos 2 1 40411549806 1381180488 0 0 5253264f16817 54280 2 files/Photos Archive c9110d5aa7d875e5ca7f952ac7f5e335 5 Photos Archive 2 1 0 1385397061 0 0 52937b455642a 19398 4 files/Photos/1985 Films Famille Super 8 b4467cc878886c315c5e1f8c6f78b016 16497 1985 Films Famille Super 8 2 1 1370233845 1381180280 0 0 52532379b4527

etiess avatar Nov 27 '13 10:11 etiess

Strange. I wonder whether it's related to the fact that you renamed "Photos" to "Photos Archive" (which has a space). Shouldn't be an issue though.

What happens if you create a "Photos" folder now ? I guess it will "suddenly" contain the missing files.

PVince81 avatar Nov 27 '13 10:11 PVince81

I already tried it: it doesn't contain the files either.

I tried with an other folder: "mus" that I renamed into "mus archive": no problem, the files appear there.

Strange!

etiess avatar Nov 27 '13 10:11 etiess

In the result of the SQL command, I remark something in the column "Storage": "Photos" and the contained files are all in Storage "2" while "Photos Archive" in in Storage "4".

The folder "mus archive" is in Storage "2"

What the meaning of that?

etiess avatar Nov 27 '13 11:11 etiess