Manual Installation error after update #423

Closed
opened 2026-02-04 19:11:08 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @ignis-draco on GitHub (Feb 27, 2024).

Hi,

after updating from Plank 1.15.2 to v1.15.6 I get the following error when testing with npm start --prod.

planka@lxc-planka:/var/www/planka/server$ npm start --prod

> start
> nodemon

[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node app.js`
2024-02-27 08:54:30 [E] A hook (`helpers`) failed to load!
2024-02-27 08:54:30 [E] Failed to lift app: Attempted to `require('/var/www/planka/server/api/helpers/attachments/process-uploaded-file.js')`, but an error occurred:
--
Error: Could not load the "sharp" module using the linux-x64 runtime
Possible solutions:
- Ensure optional dependencies can be installed:
    npm install --include=optional sharp
    yarn add sharp --ignore-engines
- Ensure your package manager supports multi-platform installation:
    See https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
    npm install --os=linux --cpu=x64 sharp
- Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/sharp.js:114:9)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/constructor.js:10:1)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/index.js:6:15)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
--
2024-02-27 08:54:30 [E] More details (raw): Could not load the "sharp" module using the linux-x64 runtime
Possible solutions:
- Ensure optional dependencies can be installed:
    npm install --include=optional sharp
    yarn add sharp --ignore-engines
- Ensure your package manager supports multi-platform installation:
    See https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
    npm install --os=linux --cpu=x64 sharp
- Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
2024-02-27 08:54:30 [E] A hook (`orm`) failed to load!
[nodemon] clean exit - waiting for changes before restart

What I have already tried

  • npm install --os=linux --cpu=x64 sharp in /var/www/planka, /var/www/planka/server and /var/www/planka/client
  • Delete the node_modules (planka , planka/client and planka/server)
    and rebuild with npm run build

my system is :

  • Debian Bookworm
  • nodejs : 18.19.0
  • npm : 9.2.0
  • Git Tag: v1.15.6
Originally created by @ignis-draco on GitHub (Feb 27, 2024). Hi, after updating from Plank 1.15.2 to v1.15.6 I get the following error when testing with `npm start --prod`. ``` planka@lxc-planka:/var/www/planka/server$ npm start --prod > start > nodemon [nodemon] 3.0.1 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): *.* [nodemon] watching extensions: js,mjs,cjs,json [nodemon] starting `node app.js` 2024-02-27 08:54:30 [E] A hook (`helpers`) failed to load! 2024-02-27 08:54:30 [E] Failed to lift app: Attempted to `require('/var/www/planka/server/api/helpers/attachments/process-uploaded-file.js')`, but an error occurred: -- Error: Could not load the "sharp" module using the linux-x64 runtime Possible solutions: - Ensure optional dependencies can be installed: npm install --include=optional sharp yarn add sharp --ignore-engines - Ensure your package manager supports multi-platform installation: See https://sharp.pixelplumbing.com/install#cross-platform - Add platform-specific dependencies: npm install --os=linux --cpu=x64 sharp - Consult the installation documentation: See https://sharp.pixelplumbing.com/install at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/sharp.js:114:9) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/constructor.js:10:1) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object.<anonymous> (/var/www/planka/server/node_modules/sharp/lib/index.js:6:15) at Module._compile (node:internal/modules/cjs/loader:1356:14) -- 2024-02-27 08:54:30 [E] More details (raw): Could not load the "sharp" module using the linux-x64 runtime Possible solutions: - Ensure optional dependencies can be installed: npm install --include=optional sharp yarn add sharp --ignore-engines - Ensure your package manager supports multi-platform installation: See https://sharp.pixelplumbing.com/install#cross-platform - Add platform-specific dependencies: npm install --os=linux --cpu=x64 sharp - Consult the installation documentation: See https://sharp.pixelplumbing.com/install 2024-02-27 08:54:30 [E] A hook (`orm`) failed to load! [nodemon] clean exit - waiting for changes before restart ``` What I have already tried - `npm install --os=linux --cpu=x64 sharp` in /var/www/planka, /var/www/planka/server and /var/www/planka/client - Delete the node_modules (planka , planka/client and planka/server) and rebuild with `npm run build ` my system is : - Debian Bookworm - nodejs : 18.19.0 - npm : 9.2.0 - Git Tag: v1.15.6
OVERLORD added the help wanted label 2026-02-04 19:11:08 +03:00
Author
Owner

@meltyshev commented on GitHub (Feb 28, 2024):

Hi! Thanks for reporting this. It looks very strange, hopefully someone can suggest how it can be fixed.

@meltyshev commented on GitHub (Feb 28, 2024): Hi! Thanks for reporting this. It looks very strange, hopefully someone can suggest how it can be fixed.
Author
Owner

@loafylemon commented on GitHub (Mar 3, 2024):

Looks like an issue in sharp module and/or server configuration. Some get it running by forcing reinstall of the newest version npm install --force @img/sharp-linux-x64 or downgrading the module.

https://github.com/lovell/sharp/issues?q=Could+not+load+the+%22sharp%22+module+using+the+linux-x64

@loafylemon commented on GitHub (Mar 3, 2024): Looks like an issue in sharp module and/or server configuration. Some get it running by forcing reinstall of the newest version `npm install --force @img/sharp-linux-x64` or downgrading the module. https://github.com/lovell/sharp/issues?q=Could+not+load+the+%22sharp%22+module+using+the+linux-x64
Author
Owner

@ignis-draco commented on GitHub (Mar 4, 2024):

@loafylemon
Thanks for the link. Thanks to the information I was able to get the latest version running.

As info:
After I installed the version sharp@0.33.0 in the server folder (npm install --os=linux --cpu=x64 sharp@0.33.0) I got another error information (Error: libvips.so.42: cannot open shared object file: No such file or directory) After I installed the
missing package (apt install libvips-dev) I was able to start Planka without any problems.

@ignis-draco commented on GitHub (Mar 4, 2024): @loafylemon Thanks for the link. Thanks to the information I was able to get the latest version running. As info: After I installed the version sharp@0.33.0 in the server folder (npm install --os=linux --cpu=x64 sharp@0.33.0) I got another error information (Error: libvips.so.42: cannot open shared object file: No such file or directory) After I installed the missing package (apt install libvips-dev) I was able to start Planka without any problems.
Author
Owner

@AnthonyFuller commented on GitHub (Mar 1, 2025):

Looks like an issue in sharp module and/or server configuration. Some get it running by forcing reinstall of the newest version npm install --force @img/sharp-linux-x64 or downgrading the module.

https://github.com/lovell/sharp/issues?q=Could+not+load+the+%22sharp%22+module+using+the+linux-x64

Just updated Planka today and encountered this error, running this command fixed it for me.

@AnthonyFuller commented on GitHub (Mar 1, 2025): > Looks like an issue in sharp module and/or server configuration. Some get it running by forcing reinstall of the newest version `npm install --force @img/sharp-linux-x64` or downgrading the module. > > https://github.com/lovell/sharp/issues?q=Could+not+load+the+%22sharp%22+module+using+the+linux-x64 Just updated Planka today and encountered this error, running this command fixed it for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#423