Short version: Iām a silly billy! I deleted my Nextcloud disk when migrating the VM to a new server.
Not a problem, I can restore from the offsite 4TB backup⦠which should take a couple of days.
It restores enough for nextcloud to work but files are missing. It stops the restore overnight.
I think it may be the next backup routine is started before the restore has finished by Iām not certain.
Iām sharing this in case others find the same situation. I havenāt found any other references to restores failing overnight and when I first started my test restore worked fine but it was over a local network and a much smaller set of files.
Long version with more details:
Iām hoping my solution will be to extract the backup from borg on the remote server (borg export-tar /path_to/borgnextcloud::20260630_230253-nextcloud-aio recover_from_this.tar.gz) , then directly access the volumes to access my files and photos, and copy them back into Nextcloud.
I also have a point in time backup of the VM which I could recover but itās about 30 days old. At this point Iām wishing the Borg backup could send to two destinations as then Iād have and an on site and off site copy ![]()
The Basics
- Nextcloud Server version (e.g., 29.x.x):
33.0.6 AIO 13.3.1
- Operating system and version (e.g., Ubuntu 24.04):
26.04 (nb: backup was probably taken on a 24.04 install)
- Web server and version (e.g, Apache 2.4.25):
AIO
- Reverse proxy and version _(e.g. nginx 1.27.2)
AIO
- PHP version (e.g, 8.3):
AIO
- Is this the first time youāve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
When I was an idiot and pressed delete disk
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
AIO
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Nextcloud AIO restore appears to completes but it is incomplete. Enough of the files were present to make me think it had worked quicker than I expected but when looking for files I noticed and folders theyād appear to be there for a few seconds then vanish. I suspect the database expected them to be there, then found they were not so updated.
It appears to stop overnight around 23:50 hours (GMT+1)
Steps to replicate it (hint: details matter!):
-
Delete a large disk
-
Recover large data set using AIO restore, where recovery is expected to be greater than 24hours
Log entries
This is from the AIO Interface, ālogsā link
I remove lots of ā2026-07-02T23:07:11.270362335Z Waiting for backup container to stopā lines
The restore was started about 2026-07-02T11:00 but I canāt see logs from then (which were showing files being copied from the remote borg when I checked on it during the day)
2026-07-02T23:00:44.085234514Z Trying to fix docker.sock permissions internally...
2026-07-02T23:00:44.091743396Z Creating docker group internally with id 983
2026-07-02T23:00:46.173402974Z e[0;92mInitial startup of Nextcloud All-in-One complete!
2026-07-02T23:00:46.173420867Z You should be able to open the Nextcloud AIO Interface now on port 8080 of this server!
2026-07-02T23:00:46.173424085Z E.g. https://internal.ip.of.this.server:8080
2026-07-02T23:00:46.173426766Z ā ļø Important: do always use an ip-address if you access this port and not a domain as HSTS might block access to it later!
2026-07-02T23:00:46.173429552Z
2026-07-02T23:00:46.173431915Z If your server has port 80 and 8443 open and you point a domain to your server, you can get a valid certificate automatically by opening the Nextcloud AIO Interface via:
2026-07-02T23:00:46.173434649Z https://your-domain-that-points-to-this-server.tld:8443e[0m
2026-07-02T23:00:47.424621777Z ++ head -1 /mnt/docker-aio-config/data/daily_backup_time
2026-07-02T23:00:47.427366037Z + BACKUP_TIME=23:00
2026-07-02T23:00:47.427388938Z + export BACKUP_TIME
2026-07-02T23:00:47.427394062Z + export DAILY_BACKUP=1
2026-07-02T23:00:47.427398118Z + DAILY_BACKUP=1
2026-07-02T23:00:47.427875783Z ++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
2026-07-02T23:00:47.429920055Z + '[' '' '!=' automaticUpdatesAreNotEnabled ']'
2026-07-02T23:00:47.429936279Z + export AUTOMATIC_UPDATES=1
2026-07-02T23:00:47.429941328Z + AUTOMATIC_UPDATES=1
2026-07-02T23:00:47.430166344Z ++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
2026-07-02T23:00:47.431265356Z + '[' '' '!=' successNotificationsAreNotEnabled ']'
2026-07-02T23:00:47.431302758Z + export SEND_SUCCESS_NOTIFICATIONS=1
2026-07-02T23:00:47.431309497Z + SEND_SUCCESS_NOTIFICATIONS=1
2026-07-02T23:00:47.431326797Z + '[' warn '!=' debug ']'
2026-07-02T23:00:47.431330643Z + set +x
2026-07-02T23:00:47.432445705Z Daily backup script has started
2026-07-02T23:00:47.485909017Z [02-Jul-2026 23:00:47] NOTICE: fpm is running, pid 187
2026-07-02T23:00:47.485927819Z [02-Jul-2026 23:00:47] NOTICE: ready to handle connections
2026-07-02T23:00:47.534529010Z Waiting for watchtower to stop
2026-07-02T23:01:17.577270800Z Starting mastercontainer update...
2026-07-02T23:01:17.577291851Z (The script might get exited due to that. In order to update all the other containers correctly, you need to run this script with the same settings a second time.)
2026-07-02T23:01:19.891115843Z Waiting for watchtower to stop
2026-07-02T23:01:49.915053328Z Updating container images...
2026-07-02T23:03:34.296609691Z Creating daily backup...
2026-07-02T23:03:40.981421380Z Waiting for backup container to stop
2026-07-02T23:04:11.007951392Z Waiting for backup container to stop
2026-07-02T23:04:41.047375865Z Waiting for backup container to stop
2026-07-02T23:05:11.086035936Z Waiting for backup container to stop
2026-07-02T23:05:41.109215239Z Waiting for backup container to stop
2026-07-02T23:06:11.190207510Z Waiting for backup container to stop
2026-07-02T23:06:41.213860645Z Waiting for backup container to stop
2026-07-02T23:07:11.270362335Z Waiting for backup container to stop
2026-07-03T02:06:22.680776015Z Waiting for backup container to stop
2026-07-03T02:06:52.707402199Z Waiting for backup container to stop
2026-07-03T02:07:22.733375170Z Waiting for backup container to stop
2026-07-03T02:07:52.756231484Z Waiting for backup container to stop
2026-07-03T02:08:22.783485167Z Waiting for backup container to stop
2026-07-03T02:08:52.806780043Z Waiting for backup container to stop
2026-07-03T02:09:22.834724705Z Waiting for backup container to stop
2026-07-03T02:09:52.858262056Z Waiting for backup container to stop
2026-07-03T02:10:22.885862911Z Waiting for backup container to stop
2026-07-03T02:10:52.906128181Z Waiting for backup container to stop
2026-07-03T02:11:22.932879283Z Waiting for backup container to stop
2026-07-03T02:11:52.953827419Z Waiting for backup container to stop
2026-07-03T02:12:22.980074125Z Starting and updating containers...
2026-07-03T02:13:17.826843538Z Waiting for the Nextcloud container to start
2026-07-03T02:13:48.481700869Z Waiting for the Nextcloud container to start
2026-07-03T02:14:18.539165377Z Waiting for the Nextcloud container to start
2026-07-03T02:14:48.609709015Z Waiting for the Nextcloud container to start
2026-07-03T02:15:18.757624820Z Connection to nextcloud-aio-nextcloud (172.18.0.9) 9000 port [tcp/*] succeeded!
2026-07-03T02:15:18.757646844Z Sending backup notification...
2026-07-03T02:15:22.270832422Z Daily backup script has finished
2026-07-03T02:15:24.355268864Z Total reclaimed space: 0B
2026-07-03T02:15:38.906353783Z Deleted Images:
2026-07-03T02:15:38.906373648Z untagged: sha256:f518ea563dfcf09dbf3bbf87ab9bdc65741f2943e6adf51042da8df8bf281564
2026-07-03T02:15:38.906377480Z deleted: sha256:f518ea563dfcf09dbf3bbf87ab9bdc65741f2943e6adf51042da8df8bf281564
2026-07-03T02:15:38.906380473Z deleted: sha256:ddfe61107ff74a0f77e57fbfd10d1a7c20dbbcafa7d31ec2801cfd25e53fccb1
2026-07-03T02:15:38.906383259Z untagged: sha256:b98b1cec73a20795838c81585ed97acc238705dae5a977b0cff2faba52f774bc
2026-07-03T02:15:38.906385977Z deleted: sha256:b98b1cec73a20795838c81585ed97acc238705dae5a977b0cff2faba52f774bc
2026-07-03T02:15:38.906388727Z deleted: sha256:98941be596012f211f6ae58ece812e9bc121c6ef0e32823bfcd9406a8d06d8dc
2026-07-03T02:15:38.906391437Z untagged: sha256:c6cd8e695cf61563245f507f0eff9b7a5ee0803a1aa44b443ea6e723dbfbfc6c
2026-07-03T02:15:38.906394293Z deleted: sha256:c6cd8e695cf61563245f507f0eff9b7a5ee0803a1aa44b443ea6e723dbfbfc6c
2026-07-03T02:15:38.906397056Z deleted: sha256:e2e2af1b07d565389d281db4a57209a198bc314b029958ccd3ee1e58a6161b4d
2026-07-03T02:15:38.906399803Z untagged: sha256:d95c57b486edea4ea0e3e1a25e07b0b81e88669b1f351f30a3875781e463d4b7
2026-07-03T02:15:38.906402555Z deleted: sha256:d95c57b486edea4ea0e3e1a25e07b0b81e88669b1f351f30a3875781e463d4b7
2026-07-03T02:15:38.906405283Z deleted: sha256:4406c4572714f39b5418e60cc844da8d905c1558cb7f85e25906c7d5ce81349c
2026-07-03T02:15:38.906408566Z untagged: sha256:540b6b8d026002c9d6ed6b6435bae69b200899e31c3a93e464e2d7d12bfc31d2
2026-07-03T02:15:38.906412627Z deleted: sha256:540b6b8d026002c9d6ed6b6435bae69b200899e31c3a93e464e2d7d12bfc31d2
2026-07-03T02:15:38.906417216Z deleted: sha256:6983e33ae9a8fe549cda5c52fce82842c46b562a74378b3152e96bbf2e8db5db
2026-07-03T02:15:38.906421244Z untagged: sha256:60fba5bf11ec150d9e81acaed3aaa7f0de6cb40cd3e0aadd85260527eddd9af1
2026-07-03T02:15:38.906425364Z deleted: sha256:60fba5bf11ec150d9e81acaed3aaa7f0de6cb40cd3e0aadd85260527eddd9af1
2026-07-03T02:15:38.906429560Z deleted: sha256:6a759c8cc2dc12faad5d0f8ab4b8d8f0663947069e95445281a70ee571a073df
2026-07-03T02:15:38.906433524Z untagged: sha256:bd8388c39875d5929e22ebc1f90635e3d5f4f06c53297419dfdb6d1d51b99519
2026-07-03T02:15:38.906437477Z deleted: sha256:bd8388c39875d5929e22ebc1f90635e3d5f4f06c53297419dfdb6d1d51b99519
2026-07-03T02:15:38.906440304Z deleted: sha256:b9f81214ba6edc1e299b9fcf1b8ff9905b7ffda4998f50090c65a6b2f51f1f7f
2026-07-03T02:15:38.906442977Z untagged: sha256:d817f7002ca2c9c80d213b7472063f73ab58d8c5a5705ea3a19a3c3b639ba06c
2026-07-03T02:15:38.906445708Z deleted: sha256:d817f7002ca2c9c80d213b7472063f73ab58d8c5a5705ea3a19a3c3b639ba06c
2026-07-03T02:15:38.906448406Z deleted: sha256:b23e587b7a68ae07c20d7f061b128e6b367e82b6205d3e5dc4c716a0eed4ca5f
2026-07-03T02:15:38.906452215Z untagged: sha256:dd91d25c6692cabcda6a3e9fff285be5ba649831cfdca96af56db9845db4589b
2026-07-03T02:15:38.906455037Z deleted: sha256:dd91d25c6692cabcda6a3e9fff285be5ba649831cfdca96af56db9845db4589b
2026-07-03T02:15:38.906465294Z deleted: sha256:f5c93768f62659264d76b734bbe2e3513ab33619e518b5901d65266380b5ecc5
2026-07-03T02:15:38.906468408Z untagged: sha256:e3f05fde245b37e707ceaaeef27d08e8ff5a57320f7bd20e285f7a7336cc0dd5
2026-07-03T02:15:38.906471158Z deleted: sha256:e3f05fde245b37e707ceaaeef27d08e8ff5a57320f7bd20e285f7a7336cc0dd5
2026-07-03T02:15:38.906473858Z deleted: sha256:635a56b4901aba33ee9c27a5c97907362c18dc3e69cedeb258758762f6f77e31
2026-07-03T02:15:38.906476605Z
2026-07-03T02:15:38.906479210Z Total reclaimed space: 4.624GB
2026-07-03T02:16:38.954901041Z ++ head -1 /mnt/docker-aio-config/data/daily_backup_time
2026-07-03T02:16:38.955206852Z + BACKUP_TIME=23:00
2026-07-03T02:16:38.955214308Z + export BACKUP_TIME
2026-07-03T02:16:38.955243027Z + export DAILY_BACKUP=1
2026-07-03T02:16:38.955245996Z + DAILY_BACKUP=1
2026-07-03T02:16:38.955641881Z ++ sed -n 2p /mnt/docker-aio-config/data/daily_backup_time
2026-07-03T02:16:38.956022069Z + '[' '' '!=' automaticUpdatesAreNotEnabled ']'
2026-07-03T02:16:38.956028778Z + export AUTOMATIC_UPDATES=1
2026-07-03T02:16:38.956128161Z + AUTOMATIC_UPDATES=1
2026-07-03T02:16:38.956392795Z ++ sed -n 3p /mnt/docker-aio-config/data/daily_backup_time
2026-07-03T02:16:38.956909126Z + '[' '' '!=' successNotificationsAreNotEnabled ']'
2026-07-03T02:16:38.966731482Z + export SEND_SUCCESS_NOTIFICATIONS=1
2026-07-03T02:16:38.966762672Z + SEND_SUCCESS_NOTIFICATIONS=1
2026-07-03T02:16:38.966766640Z + '[' warn '!=' debug ']'
2026-07-03T02:16:38.966769682Z + set +x
2026-07-03T07:41:52.841193832Z Deleting duplicate sessions