Could not open input file: /update/updater.phar

Nextcloud version: 14.0.1
Operating system and version: Ubuntu 16.04.5 LTS
Apache or nginx version: Apache

The issue you are facing:

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. Update my installation to nc 14
  2. When I try to run updater.phar this is what I get:

Could not open input file: /update/updater.phar

The output of your Nextcloud log in Admin > Logging:

> tail updater.log

2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] getUpdateServerResponse()
2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] updaterServer: https://updates.nextcloud.org/updater_server/
2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] releaseChannel: stable
2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] internal version: 14.0.1.1
2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] updateURL: https://updates.nextcloud.org/updater_server/?version=14x0x1x1xxxstablexx2018-09-25T06%3A38%3A18%2B00%3A00+d96adc01b7b5dea20b64777daa04aefbcb9258e3x7x0x31
2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] checkForUpdate() Array
(
)

2018-10-09T21:43:31+0000 ZfbnRhBql1 [info] end of checkForUpdate() No update available.

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

$CONFIG = array (
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'trusted_domains' => 
  array (
    0 => 'domain',
    1 => 'ip_address',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'domain',
  'htaccess.RewriteBase' => '/',
  'defaultapp' => 'files',
  'theme' => '',
  'dbtype' => 'mysql',
  'version' => '14.0.1.0',
  'dbname' => 'xxxx',
  'dbhost' => 'xxxx',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxx',
  'dbpassword' => 'xxxx',
  'instanceid' => 'xxxx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
     'port' => 0,
    'dbindex' => 0,
    'password' => 'xxxx',
    'timeout' => 1.5,
  ),
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'updater.secret' => 'xxxx'
  'loglevel' => 2,
);

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

> tail /var/log/apache2/error.log
[Tue Oct 09 13:49:22.751311 2018] [ssl:error] [pid 1015:tid 547636043776] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=pine64 / issuer: CN=pine64 / serial: AE71422F3ABEE91A / notbefore: Aug  4 19:18:13 2018 GMT / notafter: Aug  1 19:18:13 2028 GMT]
[Tue Oct 09 13:49:22.751356 2018] [ssl:error] [pid 1015:tid 547636043776] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Tue Oct 09 13:49:22.855805 2018] [ssl:warn] [pid 1037:tid 547636043776] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 09 13:49:22.856179 2018] [ssl:error] [pid 1037:tid 547636043776] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=pine64 / issuer: CN=pine64 / serial: AE71422F3ABEE91A / notbefore: Aug  4 19:18:13 2018 GMT / notafter: Aug  1 19:18:13 2028 GMT]
[Tue Oct 09 13:49:22.856205 2018] [ssl:error] [pid 1037:tid 547636043776] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Tue Oct 09 13:49:22.857081 2018] [ssl:warn] [pid 1037:tid 547636043776] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 09 13:49:22.857339 2018] [ssl:error] [pid 1037:tid 547636043776] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=pine64 / issuer: CN=pine64 / serial: AE71422F3ABEE91A / notbefore: Aug  4 19:18:13 2018 GMT / notafter: Aug  1 19:18:13 2028 GMT]
[Tue Oct 09 13:49:22.857363 2018] [ssl:error] [pid 1037:tid 547636043776] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Tue Oct 09 13:49:22.863884 2018] [mpm_event:notice] [pid 1037:tid 547636043776] AH00489: Apache/2.4.34 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations
[Tue Oct 09 13:49:22.864160 2018] [core:notice] [pid 1037:tid 547636043776] AH00094: Command line: '/usr/sbin/apache2'

Updating happens successfully but I still see the update page in the homepage, how can I fix that?

When I run

sudo -u www-data php /update/updater.phar

I get Could not open input file: /update/updater.phar. Here’s what I tried:

sudo chmod a+r updater.phar
sudo chown -R www-data:www-data /var/www/nextcloud/

sudo -u www-data 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
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database

Starting code integrity check…
Finished code integrity check
Update successful
Turned off maintenance mode
Reset log level