Unable to update from 4.90.8 to 5.0.3
Expected behaviour
OwnCloud should update from 4.90.8 to 5.0.3
Actual behaviour
Update hangs on update screen, repeating "Turned on maintenance mode. Updated database." endlessly.
Steps to reproduce
- Log in to OwnCloud
- Navigate to Admin screen
- Click Update button
- Navigate to OwnCloud root in browser (refreshing current Admin page results in blank page)
Server configuration
Operating system: CentOS 6.3
Web server: Apache 2.2.15
Database: MySQL 14.14 Distrib 5.5.30
PHP version: 5.4.13
ownCloud version: 4.90.8
Client configuration
Browser: Chrome 26.0.1410.43
Operating system: Windows 7 Ultimate x64
Logs
Web server error log
[Sat Apr 06 23:43:12 2013] [error] [client #IP_REMOVED#] PHP Fatal error: Class 'OC_Filestorage_Common' not found in /#PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php on line 9, referer: https://#URL_REMOVED#/owncloud/ (Note: Same error repeats endlessly)
ownCloud log (data/owncloud.log)
{"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292184} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292184} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292187} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292187} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292191} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292191} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292193} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292195} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292195} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292199} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292199} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292203} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292203} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292207} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292207} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292211} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292211} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292214} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292214} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292218} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292218} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292222} {"app":"PHP","message":"Undefined offset: 3 at #PATH_REMOVED#/owncloud/lib/files/cache/legacy.php#88","level":2,"time":1365292222} {"app":"PHP","message":"Class 'OC_Filestorage_Common' not found at #PATH_REMOVED#/owncloud/apps/files_archive/lib/storage.php#9","level":4,"time":1365292222} (Note: Last 24 messages shown. There's hundreds from the amount of time spent waiting.)
Browser log
See screenshots below.

Hi!
I can confirm this problem.
Server configuration
Operating system: Ubuntu 12.04
Web server: Apache 2.2.22
Database: SQLite 3.7.9
PHP version: 5.3.10-1ubuntu3.6 FastCGI
ownCloud version: 4.90.8
Thanks for fixing this!
Update: #2682 is the same problem.
@SSFly Remove or rename the app (apps/files_archive/) and try the update again. That fixed this problem for me (see #2682). __goodluck**
That was it! Instantaneous update once I moved that app. Thanks, @sokai.
Had the same problem with that same app, after renaming that app and manually disabling maintenance mode (config/config.php).
Could this be automated in the update script?
@karlitschek We need to disable the files_archive app by changing the required version number to something bogus. @blizzz I believe there needs to be additional error handling in the legacy class for these outdated file storage backends.
@MTGap Thank you very much for fast answer & proposition !
EDIT: I've got multiple problems since I've updated to version 5... Calender is empty (only shows the top banner with "week", "month" & "list") and contacts is empty with two loading icons.
EDIT2: Nothing works anymore in version 5. Bookmarks broken, music gone & indexing doesn't do anything, ... Can't enable any apps. The thing is that there's nothing in the log files... No errors in owncloud.log and nginx doesn't give me any errors either.
EDIT3: I think it has to do with my nginx server settings (path rewrites, ...) so I'll check this tonight...
Please reopen if #2786 didnt fix it for you
Looks OK :+1:
My EDIT remarks were caused by my (4.x) Nginx configuration. Fixed it with replacing my old config with standard config following this topic. Hopefully all this info is useful to some. Anyway thanks again for fixing !