server
server copied to clipboard
[Bug]: Redis TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /path_to_cloud/lib/private/Memcache/Redis.php:81
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] Nextcloud Server is running on 64bit capable CPU, PHP and OS.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
After updating from Ubuntu 20.04 (php 7.4) to 22.04 (php 8.1) and upgrade the nextcloud to 24, there is error found when I run:
php occ upgrade
No configuration changed on redis side.
The bug only happened when I use redis, on APCu and memcached, it works normally.
Steps to reproduce
- Run: php updater/updater.phar
- Follow the upgrade instruction
- Found error on
occ upgrade
The errors:
Nextcloud Updater - version: v24.0.0beta3-1-g67bf13b dirty
Current version is 24.0.4.
Update to Nextcloud 24.0.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-24.0.5.zip
Open changelog ↗
Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done
Start update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: Not a mysql database -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
Updating <notifications> ...
An unhandled exception has been thrown:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /home/nextcloud/www/lib/private/Memcache/Redis.php:81
Stack trace:
#0 /home/nextcloud/www/lib/private/Memcache/Redis.php(81): count()
#1 /home/nextcloud/www/lib/private/App/AppManager.php(451): OC\Memcache\Redis->clear()
#2 /home/nextcloud/www/lib/private/legacy/OC_App.php(1005): OC\App\AppManager->clearAppsCache()
#3 /home/nextcloud/www/lib/private/Updater.php(353): OC_App::updateApp()
#4 /home/nextcloud/www/lib/private/Updater.php(265): OC\Updater->doAppUpgrade()
#5 /home/nextcloud/www/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#6 /home/nextcloud/www/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#7 /home/nextcloud/www/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#8 /home/nextcloud/www/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#9 /home/nextcloud/www/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#10 /home/nextcloud/www/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#11 /home/nextcloud/www/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#12 /home/nextcloud/www/console.php(100): OC\Console\Application->run()
#13 /home/nextcloud/www/occ(11): require_once('...')
#14 {main}
Keep maintenance mode active? [y/N] n
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode disabled
Maintenance mode is disabled
Expected behavior
The server can be upgraded normally
Installation method
Community Web installer on a VPS or web space
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [X] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "24.0.4.1",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"dbindex": 0,
"user": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"timeout": 1.5
},
"memcached_servers": [
[
"127.0.0.1",
11211
]
],
"maintenance": true,
"loglevel": 0,
"simpleSignUpLink.shown": false,
"theme": "",
"default_phone_region": "ID"
}
}
List of activated Apps
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- admin_audit: 1.14.0
- analytics: 4.3.1
- breezedark: 24.0.2
- bruteforcesettings: 2.4.0
- calendar: 3.5.0
- circles: 24.0.1
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contacts: 4.2.1
- contactsinteraction: 1.5.0
- dashboard: 7.4.0
- dav: 1.22.0
- deck: 1.7.1
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_accesscontrol: 1.14.1
- files_external: 1.16.1
- files_pdfviewer: 2.5.0
- files_rightclick: 1.3.0
- files_sharing: 1.16.2
- files_trashbin: 1.14.0
- files_versions: 1.17.0
- files_videoplayer: 1.13.0
- firstrunwizard: 2.13.0
- groupfolders: 12.0.1
- impersonate: 1.11.0
- integration_github: 1.0.4
- integration_gitlab: 1.0.6
- logreader: 2.9.0
- lookup_server_connector: 1.12.0
- mail: 1.13.8
- maps: 0.2.1
- nextcloud_announcements: 1.13.0
- notes: 4.5.1
- notifications: 2.12.0
- oauth2: 1.12.0
- onlyoffice: 7.5.4
- password_policy: 1.14.0
- photos: 1.6.0
- privacy: 1.8.0
- provisioning_api: 1.14.0
- recommendations: 1.3.0
- richdocuments: 6.2.0
- richdocumentscode: 22.5.502
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- spreed: 14.0.5
- support: 1.7.0
- survey_client: 1.12.0
- systemtags: 1.14.0
- tasks: 0.14.4
- text: 3.5.1
- theming: 1.15.0
- twofactor_backupcodes: 1.13.0
- twofactor_totp: 6.4.0
- updatenotification: 1.14.0
- user_status: 1.4.0
- viewer: 1.8.0
- weather_status: 1.4.0
- workflowengine: 2.6.0
Disabled:
- documentserver_community: 0.1.12
- encryption
- user_ldap
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":2,"time":"2022-09-20T08:10:42+00:00","remoteAddr":"","user":"--","app":"OC\\Log\\Rotate","method":"","url":"--","message":"Log file \"/home/nextcloud/data/nextcloud.log\" was over 104857600 bytes, moved to \"/home/nextcloud/data/nextcloud.log.1\"","userAgent":"--","version":"24.0.5.1","data":{"app":"OC\\Log\\Rotate"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:42+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Finished OC\\Log\\Rotate job with ID 20 in 0 seconds","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:42+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"CLI cron call has selected job with ID 21","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:42+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OC\\Preview\\BackgroundCleanupJob job with ID 21","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:42+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Finished OC\\Preview\\BackgroundCleanupJob job with ID 21 in 0 seconds","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:43+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"CLI cron call has selected job with ID 99906","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":0,"time":"2022-09-20T08:10:43+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OC\\Core\\BackgroundJobs\\BackgroundCleanupUpdaterBackupsJob job with ID 99906","userAgent":"--","version":"24.0.5.1","data":{"app":"cron"}}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":1,"time":"2022-09-20T08:10:43+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"/home/nextcloud/data/updater-ockx70qiyenp/backups exists - start to clean it up","userAgent":"--","version":"24.0.5.1","data":[]}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":1,"time":"2022-09-20T08:10:43+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"List of all directories that will be deleted: [\"\\/home\\/cloud\\/data\\/updater-ockx70qiyenp\\/backups\\/nextcloud-23.0.6.1-1655789830\"]","userAgent":"--","version":"24.0.5.1","data":[]}
{"reqId":"iPDo6WbhnOjSniuEd0M8","level":1,"time":"2022-09-20T08:10:43+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Removing /home/nextcloud/data/updater-ockx70qiyenp/backups/nextcloud-23.0.6.1-1655789830 ...","userAgent":"--","version":"24.0.5.1","data":[]}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":0,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"workflowengine","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","data":{"level":"0","app":"workflowengine"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":187,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":191,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"4ZwxyZ2hd7rtplzZ6bVQ","level":3,"time":"2022-09-20T08:10:54+00:00","remoteAddr":"172.70.142.153","user":"--","app":"PHP","method":"GET","url":"/s/6jxNrq8EFa7k3Qs/download?path=%2F&files=20220920_referensi%20lokasi%20kecamatan.xlsx&downloadStartSecret=kcnf542vvn","message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36","version":"24.0.5.1","exception":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /home/nextcloud/www/lib/private/Files/View.php:436) at /home/nextcloud/www/lib/private/AppFramework/Http/Output.php#70","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/home/nextcloud/www/lib/private/AppFramework/Http/Output.php","line":70,"function":"header"},{"file":"/home/nextcloud/www/lib/private/AppFramework/App.php","line":231,"function":"setHeader","class":"OC\\AppFramework\\Http\\Output","type":"->"},{"file":"/home/nextcloud/www/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/home/nextcloud/www/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/home/nextcloud/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/nextcloud/www/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
Additional info
The upgrade can run smoothly if I disabled the Redis and/or change the cache to memcached.
cc @nextcloud/server-backend
Same problem here, on gentoo amd64 stable, apache 2.4.54, php 8.0.20, redis 7.0.4.
As a (really) ugly workaround, in lib/private/Memcache/Redis.php, line 81, replacing
return count($keys) === $deleted;
by
return 2;
permits finishing upgrading nextcloud.
Where does the \Redis class comes from? Is it phpredis/phpredis? If so, method keys should return an array: https://github.com/phpredis/phpredis#keys-getkeys
The error points to the method returning a bool, which is not what is documented.
I opened https://github.com/phpredis/phpredis/issues/2154