serverManager icon indicating copy to clipboard operation
serverManager copied to clipboard

TypeError: Cannot read property '0' of undefined

Open iUnstable0 opened this issue 10 months ago • 1 comments

	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

iUnstable0 avatar Feb 03 '25 15:02 iUnstable0

Steps to reproduce:

  1. spin up clean container
  2. delete all servers and create new server
  3. enable custom fan speed and add 6 points (0,20,40,60,80,100)
  4. adjust percentage
  5. save then it'll show that error

a workaround i found is

  1. spin a new clean container
  2. edit server 1 to your own server with the custom fan speed etc
  3. save
  4. delete server 2
  5. save again

the metrics should show up and your fan speed should work now

iUnstable0 avatar Feb 03 '25 15:02 iUnstable0

I believe this should have been fixed in the latest version of the image. Please reopen if that is not the case.

Danielv123 avatar Oct 26 '25 19:10 Danielv123