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

Nothing happend #12

Closed Stef33fr closed 4 months ago

Stef33fr commented 4 months ago

Hi, I installed S1Panel on my ubuntu 22.04 .4 server but absolutly nothing changed on the panel expect displaying only the hour.

What can I provide to you to help me to solve my problem ?

Thanks.

tjaworski commented 4 months ago
  1. verify the node/npm versions.
  2. check if the service is running. sudo service s1panel status
  3. if it is not, run it manually sudo ./main.js and what do you see?
Stef33fr commented 4 months ago

node -v => 18.20.2 npm -v => 10.5.0

● s1panel.service - "S1 Panel" Loaded: loaded (/etc/systemd/system/s1panel.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2024-04-22 15:48:38 UTC; 5s ago Process: 662590 ExecStart=/usr/bin/node main.js (code=exited, status=1/FAILURE) Main PID: 662590 (code=exited, status=1/FAILURE) CPU: 106ms

node:internal/modules/cjs/loader:1460 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: The module '/home/stephane/acemagic/s1panel/node_modules/canvas/build/Release/canvas.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 108. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at Module._extensions..node (node:internal/modules/cjs/loader:1460:18) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) at Module.require (node:internal/modules/cjs/loader:1231:19) at require (node:internal/modules/helpers:177:18) at Object. (/home/stephane/acemagic/s1panel/node_modules/canvas/lib/bindings.js:3:18) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) { code: 'ERR_DLOPEN_FAILED' }

Stef33fr commented 4 months ago

OOops Sorry. I did a npm rebuild and all goes ok. Sorry again and thanks for the help.