Stuck in last upgrade web page

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): from 20.0.8 to 20.0.13
Operating system and version (eg, Ubuntu 20.04): FreeBSD 12.2-RELEASE-p9 amd64
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.49
PHP version (eg, 7.4): 7.2.33

The issue you are facing:
After a positive upgrade the system is stuck in the last update screen, the one that suggest to upgrade or use the command occ to upgrade.

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

Steps to replicate it:
Not able to replicate

The output of your Nextcloud log in Admin > Logging:

Not accessible

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

  ...
  'trusted_domains' => 
  array (
    0 => 'localhost',
    ...
    2 => '172.16.0.16',
  ),
  'datadirectory' => '/mnt/files',
  'dbtype' => 'mysql',
  'version' => '20.0.13.1',
  ...
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  ...
  'installed' => true,
  'instanceid' => 'oc52robduyao',
  'logtimezone' => 'Europe/Rome',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => '2',
  'logrotate_size' => '104847600',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'htaccess.RewriteBase' => '/',
  ...
  'maintenance' => false,
  'theme' => '',
  'mysql.utf8mb4' => true,
  'encryption.legacy_format_support' => true,
  'encryption.key_storage_migrated' => false

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

[Mon Oct 18 11:31:09.292417 2021] [proxy_fcgi:error] [pid 5270:tid 34399409152] (70007)The timeout specified has expired: [client 172.16.0.22:57130] AH01075: Error dispatching request to : (polling)
[Mon Oct 18 11:39:30.918316 2021] [mpm_event:notice] [pid 5264:tid 34397577216] AH00491: caught SIGTERM, shutting down
[Mon Oct 18 11:39:31.005699 2021] [ssl:warn] [pid 34036:tid 34397577216] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.2s-freebsd  28 May 2019, version currently loaded is OpenSSL 1.0.2o-freebsd  27 Mar 2018) - may result in undefined or erroneous behavior
[Mon Oct 18 11:39:31.017318 2021] [ssl:warn] [pid 34037:tid 34397577216] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.2s-freebsd  28 May 2019, version currently loaded is OpenSSL 1.0.2o-freebsd  27 Mar 2018) - may result in undefined or erroneous behavior
[Mon Oct 18 11:39:31.017376 2021] [ssl:warn] [pid 34037:tid 34397577216] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Oct 18 11:39:31.019181 2021] [mpm_event:notice] [pid 34037:tid 34397577216] AH00489: Apache/2.4.46 (FreeBSD) OpenSSL/1.0.2o-freebsd configured -- resuming normal operations
[Mon Oct 18 11:39:31.019215 2021] [core:notice] [pid 34037:tid 34397577216] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Mon Oct 18 11:39:50.343750 2021] [mpm_event:notice] [pid 34037:tid 34397577216] AH00491: caught SIGTERM, shutting down
[Mon Oct 18 11:39:57.867686 2021] [ssl:warn] [pid 35008:tid 34397577216] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.2s-freebsd  28 May 2019, version currently loaded is OpenSSL 1.0.2o-freebsd  27 Mar 2018) - may result in undefined or erroneous behavior
[Mon Oct 18 11:39:57.878888 2021] [ssl:warn] [pid 35009:tid 34397577216] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.2s-freebsd  28 May 2019, version currently loaded is OpenSSL 1.0.2o-freebsd  27 Mar 2018) - may result in undefined or erroneous behavior
[Mon Oct 18 11:39:57.878960 2021] [ssl:warn] [pid 35009:tid 34397577216] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Oct 18 11:39:57.880778 2021] [mpm_event:notice] [pid 35009:tid 34397577216] AH00489: Apache/2.4.46 (FreeBSD) OpenSSL/1.0.2o-freebsd configured -- resuming normal operations
[Mon Oct 18 11:39:57.880811 2021] [core:notice] [pid 35009:tid 34397577216] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'

Have you tried to call update using occ on your bash?

Yes, It’s say that everything is fine.

Any output from the bash.

Which screen do you see. Please provide screenshot.

upgrade

This button show the text “Start the update”.

The following screen is after the click on that button:

aft_upgrade

The sentence is “The update as been correctly done, redirecting to Nextcloud in 4 seconds”.
After the redirecting screen the first page is shown.

Bash output:

[root@nextcloud /usr/local/www/apache24/data/nextcloud]# sudo -u www php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Checking for update of app accessibility in appstore
Checked for update of app "accessibility" in appstore 
Checking for update of app activity in appstore
Checked for update of app "activity" in appstore 
Checking for update of app cloud_federation_api in appstore
Checked for update of app "cloud_federation_api" in appstore 
Checking for update of app comments in appstore
Checked for update of app "comments" in appstore 
Checking for update of app contactsinteraction in appstore
Checked for update of app "contactsinteraction" in appstore 
Checking for update of app dashboard in appstore
Checked for update of app "dashboard" in appstore 
Checking for update of app dav in appstore
Checked for update of app "dav" in appstore 
Checking for update of app encryption in appstore
Checked for update of app "encryption" in appstore 
Checking for update of app federatedfilesharing in appstore
Checked for update of app "federatedfilesharing" in appstore 
Checking for update of app federation in appstore
Checked for update of app "federation" in appstore 
Checking for update of app files in appstore
Checked for update of app "files" in appstore 
Checking for update of app files_pdfviewer in appstore
Checked for update of app "files_pdfviewer" in appstore 
Checking for update of app files_rightclick in appstore
Checked for update of app "files_rightclick" in appstore 
Checking for update of app files_sharing in appstore
Checked for update of app "files_sharing" in appstore 
Checking for update of app files_trashbin in appstore
Checked for update of app "files_trashbin" in appstore 
Checking for update of app files_versions in appstore
Checked for update of app "files_versions" in appstore 
Checking for update of app files_videoplayer in appstore
Checked for update of app "files_videoplayer" in appstore 
Checking for update of app firstrunwizard in appstore
Checked for update of app "firstrunwizard" in appstore 
Checking for update of app logreader in appstore
Checked for update of app "logreader" in appstore 
Checking for update of app lookup_server_connector in appstore
Checked for update of app "lookup_server_connector" in appstore 
Checking for update of app nextcloud_announcements in appstore
Checked for update of app "nextcloud_announcements" in appstore 
Checking for update of app notifications in appstore
Checked for update of app "notifications" in appstore 
Checking for update of app oauth2 in appstore
Checked for update of app "oauth2" in appstore 
Checking for update of app password_policy in appstore
Checked for update of app "password_policy" in appstore 
Checking for update of app photos in appstore
Checked for update of app "photos" in appstore 
Checking for update of app privacy in appstore
Checked for update of app "privacy" in appstore 
Checking for update of app provisioning_api in appstore
Checked for update of app "provisioning_api" in appstore 
Checking for update of app recommendations in appstore
Checked for update of app "recommendations" in appstore 
Checking for update of app serverinfo in appstore
Checked for update of app "serverinfo" in appstore 
Checking for update of app settings in appstore
Checked for update of app "settings" in appstore 
Checking for update of app sharebymail in appstore
Checked for update of app "sharebymail" in appstore 
Checking for update of app support in appstore
Checked for update of app "support" in appstore 
Checking for update of app survey_client in appstore
Checked for update of app "survey_client" in appstore 
Checking for update of app systemtags in appstore
Checked for update of app "systemtags" in appstore 
Checking for update of app text in appstore
Checked for update of app "text" in appstore
Checking for update of app theming in appstore
Checked for update of app "theming" in appstore 
Checking for update of app twofactor_backupcodes in appstore
Checked for update of app "twofactor_backupcodes" in appstore 
Checking for update of app updatenotification in appstore
Checked for update of app "updatenotification" in appstore 
Checking for update of app user_status in appstore
Checked for update of app "user_status" in appstore 
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore 
Checking for update of app weather_status in appstore
Checked for update of app "weather_status" in appstore 
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore 
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

Does not look bad.

There is a file called .step IIRC in your updater directory. Please remove it and try once more.

Sorry for the dummy question, but which is my IIRC updater directory?
I’ve checked in the dir of the OCC and in all its subfolder but I can’t find the .step file.

IIRC = If I remember correctly

Have you tried to clear your browser cache?

Ohhhh damn, sorry I’ve tried to solve the IIRC in all the possible way except thinking about it.

Yes, I have already tried to clear the cache.

Any hints in nextcloud.log, updater.log or webserver logfile?