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
I'm trying to migrate my data from one Ubuntu 20.04 LTS VM running Bookstack v0.31.7 to a new Ubuntu VM running Bookstack v22.03. I've successfully copied over the database and files required and fixed bookstack SQL login info. However, when I try to log into the new instance I get this error:
[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mfa_enforced' in 'where clause' at /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:368)
I believe this has something to do with us enabling Okta SSO in the original bookstack instance. I tried commenting out the Okta specific values in the .env file which doesn't have any impact on the problem. Trying to figure out how to manually resolve this.
I believe this has something to do with us enabling Okta SSO in the original bookstack instance.
I don't think that's related at all. The error you are getting is due to the table structure not being as expected.
When you restore to a new instance it's very important that you restore the old database dump before any of the app-managed database migrations are ran, so there should ideally be no pre-existing tables in the database you restore into. After that you'd then run the app-managed migrations via php artisan migrate to update your old data to the latest required state.
Doing the above steps in the wrong order, or not running each of them, may result in the kind of error you are experiencing.
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
I'm trying to migrate my data from one Ubuntu 20.04 LTS VM running Bookstack v0.31.7 to a new Ubuntu VM running Bookstack v22.03. I've successfully copied over the database and files required and fixed bookstack SQL login info. However, when I try to log into the new instance I get this error:
[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mfa_enforced' in 'where clause' at /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Database/Connection.php:368)
I believe this has something to do with us enabling Okta SSO in the original bookstack instance. I tried commenting out the Okta specific values in the .env file which doesn't have any impact on the problem. Trying to figure out how to manually resolve this.
laravel.log
Exact BookStack Version
v22.03
Log Content
Stack Trace
PHP Version
7.4
Hosting Environment
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: