Skip to content

Commit

Permalink
[Nexcloud] Workaround for hanging contacts app
Browse files Browse the repository at this point in the history
See nextcloud/server#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`
  • Loading branch information
astehlik committed Oct 15, 2022
1 parent 64c94fe commit 8341b95
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/guide_nextcloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,20 @@ The update to Nextcloud 21.0.1 may fail with the following error message:
To solve the issue, apply the ``apc.enable_cli=1`` step above to your installation.

Contacts app hangs
------------------

When your instance is hanging when you open the contacts app you might be affected by `Nextcloud issue #33048 <https://github.com/nextcloud/server/issues/33048>`_

As a workaround you can remove or override ``ErrorDocument`` entries in the ``.htaccess`` file:

.. code-block:: bash
ErrorDocument 403 "Forbidden"
ErrorDocument 404 "Not found"
You need to reapply these changes after you installed Nextcloud updates or after you executed the ``maintenance:update:htaccess`` command.

.. _ownCloud: https://owncloud.org
.. _Nextcloud: https://nextcloud.com
.. _`system requirements`: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html
Expand Down

0 comments on commit 8341b95

Please sign in to comment.