10.0.2/3 very slow to move shared file between folders


#1

Steps to reproduce

On web client:
1. Share file from User A to User B
2. Login to User B
3. Try to move shared file from User B's root folder to any other folder

Expected behaviour

File moves quickly, like when moving User B's own file

Actual behaviour

Moving shared file generally takes ~3-4 seconds, but on averages takes 40 seconds

Server configuration

Operating system: Ubuntu 16.06 (EC2 - T2-xlarge)

Web server: apache

Database: mysql

PHP version: 5.6.30

ownCloud version: 10.0.3

Updated from an older ownCloud or fresh install: Update from 10.0.2

Where did you install ownCloud from: bitnami AWS AMI

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

http://text-share.com/view/b1db62a8

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

#2

@jackcwang I'd rather discorage you to move shared files around. I'm not sure if it's a common usage scenario so it's probably either not optimized, or maybe ownCloud is in fact doing weird things.

Anyway, there are some info that is missing:
* Size of the shared file being moved. The file is likely being copied + deleted for some reason (to be investigated)
* Storages that the file goes through: if the shared file is uploaded by the user A locally (not to any external storage), and the storage where the user B drops the file (again locally or in an external storage)

Note that I'm not sure what is what you expect, but I guess it's to move the shared file around and place it wherever you want instead of a default location.


#3

File size doesn't matter in the slowness, almost all of our files are < 15MB though.

From what we see, a shared file exists purely in the DB. When we share a file, system doesn't copy, symlink or anything else, in the destination user's storage.

We are trying to use folders to categorize shared files. Looks like we will have to keep a flat structure, and use tags instead.


#4

I can't reproduce the problem. Any relevant log? Any additional info?

I've move shared files around and it was always fast.