[GH-ISSUE #809] Cannot find module '@napi-rs/snappy-linux-arm64-gnu' #379

Closed
opened 2026-02-26 10:32:16 +03:00 by kerem · 5 comments
Owner

Originally created by @2398352642 on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/809

Error: Cannot find module '@napi-rs/snappy-linux-arm64-gnu'
Require stack:

  • /snapshot/server/DocService/node_modules/snappy/index.js
  • /snapshot/server/DocService/node_modules/dmdb/src/utils/compressUtil.js
  • /snapshot/server/DocService/node_modules/dmdb/src/net/access.js
  • /snapshot/server/DocService/node_modules/dmdb/src/driver/connection.js
  • /snapshot/server/DocService/node_modules/dmdb/src/dm.js
  • /snapshot/server/DocService/node_modules/dmdb/index.js
  • /snapshot/server/DocService/sources/databaseConnectors/damengConnector.js
  • /snapshot/server/DocService/sources/databaseConnectors/baseConnector.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.
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at Module.require (pkg/prelude/bootstrap.js:1855:31)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/snapshot/server/DocService/node_modules/snappy/index.js:1:3744)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/snapshot/server/DocService/node_modules/snappy/index.js',
    '/snapshot/server/DocService/node_modules/dmdb/src/utils/compressUtil.js',
    '/snapshot/server/DocService/node_modules/dmdb/src/net/access.js',
    '/snapshot/server/DocService/node_modules/dmdb/src/driver/connection.js',
    '/snapshot/server/DocService/node_modules/dmdb/src/dm.js',
    '/snapshot/server/DocService/node_modules/dmdb/index.js',
    '/snapshot/server/DocService/sources/databaseConnectors/damengConnector.js',
    '/snapshot/server/DocService/sources/databaseConnectors/baseConnector.js',
    '/snapshot/server/DocService/sources/DocsCoServer.js',
    '/snapshot/server/DocService/sources/server.js'
    ],
    pkg: true
    }
    pkg/prelude/bootstrap.js:1876
    throw error;
    ^
Originally created by @2398352642 on GitHub (May 6, 2025). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/809 Error: Cannot find module '@napi-rs/snappy-linux-arm64-gnu' Require stack: - /snapshot/server/DocService/node_modules/snappy/index.js - /snapshot/server/DocService/node_modules/dmdb/src/utils/compressUtil.js - /snapshot/server/DocService/node_modules/dmdb/src/net/access.js - /snapshot/server/DocService/node_modules/dmdb/src/driver/connection.js - /snapshot/server/DocService/node_modules/dmdb/src/dm.js - /snapshot/server/DocService/node_modules/dmdb/index.js - /snapshot/server/DocService/sources/databaseConnectors/damengConnector.js - /snapshot/server/DocService/sources/databaseConnectors/baseConnector.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. at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at Module.require (pkg/prelude/bootstrap.js:1855:31) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/snapshot/server/DocService/node_modules/snappy/index.js:1:3744) at Module._compile (pkg/prelude/bootstrap.js:1930:22) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) { code: 'MODULE_NOT_FOUND', requireStack: [ '/snapshot/server/DocService/node_modules/snappy/index.js', '/snapshot/server/DocService/node_modules/dmdb/src/utils/compressUtil.js', '/snapshot/server/DocService/node_modules/dmdb/src/net/access.js', '/snapshot/server/DocService/node_modules/dmdb/src/driver/connection.js', '/snapshot/server/DocService/node_modules/dmdb/src/dm.js', '/snapshot/server/DocService/node_modules/dmdb/index.js', '/snapshot/server/DocService/sources/databaseConnectors/damengConnector.js', '/snapshot/server/DocService/sources/databaseConnectors/baseConnector.js', '/snapshot/server/DocService/sources/DocsCoServer.js', '/snapshot/server/DocService/sources/server.js' ], pkg: true } pkg/prelude/bootstrap.js:1876 throw error; ^
kerem 2026-02-26 10:32:16 +03:00
Author
Owner

@igwyd commented on GitHub (May 7, 2025):

Hello @2398352642, provide please a scenario of how and where do you get this issue?

<!-- gh-comment-id:2857060175 --> @igwyd commented on GitHub (May 7, 2025): Hello @2398352642, provide please a scenario of how and where do you get this issue?
Author
Owner

@2398352642 commented on GitHub (May 7, 2025):

Hey ONLYOFFICE team,
I'm trying to deploy ONLYOFFICE in a arm64 environment, Connecting Dameng database to ONLYOFFICE Docs.
https://helpcenter.onlyoffice.com/docs/installation/docs-connect-dameng.aspx

docker-compose.yaml
onlyoffice:
container_name: onlyoffice
restart: always
image: docker.io/onlyoffice/documentserver:8.3.3.1-linux-arm64
environment:
- TZ=Asia/Shanghai
- DB_TYPE=dameng
- DB_HOST=xxx
- DB_PORT=5236
- DB_NAME=xxx
- DB_USER=xxx
- DB_PWD=xxx
- JWT_SECRET=xxx
volumes:
- /data/dockervolumes/onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
- /data/dockervolumes/onlyoffice/example-files:/var/www/onlyoffice/documentserver-example/public/files
- /data/dockervolumes/onlyoffice/logs:/var/log/onlyoffice
ports:
- "8881:80"

When I execute docker-compose up -d, The docservice cannot start normally, the log /var/log/onlyoffice/documentserver/docservice/err.log shows the above error

<!-- gh-comment-id:2857292499 --> @2398352642 commented on GitHub (May 7, 2025): Hey ONLYOFFICE team, I'm trying to deploy ONLYOFFICE in a arm64 environment, Connecting Dameng database to ONLYOFFICE Docs. https://helpcenter.onlyoffice.com/docs/installation/docs-connect-dameng.aspx docker-compose.yaml onlyoffice: container_name: onlyoffice restart: always image: docker.io/onlyoffice/documentserver:8.3.3.1-linux-arm64 environment: - TZ=Asia/Shanghai - DB_TYPE=dameng - DB_HOST=xxx - DB_PORT=5236 - DB_NAME=xxx - DB_USER=xxx - DB_PWD=xxx - JWT_SECRET=xxx volumes: - /data/dockervolumes/onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files - /data/dockervolumes/onlyoffice/example-files:/var/www/onlyoffice/documentserver-example/public/files - /data/dockervolumes/onlyoffice/logs:/var/log/onlyoffice ports: - "8881:80" When I execute docker-compose up -d, The docservice cannot start normally, the log /var/log/onlyoffice/documentserver/docservice/err.log shows the above error
Author
Owner

@igwyd commented on GitHub (May 7, 2025):

Thank you for the report, i can confirm this is bug 74371.

<!-- gh-comment-id:2857812795 --> @igwyd commented on GitHub (May 7, 2025): Thank you for the report, i can confirm this is bug 74371.
Author
Owner

@igwyd commented on GitHub (May 20, 2025):

It's fixed at github.com/ONLYOFFICE/server@b5accd4c58 and will be released in the next major release.

<!-- gh-comment-id:2893786153 --> @igwyd commented on GitHub (May 20, 2025): It's fixed at https://github.com/ONLYOFFICE/server/commit/b5accd4c5834cc497a343e11443108faf2688d49 and will be released in the next major release.
Author
Owner

@Rita-Bubnova commented on GitHub (Jun 19, 2025):

DocumentServer v9.0.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:2987719961 --> @Rita-Bubnova commented on GitHub (Jun 19, 2025): DocumentServer v9.0.0 is released so I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#379
No description provided.