File sharing app prevent "All files" page from loading

Problem explanation :

When I load the ‘All files’ page, I get the following error message :
‘This directory is unavailable, please check the logs or contact the administrator’

The only interaction with Nextcloud we had before the first occurrence was one of my administrator sharing files.

At the time of the first occurrence, the Nextcloud version was 25.0.3 and the PHP version was 8.0.
I updated both as an unsuccessful fixing attempt.

When I disable the ‘File Sharing’ App, I don’t get the error message anymore and the page load correctly.
Could we have we done something wrong with the ‘File Sharing’ App ?

Also, as I get the error message, I can see one of the Nextcloud request get an error 500 :

Request URL: https://membres.arpejeh.com/remote.php/dav/files/username/
Request Method: PROPFIND
Status Code: 500 Internal Server Error

System :

Nextcloud version (eg, 20.0.5): 26.0.1
Operating system and version (eg, Ubuntu 20.04): Debian 10.13
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.20.2.1-v.debian.10+p18.0.51.1+t230404.1037
PHP version (eg, 7.4): 8.1.18

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Sharing files ?
  2. Going to the “All Files” page

The output of your Nextcloud log in Admin > Logging:

No new log lines appear at the time of the bug

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Nothing seem relevant to my problem in this file, please ask me this information if you think otherwise.

The output of your Apache/nginx/system log in /var/log/____:
(this is the logs of docker in which the nextcloud is running, those lines are the only thing appearing at the time of the bug)

[Wed May 03 07:29:27.990239 2023] [core:notice] [pid 1] AH00052: child pid 2470 exit signal Segmentation fault (11)
[Wed May 03 07:29:29.624260 2023] [php:error] [pid 663] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/apps/files_sharing/lib/SharedStorage.php on line 532
[Wed May 03 07:29:29.624727 2023] [php:error] [pid 663] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

The memory_limit in php.ini should be increased (to 1 GB) 512 MB seems to be too small for the sharing app.

You should post this in the right category/sub category, because docker is a science on its own. If one skips the topics, you will be overlooked by the Docker specialists (I am not).

Thank you very much for your answer.
Also, sorry about the category/sub category matter.

I tried increasing the Memory limit to 1GB and then 2GB, but it did not solve my situation.

[Thu May 04 07:11:32.781822 2023] [php:error] [pid 33] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php on line 490
[Thu May 04 07:11:32.782924 2023] [php:error] [pid 33] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[Thu May 04 07:11:33.402182 2023] [php:error] [pid 35] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/lib/private/Files/Cache/Wrapper/CacheJail.php on line 331
[Thu May 04 07:11:33.403266 2023] [php:error] [pid 35] [client 80.11.116.116:0] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

As my nextcloud worked perfectly fine last week with 512MB and not much data was added since, I find it weird that I need to increase the memory limit ?

My best guess would be that I have encountered a situation where the file sharing app run into a never ending loop ?