serverManager
serverManager copied to clipboard
TypeError: Cannot read property '0' of undefined
2025-02-03 21:55:30.446
> [email protected] start /usr/src/app
2025-02-03 21:55:30.446
> node src/index.js
2025-02-03 21:55:30.687
[ '/usr/local/bin/node', '/usr/src/app/src/index.js' ]
2025-02-03 21:55:30.749
listening on port 8080
2025-02-03 21:55:30.764
Loaded server data from disk
2025-02-03 21:55:31.454
client is subscribing to timer with interval
2025-02-03 21:55:35.404
(node:19) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
at /usr/src/app/src/index.js:110:56
at Array.map (<anonymous>)
at updateServers (/usr/src/app/src/index.js:98:44)
at async updateServerLoop (/usr/src/app/src/index.js:168:2)
(Use `node --trace-warnings ...` to show where the warning was created)
2025-02-03 21:55:35.404
(node:19) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2025-02-03 21:55:35.405
(node:19) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I have r730xd idrac 8 enterprise i have to restart the container for the fan speed to adjust, also the temp also doesnt show up on the dashboard
Steps to reproduce:
- spin up clean container
- delete all servers and create new server
- enable custom fan speed and add 6 points (0,20,40,60,80,100)
- adjust percentage
- save then it'll show that error
a workaround i found is
- spin a new clean container
- edit server 1 to your own server with the custom fan speed etc
- save
- delete server 2
- save again
the metrics should show up and your fan speed should work now
I believe this should have been fixed in the latest version of the image. Please reopen if that is not the case.