-
Notifications
You must be signed in to change notification settings - Fork 294
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
Upgrading from 0.2.7 to 0.4.0 fails #506
Comments
If your 0.2.7 database had a synctoken, then it was not a 0.2.7 database. Can you start the upgrade over? |
Yes, I tried a second time and got the same error message ... Running version is 0.2.7, I'm quite sure ;) |
The problem is that your old database is not supposed to have a synctoken column. Any idea why that might be in there? |
No, I'm sorry - I've only used this version until today and never upgraded before … |
did you create a backup before the upgrade? if so, did the db schema before the upgrade contain the synctoken column? |
Could you go into your sqlite database (on your old database, before attempting the upgrade):
And then type:
And share the result? That should provide some insight I hope. |
This is the result: CREATE TABLE addressbooks ( |
Interesting. There's no synctoken in there. I'm going to run the upgrade from 0.2.7 to 0.4.0 and see if there's a reproducible error. |
Hi, i'm currently stuck at the same problem with the same error message. I copied the db-file from my old 0.2.7-installation. The admin-Interface shows my old calendar and adressbook but accessing through "dav.php" fails with the "synctoken"-error. |
Confirmed that there is a problem, but the synctoken problem is actually not the first issue. During upgrade there's a different sql error. Then trying to run the update again yields the synctoken problem (which makes sense because the first attempt to an upgrade was half completed). |
This is the first error:
|
This definitely just affects upgrades from 0.2.7 and earlier, a path I didn't test. But I have a solution |
Ok guys, I just uploaded 0.4.1. Upgrading to 0.4.1 will only work from your original 0.2.7 database. |
Thank you very much - but I tried it and still get the same message when reloading the admin page ... |
How did you make the upgrade? You have to make the following steps after installing/unzipping baikal:
|
This contradicts the upgrade instructions here: |
yea the upgrade instructions are actually a bit better. Basically, you only need to keep the |
So, just to clarify: I extract the zip, name it the way my Baikal server is configured, delete the Specific folder inside and copy the old one in the new directory. Then I go to my server address which immediately redirects to /html/admin which immediately redirects to /html/admin/install - the page takes some minutes to load, then it appears completely blank (tried it with several browsers). After that, nothing happens (I've waited for half an hour, no related processes show any CPU activity) - when I try to reload the page, I get the well-known synctoken error ... |
That's interesting. The reason you get the error though is because you run an incomplete upgrade twice. The real problem is : why does the initial upgrade not complete? How big is your database? I'm wondering if it simply never completes because it's just taking a very long time to upgrade. |
I'd say not really big, it's 2 users, 9 calendars, 3000 events, 2 address books, 400 contacts ... After the page is shown as loaded in the browser (although blank), there is no more PHP/web server process activity on my server, so it's somehow completely stuck as it seems. |
So I'm thinking this is still the cause of your problem. Even though 3000 events might not sound that big, in order to upgrade the script actually has to parse every single event in order to extract some information from it. I suspect that if you check your PHP or webserver log, you will either see an out of memory, or a maximum execution time-related error. If it's either of those, you can just increase those numbers and wait longer. If none of that is an option, there is a way to do a manual upgrade on the command line. It's not super easy, but I can definitely write step-by-step instructions for it. Let me know what you would like me to do! |
Thank you so much for your help - the solution really was to increase the execution limit (and it didn't take much longer than the previous limit of 30 seconds ^^). Thanks for the great support! |
I have the same issue as @mehlkopf I'm really sure it's 0.2.7 running there and to prevent the issue being caused by a failed upgrade I dropped the database and used a backup from the morning before the upgrade. |
Hi @bjo81 , Please re-read this thread and go over the troubleshooting steps we've already done. I can ask you all the same questions again, but it wouldn't be a very good use of my time. |
Heyho!
For all my fellow noobs: Here is how to do it. |
Hi there,
I just tried upgrading from 0.2.7 to 0.4.0, but the upgrading process fails with the error message:
Uncaught exception during upgrade: exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 duplicate column name: synctoken' in /var/www/bk/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php:255 Stack trace: #0 /var/www/bk/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(255): PDO->exec('ALTER TABLE cal...') #1 /var/www/bk/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(61): BaikalAdmin\Controller\Install\VersionUpgrade->upgrade('0.2.7', '0.4.0') #2 /var/www/bk/Core/Frameworks/Flake/Core/Render/Container.php(71): BaikalAdmin\Controller\Install\VersionUpgrade->render() #3 /var/www/bk/Core/Frameworks/Flake/Controller/Page.php(85): Flake\Core\Render\Container->renderBlocks() #4 /var/www/bk/html/admin/install/index.php(80): Flake\Controller\Page->render() #5 {main}
I'm using SQLite ...
Thanks for help!
The text was updated successfully, but these errors were encountered: