Failed upgrade from 22.2.6.2 stable to 23.0.3 stable. version.php missing

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): 22.2.6.2
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): 7.4

The issue you are facing:

Started an upgrade from the web interface and it stalled at step 6. I went ahead and removed the .step from the updater, turned maintenance mode off and tried running the updater from the CLI. Now I get this error mssg:

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.                                                                      
                                                                                                                                                              
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[ ] Extracting ...PHP Warning:  require(/var/www/nextcloud/updater/../version.php): failed to open stream: No such file or directory in phar:///var/www/nextcl
oud/updater/updater.phar/lib/Updater.php on line 658                                                                                                          
PHP Fatal error:  require(): Failed opening required '/var/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php') in phar:///var/www/nextclou
d/updater/updater.phar/lib/Updater.php on line 658

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

Steps to replicate it:

  1. Start the updater
  2. When it stalls, try to update through CLI
  3. It stops at step 6 and the above error is displayed

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' => 'xx',
  'passwordsalt' => 'xx',
  'secret' => 'xx',
  'trusted_domains' => 
  array (
    0 => 'xx',
    1 => '192.168.57.195',
  ),                                                                                                                                                          
  'trusted_proxies' => 
  array (
    0 => 'xx',
  ),                                                                                                                                                          
  'overwriteprotocol' => 'https',
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.2.6.2',
  'overwrite.cli.url' => 'http://192.168.57.196',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'default_phone_region' => 'US',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'xx',
  'mail_domain' => 'xx',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xx',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'xx',
  'mail_smtppassword' => 'xx',
  'mail_smtpsecure' => 'tls',
  'updater.secret' => 'xx',

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

2022/04/08 13:05:24 [error] 494#494: *346195 access forbidden by rule, client: 192.168.57.245, server: localhost, request: "GET /data/.ocdata?t=1649441124733 
HTTP/1.1", host: "com.com"                                                                                                                       
2022/04/08 13:27:24 [notice] 370004#370004: signal process started                                                                                            
2022/04/08 13:42:33 [error] 498#498: *136 access forbidden by rule, client: 192.168.57.245, server: localhost, request: "GET /data/.ocdata?t=1649443353078 HTT
P/1.1", host: "com.com"                                                                                                                          
2022/04/08 13:46:11 [error] 498#498: *192 FastCGI sent in stderr: "PHP message: PHP Warning:  require(/var/www/nextcloud/updater/../version.php): failed to op
en stream: No such file or directory in /var/www/nextcloud/updater/index.php on line 792PHP message: PHP Fatal error:  require(): Failed opening required '/va
r/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php') in /var/www/nextcloud/updater/index.php on line 792" while reading response header f
rom upstream, client: 192.168.57.245, server: localhost, request: "POST /updater/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:"
, host: "com.com"                                                                                                                                

PASTE HERE


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.

PASTE HERE