While uploading files via git-lfs, the git command failed:
- with generic error: "Failed to push some refs
- without error in gitolite logs
- with the following error in nginx
2020/01/13 17:17:45 [error] 3677#0: *399559 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 205520896 bytes exhausted (tried to allocate 199237632 bytes) in /usr/share/tuleap/plugins/gitlfs/vendor/league/flysystem/src/Adapter/Local.php on line 159" while reading response header from upstream, client: 172.27.40.104, server: odin.si.c-s.fr, request: "PUT /uploads/git-lfs/objects/021be08a0874d4accf1a2e5b0be36f10ff10654549674b74e0228a5a36f0475e HTTP/1.1", upstream: "
fastcgi://127.0.0.1:9002", host: "tuleap.example.fr"
2020/01/13 17:17:45 [error] 3677#0: *399559 FastCGI sent in stderr: "PHP message: PHP Warning: Error while sending STMT_CLOSE packet. PID=3634 in Unknown on line 0" while reading upstream, client: 172.27.40.104, server: odin.si.c-s.fr, request: "PUT /uploads/git-lfs/objects/021be08a0874d4accf1a2e5b0be36f10ff10654549674b74e0228a5a36f0475e HTTP/1.1", upstream: "
fastcgi://127.0.0.1:9002", host: "tuleap.example.fr"
The concerned file is 211 MB.
The concerned project is configured without any limit on file syze, in the Git.
The Git-LFS limit is set to 512 MB on the platform.
The PHP memory-limit is set to 256 MB.
(Effective platform's version is 11.7)