Skip to content

Missing sharp arm64 node module #850

@mortenh77

Description

@mortenh77

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System

Linux

Architecture

arm64

Docker version

Docker version 29.1.4, build 0e6fee6

ONLYOFFICE-Docs version

:latest

Reproduction Steps

I tried various 9.3 images, including latest and I get this in the out.log

Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-linux-arm64v8.node'
Require stack:
- /snapshot/server/DocService/node_modules/sharp/lib/sharp.js
- /snapshot/server/DocService/node_modules/sharp/lib/constructor.js
- /snapshot/server/DocService/node_modules/sharp/lib/index.js
- /snapshot/server/DocService/sources/utilsDocService.js
- /snapshot/server/DocService/sources/DocsCoServer.js
- /snapshot/server/DocService/sources/server.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.

Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"- Install for the current linux-arm64v8 runtime: "npm install --platform=linux --arch=arm64v8 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install

I discovered this whilst trying to debug the "download failed" problem on my coolify installation. I believe this is irrelevant to that

Expected Behavior

Actual Behavior

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugsfixed-releaseIssues that fixed on next release, waiting to be released

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions