Upgrade to oC 8.0.x (known issues)

#1

OC 8.0.8 has been released. Most major bugs are fixed, there remain some restraints for Windows and Webhosting-Users. The existing bugs will be fixed in the next major releases.

General reminder: Do make a backup (http://doc.owncloud.org/server/8.0/admin_manual/maintenance/backup.html), don't use the updater app, it is still not suitable for major releases: http://doc.owncloud.org/server/8.0/admin_manual/maintenance/update.html

OC 8 drops the support of PHP 5.3, make sure you have at least PHP 5.4 (for certain functions PHP 5.5 or higher is necessary: https://github.com/owncloud/core/pull/14138).

Windows is not supported in OC 8.0.x and OC 8.1 won't work on Windows platforms: https://central.owncloud.org/t/important-windows-support-is-will-be-dropped/862. It's probably the best to stay with OC 7.0.x until its end of life.

Hosted environments: There are two nasty problems with mysql which can't be solved without access to the mysql-configuration. This is typically the case for hosted environment, be careful.

Encryption: There are some major changes to the key-storage. Previous problems with migration time have been solved (https://github.com/owncloud/core/issues/14012). After the upgrade, you must migrate manually your encryption keys with:

sudo -u www-data php occ encryption:migrate-keys

(www-data is the webserver user in debian/ubuntu, apache in CentOS, ...)

Apps during upgrades: ownCloud 8 was refactored and apps like contacts and calendar are now handled same as 3rd party apps. They are not part of install package anymore. By default, these apps are disabled during updates. They can be enabled in apps menu after. They will be downloaded and installed in the background. As a benefit these apps can be updated independent to the core of ownCloud.
In case, some apps weren't properly diabled and you don't have access to the web-interface, you can disable them manually:

sudo -u www-data php occ app:disable app_name

Undo Upgrade: You did a backup, right?

Specific Problems

Empty page after upgrade: Some apps weren't deactivated (should be done without user interaction). How to diable apps manually is described on top of the page.

App: App does not provide an info.xml file
There is a intermediate certificate missing, solution: https://forum.owncloud.org/viewtopic.php?f=31&t=26310&start=30#p85771

MySQL/MariaDB: impossible to write to binary log since BINLOG_FORMAT = STATEMENT
You can either revert to OC 8.0.2, or set "binlog_format=MIXED" in your database config. It's a relative new report, so check the issue directly on the bugtracker:

workaround:

MySQL-error on shared hosting environments:
typical message in your logfile: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Problem: MySQL-server closes connection. If use your own server, you can fix this yourself with increased timeouts of your MySQL server. The problem has been reported by users on shared hosting environments where they can't change the mysql-settings.
e.g. https://forum.owncloud.org/viewtopic.php?f=31&t=27701
https://forum.owncloud.org/viewtopic.php?t=26712&p=84126
https://forum.owncloud.org/viewtopic.php?f=31&t=27247&p=84480
https://forum.owncloud.org/viewtopic.php?f=21&t=26253&p=84675
If you have a very friendly hoster they might change their MySQL settings.
Bug has been reported:

(fix scheduled for OC 9.0)

Calendar/Contacts disappeared: You can activate these app on the app-management page. It should update automatically the app when you haven't disabled the app-store in the config/config.php. You can as well download and install these apps manually from the store.

Windows/IIS:
You can solve it by disabling the File Locking App (https://forum.owncloud.org/viewtopic.php?f=31&t=26421&start=10#p80666)

(Windows support officially dropped for OC 8: https://forum.owncloud.org/viewtopic.php?f=31&t=27449)

Fail2Ban: The failed login-messages have changed a little bit, you will probably have to adapt your Fail2Ban-Rules: https://forum.owncloud.org/viewtopic.php?f=31&t=26336

OPCache: PHP problems with OPCache were reported: https://github.com/owncloud/core/issues/9885
Fix: https://github.com/owncloud/core/pull/11056 (in OC 8.1)

Bookmark-App: Bookmarklet seems to be broken (adding tags, descriptions, length of links): https://github.com/owncloud/bookmarks/issues/127
If you download the latest release from github, it should be solved. It has not been pushed to the appstore yet.

Corrupt ZIP-file download on OS X (client): If you download a folder or several files as a ZIP archive, these archives can't be opened with the OS X-unzipper.
Workaround: Install other unzipper (e.g. Free Unarchiver utility: https://github.com/owncloud/core/issues/10001#issuecomment-55269149)
Solution expected for OC 8.2 (&backport to OC 8.1): https://github.com/owncloud/core/issues/10001

Solved Problems (in OC 8.0.8 or higher)

Gallery-App: Gallery-App keeps loading, Logfiles: [error] [client xxx.xxx.xxx.xx] request failed: URI too long (longer than 8190).
https://forum.owncloud.org/viewtopic.php?f=31&t=26323

Follow up: New version in developement, feedback and testing is asked: https://forum.owncloud.org/viewtopic.php?f=31&t=26379
Gallery is no longer maintained, consider switching to Gallery+ (https://github.com/owncloud/gallery/issues/159#issuecomment-87690448)

MariaDB 10: There is an error reported on the upgrade of your database. You can avoid this error by omitting the migration test. You really must have a manual backup :!:

sudo -u www-data php /var/www/owncloud/occ upgrade --skip-migration-test

Fix: https://github.com/owncloud/core/pull/14515 (will be in OC 8.0.1)

CardDAV/CalDAV/*DAV: The Sync via CardDAV/CalDAV-Links might be broken in some cases (nginx-webserver):

Solution: Username via *DAV-interface is case-sensitive (in contrast to the webinterface), e.g. User1 != user1 (https://forum.owncloud.org/viewtopic.php?f=31&t=26280).
With ldap: fix: https://github.com/owncloud/core/pull/14275
(in 8.0.2)

Cron.php can create huge server load and produce enormous logfiles: https://github.com/owncloud/core/issues/14087 (hotfix: https://github.com/owncloud/core/issues/13953#issuecomment-73430406, if this doesn't work: https://forum.owncloud.org/viewtopic.php?f=31&t=26310&start=10#p80272.
(in OC 8.0.2)

Gallery-App (2): Gallery-App keeps spinning (https://github.com/owncloud/gallery/issues/158), problem with PHP 5.4, there is a fix to make it compatible with PHP 5.4: https://github.com/owncloud/core/pull/14258
will be fixed in OC 8.0.1

Gallery-App (3): Shared gallery-links are broken (https://github.com/owncloud/gallery/issues/160), fix is available: https://github.com/owncloud/gallery/commit/b153b5b7bcd8e18f974ea9adf454795b6c3bc58a and will be in the next OC release (OC 8.0.1)

Ubuntu 14.04 + Cache (APCU): Apache freezes after some time (2h).
The current APCu-package 4.0.2 of Ubuntu 14.04 is known to have some bugs, but you can replace it with a more recent version: https://github.com/owncloud/core/issues/14175#issuecomment-74573088
There is a fix which disables buggy APCu versions: https://github.com/owncloud/core/pull/14273

Debian + SQLite: SQLSTATE[23000]: Integrity constraint violation: 19 oc_share_external.remote_id may not be NULL: https://github.com/owncloud/core/issues/13970
Fix: https://github.com/owncloud/core/pull/14533 (will be in 8.0.1)

Encryption: The encryption keys are rewritten. This process can take some time and you risk to run into timeout if you have a lot of files. Use the upgrade command in the terminal if possible:

sudo -u www-data php /var/www/owncloud/occ upgrade

Performance fix announced for OC 8.0.3.

Gallery-App, II: Spinning wheel, Error message: imagepng() expects parameter 1 to be resource, boolean given at ...
Fix: https://github.com/owncloud/core/pull/14917 (will be in OC 8.0.3)

Debian (/Ubuntu) packages: Error while running update to OC 8.0.3:

Unpacking replacement owncloud-server ...
dpkg: error processing /var/cache/apt/archives/owncloud-server_8.0.3-1_all.deb (--unpack):
trying to overwrite '/var/www/owncloud/.htaccess', which is also in package owncloud-config-apache 8.0.2-8
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

You can force the update (apt-get -f upgrade) or change manually the dependencies (dpkg -r --force-depends "owncloud-config-apache").

(to be fixed in OC 8.0.4)

Big logfile/Virus-Warning (Virus warning for lib/private/tempmanager.php especially for all-inkl-costomers): (also see topic before) should be fixed by the mentioned hotfix. Or you can apply this: https://forum.owncloud.org/viewtopic.php?f=31&t=26310&start=10#p80272, https://forum.owncloud.org/viewtopic.php?f=21&t=26396#p79370 (more details but in German), https://github.com/owncloud/core/issues/14087
There is a fix (working with all-inkl.com??): https://github.com/owncloud/core/commit/45e3cbefc9e069d5c904ed8961504551a51ce735
Should be solved here: https://github.com/owncloud/core/pull/13983 (8.0.2)

#2

#3