NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

Nextcloud migration failed with endless loop #6908

Closed stephdl closed 6 months ago

stephdl commented 6 months ago

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

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/

DavidePrincipi commented 6 months ago

In testing

DavidePrincipi commented 6 months ago

VERIFIED

  1. ns7 migration
  2. new installation
  3. upgrade from 1.1.5
DavidePrincipi commented 6 months ago

Released as nextcloud 1.1.6

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