PPCM / docker-glpi

Docker for GLPI
GNU General Public License v3.0
5 stars 5 forks source link

Upgrade from 10.0.15-2 to 10.0.16-2 fails #17

Closed 3gmgithub closed 1 month ago

3gmgithub commented 1 month ago

After updating the containers... Here is the results... What are your suggestions?

glpi-server       | | GLPI version          | 10.0.15      | 10.0.16 |
glpi-server       | | GLPI database version | 10.0.15      | 10.0.16 |
glpi-server       | +-----------------------+--------------+---------+
glpi-server       | Checking database schema integrity...
glpi-server       | The database schema is not consistent with the installed GLPI version (10.0.15). Run the "php bin/console database:check_schema_integrity" command to view found differences.glpi-server       | | GLPI version          | 10.0.15      | 10.0.16 |
glpi-server       | | GLPI database version | 10.0.15      | 10.0.16 |
glpi-server       | +-----------------------+--------------+---------+
glpi-server       | Checking database schema integrity...
glpi-server       | The database schema is not consistent with the installed GLPI version (10.0.15). Run the "php bin/console database:check_schema_integrity" command to view found differences.

docker exec -it glpi-server php /var/www/glpi/bin/console database:check_schema_integrity
Checking database integrity of version "10.0.15@2eed74704cb07e0bac48b933cbd5c1c356f09629" is not supported.

docker exec -it glpi-server php /var/www/glpi/bin/console database:update
+-----------------------+--------------------------------------------------+---------+
|                       | Current                                          | Target  |
+-----------------------+--------------------------------------------------+---------+
| Database host         | mariadb:3306                                     |         |
| Database name         | glpi                                             |         |
| Database user         | glpiuser                                         |         |
| GLPI version          | 10.0.15                                          | 10.0.16 |
| GLPI database version | 10.0.15@2eed74704cb07e0bac48b933cbd5c1c356f09629 | 10.0.16 |
+-----------------------+--------------------------------------------------+---------+
Checking database schema integrity...
Database schema integrity check skipped as version "10.0.15@2eed74704cb07e0bac48b933cbd5c1c356f09629" is not supported by checking process.
Do you want to continue? [Yes/no]Yes

In Update.php line 405:

  DirectoryIterator::__construct(/var/www/glpi/install/migrations/): Failed to open directory: No such file or directory  

database:update [-u|--allow-unstable] [-s|--skip-db-checks] [-f|--force] [--enable-telemetry] [--no-telemetry]
PPCM commented 1 month ago

Something changes the structure of the database, perhaps a plugin... The folder "setup" is removed for security reasons, this is why you can't apply the update

Try this process in the shell of your pod:

After that, redeploy the container to remove the setup folder and see if everything is OK

Let me know if it corrects the update process

3gmgithub commented 1 month ago

I finally had time to take the system down and complete the update. It worked as expected... I did have to fix a few things.