Open nunesgh opened 2 years ago
please run ./occ backup:point:create --differential -v
in a console and see if you have any error.
Did you previously installed an old version of the app ?
Thank you for your reply, @ArtificialOwl!
This was the first time I have ever installed the Backup app.
As expected, once the first full restoring point ran on December 31st, the reported error stopped being logged by the Logging app. Would you still like me to perform the manual and verbose run of a differential backup?
nop, let's wait for someone else with the same issue :]
hi @ArtificialOwl ,
i have the same error:
{"reqId":"***","level":3,"time":"2022-02-09T14:15:29+01:00","remoteAddr":"","user":"--","app":"backup","method":"","url":"--","message":"error while running differential backup - [{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/apps\\/backup\\/lib\\/Cron\\/Backup.php\",\"line\":126,\"function\":\"runDifferentialBackup\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[]},{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/apps\\/backup\\/lib\\/Cron\\/Backup.php\",\"line\":115,\"function\":\"runBackup\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[1644412529]},{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/apps\\/backup\\/lib\\/Cron\\/Backup.php\",\"line\":97,\"function\":\"manage\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[]},{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/lib\\/private\\/BackgroundJob\\/Job.php\",\"line\":51,\"function\":\"run\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[null]},{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/lib\\/private\\/BackgroundJob\\/TimedJob.php\",\"line\":58,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\Job\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]},{\"file\":\"\\/var\\/www\\/b***.eu\\/nextcloud\\/cron.php\",\"line\":128,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\TimedJob\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]}]","userAgent":"--","version":"23.0.1.1"}
peto@peto-server:/var/www/b***.eu/nextcloud$ sudo -u www-data php occ backup:point:create --differential -v maintenance mode: on initialization of the AppData initialization of the RestoringPoint: 20220209131943-differential-AAYgbHT33gmvujr based on NC23.0.1.1 initialization of the storage preparation of the data to be stored in the restoring point maintenance mode: off
In PointService.php line 455:
[OCA\Backup\Exceptions\ParentRestoringPointNotFoundException]
cannot create differential. parent cannot be foundException trace: at /var/www/b.eu/nextcloud/apps/backup/lib/Service/PointService.php:455 OCA\Backup\Service\PointService->initParent() at /var/www/b.eu/nextcloud/apps/backup/lib/Service/PointService.php:420 OCA\Backup\Service\PointService->addingRestoringData() at /var/www/b.eu/nextcloud/apps/backup/lib/Service/PointService.php:400 OCA\Backup\Service\PointService->initRestoringPoint() at /var/www/b.eu/nextcloud/apps/backup/lib/Service/PointService.php:251 OCA\Backup\Service\PointService->create() at /var/www/b.eu/nextcloud/apps/backup/lib/Command/PointCreate.php:120 OCA\Backup\Command\PointCreate->execute() at /var/www/b.eu/nextcloud/3rdparty/symfony/console/Command/Command.php:255 Symfony\Component\Console\Command\Command->run() at /var/www/b.eu/nextcloud/core/Command/Base.php:168 OC\Core\Command\Base->run() at /var/www/b.eu/nextcloud/3rdparty/symfony/console/Application.php:1009 Symfony\Component\Console\Application->doRunCommand() at /var/www/b.eu/nextcloud/3rdparty/symfony/console/Application.php:273 Symfony\Component\Console\Application->doRun() at /var/www/b.eu/nextcloud/3rdparty/symfony/console/Application.php:149 Symfony\Component\Console\Application->run() at /var/www/b.eu/nextcloud/lib/private/Console/Application.php:211 OC\Console\Application->run() at /var/www/b.eu/nextcloud/console.php:99 require_once() at /var/www/b***.eu/nextcloud/occ:11
backup:point:create [--output [OUTPUT]] [--generate-log] [--differential] [--] [
]
and following error:
{"reqId":"***","level":3,"time":"2022-02-09T14:15:32+01:00","remoteAddr":"172.16.1.112","user":"admin","app":"PHP","method":"GET","url":"/nextcloud/ocs/v2.php/apps/backup/external","message":"Undefined variable: user at /var/www/b***.eu/nextcloud/apps/backup/lib/Service/ExternalFolderService.php#899","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0","version":"23.0.1.1","exception":{"Exception":"Error","Message":"Undefined variable: user at /var/www/b***.eu/nextcloud/apps/backup/lib/Service/ExternalFolderService.php#899","Code":0,"Trace":[{"file":"/var/www/b***.eu/nextcloud/apps/backup/lib/Service/ExternalFolderService.php","line":899,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/b***.eu/nextcloud/apps/backup/lib/Service/ExternalFolderService.php","line":822,"function":"prepareStorageConfig","class":"OCA\\Backup\\Service\\ExternalFolderService","type":"->"},{"file":"/var/www/b***.eu/nextcloud/apps/backup/lib/Controller/LocalController.php","line":288,"function":"getStorages","class":"OCA\\Backup\\Service\\ExternalFolderService","type":"->"},{"file":"/var/www/b***.eu/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"getExternalFolder","class":"OCA\\Backup\\Controller\\LocalController","type":"->"},{"file":"/var/www/b***.eu/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/b***.eu/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/b***.eu/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/b***.eu/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/b***.eu/nextcloud/ocs/v2.php","line":23,"args":["/var/www/b***.eu/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/b***.eu/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
Just to note, I had the same error. And it seems the differential is failing because the full backup before it didn't execute properly due to a "ListObjectsV2" on the full bucket (where I expected nextcloud to only work within the given prefix in the bucket, not the root).
I installed the Backup app (version 1.2.0) on my 25.0.2 version of Nextcloud. I went to create a backup and also got an error.
{
"reqId": "***",
"level": 3,
"time": "2023-01-20T05:53:57+00:00",
"remoteAddr": "",
"user": "--",
"app": "backup",
"method": "",
"url": "--",
"message": "error while running differential backup -
[{
\"file\":\"\\/var\\/snap\\/nextcloud\\/33054\\/nextcloud\\/extra-apps\\/backup\\/lib\\/Cron\\/Backup.php\",\"line\":126,\"function\":\"runDifferentialBackup\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[]},
{\"file\":\"\\/var\\/snap\\/nextcloud\\/33054\\/nextcloud\\/extra-apps\\/backup\\/lib\\/Cron\\/Backup.php
\",\"line\":115,\"function\":\"runBackup\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[1674194037]},
{\"file\":\"\\/var\\/snap\\/nextcloud\\/33054\\/nextcloud\\/extra-apps\\/backup\\/lib\\/Cron\\/Backup.php\",\"line\":97,\"function\":\"manage\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[]},
{\"file\":\"\\/snap\\/nextcloud\\/33054\\/htdocs\\/lib\\/private\\/BackgroundJob\\/Job.php\",\"line\":54,\"function\":\"run\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[null]},
{\"file\":\"\\/snap\\/nextcloud\\/33054\\/htdocs\\/lib\\/private\\/BackgroundJob\\/TimedJob.php\",\"line\":60,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\Job\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]},
{\"file\":\"\\/snap\\/nextcloud\\/33054\\/htdocs\\/cron.php\",\"line\":152,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\TimedJob\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]
}]",
"userAgent": "--",
"version": "25.0.2.3",
"data": {
"app": "backup"
}
}
Same issue.
./occ backup:point:create --differential -v
output:
In PointService.php line 456:
[OCA\Backup\Exceptions\ParentRestoringPointNotFoundException]
cannot create differential. parent cannot be found
Exception trace:
at /var/www/html/custom_apps/backup/lib/Service/PointService.php:456
OCA\Backup\Service\PointService->initParent() at /var/www/html/custom_apps/backup/lib/Service/PointService.php:421
OCA\Backup\Service\PointService->addingRestoringData() at /var/www/html/custom_apps/backup/lib/Service/PointService.php:401
OCA\Backup\Service\PointService->initRestoringPoint() at /var/www/html/custom_apps/backup/lib/Service/PointService.php:252
OCA\Backup\Service\PointService->create() at /var/www/html/custom_apps/backup/lib/Command/PointCreate.php:120
OCA\Backup\Command\PointCreate->execute() at /var/www/html/3rdparty/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/core/Command/Base.php:177
OC\Core\Command\Base->run() at /var/www/html/3rdparty/symfony/console/Application.php:1009
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/3rdparty/symfony/console/Application.php:273
Symfony\Component\Console\Application->doRun() at /var/www/html/3rdparty/symfony/console/Application.php:149
Symfony\Component\Console\Application->run() at /var/www/html/lib/private/Console/Application.php:213
OC\Console\Application->run() at /var/www/html/console.php:100
require_once() at /var/www/html/occ:11
There is a recent full backup parent available in local and external storage. Health check on those is good.
I am having this same issue every hour (nextcloud v25.0.6, backup v1.2.0)
error while running differential backup - [{"file":"\/var\/snap\/nextcloud\/34542\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":126,"function":"runDifferentialBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/snap\/nextcloud\/34542\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":115,"function":"runBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[1683313468]},{"file":"\/var\/snap\/nextcloud\/34542\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":97,"function":"manage","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/snap\/nextcloud\/34542\/htdocs\/lib\/private\/BackgroundJob\/Job.php","line":54,"function":"run","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[null]},{"file":"\/snap\/nextcloud\/34542\/htdocs\/lib\/private\/BackgroundJob\/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","object":{},"type":"->","args":[{},{}]},{"file":"\/snap\/nextcloud\/34542\/htdocs\/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","object":{},"type":"->","args":[{},{}]}]
Same:
error while running differential backup - [{"file":"\/var\/snap\/nextcloud\/35562\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":126,"function":"runDifferentialBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/snap\/nextcloud\/35562\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":115,"function":"runBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[1686859255]},{"file":"\/var\/snap\/nextcloud\/35562\/nextcloud\/extra-apps\/backup\/lib\/Cron\/Backup.php","line":97,"function":"manage","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/snap\/nextcloud\/35562\/htdocs\/lib\/private\/BackgroundJob\/Job.php","line":54,"function":"run","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[null]},{"file":"\/snap\/nextcloud\/35562\/htdocs\/lib\/private\/BackgroundJob\/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","object":{},"type":"->","args":[{},{}]},{"file":"\/snap\/nextcloud\/35562\/htdocs\/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","object":{},"type":"->","args":[{},{}]}]
Hi,
My Nextcloud instance is version 23.0.0 and the Backup app is version 1.0.3.
I have just installed the Backup app and even before first visiting its settings page, the following error started to appear on the Logging app:
[backup] Error: error while running differential backup - [{"file":"\/var\/www\/nextcloud\/apps\/backup\/lib\/Cron\/Backup.php","line":126,"function":"runDifferentialBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/apps\/backup\/lib\/Cron\/Backup.php","line":115,"function":"runBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[1640836502]},{"file":"\/var\/www\/nextcloud\/apps\/backup\/lib\/Cron\/Backup.php","line":97,"function":"manage","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/private\/BackgroundJob\/Job.php","line":51,"function":"run","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[null]},{"file":"\/var\/www\/nextcloud\/lib\/private\/BackgroundJob\/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","object":{},"type":"->","args":[{},{}]},{"file":"\/var\/www\/nextcloud\/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","object":{},"type":"->","args":[{},{}]}]
The same error keeps appearing every 20 minutes. Interestingly, the first full restoring point is scheduled to happen in 2 days, according to the restoring points history, so no differential backup should be running in the first place.
Thank you for your attention.