Upgrade 10.4.0.4 to 10.4.1 - cli updater not working

Steps to reproduce

  1. sudo -u www-data php occ updater/application.php

Expected behaviour

update version of owncloud

Actual behaviour

error:
Command “updater/application.php” is not defined.

Server configuration

Ubuntu server 18.04.4

Web server:
Apache

Database:
Mysql

PHP version:
7.2.24

ownCloud version: (see ownCloud admin page)
10.4.0.4

Updated from an older ownCloud or fresh install:
updated

Where did you install ownCloud from:
owncloud server - community edition

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.

none found

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
{
    "system": {
        "instanceid": "occi9f4y0ija",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.25.71",
            "ocx.myplanet-intra.com"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "https:\/\/192.168.25.71",
        "dbtype": "mysql",
        "version": "10.4.0.4",
        "dbname": "oc",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/apps-external",
                "url": "\/apps-external",
                "writable": true
            }
        ],
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        },
        "loglevel": 0,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "maintenance": false,
        "enable_certificate_management": true,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}
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.
```Enabled:
  - comments: 0.3.0
  - configreport: 0.2.0
  - dav: 0.5.0
  - federatedfilesharing: 0.5.0
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_mediaviewer: 1.0.1
  - files_sharing: 0.12.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - firstrunwizard: 1.2.0
  - market: 0.5.0
  - notifications: 0.5.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.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
no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
no
#### 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) …

Hey,

if i’m looking at this list i can’t see that the Updater app is installed. If the app is not installed then i think the cli updater command isn’t available at all.

According to the docs https://doc.owncloud.com/server/admin_manual/maintenance/manual_upgrade.html the upgrade command is

sudo -u www-data php occ upgrade
1 Like

The updater is core functionality and doesn’t require any app.

1 Like

Hey,

ah this is really good to know. I always thought that https://github.com/owncloud/updater is a separate app because it is also called like this at the following link: :frowning_face:

https://doc.owncloud.com/server/10.4/admin_manual/maintenance/update.html

There the previously mentioned updater/application.php command is listed, maybe that documentation is outdated?

https://doc.owncloud.com/server/10.4/admin_manual/maintenance/update.html#command-line-options

1 Like

The preferred variant for upgrades is occ upgrade, which is a core functionality.

With the command provided by the OP the web updater upgrade script is called, which (1) only works, if the app is installed and (2) may break on bigger ownCloud setups.

The docs probably should point out this as well.

1 Like

Hey,

indeed occ upgrade is what i’m using as well after updating the ownCloud code base and using the mentioned updater/application.php seems like a different use case to me.