Closed vjuliano closed 2 years ago
I was able to coax it into loading, by returning via one of the settings pages, but then it locked up the browser for about 15 min before I killed it.
You may want to check issue #1193 for some discussion on this...
BTW, the memory limit you are hitting is memory_limit
. If you are using Apache with mod_php, you can simply add the following line to Lychee/public/.htaccess
right next to the other php limits:
php_value memory_limit 500M
I ran into the same issue, and editing .htaccess
did not help me.
I am using the linuxserver.io docker image + docker compose. Instead, I went to the config dir and edited user.ini
.
user@hostname:/# ls /config
custom.js keys log nginx php sym user.css user.ini www
This file has similar contents, so I added the same line, and this time I noticed a difference:
; Uncomment these lines to change PHP parameters if you are using PHP with CGI or FastCGI. Only works with PHP starting from 5.3.0.
; Note that with FastCGI, you might also want to set FcgidBusyTimeout, FcgidIOTimeout and FcgidMaxRequestLen in your Apache config
max_execution_time = 200
post_max_size = 200M
upload_max_size = 200M
upload_max_filesize = 20M
max_file_uploads = 200
+ memory_limit = 500M
[!NOTE] The default seems to be 134217728 bytes (128MiB). So, to test which configurations actually took effect, I first changed the value
129M
to observe a change in the error message. Onlyuser.ini
caused the error message to update to "Allowed memory size of 135266304 bytes exhausted". Then I switched it to a sufficient amount (500M).
Detailed description of the problem [REQUIRED]
I made my recent album contain all photos from last 300 days. Its alot of photos. Album::get fails on { "message": "Allowed memory size of 134217728 bytes exhausted (tried to allocate 10395648 bytes)", "exception": "Symfony\Component\ErrorHandler\Error\FatalError", "file": "/mnt/server/Lychee/vendor/symfony/http-foundation/Response.php", "line": 381, "trace": [] }
I have attached the entire request/response as a text file
I suspect I have a php memory constraint set somewhere, but it looks like ive upped all of them to 500MB. The error is for 128MB, which I think is still higher than any php default would be.
Steps to reproduce the issue
Steps to reproduce the behavior:
Output of the diagnostics [REQUIRED]
Browser and system
Mac Os 11.6.1 Firefox 95.0.2
albumGetResponse.txt