Upgrade from 13.0.0 to 13.0.1 stuck on step 5

Nextcloud version: 13.0.0
Operating system and version: FreeBSD 11.1
Apache version: 2.4.29
PHP version: 7.0.27

When using the web-based updater, it failed on step 5 with a 500 error. Now it’s stuck on step 5 and won’t continue. I should have saved the error message, but I didn’t because I thought the updater would continue at step 5 with a refresh (per the docs). Running from the command line shows I’m still stuck on that step as well:

sudo -u www php updater/updater.phar
Nextcloud Updater - version: v13.0.0beta1

Step 5 is currently in process. Please call this command later.

Note that I’m not on the beta channel, so I don’t know why it says v13.0.0beta1 there.

Is this the first time you’ve seen this error?: Yes.

I can’t check the Nextcloud log in Admin > Logging because it’s in maintenance mode and I don’t want to mess anything up by taking it out too soon. The last error in nextcloud.log is an unrelated issue from 3/11 about the Google Drive storage backend, which has since been disabled.


2018-03-17T16:49:29+0000 nw0TcsXPlc [info] Step 4 is in state "end".
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] POST request for step "5"
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] startStep("5")
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] downloadUpdate()
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] getUpdateServerResponse()
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] updaterServer: https://updates.nextcloud.org/updater_server/
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] releaseChannel: stable
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] internal version:
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] updateURL: https://updates.nextcloud.org/updater_server/?version=13x0x0x14xxxstablexx2018-02-06T00%3A39%3A26%2B00%3A00+3b4285e13f6b1ec074b98466f49e189101f090bcx7x0x27
2018-03-17T16:49:29+0000 nw0TcsXPlc [info] getUpdateServerResponse response: Array
    [version] =>
    [versionstring] => Nextcloud 13.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-13.0.1.zip
    [web] => https://docs.nextcloud.com/server/13/admin_manual/maintenance/upgrade.html
    [autoupdater] => 1
    [eol] => 0
    [signature] => AG3egWHJkQaqCraVLiRq5Q7GvqArmBgVv8PNAfVYTOXPN6xWmw8cbUeBvBZ3OS1/

2018-03-17T16:49:29+0000 nw0TcsXPlc [info] storage location exists
2018-03-17T17:04:37+0000 WKYHVaumWG [info] updater cli is executed
2018-03-17T17:04:37+0000 WKYHVaumWG [info] currentStep()
2018-03-17T17:04:37+0000 WKYHVaumWG [info] Step 5 is in state "start".
2018-03-17T17:12:37+0000 2RGGLFLsfo [info] updater cli is executed
2018-03-17T17:12:37+0000 2RGGLFLsfo [info] currentStep()
2018-03-17T17:12:37+0000 2RGGLFLsfo [info] Step 5 is in state "start".
2018-03-17T17:31:42+0000 1Bs7xGRkhi [info] updater cli is executed
2018-03-17T17:31:42+0000 1Bs7xGRkhi [info] currentStep()
2018-03-17T17:31:42+0000 1Bs7xGRkhi [info] Step 5 is in state "start".


$CONFIG = array (
  'instanceid' => 'blah',
  'passwordsalt' => 'blah',
  'secret' => 'blah',
  'trusted_domains' =>
  array (
    0 => 'example.com',
  'datadirectory' => '/usr/local/www/storage/cloud',
  'overwrite.cli.url' => 'https://example.com',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_ncuser',
  'dbpassword' => 'blah',
  'logtimezone' => 'UTC',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'htaccess.RewriteBase' => '/',
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'php',
  'maintenance' => true,
  'token_auth_enforced' => true,
  'theme' => '',
  'loglevel' => 2,
  'mysql.utf8mb4' => true,
  'updater.secret' => 'blah',

Nothing useful in the Apache log:

example.com I.P.Add.ress - - [17/Mar/2018:12:49:29 -0400] "POST /updater/index.php HTTP/2.0" 500 536

Any suggestions?

I reverted to my backup and ran the upgrade from the command line, which went smoothly.

Maybe this would have fixed it: