Install failure due to PDO issue with doctrine/dbal slightly backdated #2404

Closed
opened 2026-02-05 03:58:45 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @anders8 on GitHub (Sep 27, 2021).

composer.json has doctrine/dbal set to 2.12.x in the current install.

This will ending up pulling in a bug where the PDO connection fails because it is having the wrong type of object returned to it. The failure will show up in the when running the install migrate.

I did a full fresh install, but after the git clone, I edited the composer.json before running composer, setting it to 2.13.2. There are reports of the bug being fixed are in 2.13.1:
https://github.com/doctrine/dbal/issues/4603

Extra annoying in that it really, REALLY looks like a database/user/password parameters issue, so you'll spend way too much time checking the mysql setup and permissions and ports and firewalls. It's not though. Recommend highly that the distribution gets composer.json updated. 👍

Edit:
OS: OpenSUSE
web server: nginx
install method: manual / CLI

Originally created by @anders8 on GitHub (Sep 27, 2021). composer.json has doctrine/dbal set to 2.12.x in the current install. This will ending up pulling in a bug where the PDO connection fails because it is having the wrong type of object returned to it. The failure will show up in the when running the install migrate. I did a full fresh install, but after the git clone, I edited the composer.json before running composer, setting it to **2.13.2**. There are reports of the bug being fixed are in 2.13.1: https://github.com/doctrine/dbal/issues/4603 Extra annoying in that it really, REALLY looks like a database/user/password parameters issue, so you'll spend way too much time checking the mysql setup and permissions and ports and firewalls. It's not though. Recommend highly that the distribution gets composer.json updated. 👍 Edit: OS: OpenSUSE web server: nginx install method: manual / CLI
OVERLORD added the 🐕 Support label 2026-02-05 03:58:45 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Sep 27, 2021):

Hi @anders8,
What version of BookStack are you attempting to use?

2.13.1 / 2.13.2 have been part of our composer.lock since BookStack v21.04.1 from the looks of things. It's the composer.lock that would actually be used for package versions upon composer install.

@ssddanbrown commented on GitHub (Sep 27, 2021): Hi @anders8, What version of BookStack are you attempting to use? 2.13.1 / 2.13.2 have been part of our `composer.lock` since BookStack v21.04.1 from the looks of things. It's the `composer.lock` that would actually be used for package versions upon `composer install`.
Author
Owner

@anders8 commented on GitHub (Sep 27, 2021):

BookStack v21.08.3

Was using:
git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
as of yesterday, following "Manual Installation" as detailed:
https://www.bookstackapp.com/docs/admin/installation/

@anders8 commented on GitHub (Sep 27, 2021): BookStack v21.08.3 Was using: git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch as of yesterday, following "Manual Installation" as detailed: https://www.bookstackapp.com/docs/admin/installation/
Author
Owner

@ssddanbrown commented on GitHub (Sep 27, 2021):

Then yeah, should still be installing 2.13.2:

https://github.com/BookStackApp/BookStack/blob/v21.08.3/composer.lock#L430-L431

To be honest, I'm still not sure how the pieces relate. On the latest releases you would be installing dbal 2.13.2. Contrary to the recommendation, the linked issue has people saying the issue was introduced in 2.13 and they're downgrading to 2.12. Overall I'm not overly confident in your exact scenario.

Did the manual change to 2.13.2 in composer.json actually change anything for you?
If so, what command are you using to install composer packages?

@ssddanbrown commented on GitHub (Sep 27, 2021): Then yeah, should still be installing 2.13.2: https://github.com/BookStackApp/BookStack/blob/v21.08.3/composer.lock#L430-L431 To be honest, I'm still not sure how the pieces relate. On the latest releases you would be installing dbal 2.13.2. Contrary to the recommendation, the linked issue has people saying the issue was introduced in 2.13 and they're downgrading to 2.12. Overall I'm not overly confident in your exact scenario. Did the manual change to 2.13.2 in `composer.json` actually change anything for you? If so, what command are you using to install composer packages?
Author
Owner

@ssddanbrown commented on GitHub (Oct 13, 2021):

Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.

@ssddanbrown commented on GitHub (Oct 13, 2021): Since there's been no follow-up I'm going to close this. If the issue remains and is something you still require to be fixed please open a new issue, referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2404