Backup of Nextcloud fails, system becomes read-only, requires hard reboot

My YunoHost server

Hardware: Other ARM board: Odroid XU4, with 1 TB SSD
YunoHost version: 11.1.17
I have access to my server : through SSH and webadmin, physical access to power cable, but server becomes unreachable after backup attempts
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no, I don’t think so

Description of my issue

Hi, thank you devs for making such an awesome piece of software! I’ve been trying to do enable proper backups after coasting for months on my new install without any backup strategy :grimacing:

I can make an entire local backup of the system successfully, if I remove the Nextcloud app from the backup. Here is the backup log with Nextcloud (fail), and without (success)

Backing up Nextcloud individually, or as part of an entire backup, causes the errors shown in this paste, which is obtained after running yunohost backup create --apps nextcloud --debug:

The backup fails with this message (from the above paste):

28129 INFO The archive will contain about 122.6GB of data.
28130 DEBUG Creating the backup TAR archive...
935334 ERROR Could not add the files '/home/' (named in the archive 'apps/nextcloud/backup/home/') to be backed up into the compressed archive '/home/yunohost.backup/archives/20230620-091012.tar'

I get the tracebacks before I eventually get booted from my SSH session and I have to unplug and replug my server

OSError: [Errno 30] Read-only file system
Connection to closed by remote host.
Connection to closed.

The file system is definitely read/write during normal operation, but seems to fail to read-only as a result of this operation, similar to Backup fails please see log - #2 by Aleks or Error while backing up

I have plenty of hard drive space left so I’m not sure what the issue is. The backup directory is on the same SSD as the main filesystem. I have an external HDD I am planning to add, but figured I should troubleshoot the problem on the simplest system configuration possible first before messing fstab and binding a folder. I have 2 GB RAM and 1 GB swap set up (I think) - here output of the df command:

Filesystem     1K-blocks      Used Available Use% Mounted on
udev              946184         0    946184   0% /dev
tmpfs             203828      7264    196564   4% /run
/dev/mmcblk0p1  15235876   1996224  13056464  14% /
tmpfs            1019120        24   1019096   1% /dev/shm
tmpfs               5120         0      5120   0% /run/lock
tmpfs            1019120         0   1019120   0% /tmp
/dev/sdb1      960302096        20 911447652   1% /media/hdd
/dev/sda1      960302804 174950260 736498084  20% /media/ssd
/dev/zram1         49560     32404     13572  71% /var/log
tmpfs             203824         0    203824   0% /run/user/48604

and my fstab:

UUID=a2dcd9bc-befa-4ab1-a767-51184de0a994 / ext4 defaults,noatime,commit=600,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,nosuid 0 0
UUID="2c76d20a-25e5-4732-a2a2-74865e9b07b1" /media/ssd ext4 defaults,nofail 0 0
/media/ssd/home /home none defaults,bind 0 0
/media/ssd/var /var none defaults,bind 0 0
/media/ssd/opt /opt none defaults,bind 0 0
UUID="2a0f121e-aed6-4118-8218-7145b9474c8d" /media/hdd ext4 defaults,nofail 0 0

I’d appreciate any help on how to get my Nextcloud app to back up so I can move on to automated, full system backups - let me know if you need any more information. Thank you!

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