nextcloud / nextcloud/desktop

[Bug]: Invalid warning: `Failed to move the old config directory to its new location`

Open
#6,201 53 comments 41 reactions 1 assignee Claimed by @camilasan View on GitHub
2. developing bug feature: :cloud: GUI feature: :inbox_tray: install and update
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 17h
Merged PRs (30d)
123

Description

### ⚠️ Before submitting, please verify the following: ⚠️

- [X] This is a **bug**, not a question or a configuration issue.
- [X] This issue is **not** already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)

### Bug description

During startup, the following warning is logged: `nextcloud[2402]: nextcloud.gui.application: Failed to move the old config directory to its new location ( "/home/xxxxxxx/.local/share/Nextcloud" to "/home/xxxxxxx/.config/Nextcloud" )`
I believe this is an invalid warning since my `~/.config/Nextcloud` directory already contains `nextcloud.cfg` and a series of monthly backups. The directory `~/.local/share/Nextcloud` does not contain `nextcloud.cfg` but does contain a `*_sync.log` file for each folder sync connection. There is also a `*_sync.log` file for each folder sync connection under `~/.config/Nextcloud` but these no longer appear to be up-to-date compared to those under `~/.local/share/Nextcloud`. Is it possible that the `*_sync.log` files in `~/.config/Nextcloud` are OBE and need to be removed? The Desktop Client appears to work at this point but I would have no way to know if the cause of this warning would eventually lead to a break in client functionality.

### Steps to reproduce

Start the Nextcloud Client and view the message in the system log.

### Expected behavior

The message should either correctly state the condition it is warning about or not be generated.

### Which files are affected by this bug

nextcloud.cfg

### Operating system

Linux

### Which version of the operating system you are running.

Manjaro

### Package

Distro package manager

### Nextcloud Server version

24.0.12

### Nextcloud Desktop Client version

3.10.1

### Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

### Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

### Are you using an external user-backend?

- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other

### Nextcloud Server logs

_No response_

### Additional info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.