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

Upgraded Baikal from v0.4.6 to 0.6.1 #860

Closed
1 task
tupson opened this issue Dec 20, 2019 · 16 comments
Closed
1 task

Upgraded Baikal from v0.4.6 to 0.6.1 #860

tupson opened this issue Dec 20, 2019 · 16 comments

Comments

@tupson
Copy link

tupson commented Dec 20, 2019

Baikal version: 0.x

  • [ x ] I have searched open and closed issues for duplicates
  • [ x ] I have installed the release zip, not the source code zip
  • I have moved the whole, untouched Specific folder to the new installation

Problem:

I had version 0.4.6 installed and upgraded to 0.6.1 (by overwriting every folder but specific).
I followed the steps mentioned here: http://sabre.io/baikal/upgrade/

When I launch the URL:7500/admin and/or URL:7500/html/admin - it goes to a blank page with a "0" listed and nothing else.

https://upson.cc/filehub/01.PNG

@ByteHamster
Copy link
Member

I don't think this is shown by Baikal. Looks like there is something wrong with your server setup. Maybe a missing config option for the default file? Try html/admin/index.php.

@tupson
Copy link
Author

tupson commented Dec 20, 2019

What is the upgrade path? It seems when I reset to factory (0.2.4) no matter what I try to upgrade to, it fails of some sort.

@tupson
Copy link
Author

tupson commented Dec 20, 2019

I am running this ona ReadyNAS btw.

@ByteHamster
Copy link
Member

The upgrade path is exactly what you did. Works on most servers. To find out why it does not work on your server, please answer my questions.

  • What does html/admin/index.php show?
  • What php version do you use?

@tupson
Copy link
Author

tupson commented Dec 20, 2019

I honestly do not know. ReadyNAS has the app available and it installs v0.2.4... which is obviously ancient at this point and our Thunderbird clients aren't sync'n contacts at this version or v0.4.6 correctly. I saw that v0.6.1 addresses this stuff, but I then got the error I originally posted on and now even when I remove/reinstall the app, it brings back my DB; so I assume the upgrade process is failing because the DB tables are already existing.

@ByteHamster
Copy link
Member

I honestly do not know

Then find it out :) I can only point you into the right direction but I can't do everything for you. You can try to use one of the following methods: http://howtocheckversion.com/check-php-version-running/

Current Baikal versions need php 7.0

@tupson
Copy link
Author

tupson commented Dec 21, 2019

Sorry, not a Linux GURU, I need GUI's lol --- I will check now.

But going from 0.2.4 to 0.4.6 I get the the following error:

Fatal error: Class 'Flake\Core\Framework' not found in /apps/baikal/web/Core/Frameworks/Flake/Framework.php on line 30

@tupson
Copy link
Author

tupson commented Dec 21, 2019

looks like running -

PHP 5.6.33-0+deb8u1.netgear1 (cli) (built: Jan 22 2018 12:05:48)

@tupson
Copy link
Author

tupson commented Dec 21, 2019

I had v0.4.6 installed and the notes said it "supports 7.0.7 php" never read it was a requirement in any version. what version can i upgrade to that runs my PHP.

@ByteHamster
Copy link
Member

looks like running PHP 5.6.33-0+deb8u1

This means that you can not run Baikal 0.6.x on your server or you need to find a way to upgrade. I can't help you with that, though. Baikal 0.5.x supports php 5.6.

But going from 0.2.4 to 0.4.6 I get the the following error:
Fatal error: Class 'Flake\Core\Framework' not found in /apps/baikal/web/Core/Frameworks/Flake/Framework.php on line 30

Are you sure you used the right zip file and uploaded all files?

@tupson
Copy link
Author

tupson commented Dec 21, 2019

It should be the first zip as a choice right? (i.e. baikal-0.5.3.zip)

I download that, extract and I copy all folders "but the Specific" folder and overwrite the existing files within the baikal dir. as per upgrade guide on the site.

@tupson
Copy link
Author

tupson commented Dec 21, 2019

Now I receive:

Upgrading Baïkal from version 0.2.4 to version 0.5.3

Errors
Uncaught exception during upgrade: exception 'PDOException' with message 'SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'synctoken'' in /apps/baikal/web/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php:104 Stack trace: #0 /apps/baikal/web/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(104): PDO->exec('ALTER TABLE cal...') #1 /apps/baikal/web/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(61): BaikalAdmin\Controller\Install\VersionUpgrade->upgrade('0.2.4', '0.5.3') #2 /apps/baikal/web/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\Install\VersionUpgrade->render() #3 /apps/baikal/web/Core/Frameworks/Flake/Controller/Page.php(85): Flake\Core\Render\Container->renderBlocks() #4 /apps/baikal/web/html/admin/install/index.php(92): Flake\Controller\Page->render() #5 {main}

@tupson
Copy link
Author

tupson commented Dec 21, 2019

I was able to finally get past all these issues. How?

I uninstalled and reinstalled factory version 0.2.4 on the ReadyNAS 3138.

Required upgrade path: 0.2.4 > 0.2.7 flat > 0.4.6 > 0.5.3

  1. Copy 0.2.7 folders/files over (skipping the Specific folder) and then delete the config*.php files and refresh /var/admin/ URL to upgrade
  2. Copy 0.4.6 folders/files over (skipping the Specific folder) and then delete the config*.php files and refresh /var/html/admin/ URL to upgrade
  3. Copy 0.5.3 folders/files over (skipping the Specific folder) and then delete the config*.php files and navigate to /var/html/admin/ URL to upgrade

Once I reconfigured the initial install page after deleting those files, it would allow me to upgrade/migrate. If not, the above error messages continued to splurge.

@ByteHamster
Copy link
Member

Baikal saves the database version in the config files. If you delete the config files while upgrading, you run an old database with the new Baikal version. This will probably break when synchronizing.

Now I receive:
Upgrading Baïkal from version 0.2.4 to version 0.5.3
Uncaught exception during upgrade: exception 'PDOException' with message 'SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'synctoken''

This is quite bad. It means that Baikal tried to update the database at some point in the past and then was interrupted. Your database is in an inconsistent state. Fixing this is quite a lot of work and requires fiddling with the code. It might be easier to export your contacts/calendar entries using Thunderbird, re-install Baikal from scratch and then import again.

@antonyupward
Copy link

Hi @tupson - thanks for asking this question about Baikal on NetGear ReadyNAS OS 6.10.2 and to @ByteHamster who helped you out.

Not sure if you can help me with my noob questions... but I just made this post asking about a clean install of Baikal 0.6.1 on ReadyNAS OS 6.10.2. Many thanks if you can help, no worries if not.

@ByteHamster
Copy link
Member

@tupson Do you still need help with this or can I close the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants