Nextcloud AIO failes to bring up nextcloud container after restore of my data

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Nextcloud AIO issue. AIO failes to bringup nextcloud server after restore of my data.

The Basics

  • Nextcloud AIO version v12.1.4

  • Operating system and version: Debian Bookworm on VPS

  • Behind NPM (Nginx Proxy Manager)

  • Is this the first time you’ve seen this error? Yes

  • When did this problem seem to first start? Maybee just a few days ago…

  • Installation method AIO on VPS

  • Are you using Cloudflare, mod_security, or similar? No

Summary of the issue you are facing:

The Nextcloud Docker will not go green (log below) once I have completed a restore of my data. However, if I do a fresh install with no data it will come up. I need to figure out how to get it to come up with my data!

Steps to replicate it (hint: details matter!):

  1. Launch nextcloud AIO using this command:

docker run \

--init \

--sig-proxy=false \

--name nextcloud-aio-mastercontainer \

--restart always \

--publish 10.9.0.1:8080:8080 \

--env APACHE_PORT=11000 \

--env APACHE_IP_BINDING=10.9.0.1 \

--env APACHE_ADDITIONAL_NETWORK=“” \

--env SKIP_DOMAIN_VALIDATION=false \

--env NEXTCLOUD_DATADIR=“/mnt/data/nextcloud” \

--env TALK_PORT=3477 \

--env TALK_IP_BINDING=10.9.0.1 \

--env AIO_COMMUNITY_CONTAINERS=" " \

--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \

--volume /var/run/docker.sock:/var/run/docker.sock:ro \

ghcr.io/nextcloud-releases/all-in-one:latest

2. Restore the borg backup of my data using AIO mastercontainer web gui

3. Start Containers

Log entries

Nextcloud

2025-12-09T15:21:46.295899800Z -------------------------------
2025-12-09T15:21:46.295928783Z  2025-12-09 08:21:46.294313-07
2025-12-09T15:21:46.295964897Z (1 row)
2025-12-09T15:21:46.295971238Z 
2025-12-09T15:21:46.313446968Z + '[' -f /dev-dri-group-was-added ']'
2025-12-09T15:21:46.314525638Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2025-12-09T15:21:46.317195898Z + '[' -n '' ']'
2025-12-09T15:21:46.318173802Z + set +x
2025-12-09T15:21:46.359985800Z Connection to nextcloud-aio-redis (172.19.0.8) 6379 port [tcp/redis] succeeded!
2025-12-09T15:21:46.765896713Z The initial Nextcloud installation failed.
2025-12-09T15:21:46.765948802Z For more information about what went wrong, check the logs above.
2025-12-09T15:21:46.765953708Z Please reset AIO properly and try again.
2025-12-09T15:21:46.765999167Z See:
2025-12-09T15:21:46.766007371Z   https://github.com/nextcloud/all-in-one#how-to-properly-reset-the-instance
2025-12-09T15:21:53.479431535Z Connection to nextcloud-aio-database (172.19.0.7) 5432 port [tcp/postgresql] succeeded!
2025-12-09T15:21:55.540608852Z               now              
2025-12-09T15:21:55.540670357Z -------------------------------

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/config# cat config.php

<?php

$CONFIG = array (

'one-click-instance' => true,

'one-click-instance.user-limit' => 100,

'memcache.local' => '\\OC\\Memcache\\APCu',

'apps_paths' =>

array (

0 =>

array (

'path' => '/var/www/html/apps',

'url' => '/apps',

'writable' => false,

),

1 =>

array (

'path' => '/var/www/html/custom_apps',

'url' => '/custom_apps',

'writable' => true,

),

),

'check_data_directory_permissions' => false,

'memcache.distributed' => '\\OC\\Memcache\\Redis',

'memcache.locking' => '\\OC\\Memcache\\Redis',

'redis' =>

array (

'host' => 'nextcloud-aio-redis',

'password' => '8459b9b693e707b9ea48804f9a64904789a3b775e0b7840e',

'port' => 6379,

),

'overwritehost' => 'nc.alliumacres.ca',

'overwriteprotocol' => 'https',

'passwordsalt' => 'DfBnFq7vBJl3ghAMzCa6GhlB/xDg+p',

'secret' => 'nU6lH2WnMxAHAWlFtWvTCUHPFIgKykXrnEf6Yr8TjqtSG7ZV',

'trusted_domains' =>

array (

0 => 'localhost',

1 => 'nc.alliumacres.ca',

),

'datadirectory' => '/mnt/ncdata',

'dbtype' => 'pgsql',

'version' => '32.0.2.2',

'overwrite.cli.url' => 'https://nc.alliumacres.ca/',

'dbname' => 'nextcloud_database',

'dbhost' => 'nextcloud-aio-database:5432',

'dbtableprefix' => 'oc_',

'dbuser' => 'oc_nextcloud',

'dbpassword' => 'e6544b0489394db11751bb051e6d557bf8596615c051ca9c',

'installed' => true,

'instanceid' => 'ocwteeia90xs',

'maintenance' => false,

'updatechecker' => false,

'loglevel' => 2,

'log_type' => 'file',

'logfile' => '/var/www/html/data/nextcloud.log',

'log_rotate_size' => 10485760,

'log.condition' =>

array (

'apps' =>

array (

0 => 'admin_audit',

),

),

'preview_max_x' => 2048,

'preview_max_y' => 2048,

'jpeg_quality' => 60,

'enabledPreviewProviders' =>

array (

1 => 'OC\\Preview\\Image',

2 => 'OC\\Preview\\MarkDown',

3 => 'OC\\Preview\\MP3',

4 => 'OC\\Preview\\TXT',

5 => 'OC\\Preview\\OpenDocument',

6 => 'OC\\Preview\\Movie',

7 => 'OC\\Preview\\Krita',

0 => 'OC\\Preview\\Imaginary',

23 => 'OC\\Preview\\ImaginaryPDF',

),

'enable_previews' => true,

'upgrade.disable-web' => true,

'mail_smtpmode' => 'smtp',

'trashbin_retention_obligation' => 'auto, 30',

'versions_retention_obligation' => 'auto, 30',

'activity_expire_days' => 30,

'simpleSignUpLink.shown' => false,

'share_folder' => '/Shared',

'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',

'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',

'updatedirectory' => '/nc-updater',

'maintenance_window_start' => 100,

'allow_local_remote_servers' => true,

'davstorage.request_timeout' => 3600,

'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',

'htaccess.RewriteBase' => '/',

'dbpersistent' => false,

'auth.bruteforce.protection.enabled' => true,

'ratelimit.protection.enabled' => true,

'files_external_allow_create_new_local' => false,

'trusted_proxies' =>

array (

0 => '127.0.0.1',

1 => '::1',

10 => '172.19.0.0/16',

),

'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',

'preview_imaginary_key' => '423d79fe496a72652cb7adc290c5c732e9fa2a95d9b8df54',

);

Hi, have you followed the steps like e.g. mentioned starting from point 11 here?
See https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-migrate-from-aio-to-aio

Yes, I did this, and get the same result…

Hm… You could delete the install.failed file in the configured datadir and check if that helps

I also did try that. No go…

Can you point out how exactly you restored the data? So step by step what you did?

So I do have a snapshot of the DATADIR from when it last worked. But, I also ran a borg backup after reloading the AIO-Mastercontainer and then ran restore with a fresh AIO-mastercontainer after performing a clean fresh install as per - https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-migrate-from-aio-to-aio

Also, upon digging further i originally had this condition - https://github.com/nextcloud/all-in-one/issues/7223 however that no longer happens as I did re-install latest docker version on my bookworm VPS.

docker --version
Docker version 29.1.2, build 890dcca

Am I better of using the datadir snapshot perhaps? rather than the borg backup?

Thanks for your Help! I really hope I can get this back up!

Update!

I was able to restore with an older borg backup I had from Sept 8th. Then nextcloud sync actually moved all files missing since spet. 8th back on after that.

My biggest mistake was not having current backups, but looks like id did not loose much as I had the Sync setup with my desktop that restored the gap.

Question: I had a few share links I had setup since Sept 8th. Is there any way to restore those using the snapshot I took of my datadir a couple days ago before rebuilding?

PS: Another mistake, when my nextcloud broke with this condition: https://github.com/nextcloud/all-in-one/issues/7223 (They mention in here it happened to debian bookworm as well as synology). I should have taken a snapshot of the VPS before I started messing around, as I could have gone back to snapshot and fixed using resolution in this issue 7223.

Thanks!