nextcloud / nextcloud/backup

Back up doesn't start

Open
#432 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Description

I have followed the documentation on how to set up back up, but it doesn't start.
I am using Nextcloud 24.0.5 via Yunohost and trying to make a back up and send it to external storage, Nextcloud 24.0.2 on Ubuntu.

This is the error from the log:
{"reqId":"RlUrBqqTpTjOQxbbrja4","level":3,"time":"2022-10-18T08:00:04+00:00","remoteAddr":"","user":"--","app":"backup","method":"","url":"--","message":"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\":[1666080004]},{\"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\":54,\"function\":\"run\",\"class\":\"OCA\\\\Backup\\\\Cron\\\\Backup\",\"object\":{},\"type\":\"->\",\"args\":[null]},{\"file\":\"\\/var\\/www\\/nextcloud\\/lib\\/private\\/BackgroundJob\\/TimedJob.php\",\"line\":60,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\Job\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]},{\"file\":\"\\/var\\/www\\/nextcloud\\/cron.php\",\"line\":151,\"function\":\"execute\",\"class\":\"OC\\\\BackgroundJob\\\\TimedJob\",\"object\":{},\"type\":\"->\",\"args\":[{},{}]}]","userAgent":"--","version":"24.0.5.1","data":{"app":"backup"},"id":"634e7dce465c6"}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with apps/backup/lib/Cron/Backup.php, especially line 126 in runDifferentialBackup, and review how the scheduled job reaches that point. Reproduce the failure with Nextcloud 24.0.5 on Yunohost and Nextcloud 24.0.2 on Ubuntu, using external storage. Done means the backup job starts and completes without this logged error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.