lab icon indicating copy to clipboard operation
lab copied to clipboard

[Nextcloud] Workaround for hanging contacts app

Open astehlik opened this issue 2 years ago • 1 comments

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 configured ErrorDocument 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

astehlik avatar Jun 28 '22 13:06 astehlik

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

noave avatar Aug 24 '22 11:08 noave

Thank you so much, that workaround fixed a headage of mine ;-)

entorb avatar Oct 15 '22 01:10 entorb

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.

astehlik avatar Oct 15 '22 09:10 astehlik

Is this a general bug from Nextcloud which can be fixed in the next updates ?

user858753257 avatar Oct 18 '22 22:10 user858753257

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

astehlik avatar Dec 04 '22 15:12 astehlik