When doing an update (e.g. here from 30.0.6 to 30.0.7) the messages about dirty table reads below are showing up in the nextcloud.log.
{
"reqId": "***",
"level": 1,
"time": "***",
"remoteAddr": "",
"user": "--",
"app": "updater",
"method": "",
"url": "--",
"message": "\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)",
"userAgent": "--",
"version": "30.0.7.2",
"data": {
"app": "updater"
}
}
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
{
"reqId": "***",
"level": 0,
"time": "***",
"remoteAddr": "",
"user": "--",
"app": "no app in context",
"method": "",
"url": "--",
"message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1",
"userAgent": "--",
"version": "30.0.6.2",
"exception": {
"Exception": "Exception",
"Message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1",
"Code": 0,
"Trace": [
{
"file": "/***/lib/private/DB/ConnectionAdapter.php",
"line": 50,
"function": "executeQuery",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/***/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line": 289,
"function": "executeQuery",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/***/lib/private/BackgroundJob/JobList.php",
"line": 127,
"function": "executeQuery",
"class": "OC\\DB\\QueryBuilder\\QueryBuilder",
"type": "->"
},
{
"file": "/***/lib/private/BackgroundJob/JobList.php",
"line": 47,
"function": "has",
"class": "OC\\BackgroundJob\\JobList",
"type": "->"
},
{
"file": "/***/lib/private/Setup.php",
"line": 415,
"function": "add",
"class": "OC\\BackgroundJob\\JobList",
"type": "->"
},
{
"file": "/***/lib/private/Updater.php",
"line": 227,
"function": "installBackgroundJobs",
"class": "OC\\Setup",
"type": "::"
},
{
"file": "/***/lib/private/Updater.php",
"line": 98,
"function": "doUpgrade",
"class": "OC\\Updater",
"type": "->"
},
{
"file": "/***/core/Command/Upgrade.php",
"line": 190,
"function": "upgrade",
"class": "OC\\Updater",
"type": "->"
},
{
"file": "/***/3rdparty/symfony/console/Command/Command.php",
"line": 326,
"function": "execute",
"class": "OC\\Core\\Command\\Upgrade",
"type": "->"
},
{
"file": "/***/3rdparty/symfony/console/Application.php",
"line": 1078,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/***/3rdparty/symfony/console/Application.php",
"line": 324,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/***/3rdparty/symfony/console/Application.php",
"line": 175,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/***/lib/private/Console/Application.php",
"line": 183,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/***/console.php",
"line": 87,
"function": "run",
"class": "OC\\Console\\Application",
"type": "->"
},
{
"file": "/***/occ",
"line": 33,
"args": [
"/***/console.php"
],
"function": "require_once"
}
],
"File": "/***/lib/private/DB/Connection.php",
"Line": 402,
"message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1",
"tables": [
"oc_jobs"
],
"reads": [
"oc_jobs"
],
"exception": {},
"CustomMessage": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1"
}
}
Bug description
When doing an update (e.g. here from 30.0.6 to 30.0.7) the messages about
dirty table readsbelow are showing up in thenextcloud.log.As discussed here these are no errors:
and are only shown if the Loglevel is set to
0.The problems here are:
0/ this value automatically during an update (see next log)grep "dirty table reads" nextcloud.log | wc -lshowed40entries just happening during an update), especially as these messages seems to be quite big / longdirtyduring updatesSteps to reproduce
sudo -u www-data php occ upgrade)data/nextcloud.logExpected behavior
No
dirty table readsmessages in the log file during an update (updater could "hide" these kind of messages during an update by default) so that one can focus on the relevant info on the update (e.g. done repair steps etc.).Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
Only relevant entry from
config.php:List of activated Apps
Nextcloud Signing status
Nextcloud Logs
{ "reqId": "***", "level": 0, "time": "***", "remoteAddr": "", "user": "--", "app": "no app in context", "method": "", "url": "--", "message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1", "userAgent": "--", "version": "30.0.6.2", "exception": { "Exception": "Exception", "Message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1", "Code": 0, "Trace": [ { "file": "/***/lib/private/DB/ConnectionAdapter.php", "line": 50, "function": "executeQuery", "class": "OC\\DB\\Connection", "type": "->" }, { "file": "/***/lib/private/DB/QueryBuilder/QueryBuilder.php", "line": 289, "function": "executeQuery", "class": "OC\\DB\\ConnectionAdapter", "type": "->" }, { "file": "/***/lib/private/BackgroundJob/JobList.php", "line": 127, "function": "executeQuery", "class": "OC\\DB\\QueryBuilder\\QueryBuilder", "type": "->" }, { "file": "/***/lib/private/BackgroundJob/JobList.php", "line": 47, "function": "has", "class": "OC\\BackgroundJob\\JobList", "type": "->" }, { "file": "/***/lib/private/Setup.php", "line": 415, "function": "add", "class": "OC\\BackgroundJob\\JobList", "type": "->" }, { "file": "/***/lib/private/Updater.php", "line": 227, "function": "installBackgroundJobs", "class": "OC\\Setup", "type": "::" }, { "file": "/***/lib/private/Updater.php", "line": 98, "function": "doUpgrade", "class": "OC\\Updater", "type": "->" }, { "file": "/***/core/Command/Upgrade.php", "line": 190, "function": "upgrade", "class": "OC\\Updater", "type": "->" }, { "file": "/***/3rdparty/symfony/console/Command/Command.php", "line": 326, "function": "execute", "class": "OC\\Core\\Command\\Upgrade", "type": "->" }, { "file": "/***/3rdparty/symfony/console/Application.php", "line": 1078, "function": "run", "class": "Symfony\\Component\\Console\\Command\\Command", "type": "->" }, { "file": "/***/3rdparty/symfony/console/Application.php", "line": 324, "function": "doRunCommand", "class": "Symfony\\Component\\Console\\Application", "type": "->" }, { "file": "/***/3rdparty/symfony/console/Application.php", "line": 175, "function": "doRun", "class": "Symfony\\Component\\Console\\Application", "type": "->" }, { "file": "/***/lib/private/Console/Application.php", "line": 183, "function": "run", "class": "Symfony\\Component\\Console\\Application", "type": "->" }, { "file": "/***/console.php", "line": 87, "function": "run", "class": "OC\\Console\\Application", "type": "->" }, { "file": "/***/occ", "line": 33, "args": [ "/***/console.php" ], "function": "require_once" } ], "File": "/***/lib/private/DB/Connection.php", "Line": 402, "message": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1", "tables": [ "oc_jobs" ], "reads": [ "oc_jobs" ], "exception": {}, "CustomMessage": "dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1" } }Additional info
No response