Skip to content

bug: runtime error when exporter fetches disk info #26

@toddatmilford

Description

@toddatmilford

I am running:

Copyright (c) 2004-2018 Areca, Inc. All Rights Reserved.
Areca CLI, Version: 1.15.8, Arclib: 373, Date: May 29 2018( Linux ) 
ARC-1882   Raid Controller  PCI
Main Processor     : 800MHz
CPU ICache Size    : 32KB
CPU DCache Size    : 32KB
CPU SCache Size    : 1024KB
System Memory      : 4096MB/1333MHz
Firmware Version   : V1.52 2014-02-07
BOOT ROM Version   : V1.52 2014-02-07
Serial Number      : A228CADFAR300104
Controller Name    : ARC-1882
Current IP Address : 192.168.1.100

and I get this:

areca-prometheus-exporter
level=info ts=2024-12-07T14:23:25.647Z caller=areca_exporter.go:465 msg="Starting areca_exporter" version="(version=, branch=, revision=88d08d5250b588675da4c6c95d9ee7676089291b)"
level=info ts=2024-12-07T14:23:25.647Z caller=areca_exporter.go:466 msg="Build context" build_context="(go=go1.23.4, platform=linux/amd64, user=, date=, tags=unknown)"
level=info ts=2024-12-07T14:23:25.648Z caller=tls_config.go:313 msg="Listening on" address=[::]:9423
level=info ts=2024-12-07T14:23:25.648Z caller=tls_config.go:316 msg="TLS is disabled." http2=false address=[::]:9423
level=error ts=2024-12-07T14:23:29.148Z caller=areca_exporter.go:171 err="runtime error: index out of range [5] with length 5" msg="goroutine 23 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:26 +0x5e\nmain.getDiskInfo.func1()\n\t/root/software/areca-prometheus-exporter/areca_exporter.go:171 +0xa5\npanic({0x992380?, 0xc00033a048?})\n\t/usr/local/go/src/runtime/panic.go:785 +0x132\nmain.getDiskInfo()\n\t/root/software/areca-prometheus-exporter/areca_exporter.go:216 +0x6e7\nmain.recordMetrics.func1()\n\t/root/software/areca-prometheus-exporter/areca_exporter.go:338 +0x77\ncreated by main.recordMetrics in goroutine 1\n\t/root/software/areca-prometheus-exporter/areca_exporter.go:332 +0x205\n"

Any ideas on what this is?

Thank you Todd

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions