NC broken and completely unusable after updating from 19.0.4 to 19.0.6 and can't update to 20.0.4

Nextcloud version (eg, 18.0.2): 19.0.6
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.1 LTS
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.18.0 for Ubuntu
PHP version (eg, 7.1): 7.4.13

The issue you are facing: There was an update available for NC from 19.0.4 to 19.0.6. I updated it via GUI/browser. After the update, NC broke as a whole. You can’t see GUI icons or your logo. You can’t access your files either and can’t update apps. Checking apps for compatible updates keeps spinning in settings. You can’t even fix the broken update with the latest update to 20.0.4 because it gives you the following error:

To login you need to provide the unhashed value of "updater.secret" in your config file. If you don't know that value, you can access this updater directly via the Nextcloud admin screen or generate your own secret:

I follow the instructions and then gets stuck on step 6 (verifying integrity). Manually running the occ update says the NC is at latest version but it’s not. Found a way to force the update and then it gives me ‘Step 5 in state start’ blah blah.

Kindly, help me with this issue and please keep in mind I’m not a Linux pro and prefer doing stuff via GUI/easy way. Don’t advice me to re-install NC or copy-paste new server files and replace with old ones etc because I know I’ll just break everything.

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

Steps to replicate it:

  1. Update NC from 19.0.4 to 19.0.6
  2. Voila NC is broken
  3. Can’t update to 20.0.4

The output of your Nextcloud log in Admin > Logging:

Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Debug	cron	Finished OCA\Deck\Cron\CardDescriptionActivity job with ID 129 in 0 seconds		2020-12-20T14:07:47+0500
Debug	cron	Run OCA\Deck\Cron\CardDescriptionActivity job with ID 129		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getManifest" as such route does not exist.		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 1667-5c30-merged-files.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 1667-5c30-merged-files.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached ae3e-5c30-style.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached ae3e-5c30-style.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 39b9-5c30-icons.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 39b9-5c30-icons.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 39b9-5c30-icons.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 39b9-5c30-icons.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 3d4b-5c30-icons.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 3d4b-5c30-icons.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached f5a2-5c30-merged.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached f5a2-5c30-merged.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-results.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-results.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached b1d7-5c30-styles.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached b1d7-5c30-styles.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-css-variables.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-css-variables.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-server.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-server.css isCachedCache is expired or unset		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'deck' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'deck' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "spreed.Page.index" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "rainloop.page.index" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "quicknotes.page.index" as such route does not exist.		2020-12-20T14:07:47+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "tasks.page.index" as such route does not exist.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:47+0500
Debug	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:47+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:47+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:46+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:46+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:46+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:46+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:46+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "spreed.Page.index" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "rainloop.page.index" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "quicknotes.page.index" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "tasks.page.index" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getImage" as such route does not exist.		2020-12-20T14:07:46+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'deck' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'deck' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Debug	fulltextsearch	Could not determine if provider with id 'deck' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.		2020-12-20T14:07:46+0500
Error	no app in context	Error: Interface 'OCP\AppFramework\Bootstrap\IBootstrap' not found		2020-12-20T14:07:46+0500
Debug	serverDI	The requested alias "PreviewManager" is depreacted. Please request "OCP\IPreview" directly. This alias will be removed in a future Nextcloud version.		2020-12-20T14:07:46+0500
Error	PHP	You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18		2020-12-20T14:07:46+0500
Info	no app in context	Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "theming.Theming.getManifest" as such route does not exist.		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::isCached 7d23-5c30-settings.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::isCached 7d23-5c30-settings.css isCachedCache is expired or unset		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-results.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::isCached 2a26-5c30-results.css isCachedCache is expired or unset		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::process ordinary check follows		2020-12-20T14:07:46+0500
Debug	scss_cacher	SCSSCacher::isCached b1d7-5c30-styles.css dependencies successfully cached for 5 minutes		2020-12-20T14:07:46+0500

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

<?php
$CONFIG = array (
  'instanceid' => 'ocdyoldu1fvb',
  'passwordsalt' => 'hafnHkmjl+HptjxTVzx7mGyUTEGsAp',
  'secret' => 'erDv5gOAQ0mPByBsWMw0rx0NjuLDmhPMX32C9CL0kxp3xf2y',
  'trusted_domains' => 
  array (
    0 => 'cloud.redacted.com',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://cloud.redacted.com',
  'dbtype' => 'mysql',
  'version' => '19.0.6.2',
  'dbname' => 'cloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'cloud',
  'dbpassword' => '7e2uh6qaM4xi4i6e7aqOP71uW7Sep4',
  'installed' => true,
  'maintenance' => false,
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_domain' => 'redacted.com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '587',
  'mail_smtphost' => 'mail.redacted.com',
  'mail_smtpname' => 'no-reply@redacted.com',
  'mail_smtppassword' => 'redacted',
  'theme' => '',
  'loglevel' => 0,
  'mail_sendmailmode' => 'smtp',
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
  ),
  'updater.secret' => 'redacted',
);

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

2020/12/20 00:02:50 [crit] 16482#16482: *102569 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: redacted, server: redacted.com, request: "POST /wp-cron.php?doing_wp_cron=1608418970.6176950931549072265625 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/wp-cron.php?doing_wp_cron=1608418970.6176950931549072265625"
2020/12/20 00:02:50 [error] 16482#16482: *102567 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 2607:5300:60:db6::1, server: redacted.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com"
2020/12/20 00:02:50 [crit] 16482#16482: *102567 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 2607:5300:60:db6::1, server: redacted.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com"
2020/12/20 00:02:51 [error] 16482#16482: *102571 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 2607:5300:60:db6::1, server: redacted.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com"
2020/12/20 00:02:52 [crit] 16482#16482: *102571 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 2607:5300:60:db6::1, server: redacted.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com"
2020/12/20 00:02:52 [error] 16482#16482: *102573 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 2607:5300:60:db6::1, server: redacted.com, request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com"
2020/12/20 00:02:52 [crit] 16482#16482: *102573 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 2607:5300:60:db6::1, server: redacted.com, request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com"
2020/12/20 00:03:17 [error] 16482#16482: *102575 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:03:17 [crit] 16482#16482: *102575 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:08:17 [crit] 16482#16482: *102580 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: redacted, server: redacted.com, request: "POST /wp-cron.php?doing_wp_cron=1608419297.6455249786376953125000 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/wp-cron.php?doing_wp_cron=1608419297.6455249786376953125000"
2020/12/20 00:08:17 [error] 16482#16482: *102578 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:08:17 [crit] 16482#16482: *102578 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:08:40 [crit] 16482#16482: *102582 open() "/var/log/nginx/cloud.redacted.com-access.log" failed (13: Permission denied) while logging request, client: 83.97.20.31, server: cloud.redacted.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted:443"
2020/12/20 00:09:00 [crit] 16482#16482: *102584 open() "/var/log/nginx/cloud.redacted.com-access.log" failed (13: Permission denied) while logging request, client: 83.97.20.31, server: cloud.redacted.com, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted:443"
2020/12/20 00:13:17 [crit] 16482#16482: *102588 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: redacted, server: redacted.com, request: "POST /wp-cron.php?doing_wp_cron=1608419597.6216220855712890625000 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/wp-cron.php?doing_wp_cron=1608419597.6216220855712890625000"
2020/12/20 00:13:17 [error] 16482#16482: *102586 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:13:17 [crit] 16482#16482: *102586 open() "/var/log/nginx/redacted.com-access.log" failed (13: Permission denied) while logging request, client: 69.162.124.235, server: redacted.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "redacted.com", referrer: "https://redacted.com/"
2020/12/20 00:15:31 [error] 16482#16482: *102590 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of WCS_Query::get_endpoint_title($endpoint) should be compatible with WC_Query::get_endpoint_title($endpoint, $action = '') in /var/www/website/wp-content/plugins/woocommerce-subscriptions/includes/class-wcs-query.php on line 104" while reading response header from upstream, client: 51.91.127.200, server: redacted.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "redacted.com"

You can try and trigger the upgrade from command line:

sudo -u www-data php /var/www/nextcloud/updater/updater.phar

In contrast to the GUI, there are no memory or runtime limits and you don’t need the update-secret. In case you already have the new code on your system, you just need to upgrade the database:

sudo -u www-data php /var/www/nextcloud/occ upgrade

In case something got completely wrong and you have a mixture of different code versions, you can still do a manual upgrade. In that case, please let us know what version you have in config/config.php and versions.php.

And please do a backup of the config-files, data and the database. So you can at least go back to the current state.

It gives me the following error as mentioned in my original post:


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

And this also says the following as stated in my original post:

Nextcloud is already latest version

19.0.6.2 in config.php

and following in versions.php

$OC_Version = array(19,0,6,2);
$OC_VersionString = '19.0.6';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
  'nextcloud' => 
  array (
    '18.0' => true,
    '19.0' => true,
  ),
  'owncloud' => 
  array (
  ),
);
$OC_Build = '2020-12-09T19:47:19+00:00 83b20583671a8a4c6c3bda7afbfd4b7efb21a8a9';
$vendor = 'nextcloud';

Please let me know the next steps.

Please share which apps are installed. During a upgrade also the apps are updated. The latest version of the printer app released for Nextcloud 19 is broken (because it requires code only available from Nextcloud 20).

To delete a broken app delete the folder from apps/. For example apps/printer. There might be other broken apps.

1 Like

Please find the list of apps after executing sudo -u www-data php occ app:list

Enabled:
  - accessibility: 1.5.0
  - activity: 2.12.1
  - admin_audit: 1.9.0
  - announcementcenter: 3.8.1
  - apporder: 0.11.0
  - audioplayer: 2.13.1
  - bruteforcesettings: 2.0.1
  - calendar: 2.0.4
  - camerarawpreviews: 0.7.10
  - circles: 0.19.11
  - cloud_federation_api: 1.2.0
  - cms_pico: 1.0.12
  - comments: 1.9.0
  - contactsinteraction: 1.0.0
  - dav: 1.15.0
  - deck: 1.2.2
  - drawio: 0.9.8
  - external: 3.6.0
  - extract: 1.2.5
  - federatedfilesharing: 1.9.0
  - federation: 1.9.0
  - files: 1.14.0
  - files_antivirus: 3.1.0
  - files_downloadactivity: 1.8.0
  - files_external: 1.10.0
  - files_fulltextsearch: 1.4.3
  - files_fulltextsearch_tesseract: 1.4.2
  - files_markdown: 2.3.1
  - files_mindmap: 0.0.23
  - files_pdfviewer: 1.8.0
  - files_retention: 1.8.2
  - files_rightclick: 0.16.0
  - files_sharing: 1.11.0
  - files_trackdownloads: 1.8.0
  - files_trashbin: 1.9.0
  - files_versions: 1.12.0
  - files_videoplayer: 1.8.0
  - firstrunwizard: 2.8.0
  - flowupload: 1.1.2
  - fulltextsearch: 1.4.2
  - fulltextsearch_elasticsearch: 1.5.2
  - impersonate: 1.6.1
  - logreader: 2.4.0
  - lookup_server_connector: 1.7.0
  - mail: 1.4.2
  - metadata: 0.12.0
  - music: 0.17.3
  - nextcloud_announcements: 1.8.0
  - notes: 3.6.4
  - notifications: 2.7.0
  - oauth2: 1.7.0
  - ojsxc: 4.2.0
  - onlyoffice: 6.2.0
  - password_policy: 1.9.1
  - passwords: 2020.12.0
  - photos: 1.1.0
  - polls: 1.6.2
  - previewgenerator: 2.3.0
  - printer: 0.0.4
  - privacy: 1.3.0
  - provisioning_api: 1.9.0
  - quicknotes: 0.6.3
  - quota_warning: 1.8.0
  - rainloop: 7.0.3
  - ransomware_protection: 1.7.0
  - recommendations: 0.7.0
  - serverinfo: 1.9.0
  - settings: 1.1.0
  - sharebymail: 1.9.0
  - socialsharing_email: 2.1.0
  - socialsharing_facebook: 2.1.0
  - socialsharing_twitter: 2.1.0
  - spreed: 9.0.7
  - support: 1.2.1
  - survey_client: 1.7.0
  - systemtags: 1.9.0
  - tasks: 0.13.6
  - text: 3.0.1
  - theming: 1.10.0
  - twofactor_backupcodes: 1.8.0
  - twofactor_totp: 5.0.0
  - twofactor_u2f: 6.0.0
  - unsplash: 1.1.7
  - updatenotification: 1.9.0
  - user_usage_report: 1.3.3
  - viewer: 1.3.0
  - w2g2: 3.0.3
  - workflowengine: 2.1.0
Disabled:
  - dicomviewer
  - dropit
  - encryption
  - end_to_end_encryption
  - ownpad
  - passman
  - radio
  - user_ldap

Yes, printer app was installed and enabled and after your comment, I disabled it and deleted it and now suddenly

this is fixed, GUI is back and NC is working normally for the most part and I can access my files too now:
image

However, when I try running the updater by clicking on ‘open updater’, it just says Step 5 is currently in process. Please reload this page later. as a plain HTML text. Tried updating using occ:

image

I would like to thank you for your immense help as it helped me fix NC for the most part. Now I just need help in fixing the ‘Step 5 is currently in process’ error and update to NC 20.0.4

A post was split to a new topic: After update, apps aren’t downloaded

probably the update process puts some files during processing that blocks new processes to run. Check the folder

ls -lisa /var/www/nextcloud/data/updater-.....

I have a .step-previous-update file, it contains just one line:

{"state":"end","step":12}

In your case it is probably stuck in between. Since you fixed it manually, you can try to set it to the same value so the updater knows that the previous update was completed.

Thanks for your reply but mine shows exactly the same without editing it so I’m still stuck with 19.0.6 and can’t update.

Do you have something like “.step” in Nextcloud’s updater-xxxxxxxxx data directory? Rename that to for example “.step_” and try again. Always works for me.

The “.step” contains one line {"state":"start","step":5} and by renaming “.step” I can now run the updater via GUI but then it gives error at “Verifying integrity” and “Parsing response failed” with the same error i.e “Step 5 is currently in process. Please reload this page later.”


Retry update doesn’t help either.

I’m always updating from the command line, trying to update via GUI always fails one way or another. Maybe you can try renaming or deleting the .step file followed by an upgrade from the command line.

1 Like

That didn’t work either.

I ended up deleting the VM from proxmox and restoring to a previous backup which had 19.0.4 NC installed. I then deleted the Printer app immediately and updated to 19.0.6 from GUI without any issues or manual intervention. However, updating from 19.0.6 to 20.0.4 from GUI failed again and always fails no matter what I do.

Then I deleted the VM again, restored it from the backup and did everything manually from the terminal and not touching the GUI. Deleted printer app, updated NC from 19.0.4 to 19.0.6 and then to 20.0.4 using sudo -u www-data php /var/www/nextcloud/updater/updater.phar

So, now finally everything is working as it should and my NC version is 20.0.4. Thank you for the help and prompt replies.