nextcloud / nextcloud/backup

UNIX socket support missing for MySQL

Open
#612 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3. to review bug
Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Running Nextcloud 28.0.1 on a TrueNAS Core jail. Installed using freenas-iocage-nextcloud script.

I have configured external storage to another nextcloud instance, and app data is on default.
image
image

When I run occ backup:point:create, this is what I'm getting:

image

config.php has the DB set up as:
image
image

I read through a handful of other issues here, and people mentioned fixing the issue by setting the db host from 127.0.0.1 to localhost (among the solutions). I don't really see how it would be applicable to my situation.

Has anyone with my setup found a solution?

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 config.php and reproduce the occ backup:point:create failure using the reported MySQL setup, then trace how the backup command handles the database host. Done means a MySQL UNIX socket configuration works for backup point creation without the reported connection error, with coverage for that configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
cli, databases
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.