IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
958 stars 308 forks source link

127.0.0.1:3000: socket: too many open files #264

Open JanKraljic opened 3 years ago

JanKraljic commented 3 years ago

Reporter is not closing connections to the Grafana, after max open files is reached (usually 1024) starts returning Code HTTP 500 Internal Server Error . It means that after 1024 is reporter not usable.

lsof -p

grafana-r 7654 root    5u     IPv4 38595998      0t0      TCP localhost:51240->localhost:3000 (ESTABLISHED)
grafana-r 7654 root    6u     IPv4 37998345      0t0      TCP localhost:57772->localhost:3000 (ESTABLISHED)
grafana-r 7654 root    7u     IPv4 37998346      0t0      TCP localhost:57774->localhost:3000 (ESTABLISHED)
grafana-r 7654 root    8u     IPv4 37998347      0t0      TCP localhost:57776->localhost:3000 (ESTABLISHED)

x1024

Reporter output: http: Accept error: accept tcp [::]:8686: accept4: too many open files; retrying in 1s

Grafana Version: 7.2.2 Reporter GIT version.

bon3o commented 3 years ago

Today I have faced the same problem. Temporary added a job to restart reporter service once a day.

andcard10 commented 3 years ago

Today I have faced the same problem. Temporary added a job to restart reporter service once a day.

how can I restart the reporter?