lab
lab copied to clipboard
[Nextcloud] Workaround for hanging contacts app
See https://github.com/nextcloud/server/issues/33048 for more background.
In a Nutshell:
- The contacts app makes many requests to load contact images like
/remote.php/dav/addressbooks/users/<user>/<Addressbook>/<contact-uid>.vcf?photo=
- The
ProxyErrorOverride
config in Uberspace accounts hides the 404 error thrown by Nextcloud and opens the configuredErrorDocument
from.htaccess
- The default error document redirects the user to the Nextcloud start page (Dashboard)
- This means a lot of requests are made at once to load the Nextcloud dashboard which can lead to a completely hung up Nextcloud instance until restarting the PHP service with
uberspace tools restart php
I really would have liked that this bug is handled in the NC repo, but I guess that could take some time. Because we already have this section of "troubleshooting" its ok to add this workaround here. But I would ask you to remove the automatic update part and just add a hint, that this might have to be checked again after updating
Thank you so much, that workaround fixed a headage of mine ;-)
Thank you for your feedback, @noave
I now replaced this section:
You can add these lines to the ~/bin/nextcloud-update
script to make sure the workaround stays active after automated updates:
php ~/html/occ maintenance:update:htaccess
# Override default ErrorDocument directives as a workaround for
# https://github.com/nextcloud/server/issues/33048
{
echo ""
echo 'ErrorDocument 403 "Forbidden"'
echo 'ErrorDocument 404 "Not found"'
} >> ~/html/.htaccess
with a hint. I hope this is OK. Please let me know if I should change anything else.
Is this a general bug from Nextcloud which can be fixed in the next updates ?
Is this a general bug from Nextcloud which can be fixed in the next updates ?
@F3000 The issue filed with Nextcloud is pending for quite some time now :disappointed:
See: https://github.com/nextcloud/server/issues/33048