2018-10-04, 04:43 PM
Hi,
I currently have a working 1.8.17 MyBB instance which uses a SQLite file as database.
I am trying to upgrade to 1.8.18 as a first step towards 1.8.19 but the install/upgrade.php script fails and complains about the SQLite database being locked. I tried the two upgrade methods (changed files and full install with edited config.php file) but I don't even get to the point where I can select the version to upgrade from, I get the error message immediately:
I searched for similar cases on the Internet and tried different workarounds (creating copies of the database with cp or with the .backup SQLite command, creating an empty database and populating it with the output of the .dump SQLite command), but none of them worked and I systematically get the database locked error.
I checked with lsof and fuser that no other process was accessing the database, so my guess is that the upgrade.php is trying to execute several exclusive queries concurrently.
Here are the versions of the libraries installed on my machine (ArchLinux) which seem relevant for this issue:
I currently have a working 1.8.17 MyBB instance which uses a SQLite file as database.
I am trying to upgrade to 1.8.18 as a first step towards 1.8.19 but the install/upgrade.php script fails and complains about the SQLite database being locked. I tried the two upgrade methods (changed files and full install with edited config.php file) but I don't even get to the point where I can select the version to upgrade from, I get the error message immediately:
Quote:SQLSTATE[HY000]: General error: 6 database table is locked
I searched for similar cases on the Internet and tried different workarounds (creating copies of the database with cp or with the .backup SQLite command, creating an empty database and populating it with the output of the .dump SQLite command), but none of them worked and I systematically get the database locked error.
I checked with lsof and fuser that no other process was accessing the database, so my guess is that the upgrade.php is trying to execute several exclusive queries concurrently.
Here are the versions of the libraries installed on my machine (ArchLinux) which seem relevant for this issue:
- php 7.2.10-1
- php-fpm 7.2.10-1
- php-sqlite 7.2.10-1
- sqlite 3.25.2-1