On 3 November 2017 at 11:57, Dragos Iorgulescu <Dragos.Iorgulescu@enea.com> wrote:
Hello again!

After managing to run a consistent series of tests on one of our boards, I came across a situation where the job log seems to be too big for LAVA to display. When clicking the ”Job details” button, the server eventually sends a ”502 Proxy Error” message.

Is there a setting or a workaround to make LAVA serve the job log & details in ”chunks”? 

Not in chunks, no. However, the UI can be made usable again by using the "LOG_SIZE_LIMIT" setting in /etc/lava-server/settings.conf:

This sets the maximum size as 2Mb. 

    "LOG_SIZE_LIMIT": 2,

The UI then displays "This log file is too large to view, it can only be downloaded" but you do get access to the results and everything else, without any proxy error.

I'll create a ticket to add this to the documentation.

 

I did download the plain log (using, for example, http://LAVA_HOST/scheduler/job/JOB_ID/log_file/plain),  and it is, indeed, huge (29 MB), but I was just curious if, maybe a ”log rotation”-like mechanism could be used in these situations (somehow).

Thanks in advance!
-- 
/Dragoş

_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users




--