Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image randomly stopped working #185

Open
dcolazin opened this issue Nov 16, 2023 · 0 comments
Open

Docker image randomly stopped working #185

dcolazin opened this issue Nov 16, 2023 · 0 comments

Comments

@dcolazin
Copy link

dcolazin commented Nov 16, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant