BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Impossible to login after migration #5314

Closed nicfab closed 1 week ago

nicfab commented 1 week ago

Attempted Debugging

Searched GitHub Issues

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

ssddanbrown commented 1 week ago

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.

nicfab commented 1 week ago

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 1 week ago

@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 1 week ago

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