Open chaospheremk opened 1 day ago
Whatever is generated via that appkey command should be fine, since it's just running the key:generate
command we suggest anyway: https://github.com/linuxserver/docker-bookstack/blob/1eb8aa7e866a2d2d0303a393c23e381b340a4f9c/root/appkey
@ssddanbrown Well, as an update... just for kicks I generated my own 32 character key, plugged it in, and now bookstack is working. So it appears that what was generated by the appkey command is unfortunately not fine. What it generates is too long for bookstack to be able to use.
There might be a problem with the key:generate command and the default number of characters? It appears 44 characters is too long of a key for a default installation. Or am I missing something?
Second, is there any issue with me generating my own key? I didn't use key:generate and just used a powershell function I personally created to generate a random password at variable lengths.
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
The problem is that after a fresh install/setup of bookstack, I go to the bookstack URL I configured and see a header of "An Error Occurred" with the content under it showing "An unknown error occurred"
This is a fresh install of bookstack via docker-compose. I'm using mariadb as the mysql database. I did use the recommendation in the documentation to generate the APP_KEY with the following command
docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey
This generates a 44 character APP_KEY. However, online documentation seems to indicate that it should be a 32 character key? I'm not entirely sure.
Other documentation suggests using
php artisan key:generate
andphp artisan migrate
but that appears to be for a manual install. I'm not sure how I would or could accomplish the same thing when installing via docker compose.Exact BookStack Version
v24.10-ls170
Log Content
With APP_DEBUG not set to true:
With APP_DEBUG set to true, I can go to the bookstack ip and see the following:
Error RuntimeException Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm.
Environment PHP Version: 8.3.12 BookStack Version: v24.10
Stack Trace
Hosting Environment
I am simply trying to host bookstack via Docker with docker compose. Host OS is Ubuntu 24.04.