Update Needed instead of login screen

I ran occ php occ upgrade. It completed with no errors.
Then I ran php occ maintenance:mode --off
Still can’t get to log-in screen.

Steps to reproduce

  1. Go to owncloud URL
  2. See message: “Update Needed”

Expected behaviour

Display login screen

Actual behaviour

Display message “Update Needed”

Server configuration

Oracle Enterprise Linux

Web server:
Apache

Database:
Mysql

PHP version:
7.2.21

ownCloud version: (see ownCloud admin page)
10.0.10.4

Updated from an older ownCloud or fresh install:
Updated

Update Needed

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' =>xxx 'passwordsalt' =>xxx 'secret' => xxx 'trusted_domains' => array ( 0 => xxx ), 'datadirectory' => xxx 'overwrite.cli.url' => xxx', 'dbtype' => 'mysql', 'version' => '10.0.10.4', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' =>xxx 'logtimezone' => 'UTC', 'installed' => true, 'theme' => '', 'loglevel' => 0, 'maintenance' => false, 'trashbin_retention_obligation' => 'auto', 'mail_from_address' => 'owncloud', 'mail_smtpmode' => 'php', 'mail_domain' =>xxx 'has_internet_connection' => true, 'memcache.local' => '\\OC\\Memcache\\APCu', ); **List of activated apps:** php occ app:list ownCloud 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 Enabled: - activity: 2.4.2 - comments: 0.3.0 - configreport: 0.1.1 - dav: 0.4.0 - federatedfilesharing: 0.3.1 - federation: 0.1.0 - files: 1.5.2 - files_external: 0.7.1 - files_pdfviewer: 0.11.0 - files_sharing: 0.11.0 - files_texteditor: 2.3.0 - files_trashbin: 0.9.1 - files_versions: 1.3.0 - files_videoplayer: 0.9.8 - firstrunwizard: 1.1 - gallery: 16.1.1 - market: 0.4.0 - notifications: 0.3.5 - provisioning_api: 0.5.0 - systemtags: 0.3.0 - templateeditor: 0.4.0 - updatenotification: 0.2.1 Disabled: - encryption - external - user_external **Are you using external storage, if yes which one:** local/smb/sftp/... No **Are you using encryption:** yes/no Yes **Are you using an external user-backend, if yes which one:** No #### LDAP configuration (delete this part if not used) None **Browser:** Chrome / Firefox **Operating system:** Ubuntu ### Logs #### Web server error log #### ownCloud log (data/owncloud.log) {"reqId":"XaSDQklZgmQSzJd4sOZ0JwAAAAM","level":3,"time":"2019-10-14T14:16:35+00:00","remoteAddr":"105.212.95.31","user":"--","app":"index","method":"GET","url":"\/owncloud\/index.php\/core\/js\/oc.js?v=92a478484831401b43fd355aba567e03","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/docs\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(124): OC_App::loadApp('federatedfilesh...')\\n#1 \\\/var\\\/www\\\/docs\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/docs\\\/owncloud\\\/lib\\\/base.php(910): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/docs\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/docs\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":188}"} #### Browser log

Hey,

could it be possible that you have multiple ownCloud installations on your system and that you have ran the php occ upgrade command in a location not matching the one your are reaching via your browser?

1 Like

Hi Tom,

Thanks for getting me looking at my installation. That was the issue.

I realized it by looking at the path in the logfile to the .php files.

2 Likes