nextcloud / nextcloud/backup

Unable to fetch app data error

Open
#322 9 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Nextcloud-AIO docker container on ubuntu server 22.04
Nextcloud version 23.0.5

Hello, I started this error and I did the following.

  • I enabled the app an successfully created a full restore (I assume to local storage)
  • added a SMB external storage location
  • attempted to change the APP data location at the bottom of the UI.
  • system displayed the error "unable to fetch app data"
  • the recent full restore point disappeared from my restoring points history

What I have attempted:

  • I confirmed I can see the external drive location in the files location of the nextcloud GUI
  • I disabled the backup app and deleted it.
  • disabled the external storage app
  • enabled the external storage app
  • downloaded and enabled the backup app.
  • the settings were maintained from before I removed the app and the error persisted

Is there a way to delete the app settings from downloading the backup app again and would that likely fix it.
here is a recent error from the log
error while running differential backup - I noticed it there multiple times

[{"file":"\/var\/www\/html\/custom_apps\/backup\/lib\/Cron\/Backup.php","line":126,"function":"runDifferentialBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/custom_apps\/backup\/lib\/Cron\/Backup.php","line":115,"function":"runBackup","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[1654013082]},{"file":"\/var\/www\/html\/custom_apps\/backup\/lib\/Cron\/Backup.php","line":97,"function":"manage","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/lib\/private\/BackgroundJob\/Job.php","line":51,"function":"run","class":"OCA\\Backup\\Cron\\Backup","object":{},"type":"->","args":[null]},{"file":"\/var\/www\/html\/lib\/private\/BackgroundJob\/TimedJob.php","line":58,"function":"execute","class":"OC\\BackgroundJob\\Job","object":{},"type":"->","args":[{},{}]},{"file":"\/var\/www\/html\/cron.php","line":151,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","object":{},"type":"->","args":[{},{}]}]

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 custom_apps/backup/lib/Cron/Backup.php at line 126, where runDifferentialBackup is called, and trace the scheduled path through lines 115 and 97 to /var/www/html/cron.php. Reproduce the app-data fetch failure with the SMB external storage configuration and determine what resolves both the UI error and repeated differential-backup errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.