Nextcloud Borg Backup failed

Hi there,

I’ve got troubles with the backup option with borg of Nextcloud AIO.

I have installed Nextcloud AIO with docker (mastercontainer and so on).
The NEXTCLOUD DIR has been set on a external drive.

I wan to backup the data on another external drive. I have set a different location and started the backup process. (no backup has been performed before).

This seems to work quite well, the backup last 4hours and after that, without any noticeable reason, it is deleting the archive.

I have tried

  • changing the backup directory

  • deleting docker and volume nextcloud-aio-borgbackup + borg folder in backup location

  • restarting and upgrading the mastercontainer

I have no more ideas, has anyone an idea to solve this issue please?
Thanks a lot for helping me!


Support info

Nextcloud AIO v7.13.0
Operating system and version : Ubuntu 22.04

Logfile after the backup process

Initializing repository...
using builtin fallback logging configuration
33 self tests completed in 0.16 seconds
Initializing repository at "/mnt/borgbackup/borg"
Failed to securely erase old repository config file (hardlinks not supported). Old repokey data, if any, might persist on physical storage.
Key in "<Repository /mnt/borgbackup/borg>" created.
Keep this key safe. Your data will be inaccessible without it.
check_free_space: few segments, not requiring a full free segment
check_free_space: calculated working space for compact as 0 bytes
check_free_space: required bytes 169138, free bytes 1388866568192
security: previous location file /root/.config/borg/security/6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763/location not found
security: manifest timestamp file /root/.config/borg/security/6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763/manifest-timestamp not found
security: determined newest manifest timestamp as 
security: remembering previously unknown repository
security: saving state for 6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763 to /root/.config/borg/security/6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763
security: current location   /mnt/borgbackup/borg
security: key type           5
security: manifest timestamp 2024-03-03T09:33:22.755455
security: repository checks ok, allowing access
Synchronizing chunks cache...
Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0.
Verified integrity of /mnt/borgbackup/borg/index.1
Done.
security: saving state for 6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763 to /root/.config/borg/security/6b58fa5630f1beddbd931ab2f754bfd98107e4a6fba7981833fe4e9bd3259763
security: current location   /mnt/borgbackup/borg
security: key type           5
security: manifest timestamp 2024-03-03T09:33:22.755455

By default repositories initialized with this version will produce security
errors if written to with an older version (up to and including Borg 1.0.8).

If you want to use these older versions, you can disable the check by running:
borg upgrade --disable-tam /mnt/borgbackup/borg

See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications.

IMPORTANT: you will need both KEY AND PASSPHRASE to access this repo!
If you used a repokey mode, the key is stored in the repo, but you should back it up separately.
Use "borg key export" to export the key, optionally in printable format.
Write down the passphrase. Store both at safe place(s).

Failed to securely erase old repository config file (hardlinks not supported). Old repokey data, if any, might persist on physical storage.
Repository successfully initialized.
Performing backup...
Starting the backup...
Creating archive at "/mnt/borgbackup/borg::20240303_093324-nextcloud-aio"
0 B O 0 B C 0 B D 0 N nextcloud_aio_volumes                                     
zing cache transaction: Reading config
zing cache transaction: Reading chunks
zing cache transaction: Reading files
O 2.58 MB C 2.58 MB D 6 N nextcloud_aio_volume...0000001000000000000007A
 O 7.21 MB C 7.21 MB D 7 N nextcloud_aio_volum...00000010000000000000080
 O 11.46 MB C 11.46 MB D 8 N nextcloud_aio_volu...0000010000000000000077
 O 14.98 MB C 14.98 MB D 8 N nextcloud_aio_volu...0000010000000000000077
 O 17.96 MB C 17.96 MB D 9 N nextcloud_aio_volu...0000010000000000000075
 O 21.37 MB C 21.37 MB D 10 N nextcloud_aio_volu...00001000000000000007B
 O 25.05 MB C 25.05 MB D 11 N nextcloud_aio_volu...00001000000000000007C
B O 28.61 MB C 28.61 MB D 12 N nextcloud_aio_vol...00001000000000000007F
B O 33.30 MB C 33.30 MB D 13 N nextcloud_aio_vol...000010000000000000088
B O 37.13 MB C 37.13 MB D 14 N nextcloud_aio_vol...000010000000000000087
B O 42.06 MB C 42.06 MB D 14 N nextcloud_aio_vol...000010000000000000087
B O 46.20 MB C 46.20 MB D 15 N nextcloud_aio_vol...000010000000000000076

[...]

O 2.97 GB C 2.92 GB D 30887 N nextcloud_aio_volu...243/3264-2448-max.jpg

[...]

B O 104.93 GB C 88.17 GB D 90050 N nextcloud_aio_v...Go Pro/GOPR0004.MP4
iles cache
hunks cache
ache config
zing cache transaction: Reading config
zing cache transaction: Reading chunks
zing cache transaction: Reading files
B O 104.94 GB C 88.18 GB D 90050 N nextcloud_aio_v...Go Pro/GOPR0004.MP4

[...]

B O 300.72 GB C 252.57 GB D 213520 N nextcloud_aio_...c/ColumnVector.php
B O 301.06 GB C 252.65 GB D 259711 N nextcloud_ai�����@�o_...pps/dav/l10n/nl.js

[...]

B O 309.61 GB C 260.90 GB D 271895 N nextcloud_aio_.../database-dump.sql
                                                                        
iles cache
hunks cache
ache config
----------------------------------------------------------------------
Repository: /mnt/borgbackup/borg
Archive name: 20240303_093324-nextcloud-aio
Archive fingerprint: 2d2817731b8935ab78c1f3402a68a0445c68d91f1c21d92c1cf410c0a8e7e25b
Time (start): Sun, 2024-03-03 09:33:24
Time (end):   Sun, 2024-03-03 13:32:57
Duration: 3 hours 59 minutes 33.21 seconds
Number of files: 271905
Utilization of max. archive size: 0%
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
This archive:              329.74 GB            309.63 GB            260.92 GB
All archives:              329.74 GB            309.63 GB            260.92 GB

                       Unique chunks         Total chunks
Chunk index:                  268437               381598
------------------------------------------------------------------------------
Deleting the failed backup archive...
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
Deleted data:             -329.74 GB           -309.63 GB           -260.92 GB
All archives:                    0 B                  0 B                  0 B

                       Unique chunks         Total chunks
Chunk index:                       0                    0
------------------------------------------------------------------------------
Backup failed!
You might want to check the backup integrity via the AIO interface.
Deleting borg.config file so that you can choose a different location for the backup.

Hi, can you post the whole borg container logs here and not truncate it?

Hi Szaimen, thks for replying so fast !

I can not let the all files without removing some information as some lines contains personnal data.

As there are more than 52k lines, I have applied the following regex

\.\.\..*(?=[A-z0-9\-\(\)\/\.]{3}\n)

and replace the selected text by

...long/example/file

If you have any question of one of the line, please feel free to tell me which one and I’ll forward it to you.

[Link no longer available]

This is the reason why the backup fails:

ud_aio_volumes/nextcloud_aio_nextcloud_data/appdata_occa9axghkn6/preview/b/d/2: scandir: [Errno 5] I/O error: 12
ud_aio_volumes/nextcloud_aio_nextcloud_data/appdata_occa9axghkn6/preview/1/c/e: scandir: [Errno 5] I/O error: 12
ud_aio_volumes/nextcloud_aio_nextcloud_data/appdata_occa9axghkn6/preview/d/a/3: scandir: [Errno 5] I/O error: 12
ud_aio_volumes/nextcloud_aio_nextcloud_data/appdata_occa9axghkn6/preview/f/c/d: scandir: [Errno 5] I/O error: 12
ud_aio_volumes/nextcloud_aio_nextcloud_data/Nyrvana/files/Documents/Job/myJobCompany/Bulletin de Paie: scandir: [Errno 5] I/O error: 14
ud_aio_volumes/nextcloud_aio_nextcloud_data/Nyrvana/files/Documents/something/otherthing/Photos: scandir: [Errno 5] I/O error: 14

1 Like

I fixed this on my hard drive, and now it is working fine

Thks a lot @szaimen , you’re my hero of the day !

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.