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

code=exited status=1/failure #26

Open
Yukizava opened this issue Aug 13, 2024 · 14 comments
Open

code=exited status=1/failure #26

Yukizava opened this issue Aug 13, 2024 · 14 comments

Comments

@Yukizava
Copy link

node = 18.3.0
npm = 8.19.3

code=exited status=1/failure

Снимок экрана от 2024-08-13 15-47-09

Снимок экрана от 2024-08-13 15-47-36

@Yukizava
Copy link
Author

Hello,

Could you please tell me how to solve this error?

@tjaworski
Copy link
Owner

can you run journalctl -u s1panel

@Yukizava
Copy link
Author

This is outputs

s1panel.txt

@tjaworski
Copy link
Owner

авг 13 21:55:21 yukizava-server systemd[1]: Started s1panel.service - "S1 Panel".
авг 13 21:55:21 yukizava-server s1panel[55605]: node:internal/modules/cjs/loader:1452
авг 13 21:55:21 yukizava-server s1panel[55605]:   return process.dlopen(module, path.toNamespacedPath(filename));
авг 13 21:55:21 yukizava-server s1panel[55605]:                  ^
авг 13 21:55:21 yukizava-server s1panel[55605]: Error: The module '/home/yukizava/acemagic/s1panel/node_modules/canvas/build/Release/canvas.node'
авг 13 21:55:21 yukizava-server s1panel[55605]: was compiled against a different Node.js version using
авг 13 21:55:21 yukizava-server s1panel[55605]: NODE_MODULE_VERSION 108. This version of Node.js requires
авг 13 21:55:21 yukizava-server s1panel[55605]: NODE_MODULE_VERSION 109. Please try re-compiling or re-installing
авг 13 21:55:21 yukizava-server s1panel[55605]: the module (for instance, using `npm rebuild` or `npm install`).
авг 13 21:55:21 yukizava-server s1panel[55605]:     at Module._extensions..node (node:internal/modules/cjs/loader:1452:18)
авг 13 21:55:21 yukizava-server s1panel[55605]: Node.js v18.19.1

try rm -rf node_modules and doing npm install, once it finishes, do sudo service s1panel start

@Yukizava
Copy link
Author

Снимок экрана от 2024-08-13 22-18-51

@Yukizava
Copy link
Author

s1panel.txt

@tjaworski
Copy link
Owner

what happens when you run it manually? sudo node ./main.js do you get the same error?

@Yukizava
Copy link
Author

Снимок экрана от 2024-08-13 22-47-22

@tjaworski
Copy link
Owner

hmm, I don't know. I am out of ideas. you can try the compile options from https://github.com/Automattic/node-canvas

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

remove the node_modules and npm install it again. this is definitely something wrong with the node-canvas/charjs-node-canvas packages.

@Yukizava
Copy link
Author

It doesn't work

Снимок экрана от 2024-08-13 23-18-59

@tjaworski
Copy link
Owner

one last thing you can try is change the canvas version in package.json.

-    "canvas": "^2.11.2",
+    "canvas": "^3.0.0-rc2",

and repeat the node_modules rebuild

@Yukizava
Copy link
Author

Снимок экрана от 2024-08-13 23-42-40

@tjaworski
Copy link
Owner

maybe you can create an issue on https://github.com/Automattic/node-canvas and see what they will say about this. paste the output of the error from #26 (comment)

@gitjoska
Copy link

At my AceMagic-S1 i am running proxmox with and LXC Debian12 and had the same warnings. After i changed the canvas in the package.json as described above these warnings are gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants