Website still shows update screen after update

Nextcloud version (eg, 12.0.2): 14.0.3
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
Website still shows update screen after update, this screen has persisted after a week of me trying different things to get it to work. I tried permissions, doing a manual upgrade by swapping out the files, doing command line updates and repairs - but nothing has fixed it.

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

Steps to replicate it:

  1. Visit website, see update page. Can’t access site

The output of your Nextcloud log in Admin > Logging:

{"reqId":"QUiJX6VWkbGmotodkakZ","level":1,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"updater","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=TV9kpSxeDB4IFpsQV8toJFZmGNnWvW5NLV9AZ38dU28%3D%3AdAUNlGMqXSd%2FX911HZsnSDcUXrSg2Fc9dWknSDJXKUA%3D","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"QUiJX6VWkbGmotodkakZ","level":1,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"updater","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=TV9kpSxeDB4IFpsQV8toJFZmGNnWvW5NLV9AZ38dU28%3D%3AdAUNlGMqXSd%2FX911HZsnSDcUXrSg2Fc9dWknSDJXKUA%3D","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"QUiJX6VWkbGmotodkakZ","level":1,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"updater","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=TV9kpSxeDB4IFpsQV8toJFZmGNnWvW5NLV9AZ38dU28%3D%3AdAUNlGMqXSd%2FX911HZsnSDcUXrSg2Fc9dWknSDJXKUA%3D","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"QUiJX6VWkbGmotodkakZ","level":1,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"updater","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=TV9kpSxeDB4IFpsQV8toJFZmGNnWvW5NLV9AZ38dU28%3D%3AdAUNlGMqXSd%2FX911HZsnSDcUXrSg2Fc9dWknSDJXKUA%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Info(1)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395659 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395659)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js.deps (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js.deps)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395660 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395660)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js.gzip (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/js\/core\/merged-template-prepend.js.gzip)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395661 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395661)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395659 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395659)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395660 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395660)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"No cache entry found for \/appdata_ockielvu3xx1\/preview\/395661 (storage: local::\/var\/www\/nextcloud\/data\/, internalPath: appdata_ockielvu3xx1\/preview\/395661)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"no app in context","method":"GET","url":"\/csrftoken","message":"JSCombiner: successfully cached: merged-template-prepend.js","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"\/csrftoken","message":"Scss is disabled for \/var\/www\/nextcloud\/core\/css\/jquery-ui-fixes.scss, ignoring","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"\/csrftoken","message":"Scss is disabled for \/var\/www\/nextcloud\/core\/css\/server.scss, ignoring","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"\/csrftoken","message":"Scss is disabled for \/var\/www\/nextcloud\/core\/css\/css-variables.scss, ignoring","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"\/csrftoken","message":"Scss is disabled for \/var\/www\/nextcloud\/core\/css\/jquery.ocdialog.scss, ignoring","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"GdLDTqkOr2zS8P2F6eKI","level":0,"time":"2018-10-24T03:14:39+00:00","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"\/csrftoken","message":"Scss is disabled for \/var\/www\/nextcloud\/core\/search\/css\/results.scss, ignoring","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"13.0.5.2"}
{"reqId":"INnKhEEMjMg0o2UAVdnn","level":1,"time":"2018-10-24T10:03:45+00:00","remoteAddr":"121.140.160.180","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"121.140.160.180\" tried to access using \"66.61.18.112\" as host.","userAgent":"curl\/7.43.0","version":"13.0.5.2"}

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.3.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' => 1,
);

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

[Wed Oct 24 13:08:22.695996 2018] [mpm_event:notice] [pid 15971:tid 547569508352] AH00491: caught SIGTERM, shutting down
[Wed Oct 24 13:08:22.921293 2018] [mpm_event:notice] [pid 23435:tid 548494876672] AH00489: Apache/2.4.34 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations
[Wed Oct 24 13:08:22.922063 2018] [core:notice] [pid 23435:tid 548494876672] AH00094: Command line: '/usr/sbin/apache2