Repository navigation
Description
Expected behaviour
Upgrading from 4.5.8 to 5.0.4 to run smoothly.
Ssince 5.0.4 was advertised by the automatic updater in my 4.5.8 installation, I thought it was now safe to do so... waited for that since I heard from the 5.0.0-2 upgrade problems.
Actual behaviour
After pressing the "Update" button, and then reloading the page when it told me to, I only get this error message:
Fatal error: Class 'OC_Util' not found in /var/www/owncloud/settings/admin.php on line 8
Edit: Turns out that was reported already here: owncloud-archive/apps#1009
Sorry for not searching more diligently before...
When going to the index.php of ownCloud, I face the real problem: A seemingly neverending loop of output like this:
Turned on maintenance mode
Updated database
Updating filecache, this may take really long...
... 25% done ...
Turned on maintenance mode
Updated database
Updating filecache, this may take really long...
... 25% done ...
Turned on maintenance mode
...
this continues since 40 minutes already now, not sure if it will finish. The 25% are always the same, from the beginning on, and not sure why the maintenance mode would be turned on multiple times and the database be updated multiple times? Looks like the upgrading process is stuck in a loop?
Note: The version inside the config.php is 4.90.9, is that the value for 4.5.8 or for 5.0.4 or even something in between?
Steps to reproduce
- In a 4.5.8 installation, as administrative user, go to the Admin settings page
- Search for the "Updater" entry
- It proposes to install 5.0.4. Press the "Update" button
- Wait for the update to finish. When asked to reload the page, press F5
- An error message as mentioned above is shown
- Delete the /settings/admin.php from the URL and try loading that
- The ownCloud interface comes up, showing repeatedly the messag as stated above (Turned on maintenance mode...)
- It will output an additional paragraph like that for some time (for me approximately 10 minutes) and then stop.
The percentage was 25% in the first run (i.e. in the first second), and the same in every loop afterwards. The page doesn't seem to be updated anymore after some time, but there are still new log entries appearing in the apache error log (see below for examples of the log entries). There is only occasional load on apache2 and mysqld processes, so it doesn't really seem to be doing something...
When reloading the page, it shows "ownCloud is in maintenance mode".
When setting maintenance mode to false via the config, and reloading the page, the process from above (repeating output with the same done percentage) repeats...
Server configuration
Operating system: Ubuntu 12.04 64 Bit
Web server: Apache 2.2.22
Database: Mysql Ver 14.14 Distrib 5.5.29
PHP version: 5.4.13-2
ownCloud version: upgrade from 4.5.8 to 5.0.4
Client configuration
Browser: Firefox 19.0.2 (also tried with Chrome 26.0.1410.64)
Operating system: Windows 7 64 Bit
Logs
Web server error log
PHP Fatal error: Class 'OC_Filestorage_Common' not found in /var/www/owncloud/apps/files_archive/lib/storage.php on line 9
multiple times (10 times every ~30 seconds)
ownCloud log (data/owncloud.log)
can't access that at the moment...
Browser log
Didn't think of turning on the JS console before upgrade, sorry...
Activity
RandolfCarter commentedon Apr 12, 2013
Tried again now by downloading the tarball, copying only files from config directory to the new folder, and there it worked ilke a charm - the upgrade procedure on the first page load took less than 10 seconds (and I didn't even restore the database in the meantime, so it was exactly the same where the Automatic Updater was stuck in a loop!
So this actually seems to be a problem with the Automatic Updater somehow, not of the upgrade itself...
BernhardPosselt commentedon Apr 12, 2013
Yeah the problem is that the updater doesnt redirect to /index.php and then OC_Util cant be found and if something bad happens it gets stuck in maintenance mode (which is correct imo). So simple redirect should solve this issue.
cc @VicDeo
RandolfCarter commentedon Apr 13, 2013
I don't think so; only the problem with showing the "Fatal error" would be solved by that (I only found out later that there is an issue for it already, but I linked it above already).
But the upgrading loop I experienced would not be fixed by that... that was only resolved when I manually downloaded & replaced the owncloud files...
jancborchardt commentedon Aug 6, 2013
I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version.
Please reopen if the error still persists with the latest stable version (currently ownCloud 5.0.9) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)
Thank you!