Upgrade failed (from 10.0.10 to 10.6)

Hello.
I tried to upgrade from 10.0.10 to 10.6. I followed the instructions, but when I try to upgrade I received the following message:
gianpaolo@jerome /var/www/owncloud $ sudo -u www-data php occ upgrade
An unhandled exception has been thrown:
Error: Call to undefined function simplexml_load_file() in /var/www/owncloud/lib/private/App/InfoParser.php:48
Stack trace:
#0 /var/www/owncloud/lib/private/App/AppManager.php(482): OC\App\InfoParser->parse(’/var/www/ownclo…’)
#1 /var/www/owncloud/lib/private/App/AppManager.php(771): OC\App\AppManager->getAppInfoByPath(’/var/www/ownclo…’)
#2 /var/www/owncloud/lib/private/App/AppManager.php(712): OC\App\AppManager->getAppVersionByPath(’/var/www/ownclo…’)
#3 /var/www/owncloud/lib/private/App/AppManager.php(654): OC\App\AppManager->findAppInDirectories(‘files’)
#4 /var/www/owncloud/lib/private/legacy/app.php(558): OC\App\AppManager->getAppPath(‘files’)
#5 /var/www/owncloud/lib/private/legacy/app.php(115): OC_App::getAppPath(‘files’)
#6 /var/www/owncloud/lib/base.php(585): OC_App::loadApps(Array)
#7 /var/www/owncloud/lib/base.php(1060): OC::init()
#8 /var/www/owncloud/console.php(74): require_once(’/var/www/ownclo…’)
#9 /var/www/owncloud/occ(11): require_once(’/var/www/ownclo…’)

Can you help me?
Thank you!

Steps to reproduce

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system:

Web server:

Database:

PHP version:

ownCloud version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Hi ,

Please check this thread :slight_smile:

1 Like

Hi,
This error is not related to owncloud, but on your php packages versions installed on your server.
You might need to upgrade/install the corresponding version X.X of the package phpX.X-xml to your current installed phpX.X version.
This might help you, even tho it’s not related to owncloud:

1 Like

Hello! Thank you. Now the upgrades starts. Anyway, the output is:
2020-12-23T11:23:08+00:00 Set log level to debug
2020-12-23T11:23:08+00:00 Repair step: Upgrade app code from the marketplace
2020-12-23T11:23:08+00:00 Repair info: Using market to update existing apps
2020-12-23T11:23:08+00:00 Repair info: Attempting to update the following missing apps from market: files_videoplayer
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files_videoplayer
2020-12-23T11:23:08+00:00 Repair info: Unknown app (files_videoplayer)
2020-12-23T11:23:08+00:00 Repair info: Attempting to update the following existing compatible apps from market: comments, configreport, dav, federatedfilesharing, federation, files, files_external, files_sharing, files_trashbin, files_versions, firstrunwizard, market, notifications, provisioning_api, systemtags, templateeditor, updatenotification
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: comments
2020-12-23T11:23:08+00:00 Repair info: App (comments) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: configreport
2020-12-23T11:23:08+00:00 Repair info: App (configreport) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: dav
2020-12-23T11:23:08+00:00 Repair info: App (dav) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: federatedfilesharing
2020-12-23T11:23:08+00:00 Repair info: App (federatedfilesharing) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: federation
2020-12-23T11:23:08+00:00 Repair info: App (federation) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files
2020-12-23T11:23:08+00:00 Repair info: App (files) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files_external
2020-12-23T11:23:08+00:00 Repair info: App (files_external) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files_sharing
2020-12-23T11:23:08+00:00 Repair info: App (files_sharing) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files_trashbin
2020-12-23T11:23:08+00:00 Repair info: App (files_trashbin) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: files_versions
2020-12-23T11:23:08+00:00 Repair info: App (files_versions) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: firstrunwizard
2020-12-23T11:23:08+00:00 Repair info: App (firstrunwizard) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: market
2020-12-23T11:23:08+00:00 Repair info:
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: notifications
2020-12-23T11:23:08+00:00 Repair info: App (notifications) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: provisioning_api
2020-12-23T11:23:08+00:00 Repair info: App (provisioning_api) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: systemtags
2020-12-23T11:23:08+00:00 Repair info: App (systemtags) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: templateeditor
2020-12-23T11:23:08+00:00 Repair info:
2020-12-23T11:23:08+00:00 Repair info: Fetching app from market: updatenotification
2020-12-23T11:23:08+00:00 Repair info: App (updatenotification) is not known at the marketplace.
2020-12-23T11:23:08+00:00 Repair warning: You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
2020-12-23T11:23:08+00:00 Repair warning: Please install or update the following apps manually or disable them with:
occ app:disable files_videoplayer
2020-12-23T11:23:08+00:00 Repair warning: For manually updating, see https://doc.owncloud.org/server/10.6/go.php?to=admin-marketplace-apps
2020-12-23T11:23:08+00:00 OC\RepairException: Upgrade is not possible
2020-12-23T11:23:08+00:00 Update failed
2020-12-23T11:23:08+00:00 Maintenance mode is kept active
2020-12-23T11:23:08+00:00 Reset log level

if I try to get a list of thrid parts app:
sudo -u www-data php occ app:list
[sudo] password di gianpaolo:
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:

  • 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_sharing: 0.11.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • firstrunwizard: 1.1
  • market: 0.2.5
  • notifications: 0.3.5
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.4.0
  • updatenotification: 0.2.1
    Disabled:
  • encryption
  • external
  • files_mediaviewer
  • user_external

Can you give me an help? I am not very skilled, and therefore I need a explanation for dummies. :slight_smile:
Thank you for your comprehension.

Hey,

after following this:

i think you can continue with calling occ upgrade again to continue with the upgrade.

Great! Everything works now.
Thank you for your help.

1 Like