mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-06 00:59:39 +03:00
Problem with Version 0.31.0 #2015
Closed
opened 2026-02-05 02:28:07 +03:00 by OVERLORD
·
31 comments
No Branch/Tag Specified
development
further_theme_development
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.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
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#2015
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 @dugs951 on GitHub (Jan 6, 2021).
I run BookStack on Ubuntu Container, i want to update to new Version 0.31.0, but after upgrade Bookstack dont work anymore.
I go to /var/www/html/Bookstack and run
git pull origin release && composer install --no-dev && php artisan migrate
After update Bookstack dont work anymore?
Can somebody help me pleas?
@modem7 commented on GitHub (Jan 6, 2021):
When you say "container" do you mean a VM or in Docker?
@ssddanbrown commented on GitHub (Jan 7, 2021):
In addition to the above, what do you mean by it doesn't work? What error or result are you seeing?
@dugs951 commented on GitHub (Jan 9, 2021):
@ssddanbrown commented on GitHub (Jan 9, 2021):
@dugs951 Sure, But what do you visually see when attempting to access? A blank white screen? An error message?
@dugs951 commented on GitHub (Jan 9, 2021):
I open /var/www/html/Bookstack then i make Update:
git pull origin release && composer install --no-dev && php artisan migrate
Then i can not more open my BookStack
When i go to bookstack.mydomain.com i can not open my bookstack
Know somebody whats the problem?
@dugs951 commented on GitHub (Jan 10, 2021):
Diese Seite funktioniert nicht
bookstack.mydomain.com kann diese Anfrage momentan nicht verarbeiten.
HTTP ERROR 500
@ssddanbrown commented on GitHub (Jan 10, 2021):
@dugs951
@killadelphia commented on GitHub (Jan 12, 2021):
I ended up with a HTTP ERROR 500 when trying to load the bookstack homepage when upgrading to 0.31.0 as well. Mine was an an error with migration tables, I dropped the tables from the SQL database and was able to continue the migration.
@joe-eklund commented on GitHub (Jan 16, 2021):
@killadelphia
Was the error you were getting the same one I detailed in #2473? And by fixing it you just dropped the bad tables?
@dugs951 commented on GitHub (Jan 26, 2021):
Somebody can help with this problem?
@ssddanbrown commented on GitHub (Jan 27, 2021):
@dugs951 I can do but you'd need to provide some additional details, such as those requested in https://github.com/BookStackApp/BookStack/issues/2455#issuecomment-757473542.
@dugs951 commented on GitHub (Jan 27, 2021):
Which table i need to drop?
I go to mysql i show my tables but i dont know which table i need to drop?
@dugs951 commented on GitHub (Jan 27, 2021):
[Wed Jan 27 00:33:32.145816 2021] [php7:error] [pid 561] [client 192.168.188.201:43646] PHP Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale) in /var/www/html/BookStack/vendor/symfony/translation/TranslatorInterface.php on line 24
[Wed Jan 27 00:33:32.230338 2021] [php7:error] [pid 561] [client 192.168.188.201:43646] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Support\Carbon::now() in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php:37\nStack trace:\n#0 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(269): Illuminate\Cache\FileStore->availableAt(0)\n#1 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(74): Illuminate\Cache\FileStore->expiration(0)\n#2 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(152): Illuminate\Cache\FileStore->put('setting-app-nam...', 'Book dD22', 0)\n#3 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(355): Illuminate\Cache\FileStore->forever('setting-app-nam...', 'Book dD22')\n#4 /var/www/html/BookStack/app/Settings/SettingService.php(112): Illuminate\Cache\Repository->forever('setting-app-nam...', 'Book dD22')\n#5 /var/www/html/BookStack/app/Settings/SettingService in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php on line 37
@dugs951 commented on GitHub (Jan 27, 2021):
PHP 7.4.12 (cli) (built: Oct 31 2020 17:04:09) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
@ssddanbrown commented on GitHub (Jan 28, 2021):
@dugs951 Please don't drop any tables.
It looks to me like your php dependencies are not up-to-date.
Can you retry re-running
composer install --no-dev?Let me know if there are any errors in the output. Also, If there are files ending in
.phpwithin thebootstrap/cachefolder, Please delete those.@dugs951 commented on GitHub (Jan 28, 2021):
@php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"oot@BookStack:/var/www/html/BookStack# sudo tail -100 /etc/httpd/logs/error_log
@dugs951 commented on GitHub (Jan 28, 2021):
@php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');
@dugs951 commented on GitHub (Jan 28, 2021):
I deleted files with php but problem is still same
@ssddanbrown commented on GitHub (Jan 29, 2021):
Just to confirm, Did you see any errors when running
composer install --no-dev?@dugs951 commented on GitHub (Jan 29, 2021):
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer could not find a composer.json file in /root
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
root@BookStack:~# cd /var/www/html/BookStack
root@BookStack:/var/www/html/BookStack# composer install --no-dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
@ssddanbrown commented on GitHub (Jan 30, 2021):
Okay, Looks like that ran, any change in error now compared to your log example in https://github.com/BookStackApp/BookStack/issues/2455#issuecomment-767925910?
@dugs951 commented on GitHub (Jan 31, 2021):
This is the Error now
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Support\Carbon::now() in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php:37\nStack trace:\n#0 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(269): Illuminate\Cache\FileStore->availableAt(0)\n#1 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(74): Illuminate\Cache\FileStore->expiration(0)\n#2 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(152): Illuminate\Cache\FileStore->put('setting-app-nam...', 'Book dD22', 0)\n#3 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(355): Illuminate\Cache\FileStore->forever('setting-app-nam...', 'Book dD22')\n#4 /var/www/html/BookStack/app/Settings/SettingService.php(112): Illuminate\Cache\Repository->forever('setting-app-nam...', 'Book dD22')\n#5 /var/www/html/BookStack/app/Settings/SettingService in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php on line 37
@dugs951 commented on GitHub (Jan 31, 2021):
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Support\Carbon::now() in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php:37\nStack trace:\n#0 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(269): Illuminate\Cache\FileStore->availableAt(0)\n#1 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(74): Illuminate\Cache\FileStore->expiration(0)\n#2 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(152): Illuminate\Cache\FileStore->put('setting-app-nam...', 'Book dD22', 0)\n#3 /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(355): Illuminate\Cache\FileStore->forever('setting-app-nam...', 'Book dD22')\n#4 /var/www/html/BookStack/app/Settings/SettingService.php(112): Illuminate\Cache\Repository->forever('setting-app-nam...', 'Book dD22')\n#5 /var/www/html/BookStack/app/Settings/SettingService in /var/www/html/BookStack/vendor/laravel/framework/src/Illuminate/Support/InteractsWithTime.php on line 37
@ssddanbrown commented on GitHub (Jan 31, 2021):
@dugs951 Okay, I think there's something else going on here. You could try deleting the
vendor/folder within the bookstack install and re-runcomposer install --no-devjust as a test.Otherwise, This could be cause by your webserver running a different PHP version than that used on the command line.
What version of Ubuntu are you using and have you installed multiple versions of PHP at any time?
@dugs951 commented on GitHub (Feb 1, 2021):
I try it but dont work.
When i look under /etc/php i have Version 7.1 and 7.4
When i make php -v then i have this version
PHP 7.4.12 (cli) (built: Oct 31 2020 17:04:09) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
I dont know what is the Problem, i make always upgrade without Problem.
@dugs951 commented on GitHub (Feb 1, 2021):
And i have Ubuntu 20.04
@ssddanbrown commented on GitHub (Feb 1, 2021):
Then there's a chance that Apache/Nginx is using PHP 7.1. Running
php -vwill only tell you the command line version of PHP in active use.@dugs951 commented on GitHub (Feb 1, 2021):
I use Apache2
And i think Apache2 use 7.1
When i look /etc/php/7.1 i have apache and php.ini
And 7.4 i dont have apache Order
How i can change php Version for Apache2?
@ssddanbrown commented on GitHub (Feb 2, 2021):
You could try:
Alternatively, You may want to look to completely remove php7.1 from the system if you're sure it's not needed by anything else and re-install php7.4 to get to a clean php setup.
@dugs951 commented on GitHub (Feb 2, 2021):
Yes, i removed completely php then i install 7.4 and now is going.
Thank you so much.
@ssddanbrown commented on GitHub (Feb 2, 2021):
Great news! Glad to hear the cause was found.