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

Nextcloud migration failed with endless loop #6908

Closed
stephdl opened this issue Apr 4, 2024 · 3 comments
Closed

Nextcloud migration failed with endless loop #6908

stephdl opened this issue Apr 4, 2024 · 3 comments
Assignees
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@stephdl
Copy link

stephdl commented Apr 4, 2024

The Nextcloud migration fails with log error Username is invalid because files already exist for this user. There is a version upgrade mismatch.

Steps to reproduce

  • Install on NS7 an account provider (tested with samba AD)
  • Create users
  • install Nextcloud
  • install nethserver-ns8-migration
  • try to migrate to a NS8 the nextcloud and the LDAP

Expected behavior

I expect no errors

Actual behavior

The migration of nextcloud ends up in a loop we find this in logs of NS8

Apr 03 12:20:12 R1-pve.rocky9-pve.org nextcloud-app[11715]: Configuring Redis as session handler
Apr 03 12:20:12 R1-pve.rocky9-pve.org nextcloud-app[11715]: Initializing nextcloud 27.1.6.2 ...
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: New nextcloud instance
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: Installing with MySQL database
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-installation
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: Starting nextcloud installation
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: Username is invalid because files already exist for this user
Apr 03 12:20:15 R1-pve.rocky9-pve.org nextcloud-app[11715]: Retrying install...
Apr 03 12:20:25 R1-pve.rocky9-pve.org nextcloud-app[11715]: Username is invalid because files already exist for this user
Apr 03 12:20:25 R1-pve.rocky9-pve.org nextcloud-app[11715]: Retrying install...
Apr 03 12:20:35 R1-pve.rocky9-pve.org nextcloud-app[11715]: Username is invalid because files already exist for this user
Apr 03 12:20:35 R1-pve.rocky9-pve.org nextcloud-app[11715]: Retrying install...

the logs of the migration in the NS8 server

do not know if related but we have also a version mismatch

Apr 03 12:22:07 R1-pve.rocky9-pve.org nextcloud-app[11715]: OCP\HintException: [0]: Downgrading is not supported and is likely to cause unpredictable issues (from 27.1.7.2 to 27.1.6.2) ()

on NS7: nc_version 27.1.7
on NS8: NC_VERSION=27.1.6

maybe/probably related

Components

nethserver-nextcloud 1.22.4-1.ns7
nethserver-ns8-migration 1.0.9-1.ns7
ns8-nextcloud 1.1.5

See also

https://community.nethserver.org/t/migration-from-ns7-to-ns8/23189/

@stephdl stephdl added the bug A defect of the software label Apr 4, 2024
@stephdl stephdl self-assigned this Apr 4, 2024
@DavidePrincipi DavidePrincipi changed the title Nextcloud migration issue: Username is invalid because files already exist Nextcloud migration failed with endless loop Apr 4, 2024
DavidePrincipi pushed a commit to NethServer/ns8-nextcloud that referenced this issue Apr 4, 2024
@DavidePrincipi DavidePrincipi added the testing Packages are available from testing repositories label Apr 4, 2024
@DavidePrincipi
Copy link
Member

In testing

  • nextcloud 1.1.6-dev.1

@nrauso nrauso self-assigned this Apr 4, 2024
@DavidePrincipi
Copy link
Member

VERIFIED

  1. ns7 migration
  2. new installation
  3. upgrade from 1.1.5

@DavidePrincipi DavidePrincipi added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Apr 4, 2024
@nrauso nrauso removed their assignment Apr 4, 2024
@DavidePrincipi
Copy link
Member

Released as nextcloud 1.1.6

https://github.com/NethServer/ns8-nextcloud/releases/tag/1.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
Archived in project
Development

No branches or pull requests

3 participants