Last few nextcloud updates failed

I’ve been running family-size NextCloud for many years, but the last 2 or 3 updates the update process has been bumpy. Last one is from 29.0.1 to 29.0.2. Each time, I’ve copied back the backup it made to keep things running.

The server is a RasPi4 running DietPi 9.5.1.

Here is the error message from the web updater:

The NC area is much larger than I remember seeing before, 852 MB in /var/www/nextcloud/, with 86 MB in apps/calendar/ for example, of which 57 MB are in js/*.map. Is this normal? I’m running the NC “stable” branch, are these debug files needed?

The error comes after the delete taking a very long time, much longer than I am used to. There are no disk errors, this is running off a 1 TB disk (magnetic, not SSD, which I still need to replace).

Could it be that the HD is simply too slow? Is there a way to extend the nginx timeouts so it completes without errors, even if this takes a bit longer?

Not much info about the map files: Are the *.js.map files required or can I safely delete them? - ℹ️ Support - Nextcloud community

The total count is: 670 .map files, taking 320 MB. I don’t care about the disk space, but what’s the point when you’re on a Diet(Pi) …

On DietPi we can control the base OS more or less but our influence on individual app is limited. Something like this might need to be checked with application developer if and how such thinks could be configured differently. Maybe @MichaIng knows if there is a way to control these feels.

Regarding the timeout. Did you checked Nginx system logs to get more information what is timing out exactly?

No, I was too late to pick up the logs. Will try again next time. Thx, good point.

Indeed, about half of the size of the Nextcloud directory consists of map files, which help debugging and reviewing JavaScript files with e.g. browser developer tools. I would consider to just delete those for our installs, since it is not really required for end users, but Nextcloud has internal integrity checks, which would print errors when files are missing.

1 Like

Thanks - didn’t realise that dropping files will trigger a self-check in NC. Ok, let’s not mess with that, I agree.

I have finally been able to trim down total disk space use, and can now fit my whole HD setup back on a snappy 500 GB SSD. I do need to repartition from scratch, but failed to get it right (my setup is sdb1=vfat:boot:128M, sdb2=ext4:root:10G sdb3=btrfs:dietpi_userdata:≈490G). I know that the UUIDs must match, and adjusted root= in boot/cmdline.txt, and the btrfs mount point in /etc/fstab). I got to a booting system, but login gave me a broken/incomplete shell).

I’ve gone back to the HD-based setup for now.

This is getting a bit off topic for this thread, but is there a description somewhere on how to do migrate DietPi to a smaller drive, using the command line?

maybe following can be used. Moving a running DietPi system to a USB stick/disk or an onboard eMMC – DietPi Blog

Especially the part about shrinking the file system.

1 Like

Thanks for that link - this helped me a lot further, in particular on how to remount R/O.

It turns out that part of the problem was an incompatible SSD drive on USB3, which was solved via this article: Fix for getting your SSD working via USB 3 on your Raspberry PI - PragmaticLinux.

My family server is up again, much snappier and the Nextcloud updates (started from scratch) went through without a hitch this time \o/

Summary: my Nextcloud updates failed due to a (rust-based) hard drive taking too long and nginx timing out as a result. Once moved to a faster SSD, all was well again. Thanks for all your tips and help in getting this resolved.

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