Update from 24.05.4 succeeded but stil showing 24.05.4 #5545

Closed
opened 2026-02-05 10:09:47 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @globule on GitHub (Dec 18, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

`$ composer install --no-dev

@php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 0 updates, 37 removals

  • Removing theseer/tokenizer (1.3.1)
  • Removing symfony/dom-crawler (v6.4.25)
  • Removing ssddanbrown/asserthtml (v3.1.0)
  • Removing squizlabs/php_codesniffer (3.13.5)
  • Removing sebastian/version (4.0.1)
  • Removing sebastian/type (4.0.0)
  • Removing sebastian/recursion-context (5.0.1)
  • Removing sebastian/object-reflector (3.0.0)
  • Removing sebastian/object-enumerator (5.0.0)
  • Removing sebastian/lines-of-code (2.0.2)
  • Removing sebastian/global-state (6.0.2)
  • Removing sebastian/exporter (5.1.4)
  • Removing sebastian/environment (6.1.0)
  • Removing sebastian/diff (5.1.1)
  • Removing sebastian/complexity (3.2.0)
  • Removing sebastian/comparator (5.0.4)
  • Removing sebastian/code-unit-reverse-lookup (3.0.0)
  • Removing sebastian/code-unit (2.0.0)
  • Removing sebastian/cli-parser (2.0.1)
  • Removing phpunit/phpunit (10.5.60)
  • Removing phpunit/php-timer (6.0.0)
  • Removing phpunit/php-text-template (3.0.1)
  • Removing phpunit/php-invoker (4.0.0)
  • Removing phpunit/php-file-iterator (4.1.0)
  • Removing phpunit/php-code-coverage (10.1.16)
  • Removing phpstan/phpstan (1.12.32)
  • Removing phar-io/version (3.2.1)
  • Removing phar-io/manifest (2.0.4)
  • Removing nunomaduro/collision (v7.12.0)
  • Removing myclabs/deep-copy (1.13.4)
  • Removing mockery/mockery (1.6.12)
  • Removing larastan/larastan (v2.11.2)
  • Removing itsgoingd/clockwork (v5.3.5)
  • Removing iamcal/sql-parser (v0.5)
  • Removing hamcrest/hamcrest-php (v2.1.1)
  • Removing filp/whoops (2.18.4)
  • Removing fakerphp/faker (v1.24.1)
    Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi

INFO Discovering packages.

laravel/socialite ............................................................................................. DONE
laravel/tinker ................................................................................................ DONE
nesbot/carbon ................................................................................................. DONE
nunomaduro/termwind ........................................................................................... DONE
socialiteproviders/manager .................................................................................... DONE

57 packages you are using are looking for funding.
Use the composer fund command to find out more!

@php artisan cache:clear

INFO Application cache cleared successfully.

@php artisan view:clear

INFO Compiled views cleared successfully.

/var/www/books$ php artisan config:clear

INFO Configuration cache cleared successfully.

$ composer update
...

  • Installing sebastian/type (4.0.0): Extracting archive
  • Installing squizlabs/php_codesniffer (3.13.5): Extracting archive
  • Installing symfony/dom-crawler (v6.4.25): Extracting archive
  • Installing phpunit/phpunit (10.5.60): Extracting archive
  • Installing ssddanbrown/asserthtml (v3.1.0): Extracting archive
    Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi

INFO Discovering packages.

itsgoingd/clockwork ........................................................................................... DONE
laravel/socialite ............................................................................................. DONE
laravel/tinker ................................................................................................ DONE
nesbot/carbon ................................................................................................. DONE
nunomaduro/collision .......................................................................................... DONE
nunomaduro/termwind ........................................................................................... DONE
socialiteproviders/manager .................................................................................... DONE

88 packages you are using are looking for funding.
Use the composer fund command to find out more!
No security vulnerability advisories found

$git pull origin release
...
app/Entities/Repos/ChapterRepo.php
app/Entities/Repos/DeletionRepo.php
app/Entities/
Abandon

/var/www/books$ php artisan migrate
INFO Nothing to migrate.
`

After reboot the preferences still show "BookStack v24.05.4 "
What did I forget ?

Exact BookStack Version

24.05.4

Log Content


Hosting Environment

Debian GNU/Linux 12 (bookworm)
Composer version 2.5.5 2023-03-21 11:50:05
PHP 8.2.24 (cli) (built: Sep 27 2024 04:16:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.24, Copyright (c) Zend Technologies
with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies

Originally created by @globule on GitHub (Dec 18, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario `$ composer install --no-dev > @php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');" Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 0 installs, 0 updates, 37 removals - Removing theseer/tokenizer (1.3.1) - Removing symfony/dom-crawler (v6.4.25) - Removing ssddanbrown/asserthtml (v3.1.0) - Removing squizlabs/php_codesniffer (3.13.5) - Removing sebastian/version (4.0.1) - Removing sebastian/type (4.0.0) - Removing sebastian/recursion-context (5.0.1) - Removing sebastian/object-reflector (3.0.0) - Removing sebastian/object-enumerator (5.0.0) - Removing sebastian/lines-of-code (2.0.2) - Removing sebastian/global-state (6.0.2) - Removing sebastian/exporter (5.1.4) - Removing sebastian/environment (6.1.0) - Removing sebastian/diff (5.1.1) - Removing sebastian/complexity (3.2.0) - Removing sebastian/comparator (5.0.4) - Removing sebastian/code-unit-reverse-lookup (3.0.0) - Removing sebastian/code-unit (2.0.0) - Removing sebastian/cli-parser (2.0.1) - Removing phpunit/phpunit (10.5.60) - Removing phpunit/php-timer (6.0.0) - Removing phpunit/php-text-template (3.0.1) - Removing phpunit/php-invoker (4.0.0) - Removing phpunit/php-file-iterator (4.1.0) - Removing phpunit/php-code-coverage (10.1.16) - Removing phpstan/phpstan (1.12.32) - Removing phar-io/version (3.2.1) - Removing phar-io/manifest (2.0.4) - Removing nunomaduro/collision (v7.12.0) - Removing myclabs/deep-copy (1.13.4) - Removing mockery/mockery (1.6.12) - Removing larastan/larastan (v2.11.2) - Removing itsgoingd/clockwork (v5.3.5) - Removing iamcal/sql-parser (v0.5) - Removing hamcrest/hamcrest-php (v2.1.1) - Removing filp/whoops (2.18.4) - Removing fakerphp/faker (v1.24.1) Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi INFO Discovering packages. laravel/socialite ............................................................................................. DONE laravel/tinker ................................................................................................ DONE nesbot/carbon ................................................................................................. DONE nunomaduro/termwind ........................................................................................... DONE socialiteproviders/manager .................................................................................... DONE 57 packages you are using are looking for funding. Use the `composer fund` command to find out more! > @php artisan cache:clear INFO Application cache cleared successfully. > @php artisan view:clear INFO Compiled views cleared successfully. /var/www/books$ php artisan config:clear INFO Configuration cache cleared successfully. $ composer update ... - Installing sebastian/type (4.0.0): Extracting archive - Installing squizlabs/php_codesniffer (3.13.5): Extracting archive - Installing symfony/dom-crawler (v6.4.25): Extracting archive - Installing phpunit/phpunit (10.5.60): Extracting archive - Installing ssddanbrown/asserthtml (v3.1.0): Extracting archive Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi INFO Discovering packages. itsgoingd/clockwork ........................................................................................... DONE laravel/socialite ............................................................................................. DONE laravel/tinker ................................................................................................ DONE nesbot/carbon ................................................................................................. DONE nunomaduro/collision .......................................................................................... DONE nunomaduro/termwind ........................................................................................... DONE socialiteproviders/manager .................................................................................... DONE 88 packages you are using are looking for funding. Use the `composer fund` command to find out more! No security vulnerability advisories found $git pull origin release ... app/Entities/Repos/ChapterRepo.php app/Entities/Repos/DeletionRepo.php app/Entities/ Abandon /var/www/books$ php artisan migrate INFO Nothing to migrate. ` After reboot the preferences still show "BookStack v24.05.4 " What did I forget ? ### Exact BookStack Version 24.05.4 ### Log Content ```text ``` ### Hosting Environment Debian GNU/Linux 12 (bookworm) Composer version 2.5.5 2023-03-21 11:50:05 PHP 8.2.24 (cli) (built: Sep 27 2024 04:16:10) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.24, Copyright (c) Zend Technologies with Zend OPcache v8.2.24, Copyright (c), by Zend Technologies
OVERLORD added the 🐕 Support label 2026-02-05 10:09:47 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 18, 2025):

Hi @globule,
Please ensure you run the update commands in the same order as our guidance.

If still reflecting an old version after running these commands, please confirm the output of running the following few commands from your BookStack install:

  • cat version
  • git status
  • git log -n 2
@ssddanbrown commented on GitHub (Dec 18, 2025): Hi @globule, Please ensure you run the update commands in the same order as our guidance. If still reflecting an old version after running these commands, please confirm the output of running the following few commands from your BookStack install: - `cat version` - `git status` - `git log -n 2`
Author
Owner

@globule commented on GitHub (Dec 19, 2025):

$ cat version
v24.05.4
$ git status
Sur la branche release
Votre branche est en retard sur 'origin/release' de 658 commits, et peut être mise à jour en avance rapide.
  (utilisez "git pull" pour mettre à jour votre branche locale)

Modifications qui ne seront pas validées :
  (utilisez "git add <fichier>..." pour mettre à jour ce qui sera validé)
  (utilisez "git restore <fichier>..." pour annuler les modifications dans le répertoire de travail)
        modifié :         LICENSE
        modifié :         app/Access/Controllers/ConfirmEmailController.php
        modifié :         app/Access/Controllers/ForgotPasswordController.php
...
        modifié :         tests/test-data/test-file.txt
        modifié :         tests/test-data/test-image.png
        modifié :         version

Fichiers non suivis:
  (utilisez "git add <fichier>..." pour inclure dans ce qui sera validé)
        .env.bak
        composer.phar
        "lang/fr/S\303\251lectionner une image,"
        public/db.php

aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a")
$ git log -n 2
commit b0dda6e6a729ac0d6f2af771f448118745f0d5da (HEAD -> release, tag: v24.05.4)
Author: Dan Brown <ssddanbrown@googlemail.com>
Date:   Thu Aug 29 16:04:51 2024 +0100

    Updated version and assets for release v24.05.4

commit d4025d95e70230542ced133c32be529785e8aafb
Merge: d6021f4d2 3a058a6e3
Author: Dan Brown <ssddanbrown@googlemail.com>
Date:   Thu Aug 29 16:04:37 2024 +0100

    Merge branch 'development' into release
$

==> a simple git pull ?

@globule commented on GitHub (Dec 19, 2025): ``` $ cat version v24.05.4 $ git status Sur la branche release Votre branche est en retard sur 'origin/release' de 658 commits, et peut être mise à jour en avance rapide. (utilisez "git pull" pour mettre à jour votre branche locale) Modifications qui ne seront pas validées : (utilisez "git add <fichier>..." pour mettre à jour ce qui sera validé) (utilisez "git restore <fichier>..." pour annuler les modifications dans le répertoire de travail) modifié : LICENSE modifié : app/Access/Controllers/ConfirmEmailController.php modifié : app/Access/Controllers/ForgotPasswordController.php ... modifié : tests/test-data/test-file.txt modifié : tests/test-data/test-image.png modifié : version Fichiers non suivis: (utilisez "git add <fichier>..." pour inclure dans ce qui sera validé) .env.bak composer.phar "lang/fr/S\303\251lectionner une image," public/db.php aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a") $ git log -n 2 commit b0dda6e6a729ac0d6f2af771f448118745f0d5da (HEAD -> release, tag: v24.05.4) Author: Dan Brown <ssddanbrown@googlemail.com> Date: Thu Aug 29 16:04:51 2024 +0100 Updated version and assets for release v24.05.4 commit d4025d95e70230542ced133c32be529785e8aafb Merge: d6021f4d2 3a058a6e3 Author: Dan Brown <ssddanbrown@googlemail.com> Date: Thu Aug 29 16:04:37 2024 +0100 Merge branch 'development' into release $ ``` ==> a simple git pull ?
Author
Owner

@ssddanbrown commented on GitHub (Dec 19, 2025):

@globule It looks like the codebase is in a messy state here.

From your BookStack install folder, can you run git config core.fileMode false then confirm again the output of git status.

Also, have you intentionally made any changes to core Bookstack code files?

Also, you might want to review that public/db.php file. That is not expected, and would be exposed in public app space.

@ssddanbrown commented on GitHub (Dec 19, 2025): @globule It looks like the codebase is in a messy state here. From your BookStack install folder, can you run `git config core.fileMode false` then confirm again the output of `git status`. Also, have you intentionally made any changes to core Bookstack code files? Also, you might want to review that `public/db.php` file. That is not expected, and would be exposed in public app space.
Author
Owner

@globule commented on GitHub (Dec 19, 2025):

$ git config core.fileMode false
$ git status
Rafraîchir l'index: 100% (1943/1943), fait.
Sur la branche release
Votre branche est en retard sur 'origin/release' de 658 commits, et peut être mise à jour en avance rapide.
  (utilisez "git pull" pour mettre à jour votre branche locale)

Modifications qui ne seront pas validées :
  (utilisez "git add <fichier>..." pour mettre à jour ce qui sera validé)
  (utilisez "git restore <fichier>..." pour annuler les modifications dans le répertoire de travail)
        modifié :         app/Config/database.php
        modifié :         app/Config/exports.php
        modifié :         composer.lock
        modifié :         lang/fr/activities.php
        modifié :         lang/fr/entities.php
        modifié :         lang/fr/errors.php
        modifié :         lang/fr/settings.php

Fichiers non suivis:
  (utilisez "git add <fichier>..." pour inclure dans ce qui sera validé)
        .env.bak
        composer.phar
        "lang/fr/S\303\251lectionner une image,"
        public/db.php

aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a")

I made changes to the lang files to customize the front and backup them.

@globule commented on GitHub (Dec 19, 2025): ``` $ git config core.fileMode false $ git status Rafraîchir l'index: 100% (1943/1943), fait. Sur la branche release Votre branche est en retard sur 'origin/release' de 658 commits, et peut être mise à jour en avance rapide. (utilisez "git pull" pour mettre à jour votre branche locale) Modifications qui ne seront pas validées : (utilisez "git add <fichier>..." pour mettre à jour ce qui sera validé) (utilisez "git restore <fichier>..." pour annuler les modifications dans le répertoire de travail) modifié : app/Config/database.php modifié : app/Config/exports.php modifié : composer.lock modifié : lang/fr/activities.php modifié : lang/fr/entities.php modifié : lang/fr/errors.php modifié : lang/fr/settings.php Fichiers non suivis: (utilisez "git add <fichier>..." pour inclure dans ce qui sera validé) .env.bak composer.phar "lang/fr/S\303\251lectionner une image," public/db.php aucune modification n'a été ajoutée à la validation (utilisez "git add" ou "git commit -a") ``` I made changes to the lang files to customize the front and backup them.
Author
Owner

@ssddanbrown commented on GitHub (Dec 20, 2025):

Thanks @globule.

Those file changes will conflict with the update path.
It's not intended that core files are altered, there should be no need to change the app/Config files, and the language files can be overriden using the visual theme system if needed.

To reset your instance to a clean state, you can follow the guidance in my comment here:
https://github.com/BookStackApp/BookStack/issues/4650#issuecomment-1800802788

Please ensure you make a backup of all files first though!

@ssddanbrown commented on GitHub (Dec 20, 2025): Thanks @globule. Those file changes will conflict with the update path. It's not intended that core files are altered, there should be no need to change the `app/Config` files, and the language files can be overriden using the [visual theme system](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/visual-theme-system.md) if needed. To reset your instance to a clean state, you can follow the guidance in my comment here: https://github.com/BookStackApp/BookStack/issues/4650#issuecomment-1800802788 Please ensure you make a backup of all files first though!
Author
Owner

@globule commented on GitHub (Dec 29, 2025):

  1. Backup files & DB
  2. Run :
git reset --hard
git clean -f
git pull origin release
composer install --no-dev
php artisan migrate

This worked 👍 and I'm now in v25.12
Many thanks

@globule commented on GitHub (Dec 29, 2025): 1. Backup files & DB 2. Run : ``` git reset --hard git clean -f git pull origin release composer install --no-dev php artisan migrate ``` This worked 👍 and I'm now in v25.12 Many thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5545