core icon indicating copy to clipboard operation
core copied to clipboard

Unable to update from 4.90.8 to 5.0.3

Open tserkov opened this issue 13 years ago • 8 comments

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

  1. Log in to OwnCloud
  2. Navigate to Admin screen
  3. Click Update button
  4. 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.

UpdateScreen JavascriptConsole NetworkLog

tserkov avatar Apr 07 '13 00:04 tserkov

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.

sokai avatar Apr 08 '13 06:04 sokai

@SSFly Remove or rename the app (apps/files_archive/) and try the update again. That fixed this problem for me (see #2682). __goodluck**

sokai avatar Apr 08 '13 07:04 sokai

That was it! Instantaneous update once I moved that app. Thanks, @sokai.

tserkov avatar Apr 08 '13 08:04 tserkov

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?

helonaut avatar Apr 08 '13 11:04 helonaut

@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 avatar Apr 08 '13 11:04 MTGap

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

helonaut avatar Apr 08 '13 11:04 helonaut

Please reopen if #2786 didnt fix it for you

BernhardPosselt avatar Apr 08 '13 14:04 BernhardPosselt

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 !

helonaut avatar Apr 09 '13 09:04 helonaut