Nextcloud 18 rc2: Upgrade does not detect new version: "Nextcloud is already latest version"

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, 12.0.2): 18.0.0 Beta3
Operating system and version (eg, Ubuntu 17.04): Debian 10
Apache or nginx version (eg, Apache 2.4.25): nginx 1.14.1-1
PHP version (eg, 7.1): 7.3.11

The issue you are facing:

Upgrade does not detect newer version and thus does nothing

$ sudo -u www-data php occ upgrade
Nextcloud is already latest version

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

Steps to replicate it:

Run the following

$ sudo -u www-data php occ upgrade -V
Nextcloud 18.0.0 Beta3
$ sudo -u www-data php occ update:check
Nextcloud 18.0.0 RC 2 is available. Get more information on how to update at https://docs.nextcloud.com/server/17/admin_manual/maintenance/upgrade.html.
1 update available
$ sudo -u www-data php occ upgrade
Nextcloud is already latest version

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'trusted_domains' => 
  array (
    0 => 'xxx.xxx.xxxx',
  ),
  'datadirectory' => '/srv/nc/data',
  'overwrite.cli.url' => 'https://xxx.xxx.xx',
  'dbtype' => 'mysql',
  'version' => '18.0.0.5',
  'dbname' => 'nc',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxx',
  'dbpassword' => 'Y+xxxx',
  'logtimezone' => 'UTC',
  'installed' => true,
  'updater.release.channel' => 'beta',
  'mail_from_address' => 'nc',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'xxx.xx',
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'theme' => '',
  'log_type' => 'syslog',
  'logfile' => '',
  'loglevel' => 0,
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxx.xxx.xxx',
  'mail_smtpport' => 'xxx',
  'mail_smtpname' => 'xxx@xxx.xxx',
  'mail_smtppassword' => 'xxxx',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'app_install_overwrite' => 
  array (
    0 => 'unsplash',
    1 => 'contacts',
    2 => 'files_retention',
    3 => 'admin_notifications',
    4 => 'deck',
    5 => 'dashboard',
    6 => 'announcementcenter',
    7 => 'quota_warning',
    8 => 'circles',
    9 => 'bruteforcesettings',
    10 => 'drawio',
  ),
  'updater.secret' => 'xxxx',
);

take a coffee or tee and wait, it needs days or weeks before everyone can update, rolling release

If you want it NOW you can do a manual update with a lot of danger if you don’t know what you’re doing.
By downloading the .tar package on the nextcloud website.