Upgrade to 10.2 and avatars

Hi,

after upgrading from 10.1 to 10.2 all avatars have gone. Is this a bug or a feature? How may I get avatars back? I have upgraded two different servers and avatars disappeared at both.

Server configuration

Operating system:
Debian Linux Stretch 9.9
Web server:
Apache Version 2.4.25
Database:
mysql 14.14 Distrib 5.6.30
PHP version:
PHP 7.0.33-0+deb9u3
ownCloud version: (see ownCloud admin page)
10.2.0 (stable)
Updated from an older ownCloud or fresh install:
10.1.1 (stable)
Where did you install ownCloud from:
deb http://download.owncloud.org/download/repositories/production/Debian_9.0/ /

Regards
Jochen

Do you have a backup?

How did you upgrade?

Hi Dmitry,

yes, I have a backup of database and data directory. I have upgraded at Debian with commands ā€œapt update; apt upgradeā€ and then ā€œsudo -u www-data occ upgradeā€ (no errors).

Regards
Jochen

Can I ask why you have chosen the package manager upgrade instead of the recommended manual tar ball upgrade?

In Debian generally the package manager is used for upgrades. I have successfully used this method since OwnCloud version 7 on several machines and I did not find a recommendation for a manual tarball upgrade in the admin manuals. Do I miss anything? What is the problem with package manager upgrades?

https://doc.owncloud.com/server/admin_manual/maintenance/upgrade.html#upgrade-options

I am not sure about the avatars folder. It used to be inside the users files folder but it was moved outside. I think you should open a ticket in ownCloud core, since this is a bug.

1 Like

Hi Dmitry,

I donā€™t know why I have overlooked this in the manual, sorry. Then upgrading as recommended breaks the logic of Debian package manager. I have filed a bug report about my lost avatars at github.

Regards
Jochen

1 Like

Hi, during a testing for migrating to a new server I did the recommended upgrade process from 10.0 and same issue happens. Avatars are broken due change of image files location.

Can you provide a fix?

Hey,

it seems this was reported to the ownCloud developers at https://github.com/owncloud/core/issues/35311

I think you could subscribe to this issue to see if a fix is provided in the future.

There is very simple fix, just move or copy from ā€œavatarsā€ folder all sub folders to ā€œdataā€ directory and voila!, avatars working again.

1 Like

Does this operation not break the core integrity (integrity:check-core)?

No, itā€™s below data directory.

1 Like