tjaworski / AceMagic-S1-LED-TFT-Linux

ACEMAGIC S1 Mini TFT/LCD and LED Control for Linux
GNU General Public License v3.0
100 stars 10 forks source link

Dunno whats wrong ;) #10

Closed NilzOS closed 4 months ago

NilzOS commented 4 months ago

Hi, I got a strange error when starting up.

Its a Proxmox 8.1.10 PVE

root@testing:~/acemagic/s1panel# node main.js 2024-04-12 03:22:08.088 [info] starting up /root/acemagic/s1panel/main.js 2024-04-12 03:22:11.1111 [info] initialize: widget text loaded... 2024-04-12 03:22:11.1111 [info] initialize: widget custom_bar loaded... 2024-04-12 03:22:11.1111 [info] initialize: widget line_chart loaded... 2024-04-12 03:22:11.1111 [info] initialize: widget doughnut_chart loaded... 2024-04-12 03:22:11.1111 [info] initialize: widget bar_chart loaded... 2024-04-12 03:22:11.1111 [info] initialize: widget image loaded... 2024-04-12 03:22:11.1111 [info] initialize: sensor clock loaded... 2024-04-12 03:22:11.1111 [info] initialize: sensor calendar loaded... 2024-04-12 03:22:11.1111 [info] initialize: cpu sensor max points are set to 300 2024-04-12 03:22:11.1111 [info] initialize: sensor cpu_usage loaded... 2024-04-12 03:22:11.1111 [info] initialize: cpu tempature max points are set to 300 2024-04-12 03:22:11.1111 [info] initialize: cpu temp set to use fahrenheit 2024-04-12 03:22:11.1111 [info] initialize: sensor cpu_temp loaded... 2024-04-12 03:22:11.1111 [info] initialize: cpu power max points are set to 300 2024-04-12 03:22:11.1111 [info] initialize: sensor cpu_power loaded... 2024-04-12 03:22:11.1111 [info] initialize: monitoring interface enp2s0 2024-04-12 03:22:11.1111 [info] initialize: network max points are set to 300 2024-04-12 03:22:11.1111 [info] initialize: sensor network_enp2s0 loaded... 2024-04-12 03:22:11.1111 [info] initialize: device orientation is portrait 2024-04-12 03:22:11.1111 [info] network_thread: started... 2024-04-12 03:22:11.1111 [info] led_thread: started... 2024-04-12 03:22:11.1111 [info] initialize: gui started on 0.0.0.0:8686 node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: 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(). The promise rejected with the reason "error executing".] { code: 'ERR_UNHANDLED_REJECTION' }

Node.js v18.19.0

tjaworski commented 4 months ago

did you run the install script? if so, it is probably already running.

NilzOS commented 4 months ago

I stopped the service before, cause the gui was not showing up on the browser and I tried to investigate it

tjaworski commented 4 months ago

its probably one of the sensors. make a backup of config.json, and remove each sensor one at a time and see if it starts. I still have some work to do on the error handling. so, this is running inside a vm on the S1 mini?

NilzOS commented 4 months ago

Nope, it´s running on the host.

root@testing:~/acemagic/s1panel# uname -a Linux ace 6.5.13-5-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.13-5 (2024-04-05T11:03Z) x86_64 GNU/Linux

I´ll try to deactivate the sensors as you told.

And man...great job. I was looking for a tool like yours for quite some time. 👍

tjaworski commented 4 months ago

so, what is this "Proxmox 8.1.10 PVE" if I may ask?

tjaworski commented 4 months ago

fyi, I developed and only tested this on ubuntu.

check to see if these are there:

cpu_power -> /sys/class/powercap/intel-rapl cpu_temp -> sensors -> coretemp-isa-0000 cpu_usage -> /proc/stat network -> /sys/class/net//statistics/

NilzOS commented 4 months ago

Got it. apt install lm-sensors was the solution.

tjaworski commented 4 months ago

don't forget to run 'sudo sensors-detect' :)