backup
backup copied to clipboard
Blocking text-app
Backup-App blocking Text-App, making Text-App unusable. Means: Out of sync all of the time.
Conflict during file save, please resolve [PollingBackend.js:186:11](webpack:///text/src/services/PollingBackend.js)
value PollingBackend.js:186
NC: 24.0.0 Text: 3.5.1 Backup: 1.0.6 PHP 8.0.18 NGINX
@ArtificialOwl Here is a trace from a report in text:
{
"reqId": "H3uAg8RKoZZdMWSDQzCH",
"level": 3,
"time": "2022-05-16T18:14:48+00:00",
"remoteAddr": "remoteIP",
"user": "mbrauchle",
"app": "index",
"method": "POST",
"url": "/apps/text/session/sync",
"message": "OC\\DB\\QueryBuilder\\QueryBuilder::__construct(): Argument #3 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/backup/vendor/artificial-owl/my-small-php-tools/lib/Db/Nextcloud/nc23/NC23ExtendedQueryBuilder.php on line 74 in file '/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php' line 86",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36",
"version": "24.0.0.12",
"exception": {
"Exception": "Exception",
"Message": "OC\\DB\\QueryBuilder\\QueryBuilder::__construct(): Argument #3 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/backup/vendor/artificial-owl/my-small-php-tools/lib/Db/Nextcloud/nc23/NC23ExtendedQueryBuilder.php on line 74 in file '/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php' line 86",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Text\\Controller\\SessionController"
},
"sync"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Text\\Controller\\SessionController",
"sync",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "text.Session.sync"
}
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1023,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/text/session/sync"
]
},
{
"file": "/var/www/html/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 165,
"Previous": {
"Exception": "TypeError",
"Message": "OC\\DB\\QueryBuilder\\QueryBuilder::__construct(): Argument #3 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/backup/vendor/artificial-owl/my-small-php-tools/lib/Db/Nextcloud/nc23/NC23ExtendedQueryBuilder.php on line 74",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/custom_apps/backup/vendor/artificial-owl/my-small-php-tools/lib/Db/Nextcloud/nc23/NC23ExtendedQueryBuilder.php",
"line": 74,
"function": "__construct",
"class": "OC\\DB\\QueryBuilder\\QueryBuilder",
"type": "->",
"args": [
{
"__class__": "OC\\DB\\ConnectionAdapter"
},
{
"__class__": "OC\\SystemConfig"
},
{
"__class__": "OC\\Log"
}
]
},
{
"file": "/var/www/html/custom_apps/backup/lib/Db/CoreQueryBuilder.php",
"line": 48,
"function": "__construct",
"class": "ArtificialOwl\\MySmallPhpTools\\Db\\Nextcloud\\nc23\\NC23ExtendedQueryBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/custom_apps/backup/lib/Db/CoreRequestBuilder.php",
"line": 124,
"function": "__construct",
"class": "OCA\\Backup\\Db\\CoreQueryBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/custom_apps/backup/lib/Db/ChangesRequestBuilder.php",
"line": 75,
"function": "getQueryBuilder",
"class": "OCA\\Backup\\Db\\CoreRequestBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/custom_apps/backup/lib/Db/ChangesRequest.php",
"line": 69,
"function": "getChangesSelectSql",
"class": "OCA\\Backup\\Db\\ChangesRequestBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/custom_apps/backup/lib/Db/ChangesRequest.php",
"line": 81,
"function": "getByHash",
"class": "OCA\\Backup\\Db\\ChangesRequest",
"type": "->",
"args": [
"81b2cbce6195477f51c76b0af596ba5c"
]
},
{
"file": "/var/www/html/custom_apps/backup/lib/Service/FilesService.php",
"line": 215,
"function": "insertIfNotFound",
"class": "OCA\\Backup\\Db\\ChangesRequest",
"type": "->",
"args": [
{
"__class__": "OCA\\Backup\\Model\\ChangedFile"
}
]
},
{
"file": "/var/www/html/custom_apps/backup/lib/Listeners/NodeEvent.php",
"line": 107,
"function": "changedFile",
"class": "OCA\\Backup\\Service\\FilesService",
"type": "->",
"args": [
{
"__class__": "OCA\\Backup\\Model\\ChangedFile"
}
]
},
{
"file": "/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php",
"line": 87,
"function": "handle",
"class": "OCA\\Backup\\Listeners\\NodeEvent",
"type": "->",
"args": [
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
}
]
},
{
"file": "/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 251,
"function": "__invoke",
"class": "OC\\EventDispatcher\\ServiceEventListener",
"type": "->",
"args": [
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
},
"OCP\\Files\\Events\\Node\\NodeWrittenEvent",
{
"__class__": "Symfony\\Component\\EventDispatcher\\EventDispatcher"
}
]
},
{
"file": "/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 73,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"OCP\\Files\\Events\\Node\\NodeWrittenEvent",
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
}
]
},
{
"file": "/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",
"line": 88,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
},
"OCP\\Files\\Events\\Node\\NodeWrittenEvent"
]
},
{
"file": "/var/www/html/lib/private/EventDispatcher/EventDispatcher.php",
"line": 100,
"function": "dispatch",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
"OCP\\Files\\Events\\Node\\NodeWrittenEvent",
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
}
]
},
{
"file": "/var/www/html/lib/private/Files/Node/HookConnector.php",
"line": 118,
"function": "dispatchTyped",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCP\\Files\\Events\\Node\\NodeWrittenEvent"
}
]
},
{
"file": "/var/www/html/lib/private/legacy/OC_Hook.php",
"line": 106,
"function": "postWrite",
"class": "OC\\Files\\Node\\HookConnector",
"type": "->",
"args": [
{
"run": true,
"path": "/Documents/test2.md"
}
]
},
{
"file": "/var/www/html/lib/private/Files/View.php",
"line": 1290,
"function": "emit",
"class": "OC_Hook",
"type": "::",
"args": [
"OC_Filesystem",
"post_write",
{
"run": true,
"path": "/Documents/test2.md"
}
]
},
{
"file": "/var/www/html/lib/private/Files/View.php",
"line": 1218,
"function": "runHooks",
"class": "OC\\Files\\View",
"type": "->",
"args": [
[
"update",
"write"
],
"/Documents/test2.md",
true
]
},
{
"file": "/var/www/html/lib/private/Files/View.php",
"line": 711,
"function": "basicOperation",
"class": "OC\\Files\\View",
"type": "->",
"args": [
"file_put_contents",
"/mbrauchle/files/Documents/test2.md",
[
"update",
"write"
],
" 123\n\nsdfsdf"
]
},
{
"file": "/var/www/html/lib/private/Files/Node/File.php",
"line": 71,
"function": "file_put_contents",
"class": "OC\\Files\\View",
"type": "->",
"args": [
"/mbrauchle/files/Documents/test2.md",
" 123\n\nsdfsdf"
]
},
{
"file": "/var/www/html/apps/text/lib/Service/DocumentService.php",
"line": 315,
"function": "putContent",
"class": "OC\\Files\\Node\\File",
"type": "->",
"args": [
" 123\n\nsdfsdf"
]
},
{
"file": "/var/www/html/lib/private/Files/Lock/LockManager.php",
"line": 29,
"function": "OCA\\Text\\Service\\{closure}",
"class": "OCA\\Text\\Service\\DocumentService",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/apps/text/lib/Service/DocumentService.php",
"line": 316,
"function": "runInScope",
"class": "OC\\Files\\Lock\\LockManager",
"type": "->",
"args": [
{
"__class__": "OCP\\Files\\Lock\\LockContext"
},
{
"__class__": "Closure"
}
]
},
{
"file": "/var/www/html/apps/text/lib/Service/ApiService.php",
"line": 204,
"function": "autosave",
"class": "OCA\\Text\\Service\\DocumentService",
"type": "->",
"args": [
{
"__class__": "OC\\Files\\Node\\File"
},
9887706,
1,
" 123\n\nsdfsdf",
false,
false,
null,
"/Documents/test2.md"
]
},
{
"file": "/var/www/html/apps/text/lib/Controller/SessionController.php",
"line": 82,
"function": "sync",
"class": "OCA\\Text\\Service\\ApiService",
"type": "->",
"args": [
9887706,
1329,
"sErbfvy+L+Utu144gSt/YtR84zsP9CoAvbsRs6HdrBwE/zRj/ctBz6q+fEkEsGbS",
1,
" 123\n\nsdfsdf",
false,
false
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 225,
"function": "sync",
"class": "OCA\\Text\\Controller\\SessionController",
"type": "->",
"args": [
9887706,
1329,
"sErbfvy+L+Utu144gSt/YtR84zsP9CoAvbsRs6HdrBwE/zRj/ctBz6q+fEkEsGbS",
1,
" 123\n\nsdfsdf",
false,
false
]
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 133,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Text\\Controller\\SessionController"
},
"sync"
]
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Text\\Controller\\SessionController"
},
"sync"
]
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Text\\Controller\\SessionController",
"sync",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "text.Session.sync"
}
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1023,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/text/session/sync"
]
},
{
"file": "/var/www/html/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"Line": 86
},
"CustomMessage": "--"
}
}
Looks like it could be solved by bumping https://github.com/nextcloud/backup/blob/stable24/composer.json#L26 to 24 ?
I am encountering the same issue on any file creation/change on Nextcloud 24.0.1.1