Since update to v8.2.1 backups fail with "Too many empty directories"
-
@jagan can you check the output of command
find /app/data -type d -empty | wc -lin Web Terminal of nextcloud . If that is not a high number, then can you try back up again? The code is simply running that command and concluding the number is too high.@joseph said in Since update to v8.2.1 backups fail with "Too many empty directories":
@jagan can you check the output of command
find /app/data -type d -empty | wc -lin Web Terminal of nextcloud . If that is not a high number, then can you try back up again? The code is simply running that command and concluding the number is too high.just curious, I don't have a backup issue but executed the command in web terminal NC: 12471 is this high?
and Immich: 26423
-
@joseph said in Since update to v8.2.1 backups fail with "Too many empty directories":
@jagan can you check the output of command
find /app/data -type d -empty | wc -lin Web Terminal of nextcloud . If that is not a high number, then can you try back up again? The code is simply running that command and concluding the number is too high.just curious, I don't have a backup issue but executed the command in web terminal NC: 12471 is this high?
and Immich: 26423
@imc67 said in Since update to v8.2.1 backups fail with "Too many empty directories":
just curious, I don't have a backup issue but executed the command in web terminal NC: 12471 is this high?
You made me curious too!
I seem to have 31267 (but also not currently having any backup issues either)
-
@jagan can you check the output of command
find /app/data -type d -empty | wc -lin Web Terminal of nextcloud . If that is not a high number, then can you try back up again? The code is simply running that command and concluding the number is too high.@joseph said in Since update to v8.2.1 backups fail with "Too many empty directories":
If that is not a high number,
Define high?
@joseph said in Since update to v8.2.1 backups fail with "Too many empty directories":
The code is simply running that command and concluding the number is too high.
How does the code define it?
-
@jagan can you check the output of command
find /app/data -type d -empty | wc -lin Web Terminal of nextcloud . If that is not a high number, then can you try back up again? The code is simply running that command and concluding the number is too high.@joseph I hit 50968 empty directories
Is there a way to solve this as it hinders proper backup processes ? ThanksP.S.: I think the issue is discussed here: https://github.com/nextcloud/server/issues/46425
Edit: I deleted the content of the preview folder with
rm -r app/data/appdata_*/preview/*and then ransudo -u www-data php -f /app/code/occ files:scan-app-dataas suggested in the link above. Ended up with 129 empty directories. -
@mononym I recently had to clean up a customer's server . The preview dir had over 230k empty dirs!
# wc -l /tmp/deleted_dirs.txt 231605 /tmp/deleted_dirs.txt -
@mononym I recently had to clean up a customer's server . The preview dir had over 230k empty dirs!
# wc -l /tmp/deleted_dirs.txt 231605 /tmp/deleted_dirs.txt -

️