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 authored Jun 28, 2022
1 parent 2d5b2e5 commit ec3c143
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions source/guide_nextcloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,33 @@ 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 can add these lines to the ``~/bin/nextcloud-update`` script to make sure the workaround stays active after automated updates:

.. code-block:: bash
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
.. _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 ec3c143

Please sign in to comment.