-
Notifications
You must be signed in to change notification settings - Fork 293
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
Error updating from 0.5.0 to 0.7 #942
Comments
I just tested the upgrade from 0.5.1 to 0.7.1. Works fine on my PC. Does the file |
My update steps.
My yaml
|
I had to go a little longer way. First, I successfully upgraded the server to version 0.5.1. Then I replaced the files from the archive version 0.7.1 and updated the server again. Successful again. |
Thanks @kini24. I had a similar issue upgrading from 0.4.5 to 0.7.1. I've made an intermediate upgrade from 0.4.5 to 0.6.1 prior upgrading to 0.7.1 |
Sorry for the late reply. Baikal does not officially support MariaDB, only SQLite and MySQL. The error |
It doesn't seem to be a problem with MariaDB (which is a MySQL fork), but rather a side effect of the config update. And seems to be the same issue as #965. |
@rubenvandeven Good catch! Would you be interested in creating a pull request for this? |
Reading through the code it looks like MySQL connection data is read from the new config file before it has been migrated from the old config file (or re-read from input): #946 (comment) #979 seems to fix it, but I'm not the best in reading that PHP code 😉. |
Sorry for not following up on this sooner, it was a sort of in-between find that I had solved by applying a |
Baikal version: 0.5.0
Specific
andconfig
folders to the new installationProblem:
I am trying to update. I check the data of the installation wizard and at the end click "Start Upgrade" and get the following error:
"Error: Call to a member function getPDO() on null in /var/www/vhosts/dav/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php:98
Stack trace:
#0 /var/www/vhosts/dav/Core/Frameworks/BaikalAdmin/Controller/Install/VersionUpgrade.php(68): BaikalAdmin\Controller\Install\VersionUpgrade->upgrade('0.5.0', '0.7.1')
#1 /var/www/vhosts/dav/Core/Frameworks/Flake/Core/Render/Container.php(69): BaikalAdmin\Controller\Install\VersionUpgrade->render()
#2 /var/www/vhosts/dav/Core/Frameworks/Flake/Controller/Page.php(90): Flake\Core\Render\Container->renderBlocks()
#3 /var/www/vhosts/dav/html/admin/install/index.php(100): Flake\Controller\Page->render()
#4 {main}"
As a base, I use MySQL:
mysql Ver 15.1 Distrib 10.1.43-MariaDB, for Linux (x86_64) using readline 5.1
My operating system:
Linux server 4.9.196-std-def-alt0.M80P.1 # 1 SMP Mon Oct 7 20:45:53 UTC 2019 x86_64 GNU / Linux
The text was updated successfully, but these errors were encountered: