quickchart icon indicating copy to clipboard operation
quickchart copied to clipboard

Docker image randomly stopped working

Open dcolazin opened this issue 7 months ago • 0 comments

I'm currently investigating a quite rare runtime issue. I deployed the Docker image in Kubernetes and "randomly" (I only noticed this today and I don't know how to replicate it) one of the pods (which was up since some days) stopped working properly, without writing relevant logs.

With "stopped working properly" I mean that the pod was healthy, but the generated chart was wrongly produced. For example, one simple POST /chart request with body

{
	"width": 900,
	"height": 180,
	"chart": "{type:'bar',data:{labels:['Label1','Label2','Label3','Label4','Label5','Label6','Label7','Label8'],datasets:[{label:'Indicators',data:[0.51,417.43,568.79,400.7,79.89,26.88,28.77,0.95],backgroundColor:'rgba(255 127 14, 0.5)',borderColor:'rgb(255 127 14)',borderWidth:1}]},options:{responsive:true,scales:{x:{ticks:{font:{size:10}},title:{display:false}},y:{ticks:{font:{size:10},callback:r=>r?.toLocaleString(\"en\")},title:{display:true,text:'Example text',font:{size:10}}}},plugins:{legend:{display:false},datalabels:{anchor:'center',align:'center',color:'#000',backgroundColor:'#f0f0f0',borderColor:'#d3d3d3',borderWidth:2,borderRadius:6,padding:2,font:{size:8},formatter:r=>r?.toLocaleString(\"en\")}}}}",
	"format": "svg",
	"version": "4.2.0",
	"backgroundColor": "transparent",
	"devicePixelRatio": 1
}

should produce this svg, but it produced this one. A restart fixed the issue.

Is the /healthcheck/chart endpoint able to detect those issues?

dcolazin avatar Nov 16 '23 15:11 dcolazin