Impossible to login after migration #5044

Closed
opened 2026-02-05 09:36:14 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @nicfab on GitHub (Nov 10, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I installed (manual) Bookstack from scratch on a new server.
Then, I restored the database.
Accessing from the web, after inputting login, password, and 2FA, I see "_An Error Occurred. An unknown error occurred", as for the image below.

sshot_2024-11-10_13 35 59

Can you help me?

Exact BookStack Version

24.10.1

Log Content

No response

Hosting Environment

PHP8.2

Originally created by @nicfab on GitHub (Nov 10, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I installed (manual) Bookstack from scratch on a new server. Then, I restored the database. Accessing from the web, after inputting login, password, and 2FA, I see "_An Error Occurred. An unknown error occurred", as for the image below. ![sshot_2024-11-10_13 35 59](https://github.com/user-attachments/assets/a28da64d-364c-4aa1-a7a4-b430507c8d5c) Can you help me? ### Exact BookStack Version 24.10.1 ### Log Content _No response_ ### Hosting Environment PHP8.2
OVERLORD added the 🐕 Support label 2026-02-05 09:36:14 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 10, 2024):

Hi @nicfab,
Please check your error log for details regarding the error: https://www.bookstackapp.com/docs/admin/debugging/#error-log-file

If I had to guess without error detail, it's maybe due to the new instance/setup not using the same APP_KEY value, which is used for MFA encryption. The APP_KEY should be the same as your old instance.
This is only a guess though, check the log for actual information.

@ssddanbrown commented on GitHub (Nov 10, 2024): Hi @nicfab, Please check your error log for details regarding the error: https://www.bookstackapp.com/docs/admin/debugging/#error-log-file If I had to guess without error detail, it's maybe due to the new instance/setup not using the same `APP_KEY` value, which is used for MFA encryption. The `APP_KEY` should be the same as your old instance. This is only a guess though, check the log for actual information.
Author
Owner

@nicfab commented on GitHub (Nov 10, 2024):

Hi @ssddanbrown!
Thank you very much for your quick reply.
I set the APP_KEY of the old instance, and I can log in now, although I should set again my name instead of Admin, my photo, and something else.

@nicfab commented on GitHub (Nov 10, 2024): Hi @ssddanbrown! Thank you very much for your quick reply. I set the `APP_KEY` of the old instance, and I can log in now, although I should set again my name instead of Admin, my photo, and something else.
Author
Owner

@nicfab commented on GitHub (Nov 13, 2024):

@ssddanbrown
I need your help again.
I am still migrating my instance.
On my new server, I installed MariaDB (mariadb Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper).
After the database backup, I restored it; indeed, accessing maridab I see the tables.
However, when running php artisan migrate under the bookstack folder, I receive some errors, and it seems that there is no access to the database.
Below the screenshot

sshot_2024-11-13_14 25 21

What should I do?

@nicfab commented on GitHub (Nov 13, 2024): @ssddanbrown I need your help again. I am still migrating my instance. On my new server, I installed MariaDB (mariadb Ver 15.1 Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper). After the database backup, I restored it; indeed, accessing maridab I see the tables. However, when running `php artisan migrate` under the `bookstack` folder, I receive some errors, and it seems that there is no access to the database. Below the screenshot ![sshot_2024-11-13_14 25 21](https://github.com/user-attachments/assets/df224d9e-6c2f-44d3-9663-444a8ac199cd) What should I do?
Author
Owner

@nicfab commented on GitHub (Nov 13, 2024):

Sorry!
It depended on my mistake in the database configuration on MariaDB.
It works great for me.

@nicfab commented on GitHub (Nov 13, 2024): Sorry! It depended on my mistake in the database configuration on `MariaDB.` It works great for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5044