Open Angeemg opened 1 month ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Having the same issue, any progress?
OP has used the incorrect port in their compose, as they're using docker networking, they should be using the container port 3306 and not the bridged port on 3307.
version: "2" services: bookstack: image: lscr.io/linuxserver/bookstack container_name: bookstack environment:
I have similar error: here my error in laravel.log:
[2024-06-11 18:19:30] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_type' in 'where clause' (SQL: select * from `activities` where ((`entity_type` = bookshelf and `entity_id` in (2))) order by `created_at` desc limit 20 offset 0) {"userId":3,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_type' in 'where clause' (SQL: select * from `activities` where ((`entity_type` = bookshelf and `entity_id` in (2))) order by `created_at` desc limit 20 offset 0) at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
the weird thing is: I could not find a hint about a failed migration?
I was able to get past this issue by manually setting the mysql user password. It looks like the docker compose example in the readme doesn't correctly set the mysql_user's password.
docker exec -it bookstack_db mysql -u root -p
# type in your mysql root password
ALTER USER bookstack IDENTIFIED BY '<put your password here>';
Does your password contain the character $
?
I have similar error: here my error in laravel.log:
[2024-06-11 18:19:30] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_type' in 'where clause' (SQL: select * from `activities` where ((`entity_type` = bookshelf and `entity_id` in (2))) order by `created_at` desc limit 20 offset 0) {"userId":3,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_type' in 'where clause' (SQL: select * from `activities` where ((`entity_type` = bookshelf and `entity_id` in (2))) order by `created_at` desc limit 20 offset 0) at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
the weird thing is: I could not find a hint about a failed migration?
sorry in my case false alarm, happened because watchtower messed something up and ran older version of bookstack app container. Which then make sence i no more compatible to the Database
@aptalca it did not
Then please post your password (change it in your system afterwards) so we can try and reproduce.
Last I looked into it, we had sanitization in place for every special character and they all worked (with the exception of the $
in compose yaml which needs to be escaped in compose and not something we can fix inside the container).
I experienced the same issue. The solution in my case was to tear down the containers and bring them up again, which was enough to trigger the migrations to occur. I'm not sure why they didn't run the first time by themselves.
Is there an existing issue for this?
Current Behavior
I used Docker-Compose to start Bookstack but got 500 error.
in /log/nginx/error.log I don't have any entries.
Expected Behavior
Open bookstack configuration home page
Steps To Reproduce
use docker-compose file, I have changed only file ports in docker hub
Environment
CPU architecture
x86-64
Docker creation
Container logs