nextcloud / nextcloud/nextcloudpi

Specifying an inaccessible location in nc-backup.cfg causes backups.php to crash and admin panel to be inaccessible

Open
#2,031 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

If there is an inaccessible or non-existent location specified as the 'DESTDIR -> value' in nc-backup.cfg, then backups.php will crash when you try to load the admin console at port 4443, and the admin console becomes inaccessible.

Note that you can easily end up with an inaccessible location in the nc-backup.cfg file if you, for example, attached a drive for purpose of backup, and mounted it at a temporary location for the duration of the backup. Then after the backup completes you remove le drive and the mount point goes away.

Note that this seems related to issue #1729

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 by reading backups.php and the DESTDIR value in nc-backup.cfg, then reproduce the admin-console failure with a missing or inaccessible destination. Trace how that invalid location is handled when the console loads; done means backups.php no longer crashes and the admin panel remains accessible.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, shell
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.