FS#69888 - [nextcloud] systemd-tmpfiles step taking 2 hours to run on unrelated package update

Attached to Project: Community Packages
Opened by Marcus Hoffmann (BubuIIC) - Friday, 05 March 2021, 17:54 GMT
Last edited by David Runge (dvzrv) - Friday, 09 April 2021, 09:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: I migrated to the new nextcloud package structure yesterday, now when I installed a gitlab upgradeand it runs the `(2/4) Creating temporary files...` post transaction hook this takes a very long time.

There's ~1.5M files on a slow-ish hdd in the nextcloud data dir, so iterating through all files there is expected to take quite long.

I moved the data dir to `/var/lib/nextcloud/data` adn chowned it to nextcloud:nextcloud (this also took ages). I think those should be right?

Is there a way t avoid having to check all the files on every update?


Additional info:
* package version: 21.0.0-9
This task depends upon

Closed by  David Runge (dvzrv)
Friday, 09 April 2021, 09:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with nextcloud 21.0.1-1
Comment by Marcus Hoffmann (BubuIIC) - Friday, 05 March 2021, 20:28 GMT
As a workaround I removed this line: https://github.com/archlinux/svntogit-community/blob/packages/nextcloud/trunk/nextcloud.tmpfiles#L6 which does the recurse ownership setting.
Comment by David Runge (dvzrv) - Friday, 26 March 2021, 18:30 GMT
@BubullC: Thanks for the report.

I will look into this change and most likely remove the recursiveness of the ownership management.

Loading...