mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-23 11:19:38 +03:00
Problems with the update #4301
Closed
opened 2026-02-05 08:28:54 +03:00 by OVERLORD
·
6 comments
No Branch/Tag Specified
development
v25-12
l10n_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.7
v25.12.6
v25.12.5
v25.12.4
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
pull-request
Mirrored from GitHub Pull Request
No Label
🐕 Support
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#4301
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Michael071170 on GitHub (Nov 5, 2023).
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
During the update (git pull origin release) i get the following errors:
error: Your local changes to the following files would be overwritten by merge:
app/Activity/Models/Comment.php
lang/cs/activities.php
lang/cs/common.php
lang/cs/errors.php
lang/cs/preferences.php
lang/cs/settings.php
lang/de_informal/entities.php
lang/de_informal/notifications.php
lang/de_informal/passwords.php
lang/de_informal/preferences.php
lang/et/activities.php
lang/et/common.php
lang/et/entities.php
lang/et/errors.php
lang/et/notifications.php
lang/et/preferences.php
lang/et/settings.php
lang/fr/preferences.php
lang/hr/activities.php
lang/hr/common.php
lang/hr/entities.php
lang/hr/errors.php
lang/hr/notifications.php
lang/hr/preferences.php
lang/hr/settings.php
lang/nb/errors.php
lang/nl/activities.php
lang/nl/entities.php
lang/nl/errors.php
lang/nl/preferences.php
lang/uk/activities.php
public/dist/app.js
readme.md
resources/js/components/page-comments.js
resources/js/wysiwyg/filters.js
version
Please commit your changes or stash them before you merge.
Because this a production system i need support to update to the new version.
Exact BookStack Version
v23.08.03
Log Content
No response
Hosting Environment
Ubuntu 22.04 PHP 8.1.2 Apache 2.4.52
@ssddanbrown commented on GitHub (Nov 6, 2023):
Hi @Michael071170,
Can you confirm the output of running these two commands in order, from your BookStack directory:
Also, have you intentionally made any changes to core app files? (Attempted any changes or modifications?)
@Michael071170 commented on GitHub (Nov 6, 2023):
Hi Dan,
here ist he output:
On branch release
Your branch is behind 'origin/release' by 135 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
Untracked files:
(use "git add ..." to include in what will be committed)
no changes added to commit (use "git add" and/or "git commit -a")
Von: Dan Brown @.>
Gesendet: Montag, 6. November 2023 03:41
An: BookStackApp/BookStack @.>
Cc: Michael071170 @.>; Mention @.>
Betreff: Re: [BookStackApp/BookStack] Problems with the update (Issue #4650)
Hi @Michael071170 https://github.com/Michael071170 ,
Can you confirm the output of running these two commands in order, from your BookStack directory:
git config core.fileMode false
git status
Also, have you intentionally made any changes to core app files? (Attempted any changes or modifications?)
—
Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/4650#issuecomment-1793997439 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFPIPKBHAI6XMBIP44W6ILYDBE2RAVCNFSM6AAAAAA66SNP5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTHE4TONBTHE .
You are receiving this because you were mentioned. https://github.com/notifications/beacon/ANFPIPOXLQZNB5AICHCCRTDYDBE2RA5CNFSM6AAAAAA66SNP5KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTK5Y5H6.gif Message ID: @.*** @.***> >
@Michael071170 commented on GitHub (Nov 6, 2023):
Hi Dan,
i didn’t make any changes to core app files.
Von: Dan Brown @.>
Gesendet: Montag, 6. November 2023 03:41
An: BookStackApp/BookStack @.>
Cc: Michael071170 @.>; Mention @.>
Betreff: Re: [BookStackApp/BookStack] Problems with the update (Issue #4650)
Hi @Michael071170 https://github.com/Michael071170 ,
Can you confirm the output of running these two commands in order, from your BookStack directory:
git config core.fileMode false
git status
Also, have you intentionally made any changes to core app files? (Attempted any changes or modifications?)
—
Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/4650#issuecomment-1793997439 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFPIPKBHAI6XMBIP44W6ILYDBE2RAVCNFSM6AAAAAA66SNP5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTHE4TONBTHE .
You are receiving this because you were mentioned. https://github.com/notifications/beacon/ANFPIPOXLQZNB5AICHCCRTDYDBE2RA5CNFSM6AAAAAA66SNP5KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTK5Y5H6.gif Message ID: @.*** @.***> >
@ssddanbrown commented on GitHub (Nov 8, 2023):
Okay. Right now things are in quite a messy state since an update has been attempted with changed files (might have just been permission changes).
Before anything, make sure you backup your whole BookStack directory to a different system. The following can be destructive.
Once you have a backup, you can try the following commands from your BookStack install directory.
These will reset all files to their original state, and remove any unexpected files.
After running those, running
git statusshould not list any files. If it does, stop and report back the output here.Otherwise, you can re-attempt the upgrade commands, one at a time.
@Michael071170 commented on GitHub (Nov 10, 2023):
Hi Dan,
it seemed to work. Bookstack shows now version 23.10.2.
Here ist part of he output oft he console.
564 files changed, 14200 insertions(+), 5498 deletions(-)
rename app/{Notifications/ConfirmEmail.php => Access/Notifications/ConfirmEmailNotification.php} (82%)
rename app/{Notifications/ResetPassword.php => Access/Notifications/ResetPasswordNotification.php} (81%)
create mode 100644 app/Access/Notifications/UserInviteNotification.php
rename app/{Notifications => App}/MailNotification.php (80%)
create mode 100644 app/App/PwaManifestBuilder.php
create mode 100644 app/Console/Commands/HandlesSingleUser.php
create mode 100644 app/Console/Commands/RefreshAvatarCommand.php
create mode 100644 app/Entities/Tools/MixedEntityRequestHelper.php
create mode 100644 app/Exceptions/ThemeException.php
create mode 100644 app/Http/HttpClientHistory.php
create mode 100644 app/Http/HttpRequestService.php
rename app/Http/Middleware/{PreventAuthenticatedResponseCaching.php => PreventResponseCaching.php} (59%)
delete mode 100644 app/Notifications/UserInvite.php
rename app/{Notifications/TestEmail.php => Settings/TestEmailNotification.php} (78%)
delete mode 100644 app/Translation/LanguageManager.php
create mode 100644 app/Translation/LocaleDefinition.php
create mode 100644 app/Translation/LocaleManager.php
delete mode 100644 app/Uploads/HttpFetcher.php
create mode 100644 app/Uploads/ImageResizer.php
create mode 100644 app/Uploads/ImageStorage.php
create mode 100644 app/Uploads/ImageStorageDisk.php
create mode 100644 app/Users/Controllers/UserAccountController.php
create mode 100644 app/Util/OutOfMemoryHandler.php
create mode 100644 app/Util/SvgIcon.php
create mode 100644 dev/docs/php-testing.md
create mode 100644 lang/fi/activities.php
create mode 100644 lang/fi/auth.php
create mode 100644 lang/fi/common.php
create mode 100644 lang/fi/components.php
create mode 100644 lang/fi/editor.php
create mode 100644 lang/fi/entities.php
create mode 100644 lang/fi/errors.php
create mode 100644 lang/fi/notifications.php
create mode 100644 lang/fi/pagination.php
create mode 100644 lang/fi/passwords.php
create mode 100644 lang/fi/preferences.php
create mode 100644 lang/fi/settings.php
create mode 100644 lang/fi/validation.php
create mode 100644 lang/nn/activities.php
create mode 100644 lang/nn/auth.php
create mode 100644 lang/nn/common.php
create mode 100644 lang/nn/components.php
create mode 100644 lang/nn/editor.php
create mode 100644 lang/nn/entities.php
create mode 100644 lang/nn/errors.php
create mode 100644 lang/nn/notifications.php
create mode 100644 lang/nn/pagination.php
create mode 100644 lang/nn/passwords.php
create mode 100644 lang/nn/preferences.php
create mode 100644 lang/nn/settings.php
create mode 100644 lang/nn/validation.php
create mode 100644 lang/sq/activities.php
create mode 100644 lang/sq/auth.php
create mode 100644 lang/sq/common.php
create mode 100644 lang/sq/components.php
create mode 100644 lang/sq/editor.php
create mode 100644 lang/sq/entities.php
create mode 100644 lang/sq/errors.php
create mode 100644 lang/sq/notifications.php
create mode 100644 lang/sq/pagination.php
create mode 100644 lang/sq/passwords.php
create mode 100644 lang/sq/preferences.php
create mode 100644 lang/sq/settings.php
create mode 100644 lang/sq/validation.php
delete mode 100644 public/dist/print-styles.css
create mode 100644 resources/icons/notifications.svg
create mode 100644 resources/icons/security.svg
rename resources/sass/{print-styles.scss => _print.scss} (85%)
delete mode 100644 resources/views/common/header.blade.php
rename resources/views/{common => layouts/parts}/custom-head.blade.php (100%)
rename resources/views/{common => layouts/parts}/custom-styles.blade.php (100%)
rename resources/views/{common => layouts/parts}/footer.blade.php (89%)
create mode 100644 resources/views/layouts/parts/header-links-start.blade.php
create mode 100644 resources/views/layouts/parts/header-links.blade.php
create mode 100644 resources/views/layouts/parts/header-logo.blade.php
create mode 100644 resources/views/layouts/parts/header-search.blade.php
create mode 100644 resources/views/layouts/parts/header-user-menu.blade.php
create mode 100644 resources/views/layouts/parts/header.blade.php
rename resources/views/{common => layouts/parts}/notifications.blade.php (100%)
rename resources/views/{common => layouts/parts}/skip-to-content.blade.php (100%)
create mode 100644 resources/views/users/account/auth.blade.php
create mode 100644 resources/views/users/account/delete.blade.php
create mode 100644 resources/views/users/account/layout.blade.php
create mode 100644 resources/views/users/account/notifications.blade.php
rename resources/views/users/{preferences => account}/parts/shortcut-control.blade.php (100%)
create mode 100644 resources/views/users/account/profile.blade.php
create mode 100644 resources/views/users/account/shortcuts.blade.php
delete mode 100644 resources/views/users/preferences/index.blade.php
delete mode 100644 resources/views/users/preferences/notifications.blade.php
delete mode 100644 resources/views/users/preferences/shortcuts.blade.php
create mode 100644 tests/Commands/RefreshAvatarCommandTest.php
create mode 100644 tests/PwaManifestTest.php
create mode 100644 tests/User/UserMyAccountTest.php
@.***:/var/www/bookstack$ composer install --no-dev
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 35 updates, 1 removal
Downloading dasprid/enum (1.0.5)
Downloading symfony/polyfill-php80 (v1.28.0)
Downloading symfony/polyfill-mbstring (v1.28.0)
Downloading symfony/polyfill-ctype (v1.28.0)
Downloading symfony/polyfill-uuid (v1.28.0)
Downloading symfony/polyfill-php72 (v1.28.0)
Downloading symfony/polyfill-intl-normalizer (v1.28.0)
Downloading symfony/polyfill-intl-idn (v1.28.0)
Downloading doctrine/deprecations (1.1.2)
Downloading symfony/polyfill-intl-grapheme (v1.28.0)
Downloading symfony/polyfill-php81 (v1.28.0)
Downloading nesbot/carbon (2.71.0)
Downloading league/mime-type-detection (1.14.0)
Downloading league/flysystem (3.17.0)
Downloading league/flysystem-local (3.16.0)
Downloading nette/utils (v4.0.2)
Downloading nette/schema (v1.2.5)
Downloading league/commonmark (2.4.1)
Downloading guzzlehttp/uri-template (v1.0.2)
Downloading fruitcake/php-cors (v1.3.0)
Downloading laravel/framework (v9.52.16)
Downloading knplabs/knp-snappy (v1.4.4)
Downloading doctrine/dbal (3.7.1)
Downloading guzzlehttp/psr7 (2.6.1)
Downloading psr/http-client (1.0.3)
Downloading guzzlehttp/guzzle (7.8.0)
Downloading laravel/socialite (v5.9.1)
Downloading psy/psysh (v0.11.22)
Downloading laravel/tinker (v2.8.2)
Downloading mtdowling/jmespath.php (2.7.0)
Downloading aws/aws-sdk-php (3.283.8)
Downloading league/flysystem-aws-s3-v3 (3.16.0)
Downloading phpseclib/phpseclib (3.0.23)
Downloading predis/predis (v2.2.2)
Downloading socialiteproviders/manager (v4.4.0)
Removing socialiteproviders/slack (4.1.1)
Upgrading dasprid/enum (1.0.4 => 1.0.5): Extracting archive
Upgrading symfony/polyfill-php80 (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-mbstring (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-ctype (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-uuid (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-php72 (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-intl-normalizer (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-intl-idn (v1.27.0 => v1.28.0): Extracting archive
Upgrading doctrine/deprecations (v1.1.1 => 1.1.2): Extracting archive
Upgrading symfony/polyfill-intl-grapheme (v1.27.0 => v1.28.0): Extracting archive
Upgrading symfony/polyfill-php81 (v1.27.0 => v1.28.0): Extracting archive
Upgrading nesbot/carbon (2.69.0 => 2.71.0): Extracting archive
Upgrading league/mime-type-detection (1.13.0 => 1.14.0): Extracting archive
Upgrading league/flysystem (3.15.1 => 3.17.0): Extracting archive
Upgrading league/flysystem-local (3.15.0 => 3.16.0): Extracting archive
Upgrading nette/utils (v4.0.1 => v4.0.2): Extracting archive
Upgrading nette/schema (v1.2.4 => v1.2.5): Extracting archive
Upgrading league/commonmark (2.4.0 => 2.4.1): Extracting archive
Upgrading guzzlehttp/uri-template (v1.0.1 => v1.0.2): Extracting archive
Upgrading fruitcake/php-cors (v1.2.0 => v1.3.0): Extracting archive
Upgrading laravel/framework (v9.52.15 => v9.52.16): Extracting archive
Upgrading knplabs/knp-snappy (v1.4.2 => v1.4.4): Extracting archive
Upgrading doctrine/dbal (3.6.6 => 3.7.1): Extracting archive
Upgrading guzzlehttp/psr7 (2.6.0 => 2.6.1): Extracting archive
Upgrading psr/http-client (1.0.2 => 1.0.3): Extracting archive
Upgrading guzzlehttp/guzzle (7.7.0 => 7.8.0): Extracting archive
Upgrading laravel/socialite (v5.8.0 => v5.9.1): Extracting archive
Upgrading psy/psysh (v0.11.20 => v0.11.22): Extracting archive
Upgrading laravel/tinker (v2.8.1 => v2.8.2): Extracting archive
Upgrading mtdowling/jmespath.php (2.6.1 => 2.7.0): Extracting archive
Upgrading aws/aws-sdk-php (3.279.2 => 3.283.8): Extracting archive
Upgrading league/flysystem-aws-s3-v3 (3.15.0 => 3.16.0): Extracting archive
Upgrading phpseclib/phpseclib (3.0.21 => 3.0.23): Extracting archive
Upgrading predis/predis (v2.2.1 => v2.2.2): Extracting archive
Upgrading socialiteproviders/manager (v4.3.0 => v4.4.0): Extracting archive
Generating optimized autoload files
INFO Discovering packages.
barryvdh/laravel-dompdf ............................................... DONE
barryvdh/laravel-snappy ............................................... DONE
intervention/image .................................................... DONE
laravel/socialite ..................................................... DONE
laravel/tinker ........................................................ DONE
nesbot/carbon ......................................................... DONE
nunomaduro/termwind ................................................... DONE
socialiteproviders/manager ............................................ DONE
62 packages you are using are looking for funding.
Use the
composer fundcommand to find out more!ERROR Failed to clear cache. Make sure you have the appropriate permissions.
INFO Compiled views cleared successfully.
@.***:/var/www/bookstack$ php artisan migrate
Do you really wish to run this command? (yes/no) [no]
⯠yes
INFO Nothing to migrate.
@.***:/var/www/bookstack$ php artisan cache:clear
ERROR Failed to clear cache. Make sure you have the appropriate permissions.
@.***:/var/www/bookstack$ sudo php artisan cache:clear
[sudo] password for hla:
INFO Application cache cleared successfully.
@.***:/var/www/bookstack$ sudo php artisan config:clear
INFO Configuration cache cleared successfully.
@.***:/var/www/bookstack$ sudo php artisan view:clear
INFO Compiled views cleared successfully.
Von: Dan Brown @.>
Gesendet: Mittwoch, 8. November 2023 01:48
An: BookStackApp/BookStack @.>
Cc: Michael071170 @.>; Mention @.>
Betreff: Re: [BookStackApp/BookStack] Problems with the update (Issue #4650)
Okay. Right now things are in quite a messy state since an update has been attempted with changed files (might have just been permission changes).
Before anything, make sure you backup your whole BookStack directory to a different system. The following can be destructive.
Once you have a backup, you can try the following commands from your BookStack install directory.
These will reset all files to their original state, and remove any unexpected files.
git reset --hard
git clean -f
After running those, running git status should not list any files. If it does, stop and report back the output here.
Otherwise, you can re-attempt the upgrade commands, one at a time.
—
Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/4650#issuecomment-1800802788 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFPIPPUZIYMGNZ7UMP55HLYDLJEFAVCNFSM6AAAAAA66SNP5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQHAYDENZYHA .
You are receiving this because you were mentioned. https://github.com/notifications/beacon/ANFPIPO7CWATG2Z66IU7LCTYDLJEFA5CNFSM6AAAAAA66SNP5KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTLKYI6I.gif Message ID: @.*** @.***> >
@ssddanbrown commented on GitHub (Dec 8, 2023):
Good to hear that appeared to work! Will therefore close this off.