Unable to update to 23.0.12 - Stuck at Step 3

Nextcloud version (eg, 20.0.5): 23.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29
PHP version (eg, 7.4): 7.4

The issue you are facing:
Each time I try to update Nextcloud from Web Update from 23.0.3 to 23.0.12, I get stuck on step 3 and I get the following error

** Parsing response failed.*
Show detailed response

***
*<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">*
*<html><head>*
*<title>500 Internal Server Error</title>*
*</head><body>*
*<h1>Internal Server Error</h1>*
*<p>The server encountered an internal error or*
*misconfiguration and was unable to complete*
*your request.</p>*
*<p>Please contact the server administrator at *
* webmaster@domain-name.net to inform them of the time this error occurred,*
* and the actions you performed just before this error.</p>*
*<p>More information about this error may be available*
*in the server error log.</p>*
*</body></html>*
***

Have attempted to turn ON Maintenance mode and turn OFF maintenance mode and tried it but no change in the result.

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

Steps to replicate it:

  1. Open web updater from Settings
  2. Start the update
  3. Wait till I get to Step 3 and errors

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'Removed',
  'passwordsalt' => 'Removed',
  'secret' => 'Removed',
  'trusted_domains' => 
  array (
    0 => 'www.domain.net',
  ),
  'datadirectory' => '/home/username/domain-name/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'https://www.domain-name/nextcloud',
  'dbname' => 't3_nextcloud',
  'dbhost' => 'sql.domain-name.net',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 't3_nextcloud',
  'dbpassword' => 'Removed',
  'installed' => true,
  'updater.secret' => 'Removed',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'shop',
  'mail_domain' => 't3.domain-name.net',
  'mail_smtphost' => 'smtp.domain-name.com',
  'mail_smtpport' => '465',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'shop@domain-name.net',
  'mail_smtppassword' => 'Removed',
  'maintenance' => false,
);

The output of your Apache/nginx/system log in /var/log/____:

Not Available - Hosted service

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

No Live Update logs available


Available Logs from updater.log

2023-01-27T19:58:06-0800 DL3Cj7zveI [info] checkForUpdate() Array

2023-01-27T19:58:06-0800 DL3Cj7zveI [info] getChangelogURL()
2023-01-27T19:58:06-0800 DL3Cj7zveI [info] end of checkForUpdate() Update to Nextcloud 23.0.12 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-23.0.12.zip
Open changelog :arrow_upper_right:
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] request to updater
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] currentStep()
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] POST request for step “1”
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] startStep(“1”)
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] checkForExpectedFilesAndFolders()
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] end of checkForExpectedFilesAndFolders()
2023-01-27T19:58:15-0800 XhC5jkQCh5 [info] endStep(“1”)
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] request to updater
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] currentStep()
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] Step 1 is in state “end”.
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] POST request for step “2”
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] startStep(“2”)
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] checkWritePermissions()
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] end of checkWritePermissions()
2023-01-27T19:58:15-0800 2wwMRgjwgq [info] endStep(“2”)
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] request to updater
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] currentStep()
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] Step 2 is in state “end”.
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] POST request for step “3”
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] startStep(“3”)
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] createBackup()
2023-01-27T19:58:15-0800 TUQH1QFbFs [info] backup folder location: /home/username/domain-name/nextcloud/data/updater-ocxvkyznck00/backups/nextcloud-23.0.3.2-1674878295/
2023-01-27T20:02:56-0800 JFBuRhXrWR [info] request to updater
2023-01-27T20:02:56-0800 JFBuRhXrWR [info] currentStep()
2023-01-27T20:02:56-0800 JFBuRhXrWR [info] Step 3 is in state “start”.
2023-01-27T20:03:05-0800 Czqv9HkEwz [info] request to updater
2023-01-27T20:03:05-0800 Czqv9HkEwz [info] currentStep()
2023-01-27T20:03:05-0800 Czqv9HkEwz [info] Step 3 is in state “start”.
2023-01-27T20:05:05-0800 PkDqq1akNj [info] request to updater
2023-01-27T20:05:05-0800 PkDqq1akNj [info] currentStep()
2023-01-27T20:05:05-0800 PkDqq1akNj [info] Step 3 is in state “start”.
2023-01-27T20:07:55-0800 5SDs6mMbr4 [info] request to updater
2023-01-27T20:07:55-0800 5SDs6mMbr4 [info] currentStep()
2023-01-27T20:07:55-0800 5SDs6mMbr4 [info] Step 3 is in state “start”.
2023-01-27T20:14:12-0800 R4fGeFuh7x [info] request to updater
2023-01-27T20:14:12-0800 R4fGeFuh7x [info] currentStep()
2023-01-27T20:14:12-0800 R4fGeFuh7x [info] Step 3 is in state “start”.
2023-01-27T20:32:37-0800 qUpBYhxQF8 [info] request to updater
2023-01-27T20:32:37-0800 qUpBYhxQF8 [info] currentStep()
2023-01-27T20:32:37-0800 qUpBYhxQF8 [info] Step 3 is in state “start”.
2023-01-27T20:59:45-0800 aWs22n0tHF [info] request to updater
2023-01-27T20:59:45-0800 aWs22n0tHF [info] currentStep()
2023-01-27T20:59:45-0800 aWs22n0tHF [info] Step 3 is in state “start”.
2023-01-27T20:59:49-0800 VKtdZGMMbb [info] request to updater
2023-01-27T20:59:49-0800 VKtdZGMMbb [info] currentStep()
2023-01-27T20:59:49-0800 VKtdZGMMbb [info] Step 3 is in state “start”.
2023-01-27T21:47:09-0800 A0zoUIYAXq [info] request to updater
2023-01-27T21:47:09-0800 A0zoUIYAXq [info] currentStep()
2023-01-27T21:47:09-0800 A0zoUIYAXq [info] Step 3 is in state “start”.
2023-01-27T23:02:54-0800 APxiNaWV54 [info] request to updater
2023-01-27T23:02:54-0800 APxiNaWV54 [info] currentStep()
2023-01-27T23:02:54-0800 APxiNaWV54 [info] Step 3 is in state “start”.
2023-01-27T23:04:09-0800 hvzeMYfgP9 [info] request to updater
2023-01-27T23:04:09-0800 hvzeMYfgP9 [info] currentStep()
2023-01-27T23:04:09-0800 hvzeMYfgP9 [info] Step 3 is in state “start”.
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] request to updater
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] currentStep()
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] show HTML page
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] current version: 23.0.3 build time: 2022-03-21T13:05:48+00:00 5f6449283b5eb3cd0c96f475ff6f68a6c73a8140
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] getUpdateServerResponse()
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] releaseChannel: stable
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] internal version: 23.0.3.2
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] updateURL: updates.nextcloudcom/updater_server/?version=23x0x3x2xxxstablexx2022-03-21T13%3A05%3A48%2B00%3A00+5f6449283b5eb3cd0c96f475ff6f68a6c73a8140x7x4x30
2023-01-27T23:12:56-0800 hM7oiHKmWh [info] getUpdateServerResponse response: Array
(