Update failed (9.1.8 to 10.0.10)


#1

Steps to reproduce

  1. sudo -u www-data php occ maintenance:mode --on
  2. service apache2 stop
  3. sudo -u www-data php /var/www/owncloud/occ upgrade

Expected behaviour

Update owncloud to version 10.0.10

Actual behaviour

OCP\Files\NotPermittedException: Could not move /user/avatar.jpg to /avatars/97/41/da9f7cdd416b0c4b63811770bd6e/avatar.jpg

Server configuration

Operating system: Debian 4.9.110-3+deb9u6

Web server: Apache/2.4.25

Database: 10.1.26-MariaDB-0+deb9u1 Debian 9.1

PHP version: PHP 7.0.30-0+deb9u1

ownCloud version: (see ownCloud admin page)
9.1.8.2

Updated from an older ownCloud or fresh install:
Updated

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

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
{
    "system": {
        "instanceid": "ocwg2gi7ajyo",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": [
            "10.0.0.2",
            "10.0.0.3"
        ],
        "trusted_domains": [
            "owncloud.example.com",
            "owncloud"
        ],
        "datadirectory": "\/owncloud\/owncloud",
        "overwrite.cli.url": "http:\/\/owncloud.example.com",
        "dbtype": "mysql",
        "version": "9.1.8.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "theme": "",
        "loglevel": 2,
        "maintenance": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379
        }
    }
}

*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.1.1
  • dav: 0.4.0
  • federatedfilesharing: 0.3.1
  • federation: 0.1.0
  • files: 1.5.1
  • files_external: 0.7.1
  • files_sharing: 0.11.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • market: 0.2.5
  • notifications: 0.3.5
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.3.1
  • updatenotification: 0.2.1

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

Are you using encryption: yes/no
no

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

no

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) ...

#2

Did you disable apps? https://doc.owncloud.org/server/10.0/admin_manual/maintenance/manual_upgrade.html#disable-core-apps


#3

Yes I did. I also provided the list of enabled apps.


#4

Hey,

this sounds to me like some sort of permission issues on the file system or similar.


#5

I never had a permission issue with upgrading before. And nothing was changed on the server.