{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13974","labels_url":"https://api.github.com/repos/owncloud/core/issues/13974/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13974/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13974/events","html_url":"https://github.com/owncloud/core/issues/13974","id":57014984,"number":13974,"title":"Server timeout when deleting files","user":{"login":"pokoli","id":1160726,"avatar_url":"https://avatars.githubusercontent.com/u/1160726?v=3","gravatar_id":"","url":"https://api.github.com/users/pokoli","html_url":"https://github.com/pokoli","followers_url":"https://api.github.com/users/pokoli/followers","following_url":"https://api.github.com/users/pokoli/following{/other_user}","gists_url":"https://api.github.com/users/pokoli/gists{/gist_id}","starred_url":"https://api.github.com/users/pokoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokoli/subscriptions","organizations_url":"https://api.github.com/users/pokoli/orgs","repos_url":"https://api.github.com/users/pokoli/repos","events_url":"https://api.github.com/users/pokoli/events{/privacy}","received_events_url":"https://api.github.com/users/pokoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-09T10:49:48Z","updated_at":"2015-02-10T10:19:37Z","closed_at":null,"body":"I'm using the owncloud app to sync my local files with remote storage. \r\n\r\n### Steps to reproduce\r\n1. Sync some of your folders with a remote files\r\n2. Delete a buch of files in the local folder of owncloud directory. In my case I deleted ~900 files. \r\n\r\n### Expected behaviour\r\nThe files should be deleted on the owncloud server without errors. \r\n\r\n### Actual behaviour\r\nThe owncloud server raises timeout errors when deleting the files. I had a timeout of 5 minutes, and modified php-fpm configuration to timeout on 10 and the problem still persits. I belive that 10 minutes to delete a single file is too much and something is wrong. \r\n\r\nI can see some deleted files in the deleted files view in the web interface. For example is see that file Imatges/Whatsapp/IMG-20121002-WA0001.jpg is deleted, but as you can see in the log it raises a timeout on the client. \r\n\r\n### Server configuration\r\n**Operating system**: Debian 7.8\r\n**Web server:** Nginx + PHP-FPM\r\n**Database:** MariaDB  5.5.35\r\n**PHP version:** PHP 5.4.36\r\n\r\n**ownCloud version:**  ownCloud 7.0.4 (stable) \r\n**Updated from an older ownCloud or fresh install:** Upgraded from an older version\r\n\r\n**List of activated apps:** Activity, Calendar, Contacts, Deleted Files, Documents, First Run Wizard, PDF Viewer, Pictures, Share Files, Text Editor, Updated, Versions, Video Viewer. \r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n$CONFIG = array (\r\n  'instanceid' => 'ocb7caf11ec2',\r\n  'passwordsalt' => 'xxxxxxxxxxxx',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'xxxxxxxxxxxx.mydomain.com',\r\n  ),  \r\n  'datadirectory' => '/owncloud',\r\n  'dbtype' => 'mysql',\r\n  'version' => '7.0.4.2',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'owncloud',\r\n  'dbpassword' => 'password',\r\n  'installed' => true,\r\n  'forcessl' => true,\r\n  'theme' => '',\r\n  'maintenance' => false,\r\n  'share_folder' => '/Shared',\r\n  'mail_from_address' => 'files',\r\n  'mail_smtpmode' => 'php',\r\n  'mail_domain' => 'mydomain.com',\r\n  'secret' => 'xxxxxxxxxxxx',\r\n);\r\n\r\n\r\n```\r\n\r\n**Are you using external storage, if yes which one:** No external storage\r\n\r\n**Are you using encryption:** no\r\n\r\n### Client configuration\r\n**Browser:** Firefox 35.0.1\r\n**Operating system:** Linux Mint Rebeca (Ubuntu 14.04)\r\n**Mirall version:**  1.7.1\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\n2015/02/09 11:33:32 [error] 20380#0: *1524466 upstream timed out (110: Connection timed out) while reading response header from upstream, client: ZZZ.ZZZ.ZZZ.ZZZ, server: xxx.mydomain.com, request: \"DELETE /remote.php/webdav/Imatges/Whatsapp/IMG-20121002-WA0001.jpg HTTP/1.1\", upstream: \"fastcgi://127.0.0.1:9000\", host: \"xxx.mydomain.com\"\r\n\r\n```\r\nThere a lot of entries like this. \r\n\r\nAnd in mirall i see the following output:\r\n```\r\n11.44     Imatges/Whatsapp/IMG-20120929-WA0000.jpg                        ownCloud       504 Gateway Time-out          \r\n``` \r\n\r\n#### ownCloud log (data/owncloud.log)\r\nNothing relevant on owncloud.log only errors related to mysql restart i have done manually. \r\n\r\nLet me know if anything else is required to properly fix the bug."},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/73676014","html_url":"https://github.com/owncloud/core/issues/13974#issuecomment-73676014","issue_url":"https://api.github.com/repos/owncloud/core/issues/13974","id":73676014,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T10:19:37Z","updated_at":"2015-02-10T10:19:37Z","body":"Hmm... still clueless.\r\nCan you maybe try setting \"loglevel\" to 0 in the config and then run the deletion again ?\r\n\r\nAnd then next try: disable the app \"Deleted files\" then delete a file. To rule out whether it's related to the trashbin app or something else."}}