Create Backup 500 Internal Server Error Failed Update 17.0.1 to 17.0.2

Nextcloud version: 17.0.1
Operating system and version: linux x86_64
Apache or nginx version: 2.4.41
PHP version: 7.2.26

The issue you are facing:
The update always failed at step 3 (Create Backup) and gives out

Create backup
Parsing response failed. <html><head><title>500 Internal Server Error</title></head><body> <h2>Request Timeout</h2> <p>This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'. </p> </body></html>

everytime I run the updater. I have increased the timeout time to ‘-1’, but this still happened.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Run the Updater
  2. Passed Step 1 and 2
  3. Failed at Step 3 with the aforementioned error message

Updater Log:

2020-01-17T18:30:32+0700 BymfCL92Bn [info] request to updater
2020-01-17T18:30:32+0700 BymfCL92Bn [info] currentStep()
2020-01-17T18:30:32+0700 BymfCL92Bn [info] show HTML page
2020-01-17T18:30:32+0700 BymfCL92Bn [info] current version: 17.0.1 build time: 2019-11-07T12:06:23+00:00 a8405bf175d9924309b3889948b8fb26aa707fd6
2020-01-17T18:30:32+0700 BymfCL92Bn [info] getUpdateServerResponse()
2020-01-17T18:30:32+0700 BymfCL92Bn [info] updaterServer: https://updates.nextcloud.com/updater_server/
2020-01-17T18:30:32+0700 BymfCL92Bn [info] releaseChannel: stable
2020-01-17T18:30:32+0700 BymfCL92Bn [info] internal version: 17.0.1.1
2020-01-17T18:30:32+0700 BymfCL92Bn [info] updateURL: https://updates.nextcloud.com/updater_server/?version=17x0x1x1xxxstablexx2019-11-07T12%3A06%3A23%2B00%3A00+a8405bf175d9924309b3889948b8fb26aa707fd6x7x2x26
2020-01-17T18:30:52+0700 BymfCL92Bn [info] getUpdateServerResponse response: Array
(
    [version] => 17.0.2.1
    [versionstring] => Nextcloud 17.0.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip
    [web] => https://docs.nextcloud.com/server/17/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=17.0.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => iJ366fgx+zH3tEbM2kPLvwqm3GgeXdwu8Fg0eOsw642TqB/7FKkL940Tj9e8UdNr
pQXXmfTxc/X9UXmmBf2be+g18+EORlE656+AHOGpImqSg6c/iMGFSyj9iPZgjk5F
IDdagzpqNjZt8RVF3Ka/EBSSD2Xkrx71IKWxU8Yj0OhdXgPGrBFhxBmzT6Jibu6e
LVdwNzom8VhIKeOiteZ0LfioqIqBcpjRBzuZ6qm0izHQUAvxsFDN8gdUGdDmOzyM
7lZPg0Hh+7+Hp+AtSbOKmx9qUwM651QZ8tA2R2XPBrfjMDbWhFUuggfLwNrwD6mq
7mBUyQAHyb2Na0zF6rT8UA==
)

2020-01-17T18:30:52+0700 BymfCL92Bn [info] checkForUpdate() Array
(
    [version] => 17.0.2.1
    [versionstring] => Nextcloud 17.0.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip
    [web] => https://docs.nextcloud.com/server/17/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=17.0.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => iJ366fgx+zH3tEbM2kPLvwqm3GgeXdwu8Fg0eOsw642TqB/7FKkL940Tj9e8UdNr
pQXXmfTxc/X9UXmmBf2be+g18+EORlE656+AHOGpImqSg6c/iMGFSyj9iPZgjk5F
IDdagzpqNjZt8RVF3Ka/EBSSD2Xkrx71IKWxU8Yj0OhdXgPGrBFhxBmzT6Jibu6e
LVdwNzom8VhIKeOiteZ0LfioqIqBcpjRBzuZ6qm0izHQUAvxsFDN8gdUGdDmOzyM
7lZPg0Hh+7+Hp+AtSbOKmx9qUwM651QZ8tA2R2XPBrfjMDbWhFUuggfLwNrwD6mq
7mBUyQAHyb2Na0zF6rT8UA==
)

2020-01-17T18:30:52+0700 BymfCL92Bn [info] getChangelogURL()
2020-01-17T18:30:52+0700 BymfCL92Bn [info] end of checkForUpdate() Update to Nextcloud 17.0.2 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#17-0-2" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] request to updater
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] currentStep()
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] POST request for step "1"
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] startStep("1")
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] checkForExpectedFilesAndFolders()
2020-01-17T18:30:55+0700 sKqSw6ctYW [error] POST request failed with UpdateException
2020-01-17T18:30:55+0700 sKqSw6ctYW [error] Exception: UpdateException
Message: 
Code:0
Trace:
#0 /home/xiom3155/public_html/cloud/updater/index.php(1330): Updater->checkForExpectedFilesAndFolders()
#1 {main}
File:/home/xiom3155/public_html/cloud/updater/index.php
Line:395
Data:
Array
(
    [0] => error_log
    [1] => phpinfo.php
)


2020-01-17T18:30:55+0700 sKqSw6ctYW [info] rollbackChanges("1")
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] unlink .step
2020-01-17T18:30:55+0700 sKqSw6ctYW [info] end of  rollbackChanges()
2020-01-17T18:31:24+0700 seNlGiRKvp [info] request to updater
2020-01-17T18:31:24+0700 seNlGiRKvp [info] currentStep()
2020-01-17T18:31:24+0700 seNlGiRKvp [info] POST request for step "1"
2020-01-17T18:31:24+0700 seNlGiRKvp [info] startStep("1")
2020-01-17T18:31:24+0700 seNlGiRKvp [info] checkForExpectedFilesAndFolders()
2020-01-17T18:31:24+0700 seNlGiRKvp [info] end of checkForExpectedFilesAndFolders()
2020-01-17T18:31:24+0700 seNlGiRKvp [info] endStep("1")
2020-01-17T18:31:24+0700 xyGeUbALOF [info] request to updater
2020-01-17T18:31:24+0700 xyGeUbALOF [info] currentStep()
2020-01-17T18:31:24+0700 xyGeUbALOF [info] Step 1 is in state "end".
2020-01-17T18:31:24+0700 xyGeUbALOF [info] POST request for step "2"
2020-01-17T18:31:24+0700 xyGeUbALOF [info] startStep("2")
2020-01-17T18:31:24+0700 xyGeUbALOF [info] checkWritePermissions()
2020-01-17T18:31:24+0700 xyGeUbALOF [info] end of checkWritePermissions()
2020-01-17T18:31:24+0700 xyGeUbALOF [info] endStep("2")
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] request to updater
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] currentStep()
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] Step 2 is in state "end".
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] POST request for step "3"
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] startStep("3")
2020-01-17T18:31:24+0700 pz9gwZr1d6 [info] createBackup()
2020-01-17T18:35:01+0700 5n30PWrBdz [info] request to updater
2020-01-17T18:35:01+0700 5n30PWrBdz [info] currentStep()
2020-01-17T18:35:01+0700 5n30PWrBdz [info] Step 3 is in state "start".
2020-01-17T18:35:03+0700 uBJOyyInrL [info] request to updater
2020-01-17T18:35:03+0700 uBJOyyInrL [info] currentStep()
2020-01-17T18:35:03+0700 uBJOyyInrL [info] Step 3 is in state "start".
2020-01-17T18:35:15+0700 5hNC9627kl [info] request to updater
2020-01-17T18:35:15+0700 5hNC9627kl [info] currentStep()
2020-01-17T18:35:15+0700 5hNC9627kl [info] POST request for step "3"
2020-01-17T18:35:15+0700 5hNC9627kl [info] startStep("3")
2020-01-17T18:35:15+0700 5hNC9627kl [info] createBackup()
2020-01-17T18:35:15+0700 5hNC9627kl [info] backup folder location exists
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] request to updater
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] currentStep()
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] show HTML page
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] current version: 17.0.1 build time: 2019-11-07T12:06:23+00:00 a8405bf175d9924309b3889948b8fb26aa707fd6
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] getUpdateServerResponse()
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] updaterServer: https://updates.nextcloud.com/updater_server/
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] releaseChannel: stable
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] internal version: 17.0.1.1
2020-01-18T14:48:32+0700 BxFrE3Ng1k [info] updateURL: https://updates.nextcloud.com/updater_server/?version=17x0x1x1xxxstablexx2019-11-07T12%3A06%3A23%2B00%3A00+a8405bf175d9924309b3889948b8fb26aa707fd6x7x2x26
2020-01-18T14:48:33+0700 BxFrE3Ng1k [info] getUpdateServerResponse response: Array
(
    [version] => 17.0.2.1
    [versionstring] => Nextcloud 17.0.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip
    [web] => https://docs.nextcloud.com/server/17/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=17.0.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => iJ366fgx+zH3tEbM2kPLvwqm3GgeXdwu8Fg0eOsw642TqB/7FKkL940Tj9e8UdNr
pQXXmfTxc/X9UXmmBf2be+g18+EORlE656+AHOGpImqSg6c/iMGFSyj9iPZgjk5F
IDdagzpqNjZt8RVF3Ka/EBSSD2Xkrx71IKWxU8Yj0OhdXgPGrBFhxBmzT6Jibu6e
LVdwNzom8VhIKeOiteZ0LfioqIqBcpjRBzuZ6qm0izHQUAvxsFDN8gdUGdDmOzyM
7lZPg0Hh+7+Hp+AtSbOKmx9qUwM651QZ8tA2R2XPBrfjMDbWhFUuggfLwNrwD6mq
7mBUyQAHyb2Na0zF6rT8UA==
)

2020-01-18T14:48:33+0700 BxFrE3Ng1k [info] checkForUpdate() Array
(
    [version] => 17.0.2.1
    [versionstring] => Nextcloud 17.0.2
    [url] => https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip
    [web] => https://docs.nextcloud.com/server/17/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=17.0.2
    [autoupdater] => 1
    [eol] => 0
    [signature] => iJ366fgx+zH3tEbM2kPLvwqm3GgeXdwu8Fg0eOsw642TqB/7FKkL940Tj9e8UdNr
pQXXmfTxc/X9UXmmBf2be+g18+EORlE656+AHOGpImqSg6c/iMGFSyj9iPZgjk5F
IDdagzpqNjZt8RVF3Ka/EBSSD2Xkrx71IKWxU8Yj0OhdXgPGrBFhxBmzT6Jibu6e
LVdwNzom8VhIKeOiteZ0LfioqIqBcpjRBzuZ6qm0izHQUAvxsFDN8gdUGdDmOzyM
7lZPg0Hh+7+Hp+AtSbOKmx9qUwM651QZ8tA2R2XPBrfjMDbWhFUuggfLwNrwD6mq
7mBUyQAHyb2Na0zF6rT8UA==
)

2020-01-18T14:48:33+0700 BxFrE3Ng1k [info] getChangelogURL()
2020-01-18T14:48:33+0700 BxFrE3Ng1k [info] end of checkForUpdate() Update to Nextcloud 17.0.2 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-17.0.2.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#17-0-2" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] request to updater
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] currentStep()
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] POST request for step "1"
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] startStep("1")
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] checkForExpectedFilesAndFolders()
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] end of checkForExpectedFilesAndFolders()
2020-01-18T14:48:35+0700 qQD7KbG5lN [info] endStep("1")
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] request to updater
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] currentStep()
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] Step 1 is in state "end".
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] POST request for step "2"
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] startStep("2")
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] checkWritePermissions()
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] end of checkWritePermissions()
2020-01-18T14:48:35+0700 0vGBznr5Dl [info] endStep("2")
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] request to updater
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] currentStep()
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] Step 2 is in state "end".
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] POST request for step "3"
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] startStep("3")
2020-01-18T14:48:35+0700 uRa1pb8fRo [info] createBackup()
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] request to updater
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] currentStep()
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] POST request for step "3"
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] startStep("3")
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] createBackup()
2020-01-18T14:53:18+0700 B0ZUkNSopS [info] backup folder location exists

I can provide more logs, but i’d need pointer since i don’t know where to look for those.