Migration to Nextcloud AIO fails

Hello,
I鈥檝e tried to migrate from Nextcloud 28 on a Debian VM to Nextcloud AIO (7.11.0) following all the steps from the migration guide : all-in-one/migration.md at main 路 nextcloud/all-in-one 路 GitHub

When I start the containers at step 12, I get this error:

              now              
-------------------------------
 2024-01-25 20:49:01.111171+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n /dev/dri ']'
++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
+ '[' -n /dev/dri/renderD128 ']'
++ stat -c %g /dev/dri/renderD128
+ GID=998
+ groupadd -g 998 render2
++ getent group ++ cut -d: -f1

+ GROUP=render2
+ usermod -aG render2 www-data
+ touch /dev-dri-group-was-added
+ set +x
Enabling Imagick...
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/main: No such file or directory
WARNING: opening from cache https://dl-cdn.alpinelinux.org/alpine/v3.18/community: No such file or directory
Configuring Redis as session handler...
Applying one-click-instance settings...
System config value one-click-instance set to boolean true
System config value one-click-instance.user-limit set to integer 100
System config value one-click-instance.link set to string https://nextcloud.com/all-in-one/
support already enabled
Adjusting log files...
System config value upgrade.cli-upgrade-link set to string https://github.com/nextcloud/all-in-one/discussions/2726
System config value logfile set to string /var/www/html/data/nextcloud.log
Config value logfile for app admin_audit set to /var/www/html/data/audit.log
System config value updatedirectory set to string /nc-updater
Applying network settings...
System config value allow_local_remote_servers set to boolean true
System config value davstorage.request_timeout set to integer 3600
System config value trusted_domains => 1 set to string cloud.munschflorentin.fr
System config value overwrite.cli.url set to string https://cloud.munschflorentin.fr/
System config value htaccess.RewriteBase set to string /
.htaccess has been updated
System config value dbpersistent set to boolean false
System config value files_external_allow_create_new_local set to boolean false
System config value trusted_proxies => 0 set to string 127.0.0.1
System config value trusted_proxies => 1 set to string ::1
Config value base_endpoint for app notify_push set to https://cloud.munschflorentin.fr/push
waiting for clamav to become available...
Config value av_mode for app files_antivirus set to daemon
Config value av_port for app files_antivirus set to 3310
Config value av_host for app files_antivirus set to nextcloud-aio-clamav
Config value av_stream_max_length for app files_antivirus set to 104857600
Config value av_max_file_size for app files_antivirus set to 104857600
Config value av_infected_action for app files_antivirus set to only_log
System config value enabledPreviewProviders => 0 set to string OC\Preview\Imaginary
System config value preview_imaginary_url set to string http://nextcloud-aio-imaginary:9000
{
    "search_platform": "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform",
    "app_navigation": "0",
    "provider_indexed": "",
    "cron_err_reset": "1706212353",
    "tick_ttl": "1800",
    "collection_indexing_list": "50",
    "migration_24": "1",
    "collection_internal": "local"
}
{
    "elastic_host": "http:\/\/elastic:1c73a828bf7cbcd076fe2859e5da9a781def7a3797e6aea7@nextcloud-aio-fulltextsearch:9200",
    "elastic_index": "nextcloud-aio",
    "fields_limit": "10000",
    "es_ver_below66": "0",
    "elastic_logger_enabled": "1",
    "analyzer_tokenizer": "standard",
    "allow_self_signed_cert": "false"
}
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "0",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0",
    "files_chunk_size": "2"
}
+ '[' true = true ']'
+ '[' 11000 = 443 ']'
+ '[' 0.0.0.0 = 127.0.0.1 ']'
+ '[' 0.0.0.0 = ::1 ']'
+ set +x
[25-Jan-2024 20:49:38] NOTICE: fpm is running, pid 359
[25-Jan-2024 20:49:38] NOTICE: ready to handle connections
[25-Jan-2024 20:50:47] NOTICE: Terminating ...
[25-Jan-2024 20:50:47] NOTICE: exiting, bye-bye!
+++ pgrep -f /var/www/html/cron.php
Cronjob successfully exited.
++ '[' -n '' ']'
++ echo 'Cronjob successfully exited.'
++ set +x
             now              
------------------------------
 2024-01-25 21:00:05.88071+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Configuring Redis as session handler...
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance
             now              
------------------------------
 2024-01-25 21:00:08.65265+00
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ set +x
Configuring Redis as session handler...
The initial Nextcloud installation failed.
Please reset AIO properly and try again. For further clues what went wrong, check the logs above.
See https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance

Does anyone has an idea about the cause of my problem?
It says to check the logs above but I don鈥檛 see anything strange above.

Notice: I already had Redis in my previous installation.

The initial data folder is as follow (the guide switches every permissions to 33:0 / 750):

Keep in mind that AIO is v27 based by default at present (until at least after v28.0.2 is released).[1]

Not sure if that鈥檚 the source of your current situation, but it鈥檒l certainly be a problem.

There is a way to override and bump it early[2], but not sure I鈥檇 recommend that on top of a major migration. :slight_smile: But then again if you鈥檙e migrating from v28 then you may not have a choice.

[1] Release v7.11.0 路 nextcloud/all-in-one 路 GitHub
[2] How to update to Nextcloud 28 now? 路 nextcloud/all-in-one 路 Discussion #2692 路 GitHub

Ok I鈥檒l try again when AIO will be on NC 28 from base.
However the version in AIO-nextcloud container is actually NC28 (possible for fresh install).

I had edited my database-dump.sql with vi wich was configured to trim trailing spaces at saving.
Doing a pause and reinvestigating helped me!

1 Like