The Basics
- Nextcloud Server version (e.g., 29.x.x):
35.0.1
- Operating system and version (e.g., Ubuntu 24.04):
- Linux 6.12.75+rpt-rpi-2712 Bookworm
- Web server and version (e.g, Apache 2.4.25):
- Apache 2.4.68 Debían
- Reverse proxy and version _(e.g. nginx 1.27.2)
none
- PHP version (e.g, 8.3):
- PHP 8.4.26
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
when upgrading to Nextcloud 35
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Bare metal
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
In the System section of the Administration settings, there is a new section for Database checks (which is a. great addition!) but the checks are showing issues with indexing and sorts that are not customizable from the nextcloud settings but instead need some DB programming and changes in code that are not available to the administrator or end user.
Steps to replicate it (hint: details matter!):
-
Go to Administration Settings
-
Select System
-
Then Database
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
Joins without indexes
Warning ·Select_full_join
Failing
Some joins are scanning entire tables because no usable index exists on the join column.
3.3997% of queries did a full join without an index.
Identify the offending queries (set log_queries_not_using_indexes) and add the missing indexes.
Value
3.40
Table open cache hit rate
Notice ·Table_open_cache
Failing
The table open cache is too small; tables are being opened from disk frequently.
1.2661% of table opens missed the cache.
Increase table_open_cache (and table_definition_cache) until the miss rate drops below 1%.
Value
1.27
Setting
table_open_cache→8000
Show config snippet
High sorted-row rate
Notice ·Sort_rows
Failing
Many rows are being sorted server-side.
Sorted rows average: 40985 per hour.
Make sure ORDER BY columns are indexed so sorts use indexes instead of merge passes.
Value
11.38
Join-without-index rate
Warning ·Join_without_index_rate
Failing
Many SELECTs are doing full table scans or joins without indexes.
Index-less join+scan rate: 2531 per hour; aim for less than 1.
Add indexes for the columns used in JOIN conditions and WHERE filters.
Value
0.70
Full-index-scan rate
Notice ·Handler_read_first_rate
Failing
Many queries are reading the first index entry, suggesting frequent full-index scans.
Full-index-scan rate: 494 per hour; aim for less than 1.
Investigate whether the indexes match query predicates; rewrite queries that scan the whole index.
Value
0.14
Fixed-position read rate
Notice ·Handler_read_rnd_rate
Failing
Many queries are reading rows by fixed position — usually a sign of full table scans + sorts.
Fixed-position read rate: 40693 per hour; aim for less than 1.
Add indexes that match the queries' ORDER BY / JOIN columns.
Value
11.30
Sequential-row read rate
Notice ·Handler_read_rnd_next_rate
Failing
Many queries are scanning tables sequentially.
Sequential-row read rate: 1209530 per hour; aim for less than 1.
Add indexes that match common WHERE / JOIN predicates.
Value
335.98
Replication 1 failing
Replica lag
Alert ·Slave_lag
Failing
A configured replica is not running.
Slave_running is reporting OFF.
Check the replica with SHOW REPLICA STATUS; resolve any IO/SQL errors and restart replication.
Value
0
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
PASTE
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
PASTE HERE
Configuration
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
PASTE HERE
Apps
The output of occ app:list (if possible).
Tips for increasing the likelihood of a response
- Use the
preformatted textformatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.