{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/updater/issues/158","repository_url":"https://api.github.com/repos/nextcloud/updater","labels_url":"https://api.github.com/repos/nextcloud/updater/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/updater/issues/158/comments","events_url":"https://api.github.com/repos/nextcloud/updater/issues/158/events","html_url":"https://github.com/nextcloud/updater/issues/158","id":299942294,"number":158,"title":"Updater fails to complete (step Delete old files)","user":{"login":"caco3","id":1783586,"avatar_url":"https://avatars3.githubusercontent.com/u/1783586?v=4","gravatar_id":"","url":"https://api.github.com/users/caco3","html_url":"https://github.com/caco3","followers_url":"https://api.github.com/users/caco3/followers","following_url":"https://api.github.com/users/caco3/following{/other_user}","gists_url":"https://api.github.com/users/caco3/gists{/gist_id}","starred_url":"https://api.github.com/users/caco3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caco3/subscriptions","organizations_url":"https://api.github.com/users/caco3/orgs","repos_url":"https://api.github.com/users/caco3/repos","events_url":"https://api.github.com/users/caco3/events{/privacy}","received_events_url":"https://api.github.com/users/caco3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-02-24T13:47:20Z","updated_at":"2018-05-16T09:18:13Z","closed_at":null,"author_association":"NONE","body":"I believe issue https://github.com/nextcloud/server/issues/2737 is not properly solved yet in NC13.0.0.\r\nSee discussions in above issue.\r\n\r\nSummary:\r\n - The step \"Delete old files\" fails with a message like \"Could not rmdir: /home/***/www/***/nc-test/nextcloud/updater/../core/doc/admin/_images\".\r\n- Pressing retry helps but must be done a dozen times (update will finally complete).\r\n- This issue is known to occur reproducibly on a FreeBSD 10.3 on a virtual server of the hoster hostpoint.ch, hos ever it might be that it also occurs on other BSDs (See comment of a user from Canada: https://github.com/nextcloud/server/issues/2737#issuecomment-362788491) .\r\n\r\nTo trace it further down, I added the lines \r\n```\r\n                $this->log(\"## recursiveDelete: deleting folder $folder\");\r\n\t\tforeach ($directories as $dir) {\r\n\t\t\t$this->log(\"#### recursiveDelete: $dir\");\r\n\t\t}\r\n```\r\nafter\r\n```\r\n\t\tforeach ($files as $file) {\r\n\t\t\tunlink($file);\r\n\t\t}\r\n``` \r\nin the function `recursiveDelete` in updater/index.php.\r\nThis gives the following updater.log (shortened) below.\r\nThe `recursiveDelete` seems to work fine for many many times, but then suddenly fails with the message\r\n```\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [error] POST request failed with other exception\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [error] Exception: Exception\r\nMessage: Could not rmdir: /home/***/www/***/nc-test/nextcloud/updater/../core/doc/admin/_images\r\nCode:0\r\nTrace:\r\n#0 /home/***/www/***/nc-test/nextcloud/updater/index.php(1316): Updater->deleteOldFiles()\r\n#1 {main}\r\nFile:/home/***/www/***/nc-test/nextcloud/updater/index.php\r\nLine:943\r\n```\r\nAgainst my initial thought, this seems not to be caused by a `rmdir` failure!\r\n\r\n<details><summary>updater.log</summary>\r\n\r\n```\r\n\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] request to updater\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] currentStep()\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] show HTML page\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] current version: 13.0.0 RC 1 build time: 2018-01-11T19:40:31+00:00 4f30c2fbe43e0d6f24ba3bff881526b2b6c2747d\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] getUpdateServerResponse()\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] updaterServer: https://updates.nextcloud.org/updater_server/\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] releaseChannel: beta\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] internal version: 13.0.0.10\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] updateURL: https://updates.nextcloud.org/updater_server/?version=13x0x0x10xxxbetaxx2018-01-11T19%3A40%3A31%2B00%3A00+4f30c2fbe43e0d6f24ba3bff881526b2b6c2747dx5x6x33\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] getUpdateServerResponse response: Array\r\n(\r\n    [version] => 13.0.0.14\r\n    [versionstring] => Nextcloud 13.0.0\r\n    [url] => https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip\r\n    [web] => https://docs.nextcloud.com/server/12/admin_manual/maintenance/upgrade.html\r\n    [autoupdater] => 1\r\n    [signature] => q5bqFR15JaWW6oGM+iNtC7JoDsRHPXAkySJ5TMgcbAfajheMUwgQtytK2S1vpJd7\r\nUbhO5CfWStBQKFNR6/tV6R++xLbIBZgXhvjLtpciug+dNBMANZNUiqEbdYLZSWEp\r\nY3HOk087s3o0wazQ/kLDmFmCzW8bngpcI1rRDJTXCS6uf/0BVatOaIoByJRkArnw\r\nir+Hd8swyREt3jrngeePu6/ZrB+5toGcEHaSCmTNwJ7ipKnwi3mPP0XcGWJVswzY\r\nWpeJUBR9OkzLQ8Y6sKIEOZrDBsoSjFp0YN6Adgbxgbd4UPwgaJVOFdfuW18RNWWw\r\nTx/vStIU+zA9/Yan/RotKg==\r\n)\r\n\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] checkForUpdate() Array\r\n(\r\n    [version] => 13.0.0.14\r\n    [versionstring] => Nextcloud 13.0.0\r\n    [url] => https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip\r\n    [web] => https://docs.nextcloud.com/server/12/admin_manual/maintenance/upgrade.html\r\n    [autoupdater] => 1\r\n    [signature] => q5bqFR15JaWW6oGM+iNtC7JoDsRHPXAkySJ5TMgcbAfajheMUwgQtytK2S1vpJd7\r\nUbhO5CfWStBQKFNR6/tV6R++xLbIBZgXhvjLtpciug+dNBMANZNUiqEbdYLZSWEp\r\nY3HOk087s3o0wazQ/kLDmFmCzW8bngpcI1rRDJTXCS6uf/0BVatOaIoByJRkArnw\r\nir+Hd8swyREt3jrngeePu6/ZrB+5toGcEHaSCmTNwJ7ipKnwi3mPP0XcGWJVswzY\r\nWpeJUBR9OkzLQ8Y6sKIEOZrDBsoSjFp0YN6Adgbxgbd4UPwgaJVOFdfuW18RNWWw\r\nTx/vStIU+zA9/Yan/RotKg==\r\n)\r\n\r\n2018-02-07T22:03:49+0100 NPXnWlJMbo [info] end of checkForUpdate() Update to Nextcloud 13.0.0 available. (channel: \"beta\")<br /><span class=\"light\">Following file will be downloaded automatically:</span> <code class=\"light\">https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip</code>\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] request to updater\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] currentStep()\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] POST request for step \"1\"\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] startStep(\"1\")\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] checkForExpectedFilesAndFolders()\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] end of checkForExpectedFilesAndFolders()\r\n2018-02-07T22:05:51+0100 fE2PeuhpO0 [info] endStep(\"1\")\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] request to updater\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] currentStep()\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] Step 1 is in state \"end\".\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] POST request for step \"2\"\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] startStep(\"2\")\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] checkWritePermissions()\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] end of checkWritePermissions()\r\n2018-02-07T22:05:51+0100 JQw86bhs34 [info] endStep(\"2\")\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] request to updater\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] currentStep()\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] Step 2 is in state \"end\".\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] POST request for step \"3\"\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] startStep(\"3\")\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] setMaintenanceMode(\"true\")\r\n2018-02-07T22:05:51+0100 h1rdmb0yzV [info] configFileName /home/***/www/***/nc-test/nextcloud/updater/../config/config.php\r\n2018-02-07T22:05:52+0100 h1rdmb0yzV [info] end of setMaintenanceMode()\r\n2018-02-07T22:05:52+0100 h1rdmb0yzV [info] endStep(\"3\")\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] request to updater\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] currentStep()\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] Step 3 is in state \"end\".\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] POST request for step \"4\"\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] startStep(\"4\")\r\n2018-02-07T22:05:52+0100 MPAPEPjVe7 [info] createBackup()\r\n2018-02-07T22:09:31+0100 MPAPEPjVe7 [info] end of createBackup()\r\n2018-02-07T22:09:31+0100 MPAPEPjVe7 [info] endStep(\"4\")\r\n2018-02-07T22:09:31+0100 WXYs64DnxH [info] request to updater\r\n2018-02-07T22:09:31+0100 WXYs64DnxH [info] currentStep()\r\n2018-02-07T22:09:31+0100 WXYs64DnxH [info] Step 4 is in state \"end\".\r\n2018-02-07T22:09:31+0100 WXYs64DnxH [info] POST request for step \"5\"\r\n2018-02-07T22:09:31+0100 WXYs64DnxH [info] startStep(\"5\")\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] downloadUpdate()\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] getUpdateServerResponse()\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] updaterServer: https://updates.nextcloud.org/updater_server/\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] releaseChannel: beta\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] internal version: 13.0.0.10\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] updateURL: https://updates.nextcloud.org/updater_server/?version=13x0x0x10xxxbetaxx2018-01-11T19%3A40%3A31%2B00%3A00+4f30c2fbe43e0d6f24ba3bff881526b2b6c2747dx5x6x33\r\n2018-02-07T22:09:32+0100 WXYs64DnxH [info] getUpdateServerResponse response: Array\r\n(\r\n    [version] => 13.0.0.14\r\n    [versionstring] => Nextcloud 13.0.0\r\n    [url] => https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip\r\n    [web] => https://docs.nextcloud.com/server/12/admin_manual/maintenance/upgrade.html\r\n    [autoupdater] => 1\r\n    [signature] => q5bqFR15JaWW6oGM+iNtC7JoDsRHPXAkySJ5TMgcbAfajheMUwgQtytK2S1vpJd7\r\nUbhO5CfWStBQKFNR6/tV6R++xLbIBZgXhvjLtpciug+dNBMANZNUiqEbdYLZSWEp\r\nY3HOk087s3o0wazQ/kLDmFmCzW8bngpcI1rRDJTXCS6uf/0BVatOaIoByJRkArnw\r\nir+Hd8swyREt3jrngeePu6/ZrB+5toGcEHaSCmTNwJ7ipKnwi3mPP0XcGWJVswzY\r\nWpeJUBR9OkzLQ8Y6sKIEOZrDBsoSjFp0YN6Adgbxgbd4UPwgaJVOFdfuW18RNWWw\r\nTx/vStIU+zA9/Yan/RotKg==\r\n)\r\n\r\n2018-02-07T22:09:35+0100 WXYs64DnxH [info] end of downloadUpdate()\r\n2018-02-07T22:09:35+0100 WXYs64DnxH [info] endStep(\"5\")\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] request to updater\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] currentStep()\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] Step 5 is in state \"end\".\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] POST request for step \"6\"\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] startStep(\"6\")\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] verifyIntegrity()\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] getUpdateServerResponse()\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] updaterServer: https://updates.nextcloud.org/updater_server/\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] releaseChannel: beta\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] internal version: 13.0.0.10\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] updateURL: https://updates.nextcloud.org/updater_server/?version=13x0x0x10xxxbetaxx2018-01-11T19%3A40%3A31%2B00%3A00+4f30c2fbe43e0d6f24ba3bff881526b2b6c2747dx5x6x33\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] getUpdateServerResponse response: Array\r\n(\r\n    [version] => 13.0.0.14\r\n    [versionstring] => Nextcloud 13.0.0\r\n    [url] => https://download.nextcloud.com/server/releases/nextcloud-13.0.0.zip\r\n    [web] => https://docs.nextcloud.com/server/12/admin_manual/maintenance/upgrade.html\r\n    [autoupdater] => 1\r\n    [signature] => q5bqFR15JaWW6oGM+iNtC7JoDsRHPXAkySJ5TMgcbAfajheMUwgQtytK2S1vpJd7\r\nUbhO5CfWStBQKFNR6/tV6R++xLbIBZgXhvjLtpciug+dNBMANZNUiqEbdYLZSWEp\r\nY3HOk087s3o0wazQ/kLDmFmCzW8bngpcI1rRDJTXCS6uf/0BVatOaIoByJRkArnw\r\nir+Hd8swyREt3jrngeePu6/ZrB+5toGcEHaSCmTNwJ7ipKnwi3mPP0XcGWJVswzY\r\nWpeJUBR9OkzLQ8Y6sKIEOZrDBsoSjFp0YN6Adgbxgbd4UPwgaJVOFdfuW18RNWWw\r\nTx/vStIU+zA9/Yan/RotKg==\r\n)\r\n\r\n2018-02-07T22:09:35+0100 rOIT2543DE [info] storage location: /home/***/www/***/nc-test/data/updater-occj10ln2to7/downloads/\r\n2018-02-07T22:09:38+0100 rOIT2543DE [info] end of verifyIntegrity()\r\n2018-02-07T22:09:38+0100 rOIT2543DE [info] endStep(\"6\")\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] request to updater\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] currentStep()\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] Step 6 is in state \"end\".\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] POST request for step \"7\"\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] startStep(\"7\")\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] extractDownload()\r\n2018-02-07T22:09:38+0100 Yqtzg7oz3C [info] storage location: /home/***/www/***/nc-test/data/updater-occj10ln2to7/downloads/\r\n2018-02-07T22:11:03+0100 Yqtzg7oz3C [info] end of extractDownload()\r\n2018-02-07T22:11:03+0100 Yqtzg7oz3C [info] endStep(\"7\")\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] request to updater\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] currentStep()\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] Step 7 is in state \"end\".\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] POST request for step \"8\"\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] startStep(\"8\")\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] replaceEntryPoints()\r\n2018-02-07T22:11:03+0100 HZAFrGK53h [info] replace index.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] replace status.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] replace remote.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] replace public.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] replace ocs/v1.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] replace ocs/v2.php\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] end of replaceEntryPoints()\r\n2018-02-07T22:11:04+0100 HZAFrGK53h [info] endStep(\"8\")\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] request to updater\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] currentStep()\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] Step 8 is in state \"end\".\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] POST request for step \"9\"\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] startStep(\"9\")\r\n2018-02-07T22:11:04+0100 Nv5wo8Bsbf [info] deleteOldFiles()\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf ## recursiveDelete: deleting folder /home/***/www/***/nc-test/nextcloud/updater/../apps/activity\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/js\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/l10n/.tx\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/l10n\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/templates/settings\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/templates\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/css\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/img\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Formatter\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Settings\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Command\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Parameter\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/AppInfo\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Migration\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Exception\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Filter\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Extension\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/Controller\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib/BackgroundJob\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/lib\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/appinfo\r\n2018-02-07T22:11:05+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/activity/docs\r\n[..]\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf ## recursiveDelete: deleting folder /home/***/www/***/nc-test/nextcloud/updater/../apps/user_ldap\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/js/wizard\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/js\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/vendor/ui-multiselect/src\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/vendor/ui-multiselect\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/vendor\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/l10n\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/templates\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/css\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/img\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/ajax\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/composer/composer\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/composer\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Settings\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Command\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/AppInfo\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Migration\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/User\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Jobs\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Notification\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Mapping\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Exceptions\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib/Controller\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/lib\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/user_ldap/appinfo\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf ## recursiveDelete: deleting folder /home/***/www/***/nc-test/nextcloud/updater/../apps/workflowengine\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/js\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/l10n\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/templates\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/css\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/lib/Settings\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/lib/AppInfo\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/lib/Check\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/lib/Controller\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/lib\r\n2018-02-07T22:11:34+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/apps/workflowengine/appinfo\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf [info] config sample exists\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf [info] themes README exists\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf ## recursiveDelete: deleting folder /home/***/www/***/nc-test/nextcloud/updater/../themes/example/\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/themes/example/core/css\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/themes/example/core/img\r\n2018-02-07T22:11:35+0100 Nv5wo8Bsbf #### recursiveDelete: /home/***/www/***/nc-test/nextcloud/themes/example/core\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [error] POST request failed with other exception\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [error] Exception: Exception\r\nMessage: Could not rmdir: /home/***/www/***/nc-test/nextcloud/updater/../core/doc/admin/_images\r\nCode:0\r\nTrace:\r\n#0 /home/***/www/***/nc-test/nextcloud/updater/index.php(1316): Updater->deleteOldFiles()\r\n#1 {main}\r\nFile:/home/***/www/***/nc-test/nextcloud/updater/index.php\r\nLine:943\r\n\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [info] rollbackChanges(\"9\")\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [info] unlink .step\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [info] rollbackChanges - step >= 7\r\n2018-02-07T22:11:38+0100 Nv5wo8Bsbf [info] end of  rollbackChanges()\r\n```\r\n\r\n</details>\r\n\r\n## Server configuration detail\r\n\r\n**Operating system:** FreeBSD 10.3-RELEASE-p24 FreeBSD 10.3-RELEASE-p24 #14 r326012M: Mon Nov 20 12:42:55 UTC 2017     root@port10.adm.hostpoint.ch:/usr/obj/usr/src/sys/HOSTPOINT amd64\r\n\r\n**Webserver:** Apache/2.4 (cgi-fcgi)\r\n\r\n**Database:** mysql 10.1.26\r\n\r\n**PHP version:** 5.6.33\r\nModules loaded: Core, date, ereg, libxml, pcre, Reflection, SPL, hash, session, cgi-fcgi, standard, recode, apcu, bcmath, bz2, calendar, ctype, curl, dba, dbase, dom, mbstring, fileinfo, filter, ftp, gd, geoip, gettext, gmp, gnupg, mysqlnd, iconv, imagick, imap, intl, jsmin, json, ldap, exif, mcrypt, mssql, mysql, mysqli, ncurses, odbc, openssl, pcntl, PDO, pgsql, posix, pspell, readline, SimpleXML, snmp, soap, sockets, sqlite3, ssh2, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, yaml, zip, zlib, mailparse, mongodb, PDFlib, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, Phar, scrypt, syck, wddx, xmlreader, xmlrpc, xsl, mhash, apc, Zend OPcache\r\n\r\n**Nextcloud version:** 13.0.0 - 13.0..10\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:** \r\n\r\n**Where did you install Nextcloud from:** updater\r\n\r\n<details><summary>Signing status</summary>\r\n\r\nArray\r\n</details>\r\n\r\n<details><summary>List of activated apps</summary>\r\n\r\n```\r\nEnabled:\r\n - activity: 2.6.1\r\n - admin_audit: 1.3.0\r\n - calendar: 1.6.0\r\n - comments: 1.3.0\r\n - contacts: 2.0.1\r\n - dav: 1.4.6\r\n - federatedfilesharing: 1.3.1\r\n - federation: 1.3.0\r\n - files: 1.8.0\r\n - files_external: 1.4.1\r\n - files_pdfviewer: 1.2.0\r\n - files_sharing: 1.5.0\r\n - files_texteditor: 2.5.1\r\n - files_trashbin: 1.3.0\r\n - files_versions: 1.6.0\r\n - files_videoplayer: 1.2.0\r\n - firstrunwizard: 2.2.1\r\n - gallery: 18.0.0\r\n - issuetemplate: 0.3.0\r\n - keeweb: 0.4.0\r\n - logreader: 2.0.0\r\n - lookup_server_connector: 1.1.0\r\n - nextcloud_announcements: 1.2.0\r\n - notifications: 2.1.2\r\n - oauth2: 1.1.0\r\n - password_policy: 1.3.0\r\n - provisioning_api: 1.3.0\r\n - serverinfo: 1.3.0\r\n - sharebymail: 1.3.0\r\n - survey_client: 1.1.0\r\n - systemtags: 1.3.0\r\n - theming: 1.4.1\r\n - twofactor_backupcodes: 1.2.3\r\n - updatenotification: 1.3.0\r\n - workflowengine: 1.3.0\r\nDisabled:\r\n - bruteforcesettings\r\n - encryption\r\n - files_accesscontrol\r\n - socialsharing_email\r\n - user_external\r\n - user_ldap\r\n\r\n```\r\n</details>\r\n\r\n<details><summary>Configuration (config/config.php)</summary>\r\n\r\n```\r\n{\r\n    \"datadirectory\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"dbtype\": \"mysql\",\r\n    \"version\": \"13.0..10\",\r\n    \"installedat\": \"1334086349.5631\",\r\n    \"lastupdatedat\": \"1334087083.9888\",\r\n    \"dbname\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"dbhost\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"dbtableprefix\": \"oc_\",\r\n    \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"installed\": true,\r\n    \"instanceid\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"maxZipInputSize\": 419430400,\r\n    \"allowZipDownload\": true,\r\n    \"theme\": \"\",\r\n    \"maintenance\": false,\r\n    \"loglevel\": 3,\r\n    \"trusted_domains\": [\r\n        \"owncloud.***.ch\",\r\n        \"www.***.ch\",\r\n        \"***.ch\"\r\n    ],\r\n    \"mail_from_address\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"mail_smtpmode\": \"php\",\r\n    \"mail_domain\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n    \"trashbin_retention_obligation\": \"auto, auto\",\r\n    \"appstore.experimental.enabled\": true,\r\n    \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n    \"updater.release.channel\": \"stable\",\r\n    \"overwrite.cli.url\": \"https:\\/\\/owncloud.***.ch\",\r\n    \"updater.secret\": \"***REMOVED SENSITIVE VALUE***\"\r\n}\r\n```\r\n</details>"},"comment":{"url":"https://api.github.com/repos/nextcloud/updater/issues/comments/389452884","html_url":"https://github.com/nextcloud/updater/issues/158#issuecomment-389452884","issue_url":"https://api.github.com/repos/nextcloud/updater/issues/158","id":389452884,"user":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars3.githubusercontent.com/u/245432?v=4","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T09:18:13Z","updated_at":"2018-05-16T09:18:13Z","author_association":"MEMBER","body":"> I don't know why this does not work for symlinks, but I think I know now, where the symlinks come from:\r\n> https://build.opensuse.org/package/view_file/openSUSE:Factory/nextcloud/nextcloud.spec?expand=1\r\n> Line 164: %fdupes -s $RPM_BUILD_ROOT/%{apache_serverroot}/%{name}\r\n> It would be great to have a solution to also delete those symlinks. If there is no solution, I will just not use this repository or inform the one who builds it to check this.\r\n> For me, this issue is solved. Maybe caco3 has really another issue...\r\n\r\nAlso using a package to install nextcloud and then use the built-in updater feel wrong for me, because you then overwrite files that were installed by the package manager. I would advise against this approach and rather install via packages and stick to the packages or install manually and then use the built-in updater.\r\n\r\nNevertheless the symlinks are weird. Maybe the iterator does not list symlinks and only lists files. Thanks for this hint 👍 \r\n\r\n\r\n\r\n> The list of not deleted files matches the json files list, but that would be expected :)\r\n\r\nStill weird, because the very same mechanism is used by the deletion code 🤔 \r\n\r\n@rullzer @icewind1991 Do you have an idea why the directory iterator somehow only lists part of the files?"}}
{"actor":{"display_login":"MorrisJobke"}}