-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
SABnzbd - runtime error: index out of range [-1] #252
Comments
|
Looks like the issue described in #246 - as far as I can tell from that PR, this happens when the statistic map coming back from Sabnzbd empty. AFAIK, this should only be true when a new sabnzbd instance is spun up, and no downloads have happened, in which case it should start returning stats once your first download starts. Does that match your situation? |
Signed-off-by: Russell Troxel <russell@troxel.io>
Details
What steps did you take and what happened:
Ran the exportarr container configured for SABnzbd (docker compose config below), and all requests return the following error:
`An error has occurred while serving metrics:
error collecting metric Desc{fqName: "sabnzbd_collector_error", help: "Error getting stats", constLabels: {target=""}, variableLabels: {}}: failed to get server stats: Failed to get server stats: Recovered from panic: runtime error: index out of range [-1]`
What did you expect to happen:
exportarr to present metrics from SABnzbd
Anything else you would like to add:
Currently running the container image tagged latest, and SABnzbd 4.2.1
Additional Information:
docker-compose.yml contents (relevant sections):
exportarr-sabnzbd: image: ghcr.io/onedr0p/exportarr:latest container_name: 'exportarr-sabnzbd' command: ['sabnzbd'] restart: unless-stopped environment: PORT: 9709 URL: '<SABNZBD URL>' APIKEY: '<SABNZBD API KEY>' ports: - '9709:9709'
The text was updated successfully, but these errors were encountered: