Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC 5.0: Update does not work. #2300

Closed
Weuxel opened this issue Mar 14, 2013 · 24 comments
Closed

OC 5.0: Update does not work. #2300

Weuxel opened this issue Mar 14, 2013 · 24 comments

Comments

@Weuxel
Copy link

Weuxel commented Mar 14, 2013

Update from 4.5.7 or 4.5.8 to 5.0.0 does not work.
Refresh of the update page after an hour shows maintenancemode. Removing maintenancemode from config brings back the update page.
No IO or database activity is registered during that time.
Copying back old backup files brings back a working installation, which suggests, that the update did nothing at all.

@BernhardPosselt
Copy link
Contributor

Please follow the contrib guidelines ;)

@felimwhiteley
Copy link

I can confirm it doesn't work for me either and know of one report from someone else. The debug is as follows, I just replaced the host name and local path with [hidden]

[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP Fatal error: Call to a member function getId() on a non-object in [hidden]/oc/lib/files/cache/upgrade.php on l
ine 121, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP Stack trace:, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 1. {main}() [hidden]/oc/index.php:0, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 2. OC::handleRequest() [hidden]/oc/index.php:28, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 3. OC_Router->match() [hidden]/oc/lib/base.php:606, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 4. call_user_func() [hidden]/oc/lib/router.php:127, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 5. OC::loadAppScriptFile() [hidden]/oc/lib/router.php:0, referer: https://[hidden]/oc/index.php/apps/f
iles
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 6. require_once() [hidden]/oc/lib/base.php:672, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 7. OC\Files\Cache\Upgrade->upgradePath() [hidden]/oc/apps/files/ajax/upgrade.php:17, referer: https://[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 8. OC\Files\Cache\Upgrade->getNewData() [hidden]/oc/lib/files/cache/upgrade.php:41, referer: https://
[hidden]/oc/index.php/apps/files
[Thu Mar 14 12:37:23 2013] [error] [client [hidden]] PHP 9. OC\Files\Cache\Upgrade->getNumericId() [hidden]/oc/lib/files/cache/upgrade.php:105, referer: https://
[hidde]/oc/index.php/apps/files

@felimwhiteley
Copy link

I followed the instructions, deleted all but the config and data dirs, untarred intot he directory and made sure www-data owned apps, data & config. The install seemed to go ok, but on logging in I'm getting "Upgrading filesystem cache... " and that's as far as the file button gives me. I can't play the media file I have in there for test. The contacts works fine, even kontact is accessing it ok.

@BernhardPosselt
Copy link
Contributor

@icewind1991

@BernhardPosselt
Copy link
Contributor

@MTGap

@BernhardPosselt
Copy link
Contributor

owncloud-archive/documentation#56

Rewrite rules for nginx are broken so no js redirect is done

@felimwhiteley
Copy link

Sorry I should add mine is Apache. The htaccess file is in place in root of OC dir with checksum:

4b21883bc5ef4eb1b59d80a397a3471506be68f2 .htaccess

@lc1
Copy link

lc1 commented Mar 14, 2013

Same issue as felimwhiteley

@felimwhiteley
Copy link

Confirming 'maintenance' => false in my config and always has been. DB type is mysql. Version in config file now reads 5.0.0 as expected.

@Rocka84
Copy link

Rocka84 commented Mar 14, 2013

Same as felimwhiteley here! After following the official update instructions I had to manualy change maintenance to false in my config to get the upgrade process to start. Now I'm too stuck at that Cache message.
After enabling DEBUG mode, the JS-console says:
"start"
"1 files needed to be migrated"

and that's it, no request are made.

btw: Using Apache and MySQL
P.S.: I don't think Issue #2314 is a duplicate of this, following the recommendations there led to this error.

UPDATE:
The error log says
Fatal PHP Call to a member function getId() on a non-object at [...]/owncloud/lib/files/cache/upgrade.php#121 14.03.2013 17:41:03

@sciurius
Copy link

I have the same problem, using 5.0 on Fedora 17 with PostgreSQL database,

@drummerwolli
Copy link

upgrade from 4.5.6 to 4.5.8. to 5.0 ... same problem here, ubuntu server 12.04 x64, apache and mysql ...

@JMLatGitHub
Copy link

Same problem here (solved with workaround).

Setup:

  • Upgrading OC 4.5.8 -> 5.0.0
  • Windows Desktop
  • Apache
  • MySQL
  • PHP 5.4.11
  • Installation method: tar file
  • Browser: Firefox

Workarounds:
http://forum.owncloud.org/viewtopic.php?uid=8345&f=23&t=9024&start=0#p22083

@lc1
Copy link

lc1 commented Mar 14, 2013

same problem with debian squeeze and owncloud-4.5.8 to 5.0.0:
hanging after "PHP Fatal error: Call to a member function getId() on a non-object in xxx/owncloud/lib/files/cache/upgrade.php on line 121" while rebuilding file-cache.

do you need more info?

@felimwhiteley
Copy link

Just to confirm, the permisisons on my htaccess are correct, 644, owned by root, the config file is set to maintenance false, so the workaround JMLatGitHub linked to and the previous bug #2314 have no effect for me.

@kyriog
Copy link

kyriog commented Mar 15, 2013

Same problem.
I'm running Debian 6 with Apache 2.2.16 and MySQL. I'm upgrading ownCloud from 4.5.8 to 5.0.
My migration has automatically set maintenance mode to false, but bug when trying to update the cache.

If I get the apache log :
[Fri Mar 15 05:24:10 2013] [error] [client ***_] PHP Fatal error: Call to a member function getId() on a non-object in /var/www/owncloud/lib/files/cache/upgrade.php on line 121, referer: https://_/index.php

If I get the owncloud.log located in the datadirectory:
{"app":"core","message":"storage backend \OC\Files\Storage\Archive not found","level":3,"time":1363321450}
{"app":"PHP","message":"Call to a member function getId() on a non-object at /var/www/owncloud/lib/files/cache/upgrade.php#121","level":4,"time":1363321450}

@Weuxel
Copy link
Author

Weuxel commented Mar 15, 2013

nginx configuration altered like this, restarting the browser, and some restarts of nginx and fastcgi resolved the issue for me.

owncloud-archive/documentation#56 (comment)

@felimwhiteley
Copy link

My owncloud.log gives:

{"app":"core","message":"storage backend \OC\Files\Storage\Local not found","level":3,"time":1363331934}
{"app":"PHP","message":"readdir() expects parameter 1 to be resource, null given at [hidden]/oc/lib/cache/file.php#88","level":2,"time":1363331934}
{"app":"PHP","message":"call_user_func() expects parameter 1 to be a valid callback, class '\OC\Files\Storage\Shared' not found at [hidden]/oc/lib/hook.php#72","level":2,"time":1363331934}

@Sentences
Copy link

Here is my log.

{"app":"core","message":"storage backend \OC\Files\Storage\Archive not found","level":3,"time":1363335839}
{"app":"PHP","message":"Call to a member function getId() on a non-object at [...]/lib/files/cache/upgrade.php#121","level":4,"time":1363335839}
{"app":"core","message":"storage backend \OC\Files\Storage\Archive not found","level":3,"time":1363335847}
{"app":"PHP","message":"Call to a member function getId() on a non-object at [...]/lib/files/cache/upgrade.php#121","level":4,"time":1363335847}

PHP 5.3.10
MySQL 5.5.28

@rapenne-s
Copy link

I have had the problem with "updating the cache" after the uprade. I solved it with a fix (backup your data before trying this !) :

  • connect to your server
  • in data/your_user/ move all the content of "files" to a temp directory, refresh the "Files" page on owncloud, then move back your files in "files".

From user Sentences : !DONT DO THIS, IF YOU USE VERSIONING; ENCRYPTION OR SOMETHING LIKE THIS BEFORE!

@Sentences
Copy link

Thanks zplay, this works for me, but i had to empty the oc_filecache table in the database, too.

!DONT DO THIS, IF YOU USE VERSIONING; ENCRYPTION OR SOMETHING LIKE THIS BEFORE!

@sciurius
Copy link

When I try this, I still get "upgrading file system cache", but this time it's stuck at 0%.

@sciurius
Copy link

I hope this problem will get serious attention now.

@MTGap
Copy link
Contributor

MTGap commented Mar 16, 2013

This turned into two separate issues. The original issue is a duplicate of: #1520

Further discussion of the file cache upgrade should take place here: #2355

@MTGap MTGap closed this as completed Mar 16, 2013
@lock lock bot locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests