-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cannot Upgrade from 4.5.13 to 5.0.x #5045
Comments
|
@kneiser please try to disable calendar app before upgrade. |
@VicDeo |
@kneiser quick and dirty way is to move calendar files out of apps folder
|
@VicDeo I disabled the Calendar app as suggested and executed the upgrade and my tests. There is some improvement but in the end previous sharing setups are still broken. During the course of the new testing the OC admin log now shows: |
@VicDeo Is there a way I can upload my database dump files to OC Github? I can only upload images that I can find. |
@kneiser this is not needed if you use
|
@VicDeo please review the Testing section of my bug issue. I run the "php console.php files:scan --all" twice during the testing. The first run of this command the "file cache" table truncations were not done. The first run is an attempt to clean up the cache tables so that after the "admin" user is logged in that no folders or files that do not belong to this user are displayed. The files or folders that are displayed belong to other ownCloud users. Is there any user documentation posted in the ownCloud guides stating that the truncation of the cache tables is no longer required? On the ownCloud forum it appears to be a common practice recommendation. |
@kneiser Is there any user documentation posted in the ownCloud guides stating that the truncation of the cache tables is required? :) 1.Truncation of cache table is just a hack invented by users before the console rescan was implemented. It breaks sharing since it doesn't preserve relations between fileids in cache and share fileids. In addition it has a side effect: I tried to migrate from 4.5.13 to 5.0.12 and all entries were migrated successfully. |
@VicDeo I prepared a PDF document containing additional details that you requested. As I do not have your email address I sent the information to Frank. |
@VicDeo did my PDF document get forwarded to you? |
@VicDeo I was chatting with Frank K. on email and I tried an experiment. I tried an upgrade from OC V4.5.13 to V6 Beta 1 (I know it's not a recommended practice), it did not work. I got the same results as this bug report. |
@DeepDiver1975 As I understand:
If so, I have the ability to test this in both releases. If not please clarify. |
exactly - this the way to go - THX a lot |
@VicDeo @DeepDiver1975 @karlitschek Gentlemen I have completed my testing on this bug issue on both V5.0.13 and V6.0 Beta 3. I repeated the same testing steps (except I did not disable the calendar app in V5.0.13) with the same data. Unfortunately I have the same results, it did not upgrade. I even did "php console.php files:scan --all" and did an additional test on both versions with the same results. So where do we go from here? Is there something I am missing? Did I supply you with enough information from my past testing? Were you able to duplicate the same test case scenarios that I had? I am no sure what to do next. I am bewildered. :( |
citing myself: "Truncation of cache table is just a hack invented by users before the console rescan was implemented. It breaks sharing since it doesn't preserve relations between fileids in cache and share fileids" |
@VicDeo The recent testing no longer included doing the file truncation. As recommend by you testing did include using the file rescan. I have just quickly updated this issue to remove those steps. |
@VicDeo @DeepDiver1975 @karlitschek I have completed my tests on OC 5.0.13 and 6 Beta 3, both resulted in the same test results. Upgrading still does not work. However the latest fixes have changed the test results somewhat. I recently quickly updated my testing steps in this issue to reflect that I am no longer test using database truncation, but the cli php file rescan call. Now the big question do I close this issue and open a new one to reflect the new test results? Or do I document this call with the new test tests and results? I have also performed a couple of database dumps after maintenance mode ran and after the file recan ran. PS: I also trimmed down my OC test instance to bare bones files so that the database dump files were cleaner. Will this new set of results be addressed in the near future? If so which version of OC will receive the updates> Your feedback would be appreciated. |
@VicDeo @DeepDiver1975 @karlitschek I have revised this issue to reflect the new bug symptoms. I have sent database dumps to Frank, requesting they be sent to who ever will be addressing this bug issue. Please note that I was testing V5.0.13 and had started to test V6 Beta 3 (it was showing same issues as V5.0.13) when all of a sudden Beta 4 came out. |
@kneiser so - what is the current state as of today? I'm a bit confused. Is the upgrade working now? As an idea: you can execute the upgrade procedure from the terminal as well by calling php upgrade.php |
@DeepDiver1975 as of now, no, in v5 or v6 of OC we still cannot upgrade from v4.5.13. With the release of V5.0.13 AND V5 Beta 3 things at the end of an upgraded actually degraded more OC features and the end test results were a bit different. From what I understand changes were made in those releases I tested, at least understood, were for the purposes of this bug issue? Consequently since things have changed I decided to revamp my test data and slightly change my testing patterns somewhat. The results still revealed the same upgrade problems plus one more new item (local storage definitions broken). So I also changed the text of this issue to reflect the new test results. Now you next question.
|
@DeepDiver1975 I ran the upgrade.php from the cli, I had the same results, upgrade failed to produce the desired results. Also here is the log from the admin user Admin section: Warning PHP Cannot modify header information - headers already sent by (output started at /var/hda/web-apps/owncloud/html/upgrade.php:39) at /var/hda/web-apps/owncloud/html/lib/user.php#658 2013-11-24T00:13:45+00:00 |
@VicDeo @DeepDiver1975 @karlitschek I have tested V5.0.14a (MariaDB is the database), still cannot successfully upgrade from v4.5.13. Additionally an external storage connection I have defined, and has always worked, is now not working. On this new issue in admin I have a green light on the external storage definition. I even deleted and created the external storage definition and it doesn't work at all (still had a green light). Permissions and ownership are: 775 apache:apache I also tested v6.0.0a and it has the same set of problems. Do you know if a developer will ever get assigned to this bug issue? I am willing to spend some time doing testing under a developer's guidance. Current log in admin user => admin shows: Warning PHP Undefined index: fileid at /var/hda/web-apps/owncloud/html/lib/files/cache/scanner.php#109 2013-12-28T17:36:41+00:00 |
@VicDeo @DeepDiver1975 @karlitschek I recently acquired a Raspberry Pi and set it up as a Raspbian LAMP-like (use SQLite as database app) server. I successfully installed owncloud V5.0.14a on it. I setup the test cases, including a local external storage definition. Everything works as expected. I have another (Fedora 19 LAMP-like with SQLite as database) test server (similar setup as Raspberry Pi). I have successfully installed and tested V5.0.14a and setup my test data also with an external storage definition. I then manually upgraded to V6.0.0a (v5.0.14a backups) and it works fine! So far the problems reported on the bug issue seem to point to a problem in the upgrade process for ownCloud (V5.x and V6.x) from V4.5.13 (using MySQL or MariaDB). In the past I was able to upgrade from V4.x to V4.5.x with no problems. Please Note: I have 3 test servers and one production server.
|
@VicDeo @DeepDiver1975 @karlitschek I have just tested the upgrade from V4.5.13 to V6.0.1. The upgrade fails as usual HOWEVER it seems that someone's test data has made it in to v6.0.1. When existing users now get the same test data (photos, test odt file, mp3 file). I noticed there in the OC "Test Plan" there are a couple of sections on testing upgrades. Did anyone try the test scenario in this bug issue? Those of us that are still on OC V4.5.13 with lots of data stored what do we do? |
@kneiser I can't see any test data in the release. But we ship some example files starting with ownCloud 6. |
Not sure about 4.5. If upgrading directly to 6.0.2 doesn't work you might try and upgrade to 5.0.15 first. I haven't tested it, so not sure whether it works, but I suppose that upgrading from OC 4 to OC 5 should be possible. |
@PVince81 @karlitschek I did that upgrade path a long time ago on prior releases of V5.0.x with same results. The last time was V5.0.14a. I have seen nothing in any releases of v5.0.x or v6.0.x to indicate that this bug issue was ever addressed. I am involved in another open source server project where ownCloud is one of the applications used. Many members of our server community have a lot of data in v4.5.x and can't upgrade. As a contingency we are considering providing V6.x and v4.5.x available. Members that want V6.x can move to it but will have to redo their data and configurations. |
I also cannot upgrade from 4.5.x to 5.0.x. The upgrade hangs afte "Updated database" with "Please reload the page." After the reload I get "ownCloud is in maintenance mode" and there it hangs. I can set "maintenance" to "false" in the config, but then I will just get the "Updated databse" thing. I have tried removing PHP session files from the server, changing the browsers, clearing oc_fscache, commenting out line 36 in lib/cache.php (all of these I have found on different fora in the Internet as response to this bug), all to no avail. Battling this for 2 days now, and a clean install is simply not an option -- we're using ownCloud internally in our organisation and cannot afford to lose the data/settings. Update: found the bug. |
fixed |
Problem Description:
After upgrading (not update) from ownCloud v4.5.13 to v5.0.x folders and files appear in the ownCloud "admin" user account. While a "normal user" account some folders and files owned have disappeared. Symptoms such as this have been reported on the ownCloud forum, normal course of action in the past has been to recommend the "truncation" of records in the ownCloud file cache table(s). Doing this resolves the folder and file assignments issue but then all sharing of folders by security group and files by link or direct assignment setups are destroyed. Breaking the sharing setups have to be setup again, in larger ownCloud instances this is not good as there can be a lot of complex sharing setups.
Test Machine:
Testing:
Command-line syntax:
php console.php files:scan <user_id> #For rescanning a users file
php console.php files:scan --all #For rescanning the files of all users
Testing Completed:
Please provide guidance for helping resolve this issue.
The text was updated successfully, but these errors were encountered: