core icon indicating copy to clipboard operation
core copied to clipboard

Owncloud: After Rename Folders Files are missing in the WebGUI

Open Zachi777 opened this issue 11 years ago • 13 comments

Hello,

i have a issue when users rename folders in the Webgui and Reload the Browsertab the renamed folders are be empty. The files are only missing in the WebGUI... When switch to Filepath (with terminal) all Files are existing....

System: Ubuntu 14.04 Onwcloud 7.0.3

Zachi777 avatar Dec 04 '14 09:12 Zachi777

Thanks a lot for reporting issues back to us!

We need some more information to properly support you with your issue!

Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

Thanks a lot!

LukasReschke avatar Dec 04 '14 09:12 LukasReschke

Did you rename folders while someone was uploading into is or the sync client was uploading files there ?

PVince81 avatar Dec 04 '14 11:12 PVince81

No, the sync client doesn´t upload files.

Zachi777 avatar Dec 05 '14 09:12 Zachi777

I'm reporting back here per tflidd's assistance on forums.owncloud. I've successfully started the file re-index process. As I have over 60k files / 550Gb under my username, looks like this will take a while! I noticed above a reference to the sync client uploading at the same time as the rename. In my case, yes, I was near the tail end of uploading 200Gb. Sync was uploading from my Mac at the time that I renamed the file. I recall an error to the effect of "cannot complete" over on the web UI. I either refreshed or logged out / in and found that the directory rename had completed. I surmise that something else (possibly in the db or indexing) was what caused the error?? There was other error detail. I will look in my logs.

I'm on Raspbian, current. Hardware is RasPi B+. ownCloud is 7.0.3. Using MariaDB, Apache2 and PHP5, all current. Sync client is 1.7.0 build 1339. OS X is Yosemite.

nexuswest avatar Dec 11 '14 17:12 nexuswest

Followup - Thanks tflidd for identifying the problem/solution. After re-indexing completed, my missing files were accessible thru the web UI once again. Ditto via webdav.

I also noticed a huge performance improvement on both web and webdav - not surprising, I suppose, as I've just finished loading almost 600Gb and tens of thousands of files over the last week or so. I've found references to manual re-indexing or using cron to automate. Any possibility of an ownCloud admin console in the near future that, among other things, would automatically re-index?

Can anyone point me to comprehensive doc on occ? Searches thus far have yielded discussions of specific use cases (migrating and converting db, as one example). What I'm not finding is a complete list of command options.

nexuswest avatar Dec 11 '14 19:12 nexuswest

Normally reindexing should not be necessary. It is just an "emergency" measure in case a hidden bug caused the index to not match the files on disk.

PVince81 avatar Dec 12 '14 09:12 PVince81

I'm also experiencing this bug when renaming a folder via the web interface (in my case in the root directory of a user's share) containing just less than 1000 files / 690MB (so it's not a timeout or anything). There are absolutely external read / write / syncs to that directory at the time. The renaming works fine (takes a few seconds), however once complete the directory reports 0 in size, and appears to be empty. Webdav access & the Android app also report it as being empty.

At no point are the files modified, and the only way to correct it is to run php occ files:scan [--all/etc], after which the underlying files magically appear again.

  • ownCloud 7.0.4 (stable)
  • Debian 7.7 stable
  • PHP 5.4.35
  • Apache 2.2.22-13
  • MySQL 5.5.40

No errors in logs

axllent avatar Dec 22 '14 06:12 axllent

Hi , i have reproduce the issue with some users. Files are disappeared only in the WebGUI. Its happend when users refresh the browser while rename process is running. After i used the "file rescan"-script the files appeared again in the webgui.

(same can be reproduce on the demo.owncloud server)

Zachi777 avatar Feb 27 '15 08:02 Zachi777

I encountered the same problem with 7.0.3 and 8.0.2. "Its happend when users refresh the browser while rename process is running." Same for me but it can also happen without refresh.

tapete avatar Mar 16 '15 14:03 tapete

Is this still outstanding in the 7.0.4 stable release? I have exactly this scenario after renaming a folder. The new folder doesn't exists and the old folder is empty. This shows in the web GUI and also on webdav. And if I synch down the folders aren't there. I am using a hosting company for this so don't have access to the machine. How do I ask them to run the script [php occ files:scan [--all/etc]]?

Tedster avatar Mar 16 '15 14:03 Tedster

Likely to be a duplicate of https://github.com/owncloud/core/issues/13391

Does it happen for any folder or just that one ? Did the folder contain lots of files ?

PVince81 avatar Apr 13 '15 09:04 PVince81

We have the same issue with server 8.0.3 on ubuntu 14.04 both via webinterface as with client 1.8.1. Renaming a folder with lots of files and subdirectories takes a while. After renaming, folder appears to be empty (0 K). Via the webinterface you can then delete the folder, go to the trash and restore the folder: all files are back as if nothing happens.

kisppaul avatar May 17 '15 06:05 kisppaul

Closing as duplicate of https://github.com/owncloud/core/issues/13391

PVince81 avatar May 18 '15 09:05 PVince81