You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are way behind in updates so I launched a fresh instance following the installation page and using the Ubunutu20.04 script. This was successful! I followed the backup and restore page creating a backup of my old installation and restoring it to the new installation and my web page no longer loads. Upon some further investigation, I found errors in /var/log/apache2/error.log
[Tue Jan 11 17:34:38.292405 2022] [php7:error] [pid 18824] [client <redacted>:56028] PHP Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'joint_permissions.owned_by' in 'where clause' in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:359\nStack trace:\n#0 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(359): PDO->prepare()\n#1 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(696): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()\n#2 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(663): Illuminate\\Database\\Connection->runQueryCallback()\n#3 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(367): Illuminate\\Database\\Connection->run()\n#4 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2352): Illuminate\\Database\\Connection->select()\n#5 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2340): Illuminate\\Database\\Query\\B in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 703
[Tue Jan 11 17:34:38.294938 2022] [php7:error] [pid 18824] [client <redacted>:56028] PHP Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'joint_permissions.owned_by' in 'where clause' in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:359\nStack trace:\n#0 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(359): PDO->prepare()\n#1 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(696): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}()\n#2 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(663): Illuminate\\Database\\Connection->runQueryCallback()\n#3 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php(367): Illuminate\\Database\\Connection->run()\n#4 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2352): Illuminate\\Database\\Connection->select()\n#5 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2340): Illuminate\\Database\\Query\\B in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 703
Is there something I can do to migrate from such an old version safely?
Hi @RealityShift,
It looks like your database is out of alignment with the application files.
Did you restore into an completely empty (No existing tables at all) database?
If so, you might just need to run php artisan migrate within your BookStack install folder, Record and post here if any error messages occur.
If not, It might be best to remove all tables (Or drop/re-create the DB), then re-import the old database backup before running php artisan migrate. Record and post here if any error messages occur.
Ahhhhh, I see! Yes, it was fully empty and I tried the migrate but it failed. I dropped the DB and re-created it, imported, than migrated and it seems to have worked.
I don't really understand what this artisan command is doing so just want to clarify, I should be safe to create a backup now with my new instance and use that going forward?
I should be safe to create a backup now with my new instance and use that going forward?
Yeah, should be if the php artisan migrate command ran okay. Give your instance a play around to make sure there are no errors first. I'd keep that old database backup handy, just in case, but should be good to go now and create a new backup.
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
We are way behind in updates so I launched a fresh instance following the installation page and using the Ubunutu20.04 script. This was successful! I followed the backup and restore page creating a backup of my old installation and restoring it to the new installation and my web page no longer loads. Upon some further investigation, I found errors in
/var/log/apache2/error.log
Is there something I can do to migrate from such an old version safely?
Exact BookStack Version
v21.12.2
Log Content
PHP Version
7.4.3
Hosting Environment
Ubuntu 20.04 VPS, installed using official installation script and restored a previous backup using official documentation.
The text was updated successfully, but these errors were encountered: