Nesting level error in containerized Nextcloud – Fix Circles

Circles illustration generated by MidJourney
Circles illustration generated by MidJourney

One of the first apps I set up on my Photon Docker host was Nextcloud. It’s an excellent solution for synchronizing and sharing files and comes as an official docker image. However, since I first set it up, I’ve been troubled that the clients start getting disconnected from the server after a short while (hours, a couple of days). The web UI works fine, but the clients on desktop and mobile show up grey with a 500 error.

Checking the logs on the container, I get something like this:

PHP Fatal error: Nesting level too deep - recursive dependency? in /var/www/html/lib/private/Log/ExceptionSerializer.php on line 215

Unfortunately, even after several new builds, this error seems to persist, so I guess I’ll record the workaround here, so I know how to reapply it if it’s overwritten in the future.

I’ll probably do this from within Portainer. If so, change the command to open the console to

/bin/bash -u 33

Then run this as a workaround in Circles:

./occ config:app:set circles route_to_circle --value ''

Then if needed, enable Circles again

./occ app:enable circles

This seems to have fixed the problem for me. At least it’s been working so far.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.