Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Migration to new config fails #6905

Closed
4 of 8 tasks
simonschaufi opened this issue Jul 11, 2024 · 5 comments
Closed
4 of 8 tasks

[Bug]: Migration to new config fails #6905

simonschaufi opened this issue Jul 11, 2024 · 5 comments

Comments

@simonschaufi
Copy link

simonschaufi commented Jul 11, 2024

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

Bug description

When running the App Image in Ubuntu in Terminal, I get the following error output:

./Nextcloud-3.13.2-x86_64.AppImage 
nextcloud.gui.application: Migrating old config from "/home/simon/.local/share/Nextcloud" to "/home/simon/.config/Nextcloud"
nextcloud.gui.application: Failed to move the old config directory to its new location ( "/home/simon/.local/share/Nextcloud" to "/home/simon/.config/Nextcloud" )
nextcloud.gui.application: Will move the individual files ("Nextcloud_sync.log")
nextcloud.gui.application: Fallback move of  "Nextcloud_sync.log" also failed

Steps to reproduce

  1. Run chmod +x Nextcloud-3.13.2-x86_64.AppImage
  2. Run ./Nextcloud-3.13.2-x86_64.AppImage

Expected behavior

Migration works and no error output

Which files are affected by this bug

Nextcloud-3.13.2-x86_64.AppImage

Operating system

Linux

Which version of the operating system you are running.

Ubuntu

Package

Appimage

Nextcloud Server version

does not matter

Nextcloud Desktop Client version

3.13.2

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 Disabled

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

@camilasan
Copy link
Member

Was /home/simon/.local/share/Nextcloud the previous location of the config?
The client tries to migrate from different locations, prompting these messages but unless /home/simon/.config/Nextcloud is empty afterwards, the error in the logs doesn't mean anything.

If in the end you do have a client with no account... what happens if you copy the config file from /home/simon/.local/share/Nextcloud to /home/simon/.config/Nextcloud?
What version are you upgrading from?

@simonschaufi
Copy link
Author

The config is under /home/simon/.config/Nextcloud but the logs are still written to /home/simon/.local/share/Nextcloud which is strange. That's why I don't understand that it still tries to migrate the config which is not there.

What version are you upgrading from?

I was upgrading from 3.12.6

@camilasan
Copy link
Member

The config is under /home/simon/.config/Nextcloud but the logs are still written to /home/simon/.local/share/Nextcloud which is strange.

so after upgrading, when you open the client, you do have your migrated account there, correct?
About the logs being in .local, I have no idea, haven't seen this before.

That's why I don't understand that it still tries to migrate the config which is not there.

Because of much older versions.
I guess we could consider removing those checks now.

@PhilippSchlesinger
Copy link

This seems to be a duplicate of older issues regarding the same problem: #6791 and #6201
Nextcloud developers have commented in those issues and they already contain deeper insight.

@joshtrichards
Copy link
Member

Duplicate of #6201

@joshtrichards joshtrichards marked this as a duplicate of #6201 Aug 14, 2024
@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants