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

bug: runtime error when exporter fetches disk info #26

Open
toddatmilford opened this issue Dec 7, 2024 · 2 comments
Open

bug: runtime error when exporter fetches disk info #26

toddatmilford opened this issue Dec 7, 2024 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@toddatmilford
Copy link

toddatmilford commented Dec 7, 2024

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

@vilhelmprytz vilhelmprytz added bug Something isn't working question Further information is requested labels Dec 7, 2024
@vilhelmprytz vilhelmprytz changed the title Different cli64 versions? bug: runtime error when exporter fetches disk info Dec 7, 2024
@vilhelmprytz
Copy link
Owner

@toddatmilford Thank you for reporting this bug! Can you run the command areca.cli64 disk info and post the information here?

I've been using the following version of Areca CLI when testing:

# areca.cli64
Copyright (c) 2004-2022 Areca, Inc. All Rights Reserved.
Areca CLI, Version: 1.15.23, Arclib: 384, Date: May 17 2022( Linux )
...

But I've used the exporter on much older versions of the CLI as well without this problem.

@toddatmilford
Copy link
Author

toddatmilford commented Dec 8, 2024

Also I have three controllers so I use the curctrl parm

root@jack1:~# cli64 curctrl=2 disk info
  # Enc# Slot#   ModelName                        Capacity  Usage
===============================================================================
  1  01  Slot#1  N.A.                                0.0GB  N.A.
  2  01  Slot#2  N.A.                                0.0GB  N.A.
  3  01  Slot#3  N.A.                                0.0GB  N.A.
  4  01  Slot#4  N.A.                                0.0GB  N.A.
  5  01  Slot#5  N.A.                                0.0GB  N.A.
  6  01  Slot#6  N.A.                                0.0GB  N.A.
  7  01  Slot#7  N.A.                                0.0GB  N.A.
  8  01  Slot#8  N.A.                                0.0GB  N.A.
  9  02  SLOT 01 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 10  02  SLOT 02 WDC  WUS721010ALE6L4            10000.8GB  HotSpare[Global]
 11  02  SLOT 03 Hitachi HUS724040ALE641          4000.8GB  jr1c2
 12  02  SLOT 04 ST4000DM004-2CV104               4000.8GB  jr1c2
 13  02  SLOT 05 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 14  02  SLOT 06 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 15  02  SLOT 07 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 16  02  SLOT 08 Hitachi HUS724040ALE641          4000.8GB  jr1c2
 17  02  SLOT 09 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 18  02  SLOT 10 WDC WD8004FRYZ-01VAEB0           8001.6GB  jr2c2
 19  02  SLOT 11 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 20  02  SLOT 12 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 21  02  SLOT 13 Hitachi HUA723030ALA640          3000.6GB  jr1c2
 22  02  SLOT 14 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 23  02  SLOT 15 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 24  02  SLOT 16 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 25  02  SLOT 17 ST4000DM004-2CV104               4000.8GB  jr2c2
 26  02  SLOT 18 ST4000DM004-2CV104               4000.8GB  jr2c2
 27  02  SLOT 19 ST4000DM004-2CV104               4000.8GB  jr2c2
 28  02  SLOT 20 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 29  02  SLOT 21 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 30  02  SLOT 22 WDC  WUS721010ALE6L4            10000.8GB  Free
 31  02  SLOT 23 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 32  02  SLOT 24 Hitachi HUA723030ALA640          3000.6GB  jr2c2
 33  02  EXTP 01 N.A.                                0.0GB  N.A.
 34  02  EXTP 02 N.A.                                0.0GB  N.A.
 35  02  EXTP 03 N.A.                                0.0GB  N.A.
 36  02  EXTP 04 N.A.                                0.0GB  N.A.
===============================================================================
GuiErrMsg<0x00>: Success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants